/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    min-width: 280px;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-success i {
    color: #10b981;
    font-size: 1.5rem;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error i {
    color: #ef4444;
    font-size: 1.5rem;
}

.toast-notification span {
    font-weight: 500;
    color: #2d3748;
}

/* Cart Animation Styles */
.flying-to-cart {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.add-to-cart-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.add-to-cart-btn.is-loading {
    cursor: wait;
    filter: saturate(0.9);
    opacity: 0.92;
}

.add-to-cart-btn.is-added {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px) scale(1.01);
}

.product-card.added-success {
    animation: addedCardPulse 0.55s ease;
}

@keyframes addedCardPulse {
    0% {
        transform: translateY(0);
    }
    45% {
        transform: translateY(-4px);
        box-shadow: 0 14px 28px rgba(30, 41, 59, 0.14);
    }
    100% {
        transform: translateY(0);
    }
}

.cart-badge {
    animation: none;
}

.cart-badge.bounce {
    animation: bounceScale 0.6s ease;
}

@keyframes bounceScale {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.1); }
}

.pulse {
    animation: pulseGlow 0.6s ease;
}

.cart-link.cart-highlight {
    animation: cartNudge 0.5s ease;
}

@keyframes cartNudge {
    0%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-2px) scale(1.06);
    }
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(74, 144, 226, 0.6); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .toast-notification {
        right: 10px;
        left: 10px;
        min-width: unset;
    }
}
