/* ==========================================================================
   Archan Fireworks — Motion & animation pack (Update 25)
   Everything here moves only "transform" and "opacity" (the cheap, smooth
   kind the phone's graphics chip handles), and switches off completely when
   the phone is set to "Reduce motion".
   Classes starting with  mfx-  are added by assets/js/motion-fx.js.
   ========================================================================== */
:root{
  --mfx-ease:cubic-bezier(.2,.8,.2,1);
  --mfx-spring:cubic-bezier(.34,1.56,.64,1);
  --mfx-gold:#ffbe1a; --mfx-crimson:#dc143c; --mfx-saffron:#ff7a00;
}

/* ---------- 1. Scroll reveal (cards & sections rise in softly) ---------- */
.mfx-r{opacity:0;transform:translate3d(0,22px,0) scale(.985)}
.mfx-r.mfx-in{opacity:1;transform:none;
  transition:opacity .55s var(--mfx-ease),transform .65s var(--mfx-ease);transition-delay:var(--mfx-d,0ms)}
/* product rows on the homepage: the first cards follow one after another */
.mfx-in .scroller>*{animation:mfx-slide .6s var(--mfx-ease) backwards}
.mfx-in .scroller>*:nth-child(2){animation-delay:70ms}
.mfx-in .scroller>*:nth-child(3){animation-delay:140ms}
.mfx-in .scroller>*:nth-child(4){animation-delay:210ms}
.mfx-in .scroller>*:nth-child(n+5){animation-delay:260ms}
@keyframes mfx-slide{from{opacity:0;transform:translate3d(28px,0,0)}to{opacity:1;transform:none}}

/* ---------- 2. Pictures: shimmer while loading, soft fade when ready ---------- */
.mfx-wait{background-image:linear-gradient(100deg,rgba(255,255,255,0) 30%,rgba(255,226,190,.55) 50%,rgba(255,255,255,0) 70%)!important;
  background-size:240% 100%!important;background-repeat:no-repeat!important;animation:mfx-shim 1.15s linear infinite}
@keyframes mfx-shim{from{background-position:120% 0}to{background-position:-120% 0}}
img.mfx-img{opacity:0;transform:scale(1.04)}
img.mfx-img.mfx-ok{opacity:1;transform:none;transition:opacity .45s ease,transform .7s var(--mfx-ease)}

/* ---------- 3. Add to cart: sparks, flying star, cart bounce ---------- */
.mfx-spark{position:fixed;left:0;top:0;width:7px;height:7px;margin:-3.5px 0 0 -3.5px;border-radius:50%;pointer-events:none;z-index:2147483001;will-change:transform,opacity}
.mfx-fly{position:fixed;left:0;top:0;width:26px;height:26px;margin:-13px 0 0 -13px;pointer-events:none;z-index:2147483002;will-change:transform,opacity;
  border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff6c9,var(--mfx-gold) 45%,var(--mfx-saffron));box-shadow:0 0 14px 4px rgba(255,190,26,.65)}
