/* ============================================================
   SMILE — the motion model (loaded last, so it has the final word)
   One set of rules for everything that moves, after the way a native shopping app feels:
   1. the page scrolls with the browser's own scroll: nothing smooths it, nothing pulls it
   2. nothing moves by itself: a movement answers a touch, or greets a section once
   3. only place and opacity move (transform, opacity), the two the graphics card draws alone
   4. three speeds and one curve: a tap 120 ms, a change 220 ms, a page or a sheet 300 ms
   5. what must loop (a loader, the typing dots, the listening ring) loops only while it is
      on screen and the tab is open (js/motion.js adds .mo-off and html.mo-rest)
   Measured on the phone profile, CPU 4x slower: the resting home page used 44% of the main
   thread before these rules and under 1% after.
   ============================================================ */
:root { --mo-tap: 120ms; --mo: 220ms; --mo-page: 300ms; --mo-ease: cubic-bezier(.2, .8, .2, 1); }

/* 2 · decorations that ran for ever now stand still */
.marquee__track, .ticker__track, .showroom__ring, .hero__hint i, .hero__live i,
.mosaic__stage.in .mosaic__tile, .smiley__body, .assist-fab__dot.show, .smiley-spot.show { animation: none !important; }
.marquee__track { will-change: auto; }
/* the placeholder under a picture stops the moment the picture is there */
.card__media:has(img.loaded)::before { animation: none; background: none; }

/* 5 · loops rest when nobody can see them */
.mo-off, .mo-off::before, .mo-off::after { animation-play-state: paused !important; }
html.mo-rest *, html.mo-rest *::before, html.mo-rest *::after { animation-play-state: paused !important; }

/* 4 · the three speeds */
.btn, .pill, .chip, .icon-btn, .card__wish, .card__add, .size, .swatch, .bottomnav button, .tabs__item { transition: transform var(--mo-tap) var(--mo-ease), opacity var(--mo-tap) var(--mo-ease), background-color var(--mo) var(--mo-ease), color var(--mo) var(--mo-ease), border-color var(--mo) var(--mo-ease); }
.btn:active, .pill:active, .chip:active, .card__add:active, .bottomnav button:active { transform: scale(.97); }
.card__media img { transition: opacity var(--mo) var(--mo-ease); }
.reveal { transition: opacity var(--mo) var(--mo-ease), transform var(--mo) var(--mo-ease); }

/* someone who asked their device for less motion gets none */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- light and smooth (the owner, 28 Sep 2026: «الموقع ثقيل… خليه سلس») ----------
   Paint was the cost, not script: a full-screen grain over everything, noise textures drawn with SVG filters
   on the big sections, halftone dots on the posters, soft shadows around every headline, a drop shadow on the
   big hero photo. With white leading they add little, so phones skip them (the grain goes everywhere). */
body::after { display: none !important; }
html.phone .sec--paper, html.phone .sec--ink, html.phone .pola, html.phone .tag, html.phone .fit__note, html.phone .trust__smiley, html.phone .bag .coupon, html.phone main.page { background-image: none; }
html.phone .wcard::after, html.phone .indexsec__pics::after, html.phone .whero::after, html.phone .wcard-hero::after { display: none; }
html.phone .sec__title, html.phone .hero__title, html.phone .wtitle, html.phone .showroom__cap h3 { text-shadow: none; }
html.phone .stage__person img, html.phone .stage__side { filter: none !important; }
