/* Shopping Cart Styles */

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    max-width: 90vw;
    height: 100vh;
    background: var(--paper);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    overflow: hidden;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--paper);
}

.cart-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
}

.cart-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--muted);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.cart-close:hover {
    color: var(--ink);
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.cart-promo-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--paper);
    padding: 15px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.cart-installments {
    background: #f0f0f0;
    padding: 15px 20px;
    text-align: center;
    font-size: 14px;
    color: var(--ink);
    border-bottom: 1px solid #e5e5e5;
}

.cart-installments strong {
    color: var(--bf-orange);
}

.cart-items {
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    margin: 0;
}

.cart-item-info {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
    font-size: 18px;
}

.cart-item-remove:hover {
    color: var(--ink);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 5px;
}

.quantity-btn {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: var(--ink);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    border-radius: 4px;
}

.quantity-btn:hover {
    background: var(--surface);
}

.quantity-value {
    min-width: 30px;
    text-align: center;
    font-weight: 500;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-left: auto;
}

.cart-footer {
    border-top: 1px solid #e5e5e5;
    padding: 20px;
    background: var(--paper);
}

.cart-summary {
    margin-bottom: 20px;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.cart-subtotal-label {
    color: var(--muted);
}

.cart-subtotal-value {
    font-weight: 700;
    color: var(--ink);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
    font-size: 20px;
    font-weight: 700;
}

.cart-total-label {
    color: var(--ink);
}

.cart-total-value {
    color: var(--ink);
}

.cart-checkout-btn {
    width: 100%;
    background: var(--ink);
    color: var(--paper);
    border: none;
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-top: 15px;
}

.cart-checkout-btn:hover {
    background: var(--bf-orange);
}

.cart-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--muted);
}

.cart-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.cart-empty-text {
    font-size: 18px;
    margin-bottom: 30px;
}

.cart-empty-btn {
    background: var(--ink);
    color: var(--paper);
    border: none;
    padding: 14px 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    border-radius: 4px;
}

.cart-empty-btn:hover {
    background: var(--bf-orange);
}

/* Responsive */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100vw;
        right: -100vw;
    }

    .cart-item {
        flex-direction: column;
    }

    .cart-item-image {
        width: 100%;
        height: 200px;
    }

    .cart-item-actions {
        justify-content: space-between;
    }
}