.mfx-plus{position:fixed;left:0;top:0;pointer-events:none;z-index:2147483001;font:800 1rem/1 "Baloo Thambi 2",system-ui,sans-serif;color:var(--mfx-crimson);
  text-shadow:0 1px 0 #fff,0 0 6px #fff;will-change:transform,opacity}
.mfx-bump{animation:mfx-bump .55s var(--mfx-spring)}
@keyframes mfx-bump{0%{transform:scale(1)}30%{transform:scale(1.28) rotate(-8deg)}60%{transform:scale(.92) rotate(4deg)}100%{transform:none}}
.mfx-pop{animation:mfx-pop .5s var(--mfx-spring)}
@keyframes mfx-pop{0%{transform:scale(.4)}60%{transform:scale(1.35)}100%{transform:none}}

/* Product page main button: a slow golden shine passes over it */
.cs.cs-lg .cs-add,.pd-sticky .cs-add{position:relative;overflow:hidden;isolation:isolate}
.cs.cs-lg .cs-add::after,.pd-sticky .cs-add::after{content:"";position:absolute;top:0;bottom:0;left:0;width:45%;pointer-events:none;
  background:linear-gradient(105deg,rgba(255,255,255,0),rgba(255,255,255,.38),rgba(255,255,255,0));transform:translateX(-160%) skewX(-18deg);
  animation:mfx-shine 4.2s ease-in-out 1.2s infinite}
@keyframes mfx-shine{0%,62%{transform:translateX(-160%) skewX(-18deg)}100%{transform:translateX(330%) skewX(-18deg)}}

/* + / − quantity: number pops when it changes */
.cs .cs-qty.mfx-pop{animation:mfx-qty .35s var(--mfx-spring)}
@keyframes mfx-qty{0%{transform:scale(.7);opacity:.3}100%{transform:none;opacity:1}}

/* ---------- 4. Bottom menu: active marker, Order bubble glow, hide on scroll ---------- */
.fx-bar,.bar{transition:transform .35s var(--mfx-ease)}
.fx-bar a,.bar a{position:relative}
.fx-bar a.on:not(.mid)::before,.bar a.on:not(.mid)::before{content:"";position:absolute;top:6px;left:50%;width:22px;height:3px;margin-left:-11px;border-radius:3px;
  background:var(--fx-crimson,var(--mfx-crimson));animation:mfx-tab .45s var(--mfx-spring) backwards}
@keyframes mfx-tab{from{transform:scaleX(0);opacity:0}to{transform:none;opacity:1}}
.fx-bar a.mid .bub,.bar a.mid .bub{position:relative}
.fx-bar a.mid .bub::after,.bar a.mid .bub::after{content:"";position:absolute;inset:0;border-radius:50%;pointer-events:none;
  box-shadow:0 0 0 0 rgba(255,122,0,.55);animation:mfx-ring 2.6s ease-out 1.5s 4}
@keyframes mfx-ring{0%{box-shadow:0 0 0 0 rgba(255,122,0,.5)}70%{box-shadow:0 0 0 16px rgba(255,122,0,0)}100%{box-shadow:0 0 0 0 rgba(255,122,0,0)}}
.fx-bar a.mid .bub svg,.bar a.mid .bub svg{animation:mfx-twinkle 2.6s ease-in-out 1.5s 4}
@keyframes mfx-twinkle{0%,100%{transform:none}15%{transform:rotate(-14deg) scale(1.12)}30%{transform:rotate(10deg)}45%{transform:none}}
body.mfx-down .fx-bar,body.mfx-down .bar{transform:translate3d(0,calc(100% + 40px),0)}

/* Floating WhatsApp: slides in, waves once, tucks its label away while scrolling down */
.fx-wa,.wa{animation:mfx-wa-in .7s var(--mfx-spring) .9s backwards;transition:transform .35s var(--mfx-ease)}
.fx-wa svg,.wa svg{animation:mfx-wave 1s ease-in-out 1.8s 2}
@keyframes mfx-wa-in{from{opacity:0;transform:translate3d(90px,0,0) scale(.6)}to{opacity:1;transform:none}}
@keyframes mfx-wave{0%,100%{transform:none}20%{transform:rotate(-16deg)}40%{transform:rotate(12deg)}60%{transform:rotate(-8deg)}}
.fx-wa span,.wa span{display:inline-block;max-width:160px;overflow:hidden;white-space:nowrap;transition:max-width .35s var(--mfx-ease),opacity .25s}
body.mfx-down .fx-wa,body.mfx-down .wa{transform:translate3d(0,calc(var(--fx-bar,var(--bar,62px)) - 4px),0)}
body.mfx-down .fx-wa span,body.mfx-down .wa span{max-width:0;opacity:0}
body.mfx-down .fx-wa,body.mfx-down .wa{gap:0;padding-right:12px}

/* ---------- 5. Pop-ups, search, messages ---------- */
.modal.fade .modal-dialog{transform:translate3d(0,46px,0) scale(.96);opacity:0;transition:transform .42s var(--mfx-spring),opacity .25s ease}
.modal.show .modal-dialog{transform:none;opacity:1}
.modal-content{border-radius:20px;overflow:hidden}
.modal-backdrop.show{opacity:.55}
.typed-search-box:not(.d-none){animation:mfx-drop .28s var(--mfx-ease)}
@keyframes mfx-drop{from{opacity:0;transform:translate3d(0,-8px,0)}to{opacity:1;transform:none}}
#search-content>*{animation:mfx-fade .3s ease both}
@keyframes mfx-fade{from{opacity:0}to{opacity:1}}
.cs-toast{transition:opacity .25s ease,transform .45s var(--mfx-spring)!important}
.alert[data-notify]{animation:mfx-drop .4s var(--mfx-spring)}

/* ---------- 6. Homepage touches ---------- */
.cats .cat{animation:mfx-cat .5s var(--mfx-spring) backwards}
.cats .cat:nth-child(2){animation-delay:40ms}.cats .cat:nth-child(3){animation-delay:80ms}.cats .cat:nth-child(4){animation-delay:120ms}
.cats .cat:nth-child(5){animation-delay:160ms}.cats .cat:nth-child(6){animation-delay:200ms}.cats .cat:nth-child(n+7){animation-delay:230ms}
@keyframes mfx-cat{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:none}}
.timer b,.cd b{display:inline-block}
.mfx-tick{animation:mfx-tick .38s var(--mfx-ease)}
@keyframes mfx-tick{from{transform:translate3d(0,-45%,0);opacity:.2}to{transform:none;opacity:1}}
.fx-off{animation:mfx-badge .5s var(--mfx-spring) .25s backwards}
@keyframes mfx-badge{from{transform:scale(0) rotate(-20deg)}to{transform:none}}

