/**
 * CloudShop — Animații și Efecte
 *
 * Ultima modificare: 2026-02-04 15:00
 * Modificari:
 *   2026-02-04 15:00 — Creare inițială: fade-in, slide-up, hover effects
 */

/* Fade in la scroll (CSS-only alternative la AOS) */
.cs-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cs-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation pentru grids */
.cs-animate-delay-1 { transition-delay: 0.1s; }
.cs-animate-delay-2 { transition-delay: 0.2s; }
.cs-animate-delay-3 { transition-delay: 0.3s; }
.cs-animate-delay-4 { transition-delay: 0.4s; }

/* Hover pe butoane (micro-interactions) */
.cs-btn {
    transition: all 0.2s ease;
}

.cs-btn:hover {
    transform: translateY(-1px);
}

.cs-btn:active {
    transform: translateY(0) scale(0.97);
}

/* Pulse effect pe badge coș */
@keyframes cs-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.cs-cart-badge.pulse {
    animation: cs-pulse 0.3s ease;
}

/* Smooth page transitions */
#cs-main {
    animation: cs-page-in 0.3s ease;
}

@keyframes cs-page-in {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

/* Product card image zoom on hover */
.cs-product-card:hover .cs-product-card-img img {
    transform: scale(1.08);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
