/* ============================================================
   BIONOVA — Animations & Keyframes
   VERSION: 20260514
   Depends on: design-tokens.css
   ============================================================ */

/* ── Fade In (page transitions) ── */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

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

/* ── Slide Up (toasts, cards) ── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Slide In Right (mobile menu) ── */
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ── Scale In (modals, overlays) ── */
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ── Float (product images) ── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ── Shimmer (skeleton loading) ── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* ── Badge Shiny (Pack Glowy) ── */
.badge-shiny {
  background: linear-gradient(
    110deg,
    var(--color-bionova-red) 0%,
    var(--color-bionova-red-light) 25%,
    var(--color-bionova-red) 50%,
    var(--color-bionova-red-light) 75%,
    var(--color-bionova-red) 100%
  );
  background-size: 200% 100%;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Pulse Soft (badges, indicators) ── */
@keyframes pulseSoft {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

/* ── Stagger children animation ── */
.stagger-children > * {
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* ── No scrollbar utility ── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-in,
  .stagger-children > * {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .badge-shiny,
  .skeleton-shimmer {
    animation: none;
  }

  .product-card-hover,
  .product-image-float,
  .btn-gradient {
    transition: none;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