/* ---------- 7. Computer mouse: cards lift a little ---------- */
@media (hover:hover) and (pointer:fine){
  .fx-pc,.pc,.plan{transition:transform .3s var(--mfx-ease),box-shadow .3s var(--mfx-ease)}
  .fx-pc:hover,.pc:hover,.plan:hover{transform:translate3d(0,-4px,0);box-shadow:0 14px 30px rgba(121,11,33,.12)}
  .fx-pc:hover .fx-pc-img img,.pc:hover .pc-img img{transform:scale(1.05);transition:transform .6s var(--mfx-ease)}
}

/* ---------- Reduce motion: everything off ---------- */
@media (prefers-reduced-motion:reduce){
  .mfx-r{opacity:1!important;transform:none!important}
  img.mfx-img{opacity:1!important;transform:none!important}
  .mfx-wait,.cats .cat,.fx-off,.fx-wa,.wa,.fx-wa svg,.wa svg,.mfx-in .scroller>*,
  .cs.cs-lg .cs-add::after,.pd-sticky .cs-add::after,.fx-bar a.mid .bub::after,.bar a.mid .bub::after,.fx-bar a.mid .bub svg,.bar a.mid .bub svg{animation:none!important}
  body.mfx-down .fx-bar,body.mfx-down .bar,body.mfx-down .fx-wa,body.mfx-down .wa{transform:none}
}
@media print{.mfx-r,img.mfx-img{opacity:1!important;transform:none!important}}

/* ---------- Slide-up panels on phones (Update 27) ---------- */
@media (max-width:767.98px){
  .modal.fade .modal-dialog{transform:translate3d(0,100%,0);opacity:1;transition:transform .42s cubic-bezier(.2,.9,.25,1)}
  .modal.show .modal-dialog{transform:none}
  .modal-dialog.mfx-drag{transition:none!important}
}
.qv:not(.qv-skel) .qv-info>*{animation:mfx-fade .35s ease both}
@media (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}

/* ---------- Footer text block (Update 28) — matches the site, folded behind "Read more" ---------- */
.fx-seo{max-width:1180px;margin:0 auto;padding:8px 16px 18px;color:#6b5458;font-size:.86rem;line-height:1.6}
.fx-seo,.fx-seo *{font-family:inherit!important}
.fx-seo footer,.fx-seo section,.fx-seo div{background:transparent!important;color:inherit!important;padding-left:0!important;padding-right:0!important}
.fx-seo h1,.fx-seo h2,.fx-seo h3,.fx-seo h4,.fx-seo h5{font:800 1.02rem/1.3 "Baloo Thambi 2","Baloo Fallback",system-ui,sans-serif!important;color:#2b1216!important;margin:16px 0 6px!important}
.fx-seo p{margin:0 0 8px!important;font-size:.86rem!important}
.fx-seo a{color:#b41031!important;text-decoration:none!important}
.fx-seo iframe{width:100%!important;max-width:100%;height:220px!important;border:0;border-radius:14px}
.fx-seo.fx-seo-fold{position:relative;max-height:230px;overflow:hidden}
.fx-seo.fx-seo-fold::after{content:"";position:absolute;left:0;right:0;bottom:0;height:90px;background:linear-gradient(rgba(255,255,255,0),#fff);pointer-events:none}
.fx-seo-more{display:block;margin:-6px auto 18px;border:1.5px solid #f0e3e3;background:#fff;color:#b41031;border-radius:20px;padding:8px 18px;font:800 .9rem/1 "Baloo Thambi 2","Baloo Fallback",system-ui,sans-serif;cursor:pointer}
.fx-seo-bare{padding:0!important;margin:0!important}
