/* ==========================================================================
   Fatima Toys & Sports
   Colours lifted from the shop's rainbow logo: tangerine, bubblegum, teal,
   sunshine — chunky ink outlines and sticker shadows.
   ========================================================================== */

:root {
  --cream: #FFF7EC;
  --paper: #FFFFFF;
  --ink: #1E1B3A;
  --ink-2: #4A4668;
  --muted: #7C7898;
  --line: #1E1B3A;

  --orange: #FF7A1A;
  --tomato: #FF5A3C;
  --pink: #FF4F9A;
  --teal: #13BFB0;
  --mint: #3FD9A5;
  --sun: #FFC93C;
  --sky: #3AA8FF;
  --grape: #8B5CF6;
  --wa: #25D366;

  --display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r: 22px;
  --r-sm: 14px;
  --bw: 2.5px;
  --shadow: 4px 5px 0 var(--ink);
  --shadow-lg: 6px 8px 0 var(--ink);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --nav-h: 76px;
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html:has(body.is-loading) { overflow: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
body.drawer-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--sun); color: var(--ink); }
.nowrap { white-space: nowrap; }
.hide-xs { display: inline; }

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px;
  border: var(--bw) solid var(--ink); border-radius: 999px;
  font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: 0.01em;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--bounce), box-shadow 0.25s var(--bounce), background 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn--primary { background: var(--orange); color: #fff; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 15px; box-shadow: 3px 4px 0 var(--ink); }
.btn--lg { --h: 62px; padding: 0 34px; font-size: 20px; }
.btn--block { width: 100%; }

.link { font-weight: 800; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; margin-top: 14px; }
.link:hover { color: var(--orange); }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: var(--bw) solid var(--ink); border-radius: 50%; background: var(--paper);
  transition: transform 0.4s var(--bounce);
}
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.6; fill: none; stroke-linecap: round; }
.icon-btn:hover { transform: rotate(90deg); }

