/* fonts are served from this site (no outside requests, faster first paint).
   The small "basic" files cover everyday English text; the full files load only if a rarer letter appears. */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/bricolage-grotesque.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/fonts/figtree.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/bricolage-grotesque-basic.woff2) format('woff2'); unicode-range: U+0020-007E, U+00A0, U+00A9, U+00AE, U+00B0, U+00B7, U+00D7, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026, U+2122, U+2192, U+2212; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/fonts/figtree-basic.woff2) format('woff2'); unicode-range: U+0020-007E, U+00A0, U+00A9, U+00AE, U+00B0, U+00B7, U+00D7, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026, U+2122, U+2192, U+2212; }
/* Top Toys — storefront styles */
:root {
  --cobalt: #1F3FD1;
  --cobalt-dk: #1630A8;
  --sun: #FFD23F;
  --tomato: #F2542D;
  --tomato-ink: #D23F1A; /* same red, dark enough for small text */
  --mint: #2EC4B6;
  --ink: #14163A;
  --ink-2: #4A4E78;
  --line: #DFE3F3;
  --mist: #F2F4FB;
  --white: #fff;
  --ok: #11814F;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.02em; margin: 0; }

/* announcement */
.announce { background: var(--ink); color: #fff; font-size: 14px; overflow: hidden; white-space: nowrap; min-height: 37px; } /* room kept so the page doesn't jump when it fills in */
.announce-track { display: inline-flex; gap: 48px; padding: 8px 0; animation: marquee 32s linear infinite; }
.announce-track span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--sun); margin-right: 12px; transform: rotate(45deg) translateY(-1px); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* header */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -0.04em; text-decoration: none; color: var(--cobalt); display: flex; align-items: baseline; gap: 2px; }
.logo i { display: inline-block; width: 11px; height: 11px; background: var(--tomato); border-radius: 3px; transform: rotate(12deg); }
.search { position: relative; flex: 1; max-width: 560px; }
.search input { width: 100%; height: 46px; border: 2px solid var(--line); border-radius: 999px; padding: 0 48px 0 20px; background: var(--mist); transition: border-color .15s, background .15s; }
.search input:focus { outline: none; border-color: var(--cobalt); background: #fff; }
.search svg { position: absolute; right: 16px; top: 13px; pointer-events: none; color: var(--ink-2); }
.suggest { position: absolute; top: 52px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 18px 40px -16px rgba(20,22,58,.3); padding: 6px; display: none; z-index: 50; }
.suggest.open { display: block; }
.suggest a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r-sm); text-decoration: none; }
.suggest a:hover, .suggest a.active { background: var(--mist); }
.suggest img { width: 44px; height: 44px; border-radius: 8px; }
.suggest small { color: var(--ink-2); display: block; }
.suggest .empty { padding: 12px; color: var(--ink-2); font-size: 14px; }
.head-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.head-link { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; background: none; border: 0; cursor: pointer; }
.head-link:hover { background: var(--mist); }
.cart-btn { background: var(--cobalt); color: #fff; }
.cart-btn:hover { background: var(--cobalt-dk); }
.cart-count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--sun); color: var(--ink); font-size: 13px; font-weight: 800; display: inline-grid; place-items: center; padding: 0 6px; }
.cart-count.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.35); } }

