:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --secondary: #f97316;
    --accent: #8b5cf6;
}

.text-primary { color: var(--primary); }
.bg-primary { background-color: var(--primary); }
.bg-primary-light { background-color: var(--primary-light); }
.text-secondary { color: var(--secondary); }
.bg-secondary { background-color: var(--secondary); }
.text-accent { color: var(--accent); }
.bg-accent { background-color: var(--accent); }
.border-primary { border-color: var(--primary); }

.hero-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.cart-item {
    transition: all 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.quantity-btn {
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    transform: scale(1.1);
}

.checkout-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #e2e8f0;
}

.empty-cart {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.animate-bounce-in {
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
    max-width: calc(100vw - 40px);
}

.toast.show {
    transform: translateX(0);
}

.toast.hide {
    transform: translateX(450px);
}



/* Mobile optimizations */
@media (max-width: 640px) {
    .cart-item {
        padding: 1rem !important;
    }
    
    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast.hide {
        transform: translateY(-100px);
    }
}

/* Tablet optimizations */
@media (min-width: 641px) and (max-width: 1024px) {
    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large screen optimizations */
@media (min-width: 1025px) {
    .recommended-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}