.sticker {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border: var(--bw) solid var(--ink); border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-2deg);
}
.sticker--sun { background: var(--sun); }
.sticker--pink { background: var(--pink); color: #fff; }
.sticker--sky { background: var(--sky); color: #fff; }
.sticker--ink { background: var(--ink); color: #fff; border-color: #fff; box-shadow: 3px 3px 0 var(--pink); }

.kicker {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: 15px;
  color: var(--orange); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px;
}

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 16px;
  background: var(--cream);
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__car { font-size: 56px; animation: vroom 0.5s ease-in-out infinite alternate; }
@keyframes vroom { to { transform: translateY(-6px) rotate(-4deg); } }
.preloader__track { width: 220px; height: 16px; border: var(--bw) solid var(--ink); border-radius: 99px; background: var(--paper); overflow: hidden; }
.preloader__track i {
  display: block; height: 100%; transform-origin: left; transform: scaleX(0);
  background: repeating-linear-gradient(-45deg, var(--orange) 0 10px, var(--sun) 10px 20px);
  transition: transform 0.3s var(--ease);
}
.preloader__txt { margin: 0; font-family: var(--display); font-weight: 600; color: var(--ink-2); }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed; z-index: 40; top: 12px; left: 12px; right: 12px;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 0 14px 0 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: var(--bw) solid var(--ink); border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark { width: 44px; height: 30px; fill: none; stroke-width: 5; stroke-linecap: round; }
.logo__txt { display: flex; flex-direction: column; line-height: 1; }
.logo__txt b { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--orange); letter-spacing: 0.01em; }
.logo__txt small { font-family: var(--display); font-size: 12px; font-weight: 600; color: var(--teal); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 3px; }
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px;
  font-family: var(--display); font-weight: 500; font-size: 16px;
  transition: background 0.2s, transform 0.25s var(--bounce);
}
.nav__links a:hover { background: var(--sun); transform: rotate(-3deg); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.cart-btn {
  position: relative; width: 52px; height: 52px; display: grid; place-items: center;
  border: var(--bw) solid var(--ink); border-radius: 50%; background: var(--sun);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.25s var(--bounce);
}
.cart-btn:hover { transform: rotate(-8deg) scale(1.05); }
.cart-btn svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn__count {
  position: absolute; top: -8px; right: -8px;
  min-width: 26px; height: 26px; padding: 0 6px; display: grid; place-items: center;
  border: 2px solid var(--ink); border-radius: 99px; background: var(--paper);
  font-family: var(--display); font-size: 13px; font-weight: 700;
}
.cart-btn__count.is-on { background: var(--pink); color: #fff; }
.cart-btn__count.bump { animation: bump 0.5s var(--bounce); }
@keyframes bump { 40% { transform: scale(1.5) rotate(10deg); } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; height: 560vh; background: var(--ink); }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(30, 27, 58, 0.25) 0%, transparent 25%, transparent 55%, rgba(30, 27, 58, 0.55) 100%);
}

.chapter { position: absolute; z-index: 2; opacity: 0; visibility: hidden; will-change: opacity, transform; }
.chapter--intro {
  left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 9vh, 96px);
  max-width: 860px;
}
.hero__title {
  margin: 18px 0 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(36px, min(7.2vw, 10.5vh), 108px); line-height: 0.95; letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 3px 4px 0 var(--ink), 0 8px 40px rgba(0, 0, 0, 0.35);
}
.hl { display: inline-block; padding: 0 0.12em; border-radius: 0.2em; transform: rotate(-2deg); text-shadow: none; border: var(--bw) solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.hl--orange { background: var(--orange); }
.hl--sky { background: var(--sky); transform: rotate(2deg); }
.hl--pink { background: var(--pink); }
.hero__lede {
  display: inline-block; margin: 20px 0 0; max-width: 520px;
  padding: 10px 16px; background: rgba(255, 255, 255, 0.94); border: var(--bw) solid var(--ink); border-radius: var(--r-sm);
  box-shadow: 3px 3px 0 var(--ink); font-size: 17px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.chapter--card {
  top: 50%; margin-top: -150px; width: min(420px, calc(100vw - 2 * var(--gutter)));
  padding: 26px 26px 22px;
  background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r);
  box-shadow: var(--shadow-lg);
}
.chapter--card h2 { margin: 14px 0 8px; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.2vw, 44px); line-height: 1; }
.chapter--card p { margin: 0; color: var(--ink-2); }
.chapter--left { left: var(--gutter); }
.chapter--right { right: var(--gutter); }
.chapter--bl { left: var(--gutter); top: auto; bottom: clamp(24px, 6vh, 64px); margin-top: 0; }
.card-tag { display: inline-block; padding: 6px 12px; border-radius: 99px; border: 2px solid var(--ink); font-family: var(--display); font-weight: 600; font-size: 14px; }
.card-tag--tomato { background: var(--tomato); color: #fff; }
.card-tag--sky { background: var(--sky); color: #fff; }
.mini-specs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 16px 0 0; padding: 0; }
.mini-specs li { padding: 5px 11px; border-radius: 99px; background: var(--cream); border: 2px solid var(--ink); font-size: 13px; font-weight: 800; }

.chapter--final {
  left: var(--gutter); bottom: clamp(28px, 8vh, 90px); max-width: min(34vw, 460px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
}
.hero__final {
  margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(40px, min(5vw, 9vh), 80px); line-height: 0.98;
  color: #fff; text-shadow: 3px 4px 0 var(--ink), 0 8px 40px rgba(0, 0, 0, 0.4);
}

.battery {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 26px;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 99px;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 14px;
}
.battery__cell { position: relative; width: 58px; height: 20px; border: 2px solid var(--ink); border-radius: 6px; padding: 2px; }
.battery__cell::after { content: ''; position: absolute; right: -6px; top: 5px; width: 4px; height: 7px; background: var(--ink); border-radius: 0 2px 2px 0; }
.battery__cell i { display: block; height: 100%; border-radius: 3px; background: var(--mint); transform-origin: left; transform: scaleX(0); }
.battery__cell.is-full i { background: var(--orange); }
.battery__pct { min-width: 38px; font-variant-numeric: tabular-nums; }
.hero__hint {
  position: absolute; z-index: 3; left: 50%; top: calc(var(--nav-h) + 30px); transform: translateX(-50%);
  padding: 6px 14px; background: var(--sun); border: 2px solid var(--ink); border-radius: 99px;
  font-family: var(--display); font-weight: 600; font-size: 14px;
}
.hero__hint span { display: inline-block; animation: hop 1s var(--bounce) infinite; }
@keyframes hop { 50% { transform: translateY(4px); } }

/* ==========================================================================
   Ticker
   ========================================================================== */
.ticker {
  overflow: hidden; background: var(--orange); color: #fff;
  border-block: var(--bw) solid var(--ink);
  transform: rotate(-1.2deg); margin: -14px -10px 0; position: relative; z-index: 2;
}
.ticker__track { display: flex; width: max-content; animation: tick 36s linear infinite; }
.ticker__track span { padding: 14px 28px; font-family: var(--display); font-weight: 600; font-size: 19px; white-space: nowrap; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter) 0; scroll-margin-top: 96px; }
.section__head { margin-bottom: 34px; }
.section__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -0.01em; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease) var(--d, 0ms), transform 0.8s var(--bounce) var(--d, 0ms); }
.reveal.is-in-view { opacity: 1; transform: none; }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  min-height: 210px; padding: 22px; overflow: hidden; text-align: left;
  border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow);
  transition: transform 0.35s var(--bounce), box-shadow 0.35s var(--bounce), opacity 0.7s var(--ease) var(--d), translate 0.8s var(--bounce) var(--d);
}
.cat:hover { transform: translate(-3px, -4px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.cat--tomato { background: var(--tomato); color: #fff; }
.cat--sky { background: var(--sky); color: #fff; }
.cat--sun { background: var(--sun); }
.cat--pink { background: var(--pink); color: #fff; }
.cat--mint { background: var(--mint); }
.cat--grape { background: var(--grape); color: #fff; }
.cat__img {
  position: absolute; right: -24px; bottom: -24px; width: 58%; aspect-ratio: 1;
  border: var(--bw) solid var(--ink); border-radius: 50%; overflow: hidden; background: #fff;
  transition: transform 0.5s var(--bounce);
}
.cat__img img { width: 100%; height: 100%; object-fit: cover; }
.cat:hover .cat__img { transform: scale(1.08) rotate(6deg); }
.cat__emoji { font-size: 34px; line-height: 1; }
.cat__label { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1; max-width: 50%; margin-top: 8px; }
.cat__count { margin-top: auto; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.9); color: var(--ink); border: 2px solid var(--ink); font-size: 14px; font-weight: 800; }

/* Deals */
.deals { margin-top: clamp(64px, 9vw, 120px); background: var(--ink); color: #fff; border-block: var(--bw) solid var(--ink); position: relative; overflow: hidden; }
.deals::before {
  content: ''; position: absolute; inset: 0; opacity: 0.08; pointer-events: none;
  background-image: radial-gradient(#fff 1.5px, transparent 1.5px); background-size: 22px 22px;
}
.deals__inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 64px var(--gutter); }
.deals__head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 32px; }
.deals__head .section__title { font-size: clamp(30px, 3.6vw, 48px); }
.countdown { display: flex; gap: 8px; }
.countdown div { display: grid; justify-items: center; min-width: 66px; padding: 8px 6px; border: var(--bw) solid #fff; border-radius: var(--r-sm); background: var(--pink); box-shadow: 3px 3px 0 #fff; }
.countdown b { font-family: var(--display); font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.deals__row { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 18px; overflow-x: auto; padding: 4px 8px 14px 4px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.deal {
  position: relative; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 14px;
  background: var(--paper); color: var(--ink); border: var(--bw) solid #fff; border-radius: var(--r); box-shadow: 4px 5px 0 var(--sun);
}
.deal img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); border: 2px solid var(--ink); }
.deal__off { position: absolute; top: 4px; right: 4px; padding: 6px 10px; border-radius: 99px; background: var(--sun); border: 2px solid var(--ink); font-family: var(--display); font-weight: 700; transform: rotate(8deg); }
.deal h3 { margin: 4px 0 0; font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.15; }
.deal__price { display: flex; align-items: baseline; gap: 8px; }
.deal__price b { font-family: var(--display); font-size: 22px; color: var(--tomato); }
.deal__price s { color: var(--muted); font-size: 14px; }
.deal__buy { margin-top: auto; }
.deal .btn--add, .deal .stepper { --h: 44px; }

/* Toolbar */
.toolbar { display: grid; gap: 14px; margin-bottom: 30px; }
.toolbar__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar__right { display: flex; gap: 10px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chips__label { font-family: var(--display); font-weight: 600; margin-right: 4px; color: var(--ink-2); }
.chip {
  height: 44px; padding: 0 16px; border: var(--bw) solid var(--ink); border-radius: 99px; background: var(--paper);
  font-family: var(--display); font-weight: 500; font-size: 16px;
  transition: transform 0.25s var(--bounce), background 0.2s;
}
.chip:hover { transform: translateY(-2px); }
.chip.is-on { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--orange); }
.chip--sm { height: 38px; font-size: 15px; padding: 0 14px; }
.search { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; min-width: 240px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 99px; }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
.search input { border: 0; outline: 0; background: none; width: 100%; font-weight: 700; }
.select {
  height: 46px; padding: 0 40px 0 16px; border: var(--bw) solid var(--ink); border-radius: 99px; background: var(--paper);
  font-weight: 800; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%231E1B3A' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 14px;
}

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px 22px; }
.card {
  display: flex; flex-direction: column; background: var(--paper);
  border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow);
  overflow: hidden;
  animation: pop 0.6s var(--bounce) both; animation-delay: var(--d);
  transition: transform 0.3s var(--bounce), box-shadow 0.3s var(--bounce);
}
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(0.96); } }
.card:hover { transform: translate(-2px, -3px); box-shadow: var(--shadow-lg); }
.card.is-in { box-shadow: 4px 5px 0 var(--orange); }
.card__media { position: relative; aspect-ratio: 1; overflow: hidden; border-bottom: var(--bw) solid var(--ink); background: var(--cream); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__badge {
  position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 99px;
  background: var(--sun); border: 2px solid var(--ink); font-family: var(--display); font-weight: 600; font-size: 13px;
  transform: rotate(-4deg);
}
.card__age {
  position: absolute; bottom: 10px; right: 10px; width: 58px; height: 58px;
  display: grid; place-content: center; text-align: center; line-height: 0.9;
  border-radius: 50%; border: var(--bw) solid var(--ink); background: var(--paper);
  font-family: var(--display); font-weight: 700; font-size: 20px;
}
.card__age small { font-size: 11px; font-weight: 600; }
.card--tomato .card__age { background: var(--tomato); color: #fff; }
.card--sky .card__age { background: var(--sky); color: #fff; }
.card--sun .card__age { background: var(--sun); }
.card--pink .card__age { background: var(--pink); color: #fff; }
.card--mint .card__age { background: var(--mint); }
.card--grape .card__age { background: var(--grape); color: #fff; }
.card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.card__cat { font-size: 13px; font-weight: 800; color: var(--muted); }
.card__name { margin: 0; font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.12; }
.card__rating { font-size: 14px; font-weight: 800; }
.card__rating small { color: var(--muted); font-weight: 700; }
.stars { color: #F5A623; letter-spacing: 1px; }
.card__specs { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 2px 0 0; padding: 0; }
.card__specs li { padding: 3px 9px; border-radius: 99px; background: var(--cream); font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.card__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.card__price b { font-family: var(--display); font-weight: 700; font-size: 26px; }
.card__price s { color: var(--muted); font-size: 15px; }
.card__off { padding: 2px 8px; border-radius: 99px; background: var(--tomato); color: #fff; font-size: 12.5px; font-weight: 800; }
.card__buy .btn--add { --h: 48px; }

.stepper {
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; height: 48px;
  border: var(--bw) solid var(--ink); border-radius: 99px; background: var(--sun); overflow: hidden;
  box-shadow: 3px 3px 0 var(--ink);
}
.stepper button { height: 100%; font-family: var(--display); font-size: 24px; font-weight: 600; transition: background 0.2s; }
.stepper button:hover { background: rgba(255, 255, 255, 0.5); }
.stepper span { text-align: center; font-family: var(--display); font-weight: 600; }
.stepper--sm { grid-template-columns: 34px 34px 34px; width: max-content; height: 36px; box-shadow: none; background: var(--cream); }
.stepper--sm button { font-size: 18px; }
.empty { text-align: center; font-family: var(--display); font-size: 20px; color: var(--muted); padding: 40px 0; }

/* Toy finder */
.finder { max-width: var(--max); margin: clamp(64px, 9vw, 120px) auto 0; padding: 0 var(--gutter); scroll-margin-top: 96px; }
.finder__card {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; padding: clamp(24px, 4vw, 48px);
  background: var(--teal); border: var(--bw) solid var(--ink); border-radius: calc(var(--r) + 8px); box-shadow: var(--shadow-lg);
  color: #fff; position: relative; overflow: hidden;
}
.finder__card::after { content: '🎁'; position: absolute; right: -10px; bottom: -30px; font-size: 180px; opacity: 0.12; transform: rotate(-12deg); pointer-events: none; }
.finder__intro .section__title { margin-top: 16px; }
.finder__intro p { font-size: 18px; margin: 12px 0 22px; }
.finder__progress { height: 14px; border: var(--bw) solid var(--ink); border-radius: 99px; background: #fff; overflow: hidden; max-width: 340px; }
.finder__progress i { display: block; height: 100%; background: var(--sun); transform-origin: left; transform: scaleX(0); transition: transform 0.5s var(--bounce); }
.finder__body { position: relative; z-index: 1; background: var(--paper); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 24px; min-height: 300px; display: flex; flex-direction: column; }
.finder__step { margin: 0; font-size: 14px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.finder__q { margin: 6px 0 18px; font-family: var(--display); font-size: 28px; line-height: 1.1; }
.finder__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt {
  padding: 16px; text-align: left; border: var(--bw) solid var(--ink); border-radius: var(--r-sm); background: var(--cream);
  font-family: var(--display); font-weight: 500; font-size: 18px;
  transition: transform 0.25s var(--bounce), background 0.2s, box-shadow 0.25s;
}
.opt:hover { background: var(--sun); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.picks { display: grid; gap: 10px; margin-top: 12px; }
.pick { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; padding: 8px; border: 2px solid var(--ink); border-radius: var(--r-sm); animation: pop 0.5s var(--bounce) both; }
.pick:nth-child(2) { animation-delay: 80ms; } .pick:nth-child(3) { animation-delay: 160ms; }
.pick img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.pick h4 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.15; }
.pick b { font-family: var(--display); color: var(--tomato); margin-right: 8px; }
.pick__age { font-size: 12px; font-weight: 800; color: var(--muted); }
.pick__in { font-weight: 800; color: var(--teal); }

/* How to order */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { padding: 26px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); }
.step:nth-child(2) { transform: rotate(1deg); } .step:nth-child(3) { transform: rotate(-1deg); }
.step.reveal:not(.is-in-view) { transform: translateY(26px); }
.step__n { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: var(--bw) solid var(--ink); background: var(--sun); font-family: var(--display); font-weight: 700; font-size: 26px; }
.step:nth-child(2) .step__n { background: var(--wa); color: #fff; }
.step:nth-child(3) .step__n { background: var(--pink); color: #fff; }
.step h3 { margin: 16px 0 6px; font-family: var(--display); font-weight: 600; font-size: 24px; }
.step p { margin: 0; color: var(--ink-2); }

/* TikTok */
.tiktok {
  max-width: var(--max); margin: clamp(64px, 9vw, 120px) auto 0; padding: clamp(28px, 4vw, 48px);
  margin-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center;
  background: var(--ink); color: #fff; border-radius: calc(var(--r) + 8px); box-shadow: 6px 8px 0 var(--pink);
}
.tiktok h2 { margin: 16px 0 8px; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.05; }
.tiktok p { margin: 0 0 22px; color: #D6D3EA; }
.tiktok__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tiktok__stats div { display: grid; justify-items: center; padding: 18px 8px; border: 2px solid #fff; border-radius: var(--r-sm); text-align: center; }
.tiktok__stats b { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--sun); }
.tiktok__stats span { font-size: 13px; margin-top: 6px; color: #D6D3EA; }

/* FAQ */
.faq__list { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r-sm); box-shadow: 3px 3px 0 var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-family: var(--display); font-weight: 600; font-size: 19px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); transition: transform 0.3s var(--bounce); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--pink); color: #fff; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }

/* Footer */
.footer {
  margin-top: clamp(64px, 9vw, 120px); padding: 48px var(--gutter) 110px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px;
  background: var(--paper); border-top: var(--bw) solid var(--ink);
}
.footer__brand p { max-width: 340px; color: var(--ink-2); }
.footer__col { display: grid; align-content: start; gap: 8px; }
.footer__col h4 { margin: 0 0 4px; font-family: var(--display); font-size: 18px; }
.footer__col a { font-weight: 800; color: var(--ink-2); }
.footer__col a:hover { color: var(--orange); }
.footer__small { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 14px; }

/* Floating WhatsApp */
.fab-wa {
  position: fixed; z-index: 35; right: 18px; bottom: 18px; width: 62px; height: 62px;
  display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: #fff;
  border: var(--bw) solid var(--ink); box-shadow: var(--shadow);
  transition: transform 0.3s var(--bounce);
  animation: wobble 4s ease-in-out infinite;
}
.fab-wa svg { width: 32px; height: 32px; fill: currentColor; }
.fab-wa:hover { transform: scale(1.1) rotate(-8deg); }
@keyframes wobble { 0%, 90%, 100% { rotate: 0deg; } 93% { rotate: -12deg; } 96% { rotate: 10deg; } }
body.in-hero .fab-wa, body.drawer-open .fab-wa { transform: scale(0); }

/* ==========================================================================
   Drawer
   ========================================================================== */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(30, 27, 58, 0.45); opacity: 0; transition: opacity 0.4s; }
.scrim.is-on { opacity: 1; }
.drawer {
  position: fixed; z-index: 60; top: 12px; right: 12px; bottom: 12px; width: min(460px, calc(100% - 24px));
  display: flex; flex-direction: column;
  background: var(--cream); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-lg);
  transform: translateX(calc(100% + 40px)); visibility: hidden;
  transition: transform 0.55s var(--bounce), visibility 0s 0.55s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform 0.55s var(--bounce); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: var(--bw) solid var(--ink); }
.drawer__head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 28px; }
.drawer__head h2 span { color: var(--orange); }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 24px; }
.drawer__empty { display: grid; justify-items: center; gap: 6px; padding: 48px 0; text-align: center; font-family: var(--display); font-size: 20px; }
.drawer__empty-emoji { font-size: 64px; }
.ship { padding: 12px 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-sm); }
.ship p { margin: 0 0 8px; font-size: 14px; }
.ship__bar { height: 10px; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; background: var(--cream); }
.ship__bar i { display: block; height: 100%; background: var(--mint); transform-origin: left; transform: scaleX(0); transition: transform 0.5s var(--bounce); }
.lines { list-style: none; margin: 8px 0 0; padding: 0; }
.line { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 2px dashed rgba(30, 27, 58, 0.2); }
.line img { width: 70px; height: 70px; object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); }
.line h4 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.15; }
.line__each { display: block; font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.line__total { font-family: var(--display); font-size: 17px; }
.totals { display: grid; gap: 8px; padding: 16px 0 6px; font-weight: 800; }
.totals > div { display: flex; justify-content: space-between; }
.totals__save span:last-child { color: var(--teal); }
.totals__grand { margin-top: 6px; padding-top: 12px; border-top: var(--bw) solid var(--ink); font-family: var(--display); font-size: 24px; align-items: baseline; }
.totals__grand small { display: block; font-family: var(--body); font-size: 12px; color: var(--muted); }
.checkout { display: grid; gap: 12px; margin-top: 18px; padding: 18px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r); }
.checkout h3 { margin: 0; font-family: var(--display); font-size: 22px; }
.field { display: grid; gap: 5px; }
.field > span { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.field small { font-weight: 600; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--cream); font-weight: 700; outline: none; resize: vertical; }
.field input:focus, .field textarea:focus { background: #fff; box-shadow: 3px 3px 0 var(--sky); }
.field.is-error input, .field.is-error textarea { border-color: var(--tomato); background: #FFECE8; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout__fine { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.drawer__done { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 28px; text-align: center; }
.done__emoji { font-size: 72px; animation: vroom 0.6s ease-in-out infinite alternate; }
.drawer__done h3 { margin: 0; font-family: var(--display); font-size: 30px; }
.drawer__done p { margin: 0 0 8px; color: var(--ink-2); }

.toast {
  position: fixed; z-index: 90; left: 50%; bottom: 96px; padding: 12px 20px;
  background: var(--ink); color: #fff; border-radius: 99px; font-family: var(--display); font-weight: 500;
  box-shadow: 3px 3px 0 var(--orange);
  transform: translate(-50%, 30px) scale(0.9); opacity: 0; pointer-events: none;
  transition: transform 0.4s var(--bounce), opacity 0.3s;
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-on { transform: translate(-50%, 0) scale(1); opacity: 1; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .finder__card, .tiktok { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; --r: 18px; }
  .nav { top: 8px; left: 8px; right: 8px; padding: 0 8px 0 14px; }
  .logo__txt b { font-size: 22px; }
  .nav__wa span { display: none; }
  .nav__wa { width: 44px; padding: 0; }
  .hero { height: 480vh; }
  /* Intro */
  .chapter--intro { bottom: 72px; }
  .chapter--intro .sticker { padding: 6px 12px; font-size: 13px; }
  .hero__title { margin-top: 14px; font-size: clamp(30px, 9.6vw, 46px); line-height: 1.02; }
  .hl { box-shadow: 3px 3px 0 var(--ink); }
  .hero__lede { margin-top: 14px; padding: 8px 12px; font-size: 14px; line-height: 1.45; }
  .hero__cta { margin-top: 16px; gap: 10px; flex-wrap: nowrap; }
  .hero__cta .btn { --h: 46px; flex: 1 1 auto; padding: 0 16px; font-size: 15px; }
  /* Story cards: compact; the RC card rides at the top so the jump stays in
     view, the drone card sits at the bottom under the flying toys. */
  .chapter--card { left: var(--gutter); right: var(--gutter); top: auto; bottom: 70px; margin: 0; width: auto; padding: 14px 16px 16px; box-shadow: var(--shadow); }
  .chapter--left { top: calc(var(--nav-h) + 22px); bottom: auto; }
  .card-tag { padding: 4px 10px; font-size: 12.5px; }
  .chapter--card h2 { margin: 10px 0 4px; font-size: clamp(22px, 7vw, 28px); }
  .chapter--card p { font-size: 14px; line-height: 1.4; }
  .mini-specs { margin-top: 10px; }
  .mini-specs li { padding: 3px 9px; font-size: 12px; }
  /* Finale */
  .chapter--final { right: var(--gutter); bottom: 72px; max-width: none; gap: 14px; }
  .hero__final { font-size: clamp(34px, 11vw, 52px); }
  .chapter--final .btn--lg { --h: 52px; padding: 0 24px; font-size: 17px; }
  .battery { bottom: 14px; padding: 6px 10px; font-size: 13px; }
  .battery__cell { width: 46px; height: 18px; }
  .cats { gap: 14px; }
  .cat { min-height: 170px; padding: 16px; }
  .cat__label { font-size: 21px; }
  .deals__row { grid-template-columns: repeat(5, 72%); }
  .toolbar__right, .search { width: 100%; }
  .search { min-width: 0; flex: 1; }
  .toolbar { grid-template-columns: minmax(0, 1fr); }
  .toolbar__row > * { min-width: 0; }
  .toolbar__right { flex-wrap: nowrap; }
  .toolbar__right .select { flex: none; min-width: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card__body { padding: 12px; gap: 6px; }
  .card__name { font-size: 17px; }
  .card__specs { display: none; }
  .card__price b { font-size: 20px; }
  .card__age { width: 46px; height: 46px; font-size: 16px; }
  .stepper { grid-template-columns: 38px 1fr 38px; }
  .stepper span { font-size: 14px; }
  .btn--add { font-size: 15px; padding: 0 10px; }
  .finder__opts { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(n) { transform: none; }
  .tiktok__stats b { font-size: 24px; }
  .footer { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .hide-xs { display: none; }
  .toolbar__right { flex-wrap: wrap; }
  .toolbar__right .search, .toolbar__right .select { flex: 1 1 100%; }
}
/* Short phones (first-gen SE, small Androids) */
@media (max-width: 760px) and (max-height: 640px) {
  .hero__hint, .mini-specs { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-height: 620px) and (min-width: 761px) {
  .hero__lede { display: none; }
  .hero__hint { display: none; }
  .chapter--card { margin-top: -110px; padding: 18px; }
  .chapter--card p { display: none; }
}
