/* Cart Sidebar Modal */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    z-index: 9999;
    transition: right 0.3s ease-in-out;
}

.cart-sidebar.open {
    right: 0;
}

.cart-sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.cart-sidebar.open .cart-sidebar-overlay {
    opacity: 0;
}

.cart-sidebar-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 616px;
    height: 100%;
    background-color: #FFFFFF;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar-header {
    padding: 24px 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-sidebar-title {
    font-family: Calibri;
    font-size: 26px;
    font-weight: 700;
    line-height: 22px;
    color: #333;
    margin: 0;
}

.cart-sidebar-title .cart-count,
.cart-sidebar-title .cart-remessas {
    color: #0057B8;
}

.cart-sidebar-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-sidebar-close:hover {
    color: #0057B8;
}

.cart-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Empty Cart State */
.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 80px 24px 40px 24px;
}

.cart-empty-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.cart-empty-icon i {
    color: transparent;
    -webkit-text-stroke: 1.5px #000;
}

.cart-empty-title {
    font-family: Calibri;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    color: #333;
    margin: 0 0 12px 0;
}

.cart-empty-description {
    font-family: Calibri;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    color: #666;
    margin: 0 0 40px 0;
}

.cart-empty-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    max-width: 400px;
}

.cart-empty-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    text-decoration: none;
    background-color: #FFFFFF;
}

.cart-empty-card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
}

.cart-empty-card span {
    font-family: Calibri;
    font-size: 14px;
    font-weight: 700 !important;
    line-height: 18px;
    color: #0057B8;
    text-align: center;
}

.cart-total-weight {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: #EEF3F6;
    border-radius: 4px;
    margin-bottom: 24px;
}

.cart-total-label {
    font-family: Calibri;
    font-size: 14px;
    font-weight: 700;
    line-height: 16px;
    color: #333;
}

.cart-total-value {
    font-family: Calibri;
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
    color: #0079FF;
}

/* Cart Items Table */
.cart-items-table {
    display: flex;
    flex-direction: column;
    padding-left: 14px;
}

.cart-items-table-header {
    display: grid;
    grid-template-columns: 1fr 180px 120px;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #E0E0E0;
    margin-bottom: 16px;
}

.cart-items-col-envio,
.cart-items-col-quantidade,
.cart-items-col-peso {
    font-family: Calibri;
    font-size: 12px;
    font-weight: 700;
    line-height: 14px;
    color: #687F91;
    text-transform: uppercase;
}

.cart-items-col-envio,
.cart-items-col-quantidade {
    text-align: left;
}

.cart-items-col-peso {
    text-align: right;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item-row {
    display: grid;
    grid-template-columns: 1fr 180px 120px;
    gap: 16px;
    align-items: start;
    border-bottom: 1px solid #F0F0F0;
    padding-bottom: 16px;
}

.cart-item-col-envio {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-product-name {
    font-family: Calibri;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: #333;
}

.cart-item-detail {
    font-family: Calibri;
    font-size: 13px;
    font-weight: 700;
    line-height: 16px;
    color: #666;
}

.cart-item-detail-light {
    font-weight: 400;
}

.cart-item-col-quantidade {
    display: flex;
    align-items: center;
}

.cart-item-quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #A6A6A6;
    border-radius: 4px;
    padding: 6px 12px;
}

.cart-item-quantity-btn {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-quantity-btn:hover {
    color: #0057B8;
}

.cart-item-quantity-value {
    font-family: Calibri;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    color: #333;
    min-width: 24px;
    text-align: center;
}

.cart-item-remove-inline {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}

.cart-item-col-peso {
    font-family: Calibri;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    color: #333;
    text-align: right;
}

.cart-sidebar-footer {
    padding: 24px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: flex-end;
}

.cart-sidebar-footer .btn {
    padding: 6px 10px;
    font-family: Calibri;
    font-size: 11px;
    font-weight: 700;
    line-height: 13px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    border: none;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    width: auto;
}

.cart-sidebar-footer .btn i {
    margin-right: 4px;
    font-size: 11px;
}

.btn-clear-cart {
    background-color: #FFFFFF;
    color: #333;
    border: 1px solid #D9D9D9 !important;
}

.btn-proceed-checkout {
    background-color: #0057B8;
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .cart-sidebar-content {
        width: 100%;
        max-width: 400px;
    }
}