.catnav { border-top: 1px solid var(--line); }
.catnav-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; min-height: 54.5px; }
.catnav-row::-webkit-scrollbar { display: none; }
.catnav a { flex: none; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.catnav a:hover { color: var(--ink); background: var(--mist); }
.catnav a.on { background: var(--ink); color: #fff; }
.catnav a.deal { color: var(--tomato-ink); }

/* hero */
.hero { padding: 48px 0 64px; background: var(--mist); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); font-weight: 800; letter-spacing: -0.045em; line-height: .95; max-width: 9ch; }
.hero p { font-size: 19px; color: var(--ink-2); max-width: 44ch; margin: 22px 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid var(--ink); cursor: pointer; background: #fff; transition: transform .1s, box-shadow .1s; box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-sun { background: var(--sun); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--ok); }

/* the block pile */
.pile { position: relative; height: 520px; }
.block { position: absolute; width: 168px; height: 168px; border: 3px solid var(--ink); border-radius: 26px; box-shadow: 6px 6px 0 var(--ink); display: flex; flex-direction: column; justify-content: space-between; padding: 14px 16px; text-decoration: none; color: var(--ink); cursor: pointer; transform: rotate(var(--rot)); transition: transform .18s cubic-bezier(.3,1.6,.5,1); }
.block:hover, .block:focus-visible { transform: rotate(0deg) translateY(-6px); z-index: 5; }
.block svg { width: 74px; height: 74px; }
.block b { font-family: var(--font-display); font-size: 19px; line-height: 1.05; letter-spacing: -0.02em; }
.block small { font-size: 13px; font-weight: 600; opacity: .75; }
.block.dark { color: #fff; }
.block.lg { width: 210px; height: 210px; }
.block.lg svg { width: 96px; height: 96px; }
.pile.drop .block { animation: drop .7s cubic-bezier(.3,1.4,.55,1) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes drop { from { transform: translateY(-260px) rotate(calc(var(--rot) * -3)); opacity: 0; } 60% { opacity: 1; } to { transform: rotate(var(--rot)); } }

/* sections */
.section { padding: 56px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.sec-head p { margin: 6px 0 0; color: var(--ink-2); }
.countdown { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; }
.countdown b { font-family: var(--font-display); background: var(--tomato); color: #fff; border-radius: 10px; min-width: 50px; height: 50px; display: grid; place-items: center; font-size: 22px; font-variant-numeric: tabular-nums; }
.countdown em { font-style: normal; color: var(--ink-2); font-size: 13px; margin-right: 6px; }

.deals { background: var(--sun); }
.deals .rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.deals .card { scroll-snap-align: start; border-color: var(--ink); }
.deals { overflow-x: clip; }
.deals .rail { scroll-snap-type: none; scrollbar-width: none; margin-inline: calc(50% - 50vw); padding-inline: 20px; padding-block: 4px 10px; cursor: grab; user-select: none; }
.deals .rail.dragging { cursor: grabbing; }
.deals .rail.dragging .card { pointer-events: none; }
.deals .rail img { -webkit-user-drag: none; }
.rail-hint { text-align: center; font-size: 14px; font-weight: 700; color: rgba(20,22,58,.7); margin: 18px 0 0; }
@media (hover: none) { .rail-hint { display: none; } }
.deals .rail::-webkit-scrollbar { display: none; }

/* toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.chip { height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; font-size: 15px; }
.chip:hover { border-color: var(--ink-2); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.toolbar select { height: 40px; border: 2px solid var(--line); border-radius: 999px; padding: 0 14px; background: #fff; font-weight: 600; cursor: pointer; }
.toolbar .spacer { flex: 1; }
.result-count { color: var(--ink-2); font-size: 15px; }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.card-img { position: relative; aspect-ratio: 1; background: var(--mist); cursor: pointer; border: 0; padding: 0; display: block; width: 100%; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 13px; font-weight: 800; padding: 4px 9px; border-radius: 8px; background: var(--tomato-ink); color: #fff; }
.badge.new { background: var(--mint); color: var(--ink); }
.badge.best { background: var(--sun); color: var(--ink); }
.soldout { position: absolute; inset: 0; background: rgba(255,255,255,.65); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.brand { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.card h3 { font-family: var(--font-body); font-size: 16px; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.card h3 button { all: unset; cursor: pointer; }
.card h3 button:hover { text-decoration: underline; }
.rating { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 4px; }
.rating .stars { color: #F5A400; letter-spacing: 1px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.price b { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.price s { color: var(--ink-2); font-size: 14px; }
.add { margin-top: 10px; height: 44px; border-radius: 12px; border: 2px solid var(--ink); background: #fff; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.add:hover { background: var(--ink); color: #fff; }
.add.added { background: var(--ok); border-color: var(--ok); color: #fff; }
.add[disabled] { opacity: .5; cursor: not-allowed; background: #fff; color: var(--ink); }
.stock-low { font-size: 13px; color: var(--tomato-ink); font-weight: 700; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; background: var(--mist); border-radius: var(--r-lg); }
.empty-state h3 { font-size: 26px; margin-bottom: 8px; }
.skeleton { aspect-ratio: .72; border-radius: var(--r-lg); background: linear-gradient(90deg, var(--mist), #e7eaf7, var(--mist)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* perks */
.perks { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.perks-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.perk { padding: 28px 22px; display: flex; gap: 14px; align-items: flex-start; }
.perk + .perk { border-left: 1px solid var(--line); }
.perk-ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; }
.perk h3 { font-family: var(--font-body); font-size: 16px; font-weight: 800; letter-spacing: 0; }
.perk p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }

/* footer */
.footer { background: var(--ink); color: #C9CCE8; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 32px; }
.footer .logo { color: #fff; }
.footer h4 { color: #fff; font-size: 16px; margin: 0 0 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.news { display: flex; gap: 8px; margin-top: 10px; }
.news input { flex: 1; height: 46px; border-radius: 12px; border: 0; padding: 0 14px; color: var(--ink); min-width: 0; }
.news button { height: 46px; border-radius: 12px; border: 0; background: var(--sun); font-weight: 800; padding: 0 16px; cursor: pointer; color: var(--ink); }
.pay-logos { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.pay-logos span { background: rgba(255,255,255,.1); border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 700; color: #fff; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* WhatsApp float */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 60px; height: 60px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); color: #fff; }
.wa-float:hover { transform: scale(1.06); }

/* drawer + modal */
.scrim { position: fixed; inset: 0; background: rgba(20,22,58,.5); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; z-index: 70; transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 26px; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--mist); cursor: pointer; display: grid; place-items: center; }
.x:hover { background: var(--line); }
.ship-bar { padding: 14px 20px; background: var(--mist); font-size: 14px; font-weight: 600; }
.ship-bar .bar { height: 8px; background: #fff; border-radius: 4px; margin-top: 8px; overflow: hidden; border: 1px solid var(--line); }
.ship-bar .bar i { display: block; height: 100%; background: var(--mint); border-radius: 4px; transition: width .3s; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 72px; height: 72px; border-radius: 12px; }
.line b { display: block; font-size: 15px; line-height: 1.3; }
.line .lp { font-size: 14px; color: var(--ink-2); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; margin-top: 6px; }
.qty button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 18px; font-weight: 700; }
.qty span { min-width: 26px; text-align: center; font-weight: 700; font-size: 14px; }
.rm { border: 0; background: none; color: var(--ink-2); cursor: pointer; font-size: 13px; text-decoration: underline; }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.sumrow { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.sumrow.total { font-size: 19px; font-weight: 800; margin: 10px 0 14px; }
.drawer textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; resize: vertical; min-height: 44px; margin-bottom: 12px; font-size: 14px; }
.cart-empty { text-align: center; padding: 60px 10px; color: var(--ink-2); }
.cart-empty h3 { color: var(--ink); font-size: 22px; margin-bottom: 6px; }

.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card { background: #fff; border-radius: 24px; width: min(980px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; position: relative; transform: translateY(16px); transition: transform .25s; }
.modal.open .modal-card { transform: none; }
.modal-card > .x { position: absolute; top: 14px; right: 14px; z-index: 2; }
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pd-img { background: var(--mist); }
.pd-img img { width: 100%; height: 100%; min-height: 100%; aspect-ratio: 1; object-fit: cover; }
.pd-info { padding: 36px 32px; display: flex; flex-direction: column; gap: 12px; }
.pd-info h2 { font-size: 34px; font-weight: 800; }
.pd-info .price b { font-size: 32px; }
.pd-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-meta span { background: var(--mist); border-radius: 8px; padding: 5px 10px; font-size: 14px; font-weight: 600; }
.pd-desc { color: var(--ink-2); margin: 0; white-space: pre-line; } /* keeps the line breaks in long product descriptions */
.pd-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.pd-actions .qty { margin: 0; height: 52px; border-width: 2px; border-radius: 14px; }
.pd-actions .qty button { height: 48px; width: 42px; }

/* checkout */
.co { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.co-form { padding: 32px; }
.co-form h2 { font-size: 32px; margin-bottom: 6px; }
.co-sum { background: var(--mist); padding: 32px; border-radius: 0 24px 24px 0; }
.co-sum h3 { font-size: 22px; margin-bottom: 10px; padding-right: 44px; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin: 20px 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; }
.field label small { font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-width: 0; height: 48px; border: 2px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; }
.field textarea { height: auto; padding: 10px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); }
.field .err { color: var(--tomato-ink); font-size: 13px; font-weight: 600; min-height: 0; }
.field.bad input, .field.bad select { border-color: var(--tomato); }
.pay-opts { display: grid; gap: 10px; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--cobalt); background: #F4F6FF; }
.pay-opt input { margin-top: 3px; accent-color: var(--cobalt); width: 18px; height: 18px; }
.pay-opt b { display: block; }
.pay-opt small { color: var(--ink-2); font-size: 14px; }
.promo { display: flex; gap: 8px; margin: 14px 0; }
.promo input { flex: 1; height: 44px; border: 2px solid var(--line); border-radius: 12px; padding: 0 12px; text-transform: uppercase; min-width: 0; }
.promo button { height: 44px; border-radius: 12px; border: 2px solid var(--ink); background: #fff; font-weight: 700; padding: 0 14px; cursor: pointer; }
.promo-msg { font-size: 13px; font-weight: 600; margin-top: -6px; }
.promo-msg.ok { color: var(--ok); } .promo-msg.bad { color: var(--tomato-ink); }
.mini { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; font-size: 14px; }
.mini img { width: 52px; height: 52px; border-radius: 10px; }
.form-err { background: #FFF0EC; color: #A3260A; border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 14px; margin-bottom: 12px; display: none; }
.form-err.show { display: block; }
.fine { font-size: 13px; color: var(--ink-2); margin-top: 10px; }

.done { padding: 48px 40px; text-align: center; max-width: 620px; margin: 0 auto; }
.done-badge { width: 88px; height: 88px; border-radius: 26px; background: var(--mint); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); display: grid; place-items: center; margin: 0 auto 22px; transform: rotate(-6deg); }
.done h2 { font-size: 38px; margin-bottom: 10px; }
.done p { color: var(--ink-2); }
.order-no { display: inline-block; font-family: var(--font-display); font-size: 30px; font-weight: 800; background: var(--sun); padding: 6px 18px; border-radius: 12px; margin: 10px 0 18px; }
.bank-box { text-align: left; background: var(--mist); border-radius: 16px; padding: 18px 20px; margin: 18px 0; white-space: pre-line; font-size: 15px; }
.bank-box h3 { font-family: var(--font-body); font-size: 16px; font-weight: 800; letter-spacing: 0; margin-bottom: 6px; }
.upload { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.upload input[type=file] { flex: 1; min-width: 0; font-size: 14px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 100; opacity: 0; transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* track page */
.track { padding: 48px 0 72px; }
.track-card { max-width: 760px; margin: 0 auto; }
.track h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; margin-bottom: 10px; }
.track-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin: 24px 0 36px; align-items: end; }
.steps { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: s; }
.steps li { position: relative; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink-2); padding-top: 52px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 18px; z-index: 1; }
.steps li::after { content: ''; position: absolute; top: 19px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.steps li:first-child::after { display: none; }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--mint); border-color: var(--ink); content: '✓'; }
.steps li.done::after { background: var(--mint); }
.steps li.now::before { background: var(--sun); border-color: var(--ink); }
.status-cancel { background: #FFF0EC; color: #A3260A; padding: 14px 18px; border-radius: 14px; font-weight: 700; }
.panel { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-top: 18px; }
.panel h3 { font-size: 20px; margin-bottom: 10px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.timeline li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.timeline time { color: var(--ink-2); white-space: nowrap; }

/* responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pile { height: 380px; max-width: 560px; margin: 0 auto; width: 100%; }
  .perks-row { grid-template-columns: 1fr 1fr; }
  .perk:nth-child(3) { border-left: 0; }
  .perk:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .co, .pd { grid-template-columns: 1fr; }
  .co-sum { border-radius: 0 0 24px 24px; }
}
@media (max-width: 720px) {
  .header-row { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .head-link .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* hidden on phones, still read out */
  .hero { padding-top: 28px; }
  .pile { height: 330px; }
  .block { width: 124px; height: 124px; padding: 10px 12px; border-radius: 20px; box-shadow: 4px 4px 0 var(--ink); }
  .block.lg { width: 150px; height: 150px; }
  .block svg, .block.lg svg { width: 54px; height: 54px; }
  .block b { font-size: 15px; } .block small { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card h3 { font-size: 14px; }
  .price b { font-size: 18px; }
  .add { height: 40px; font-size: 14px; }
  .perks-row { grid-template-columns: 1fr; }
  .perk + .perk { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .co-form, .co-sum, .pd-info { padding: 22px; }
  .track-form { grid-template-columns: 1fr; }
  .co-sum { order: -1; border-radius: 22px 22px 0 0; }
  .steps li { font-size: 11px; }
  .modal { padding: 0; align-items: end; }
  .modal-card { border-radius: 22px 22px 0 0; max-height: 92vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- full-screen sections (desktop & laptop) ---------- */
:root { --wrap: 1440px; --top: 166px; --bar: 129px; }
html { scroll-padding-top: var(--bar); }
@media (min-width: 981px) {
  .hero { min-height: calc(100svh - var(--top)); display: flex; padding: 40px 0; }
  .hero > .wrap, .deals > .wrap { width: 100%; margin-top: auto; margin-bottom: auto; }
  .hero-grid { gap: clamp(40px, 5vw, 96px); }
  .hero h1 { font-size: clamp(56px, min(6.2vw, 10vh), 132px); }
  .hero p { font-size: clamp(18px, min(1.3vw, 2.4vh), 23px); }
  /* the pile keeps its shape and scales with the screen */
  .pile { container-type: inline-size; height: auto; aspect-ratio: 560 / 520; width: min(100%, calc((100svh - var(--top) - 80px) * 1.077)); justify-self: end; }
  .block { --b: 30cqw; width: var(--b); height: var(--b); border-radius: calc(var(--b) * .15); padding: calc(var(--b) * .085) calc(var(--b) * .095); box-shadow: calc(var(--b) * .035) calc(var(--b) * .035) 0 var(--ink); }
  .block.lg { width: calc(var(--b) * 1.25); height: calc(var(--b) * 1.25); }
  .block svg { width: calc(var(--b) * .44); height: calc(var(--b) * .44); }
  .block.lg svg { width: calc(var(--b) * .55); height: calc(var(--b) * .55); }
  .block b { font-size: calc(var(--b) * .113); }
  .block small { font-size: calc(var(--b) * .078); }
  .deals { min-height: calc(100svh - var(--bar)); display: flex; padding: 48px 0; }
  .deals .sec-head h2 { font-size: clamp(40px, 3.6vw, 64px); }
  .deals .rail { grid-auto-columns: max(230px, min(calc((min(100vw, var(--wrap)) - 64px) / 4.3), calc(100svh - var(--bar) - 420px))); gap: 18px; }
  .deals .card h3 { font-size: clamp(16px, 1vw, 19px); }
  .deals .price b { font-size: clamp(22px, 1.4vw, 28px); }
}
@media (min-width: 2000px) {
  :root { --wrap: 1680px; }
}

/* ---------- Top Toys catalog (metal model kits) ---------- */
.card-img img { object-fit: contain; padding: 7%; filter: drop-shadow(0 6px 10px rgba(20,22,58,.18)); }
.badge.trend { background: var(--cobalt); }
.badge.pre { background: #A05F00; }
.stock-pre { font-size: 13px; color: #A05F00; font-weight: 700; }
.price b.ask { font-size: 17px; color: var(--ink-2); }
a.add { text-decoration: none; color: inherit; }
.block-img { width: 62%; height: auto; aspect-ratio: 1; object-fit: contain; align-self: center; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); margin-top: -4%; }
.pd-img { position: relative; display: flex; flex-direction: column; }
.pd-img > img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 8%; }
.pd-img > img.scene { object-fit: cover; padding: 0; }
.pd-thumbs { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.pd-thumbs button { width: 58px; height: 58px; border-radius: 10px; border: 2px solid rgba(255,255,255,.9); padding: 0; cursor: pointer; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.pd-thumbs button.on { border-color: var(--ink); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.mini img, .line img { object-fit: contain; background: var(--mist); }

/* second photo (scene) shows when hovering a product card */
.card-img img.alt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; padding: 0; filter: none; opacity: 0; transition: opacity .25s; }
@media (hover: hover) { .card-img:hover img.alt, .card-img:focus-visible img.alt { opacity: 1; } }
.card-img .badges, .card-img .soldout { z-index: 1; }

/* ---------- grouped category menu ---------- */
.catnav a.nav-g { display: inline-flex; align-items: center; gap: 6px; }
.catnav a.nav-g svg { opacity: .6; transition: transform .15s; }
.catnav a.nav-g[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-menu { position: fixed; z-index: 45; width: 290px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 22px 50px -18px rgba(20,22,58,.35); padding: 8px; display: none; }
.nav-menu.open { display: block; }
.nav-menu a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; text-decoration: none; font-size: 15px; }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--mist); }
.nav-menu a img { width: 40px; height: 40px; border-radius: 9px; object-fit: contain; flex: none; }
.nav-menu a b { font-weight: 600; flex: 1; }
.nav-menu a span { color: var(--ink-2); font-size: 13px; font-weight: 700; }
.nav-menu a.nav-all { font-weight: 700; border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; margin-bottom: 4px; padding: 10px; justify-content: space-between; }
.subcats { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 16px; }
.subcats a { padding: 7px 14px; border-radius: 999px; background: var(--mist); text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.subcats a:hover { color: var(--ink); }
.subcats a.on { background: var(--cobalt); color: #fff; }
.subcats a span { opacity: .9; font-size: 12px; margin-left: 2px; }

/* department mega menu (e.g. 3D puzzles) */
.nav-menu.mega { width: min(820px, calc(100vw - 16px)); padding: 10px; }
.mega-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 14px; padding-top: 4px; }
.mega-col { display: flex; flex-direction: column; }
.nav-menu a.mega-h { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--ink); padding: 10px 10px 4px; }
.nav-menu.mega a img { width: 32px; height: 32px; }
.nav-menu.mega a:not(.mega-h):not(.nav-all) { font-size: 14px; padding: 6px 10px; }
.sub-sep { width: 1px; background: var(--line); margin: 2px 4px; }
@media (max-width: 720px) { .mega-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- customer account ---------- */
.acct-tabs { display: inline-flex; background: var(--mist); border-radius: 12px; padding: 4px; margin: 22px 0 0; gap: 4px; }
.acct-tabs button { border: 0; background: none; padding: 9px 18px; border-radius: 9px; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.acct-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(20,22,58,.12); }
.acct-form { max-width: 520px; }
.acct-form .fields { grid-template-columns: 1fr; }
.order-card .oc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.oc-no { font-family: var(--font-display); font-size: 20px; margin-right: 10px; }
.oc-date { color: var(--ink-2); font-size: 14px; }
.oc-total { font-family: var(--font-display); font-size: 20px; }
.oc-items { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 6px; }
.steps.steps-sm { margin: 14px 0 6px; }
.steps.steps-sm li { font-size: 12px; padding-top: 40px; }
.steps.steps-sm li::before { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; }
.steps.steps-sm li::after { top: 14px; }
details.panel summary { cursor: pointer; list-style: none; }
details.panel summary::-webkit-details-marker { display: none; }
details.panel summary::after { content: '＋'; float: right; color: var(--ink-2); font-weight: 700; }
details.panel[open] summary::after { content: '−'; }

/* category blocks with a full scene photo */
.block.photo { justify-content: flex-end; overflow: hidden; }
.block.photo b, .block.photo small { text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.nav-menu a img[src*="/scenes/"] { object-fit: cover; }

/* store policy pages (privacy, terms, refunds) */
.policy { padding: 48px 0 72px; }
.policy-card { max-width: 760px; margin: 0 auto; }
.policy h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; margin-bottom: 8px; }
.policy-updated { color: var(--ink-2); margin: 0 0 28px; font-size: 15px; }
.policy h2 { font-size: 24px; font-weight: 800; margin: 34px 0 10px; }
.policy p, .policy li { font-size: 17px; line-height: 1.65; }
.policy p { margin: 0 0 12px; }
.policy ul { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 6px; }
.policy a { color: var(--cobalt); font-weight: 600; }
.policy-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.policy-links a { padding: 8px 14px; border-radius: 999px; background: var(--mist); color: var(--ink); text-decoration: none; font-size: 15px; }
.policy-links a:hover { background: var(--line); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-right: 76px; } /* clear of the WhatsApp button */

/* products with a long description: photo stays at the top (and in view on wide screens) */
.pd.has-desc .pd-img { align-self: start; }
.pd.has-desc .pd-thumbs { position: static; padding: 0 14px 14px; } /* many photos: thumbnails sit under the photo, not on it */
@media (min-width: 981px) { .pd.has-desc .pd-img { position: sticky; top: 0; } }

/* Admin → Deals can turn the countdown off */
.countdown[hidden] { display: none; }
/* placeholders while the deals load, about the size of a card, so the page doesn't jump */
.deals .rail .skeleton { aspect-ratio: .52; }
