/* Kush & Coil Redesign — Animations */

/* ── Card entrance ───────────────────────────────── */
.vv-card {
  animation: vv-card-in .42s var(--ease-out) forwards;
}
@keyframes vv-card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Stagger delays for grids — capped so last card finishes quickly */
.vv-card:nth-child(1) { animation-delay:   0ms; }
.vv-card:nth-child(2) { animation-delay:  30ms; }
.vv-card:nth-child(3) { animation-delay:  60ms; }
.vv-card:nth-child(4) { animation-delay:  90ms; }
.vv-card:nth-child(5) { animation-delay: 120ms; }
.vv-card:nth-child(6) { animation-delay: 150ms; }
.vv-card:nth-child(7) { animation-delay: 180ms; }
.vv-card:nth-child(8) { animation-delay: 210ms; }

/* NEW products rely on the static .vv-chip-new badge — no pulse ring. */
.vv-card.is-new:hover { box-shadow: var(--shadow-lg); }

/* ── Stat count-up ───────────────────────────────── */
[data-count-up] { display: inline-block; }

/* ── Section entrance (Intersection Observer) ────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ── Hero headline word stagger ──────────────────── */
/* Only hide words once JS has split them — otherwise title stays visible. */
.js-ready .vv-hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  animation: vv-word-in .5s var(--ease-out) forwards;
}
.vv-hero-title .word:nth-child(1) { animation-delay: 100ms; }
.vv-hero-title .word:nth-child(2) { animation-delay: 200ms; }
.vv-hero-title .word:nth-child(3) { animation-delay: 300ms; }
.vv-hero-title .word:nth-child(4) { animation-delay: 400ms; }
.vv-hero-title .word:nth-child(5) { animation-delay: 500ms; }
@keyframes vv-word-in { to { opacity: 1; transform: none; } }

/* ── Modal entrance ──────────────────────────────── */
@keyframes vv-modal-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ── Sale badge shimmer ──────────────────────────── */
@keyframes vv-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.vv-chip-sale {
  background: var(--vv-black);
  color: var(--vv-green-500);
}

/* ── Reduced-motion catch-all ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .vv-marquee-track { animation: none !important; }
  .vv-card.is-new  { animation: none !important; }
  [data-reveal]    { opacity: 1 !important; transform: none !important; }
  .vv-hero-title .word { opacity: 1 !important; transform: none !important; }
}
