/* ============================================================
   99STORE.MA — ANIMATIONS
   ------------------------------------------------------------
   Keyframe animations used across the site. Component-level
   transitions (hover states, drawer/menu slide-ins, fades) stay
   defined next to their component rule in style.css / product.css
   so cascade order and specificity are preserved exactly as in
   the original stylesheet — moving them here would change which
   rule "wins" in a few places. This file only holds true
   @keyframes and the reduced-motion utility hook used by main.js.
   ============================================================ */

/* ---------- infinite marquee ticker ---------- */
@keyframes marquee{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}

/* ---------- reduced motion ----------
   main.js sets very short animation/transition durations on every
   element when the user's OS requests reduced motion. This class
   is not required for that (it's done inline via JS to match the
   original behavior exactly), kept here only as a documented,
   reusable alternative for any future markup that prefers a class:
*/
.reduced-motion, .reduced-motion *{
  animation-duration:0.001ms !important;
  transition-duration:0.001ms !important;
}

/* ============================================================
   PREMIUM ENHANCEMENT LAYER — keyframes
   Used by the new rules appended to the end of style.css
   (hero orbs, "new" badge pulse, grid skeleton shimmer, toast).
   ============================================================ */

/* ---------- hero floating gradient orbs ---------- */
@keyframes orbFloat{
  0%,100%{transform:translate(0,0) scale(1);}
  50%{transform:translate(-14px,18px) scale(1.06);}
}

/* ---------- "new" product badge soft pulse ---------- */
@keyframes badgePulse{
  0%,100%{box-shadow:0 0 0 0 rgba(14,110,92,.45);}
  50%{box-shadow:0 0 0 6px rgba(14,110,92,0);}
}

/* ---------- skeleton loading shimmer (deals/bestsellers/new-arrivals grids) ---------- */
@keyframes shimmer{
  0%{background-position:200% 0;}
  100%{background-position:-200% 0;}
}

/* ---------- toast entrance + icon pulse ---------- */
@keyframes toastPop{
  0%{transform:translateX(-50%) translateY(20px) scale(.96);opacity:0;}
  60%{transform:translateX(-50%) translateY(-3px) scale(1.02);opacity:1;}
  100%{transform:translateX(-50%) translateY(0) scale(1);}
}
@keyframes toastIconPulse{
  0%,100%{transform:scale(1);}
  50%{transform:scale(1.15);}
}

/* ---------- button ripple (material-style click feedback) ---------- */
@keyframes rippleFx{
  to{transform:scale(2.6);opacity:0;}
}
.btn .ripple{
  position:absolute;border-radius:50%;
  background:rgba(255,255,255,.5);
  transform:scale(0);
  pointer-events:none;
  animation:rippleFx .6s ease-out;
}
.btn-outline .ripple{background:rgba(14,110,92,.22);}
@media (prefers-reduced-motion: reduce){
  .btn .ripple{display:none;}
}
