/* animations.css */

/* Particle Floating */
@keyframes floatParticle {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(20px); opacity: 0; }
}

.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 5s infinite linear;
}

/* Stagger Animations */
.stagger-1 { animation: slideUpFade 0.5s ease 0.1s forwards; opacity: 0; }
.stagger-2 { animation: slideUpFade 0.5s ease 0.2s forwards; opacity: 0; }
.stagger-3 { animation: slideUpFade 0.5s ease 0.3s forwards; opacity: 0; }

@keyframes slideUpFade {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Gradient Shift */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero-title {
    background-size: 200% auto;
    animation: gradientShift 5s ease infinite;
}

/* Shimmer Skeleton */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--bg-surface) 25%, #2a313c 50%, var(--bg-surface) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 8px;
}
.skeleton-img { height: 200px; margin-bottom: 10px; }
.skeleton-text { height: 20px; margin-bottom: 10px; width: 80%; }

/* Hover 3D Tilt */
.tilt-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}
.tilt-card:hover {
    transform: translateY(-5px) rotateX(2deg) rotateY(2deg);
    box-shadow: -5px 10px 20px rgba(0,0,0,0.3);
}

/* Flash Sale Pulse */
@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(248, 81, 73, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(248, 81, 73, 0); }
    100% { box-shadow: 0 0 0 0 rgba(248, 81, 73, 0); }
}
.pulse-danger {
    animation: pulseRed 2s infinite;
}

/* Gradient Border Animation */
@keyframes rotateBorder {
    100% { transform: rotate(360deg); }
}
.featured-border {
    position: relative;
}
.featured-border::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--primary), transparent, var(--primary));
    z-index: -1;
    border-radius: 14px;
    animation: rotateBorder 4s linear infinite;
    opacity: 0.5;
}

/* Brands Scroll */
@keyframes scrollBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Reveal on Scroll (Intersection Observer class) */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Toast animations */
@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}
