/* ========== PROFESSIONAL SHOPPING CART SIDEBAR ========== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

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

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-header {
    padding: 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cart-close {
    font-size: 28px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-close:hover {
    color: #ab8c52;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    animation: slideInCart 0.3s ease;
}

@keyframes slideInCart {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item-image {
    width: 100px;
    height: 130px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-item-options {
    font-size: 12px;
    color: #666;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 700;
    color: #ab8c52;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s ease;
}

.qty-btn:hover {
    background: #f5f5f5;
}

.qty-value {
    width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.cart-item-remove {
    color: #999;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cart-item-remove:hover {
    color: #f44336;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty-icon {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.cart-empty-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.cart-footer {
    padding: 25px 30px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 2px solid #212121;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cart-total-amount {
    color: #ab8c52;
}

.cart-checkout-btn {
    width: 100%;
    padding: 16px;
    background: #212121;
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.cart-checkout-btn:hover {
    background: #ab8c52;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(171, 140, 82, 0.3);
}

.cart-continue {
    width: 100%;
    padding: 14px;
    background: transparent;
    color: #212121;
    border: 2px solid #212121;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-continue:hover {
    background: #212121;
    color: #ffffff;
}

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 11px;
    color: #666;
}

.secure-badge svg {
    width: 16px;
    height: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-item-image {
        width: 80px;
        height: 100px;
    }
}
