/* Custom styles that extend Tailwind */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

/* Animation for adding items to cart */
@keyframes cartBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cart-bounce {
    animation: cartBounce 0.3s ease-in-out;
}

/* Custom scrollbar for cart items */
#cart-items::-webkit-scrollbar {
    width: 6px;
}

#cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#cart-items::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

#cart-items::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Selected payment method style */
.payment-method-btn.selected {
    box-shadow: 0 0 0 2px #3b82f6;
}

/* Transition for showing change */
#change-container {
    transition: all 0.3s ease;
}

/* Notification animations */
@keyframes slide-in {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.animate-slide-in {
    animation: slide-in 0.3s ease-out;
}

/* Modal backdrop */
.modal-backdrop {
    backdrop-filter: blur(2px);
}

/* Smooth transitions */
.transition-all {
    transition: all 0.3s ease;
}

/* Loading spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}