/* ==========================================================================
   تاتی کلاب — storefront styles
   Look: soft "clay 3D" playground. Palette from the logo:
   coral #F4645A · sunny #FFC83D · navy #23305C · cream #FFF9F0
   Depth comes from layered shadows (a tinted drop + an inner top highlight),
   pointer tilt on cards, and floating glossy orbs in the hero.
   ========================================================================== */

@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Estedad"; src: url("../fonts/estedad-arabic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Estedad"; src: url("../fonts/estedad-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF; }

:root {
  --coral: #F4645A; --coral-600: #DF4C42; --coral-50: #FFEDEA;
  --sun: #FFC83D; --sun-600: #E9AE16; --sun-50: #FFF6DC;
  --navy: #23305C; --navy-700: #1A2447; --navy-50: #E9ECF5;
  --cream: #FFF9F0; --paper: #FFFFFF;
  --mint: #7ED6B5; --sky: #7CC6F2; --lilac: #CDB4FF; --pink: #F7A1C4;
  --ink: #23305C; --ink-2: #4A5578; --muted: #6B7391; --line: #EEE6DA;
  --ok: #1F9D61; --warn: #B7791F; --err: #D64545;
  --r-sm: 12px; --r: 20px; --r-lg: 28px; --r-xl: 40px;
  --clay: 0 1px 0 rgba(255,255,255,.9) inset, 0 -3px 0 rgba(35,48,92,.06) inset, 0 10px 24px -10px rgba(35,48,92,.25), 0 2px 6px rgba(35,48,92,.06);
  --clay-hover: 0 1px 0 rgba(255,255,255,.9) inset, 0 -3px 0 rgba(35,48,92,.06) inset, 0 22px 40px -16px rgba(35,48,92,.35), 0 4px 10px rgba(35,48,92,.08);
  --btn-depth: 0 5px 0;
  --font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --display: "Estedad", "Vazirmatn", system-ui, sans-serif;
  --wrap: 1320px;
  --header-h: 76px;
  --ease: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.75; color: var(--ink);
  background: var(--cream); font-feature-settings: "ss01"; -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--coral-600); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--display); line-height: 1.35; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; }
h2, .h2 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 8px; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 32px, 520px); margin: 24px auto 0; }
.page-pad { padding-block: 28px 64px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt { margin-top: 16px; display: block; }
.error { color: var(--err); }
.good dd, .good dt { color: var(--ok); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 100; top: 8px; inset-inline-start: 8px; background: var(--navy); color: #fff; padding: 8px 16px; border-radius: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.unit { font-size: .72em; font-weight: 500; color: var(--muted); }
[hidden] { display: none !important; }
.only-mobile { display: none !important; }
@media (max-width: 900px) { .only-mobile { display: inline-flex !important; } .only-desktop { display: none !important; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  --b: var(--coral); --b-d: var(--coral-600); --t: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border: 0; border-radius: 16px; background: var(--b); color: var(--t); font-weight: 800; white-space: nowrap;
  box-shadow: var(--btn-depth) var(--b-d), 0 10px 18px -8px color-mix(in srgb, var(--b) 70%, transparent);
  transform: translateY(0); transition: transform .15s var(--ease), box-shadow .15s, filter .15s;
  position: relative; isolation: isolate;
}
.btn::after { content: ""; position: absolute; inset: 3px 6px auto; height: 40%; border-radius: 12px 12px 30px 30px; background: linear-gradient(rgba(255,255,255,.35), transparent); z-index: -1; pointer-events: none; }
.btn:hover { color: var(--t); transform: translateY(-2px); filter: saturate(1.08); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--b-d); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-primary { --b: var(--coral); --b-d: var(--coral-600); }
.btn-sun { --b: var(--sun); --b-d: var(--sun-600); --t: var(--navy); }
.btn-navy { --b: var(--navy); --b-d: var(--navy-700); }
.btn-soft { --b: #fff; --b-d: #E7DCCB; --t: var(--navy); }
.btn-light { --b: rgba(255,255,255,.92); --b-d: rgba(35,48,92,.15); --t: var(--navy); }
.btn-ghost { --b: transparent; --b-d: transparent; --t: var(--navy); box-shadow: inset 0 0 0 2px rgba(35,48,92,.18); }
.btn-ghost::after { display: none; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; border-radius: 18px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 10px; border: 0; border-radius: 14px; background: transparent; color: var(--navy); font-weight: 700; }
.icon-btn:hover { background: var(--navy-50); color: var(--navy); }
.icon-btn.big { width: 56px; height: 56px; border-radius: 18px; background: #fff; box-shadow: var(--clay); }
.icon-btn.wish.is-on, .card-wish.is-on { color: var(--coral); }
.icon-btn.wish.is-on .ic, .card-wish.is-on .ic { fill: var(--coral); }
.round-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--clay); display: grid; place-items: center; color: var(--navy); }
.round-btn:hover { background: var(--sun); }
.link-btn { border: 0; background: none; padding: 0; color: var(--coral-600); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.link-btn.danger { color: var(--err); }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--coral-600); }

/* ---------------------------------------------------------------- header */
.announce { background: var(--navy); color: var(--cream); font-size: 13px; text-align: center; padding: 7px 0; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid rgba(35,48,92,.06); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(35,48,92,.4); }
.header-row { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-mark { width: 48px; height: 48px; filter: drop-shadow(0 6px 10px rgba(244,100,90,.35)); transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-fa { font-family: "Lalezar", var(--display); font-size: 27px; font-weight: 900; letter-spacing: -.02em; }
.brand-fa b { color: var(--navy); font-weight: inherit; } .brand-fa i { color: var(--coral); font-style: normal; }
.brand-en { font-family: "Fredoka", "Estedad", sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .32em; margin-top: 4px; padding-inline-start: .32em; }
.brand-light .brand-fa b, .brand-light .brand-en { color: var(--cream); } .brand-light .brand-fa i { color: var(--sun); }
.search { position: relative; flex: 1; max-width: 560px; margin-inline: auto; }
.search input { width: 100%; height: 50px; border: 2px solid transparent; border-radius: 18px; background: #fff; padding: 0 48px 0 16px; box-shadow: var(--clay); outline: 0; transition: border-color .2s; }
.search input:focus { border-color: var(--sun); }
.search-ic { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.suggest { position: absolute; inset-inline: 0; top: calc(100% + 8px); background: #fff; border-radius: var(--r); box-shadow: var(--clay-hover); padding: 10px; z-index: 50; max-height: 70vh; overflow: auto; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; }
.suggest a:hover, .suggest a.is-active { background: var(--cream); color: var(--navy); }
.suggest img { width: 44px; height: 54px; border-radius: 10px; object-fit: cover; background: var(--cream); }
.suggest .s-price { margin-inline-start: auto; font-weight: 800; font-size: 13px; white-space: nowrap; }
.suggest h4 { margin: 6px 10px; font-size: 12px; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.cart-btn { position: relative; width: 50px; height: 50px; border: 0; border-radius: 16px; background: var(--coral); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 0 var(--coral-600), 0 10px 20px -10px var(--coral); transition: transform .2s var(--ease); }
.cart-btn:hover { transform: translateY(-2px) rotate(-4deg); }
.cart-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-10deg); } 60% { transform: scale(.92) rotate(6deg); } }
.cart-count { position: absolute; top: -6px; inset-inline-start: -6px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--sun); color: var(--navy); font-size: 12px; font-weight: 900; display: grid; place-items: center; padding: 0 5px; box-shadow: 0 0 0 3px var(--cream); }

/* mega menu */
.mega { position: relative; }
.mega-list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0 0 10px; overflow-x: auto; scrollbar-width: none; }
.mega-list::-webkit-scrollbar { display: none; }
.mega-item { position: static; }
.mega-link { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 14px; border-radius: 999px; font-weight: 700; white-space: nowrap; transition: background .2s; }
.mega-link:hover, .mega-item:focus-within > .mega-link { background: color-mix(in srgb, var(--c, var(--coral)) 22%, #fff); color: var(--navy); }
.mega-link.is-sale { color: var(--coral-600); }
.mega-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--coral)) 30%, #fff); box-shadow: 0 -2px 0 rgba(0,0,0,.06) inset, 0 3px 8px -4px var(--c, var(--coral)); }
.mega-ic .ic { width: 17px; height: 17px; }
.mega-panel { position: absolute; inset-inline: 0; top: 100%; background: #fff; border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: var(--clay-hover); padding: 22px 26px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 45; }
@media (hover: hover) { .mega-item:hover .mega-panel, .mega-item:focus-within .mega-panel { opacity: 1; visibility: visible; transform: none; } }
.mega-cols { columns: 4 200px; column-gap: 28px; }
.mega-col { break-inside: avoid; margin-bottom: 14px; display: flex; flex-direction: column; }
.mega-sub { font-weight: 800; padding: 3px 0; border-bottom: 2px dotted var(--line); margin-bottom: 4px; }
.mega-leaf { font-size: 14px; color: var(--ink-2); padding: 2px 0; }
.mega-all { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-weight: 800; color: var(--coral-600); }

/* ---------------------------------------------------------------- toasts, drawers, modal */
.toast { position: fixed; z-index: 90; inset-inline-start: 50%; transform: translateX(50%); top: 92px; padding: 12px 20px; border-radius: 16px; background: var(--navy); color: #fff; font-weight: 700; box-shadow: var(--clay-hover); animation: toast-in .45s var(--ease); max-width: calc(100vw - 32px); }
[dir="rtl"] .toast { transform: translateX(50%); }
.toast-success { background: var(--ok); } .toast-error { background: var(--err); } .toast-info { background: var(--navy); }
.toast.is-out { opacity: 0; transition: opacity .3s; }
@keyframes toast-in { from { opacity: 0; translate: 0 -16px; scale: .9; } }
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(26,36,71,.35); backdrop-filter: blur(3px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.drawer-panel { position: absolute; top: 0; bottom: 0; width: min(420px, 92vw); background: var(--cream); display: flex; flex-direction: column; box-shadow: var(--clay-hover); animation: slide-in .3s var(--ease); }
.drawer-start { inset-inline-start: 0; border-radius: 0 0 0 0; }
.drawer-end { inset-inline-end: 0; }
@keyframes slide-in { from { translate: 40px; opacity: 0; } }
.drawer-start { animation-name: slide-in-start; } @keyframes slide-in-start { from { translate: -40px; opacity: 0; } }
[dir="rtl"] .drawer-start { animation-name: slide-in; } [dir="rtl"] .drawer-end { animation-name: slide-in-start; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 18px; }
.drawer-body { flex: 1; overflow: auto; padding: 14px 18px; }
.drawer-foot { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; background: #fff; }
.mini-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.mini-item img { width: 64px; height: 80px; object-fit: cover; border-radius: 12px; background: #fff; }
.mini-item small { display: block; color: var(--muted); }
.tree details { border-radius: 16px; background: #fff; margin-bottom: 8px; box-shadow: var(--clay); }
.tree summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-weight: 800; cursor: pointer; list-style: none; }
.tree summary::-webkit-details-marker { display: none; }
.tree-caret { margin-inline-start: auto; transition: transform .2s; }
.tree details[open] .tree-caret { transform: rotate(180deg); }
.tree a { display: block; padding: 7px 54px 7px 12px; font-size: 14px; }
.tree .tree-leaf { padding-inline-start: 70px; color: var(--muted); font-size: 13px; }
.tree .tree-all { color: var(--coral-600); font-weight: 800; }
.modal { border: 0; border-radius: var(--r-lg); padding: 22px; max-width: min(680px, 94vw); width: 100%; box-shadow: var(--clay-hover); color: var(--ink); }
.modal::backdrop { background: rgba(26,36,71,.4); backdrop-filter: blur(3px); }
.modal header { display: flex; align-items: center; justify-content: space-between; }
.modal h2 { display: flex; gap: 8px; align-items: center; }

/* ---------------------------------------------------------------- hero */
.hero { --accent: var(--coral); --accent-ink: var(--coral-600); position: relative; overflow: hidden; overflow: clip; padding: 34px 0 26px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
/* full-bleed backdrop per slide theme; layers cross-fade so there is never a hard-edged box behind the text */
.hero-tint { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.hero-tint.is-active { opacity: 1; }
.hero-tint::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(to bottom, transparent, var(--cream)); }
.t-coral { background: radial-gradient(60% 80% at 85% 10%, #FFE2DC 0%, transparent 60%), radial-gradient(50% 70% at 10% 90%, #FFE9F2 0%, transparent 65%), linear-gradient(180deg, #FFF4EC 0%, var(--cream) 100%); }
.t-sunny { background: radial-gradient(60% 80% at 85% 10%, #FFE7A6 0%, transparent 62%), radial-gradient(55% 70% at 10% 90%, #FFF1C9 0%, transparent 65%), linear-gradient(180deg, #FFF8E3 0%, var(--cream) 100%); }
.t-navy { background: radial-gradient(60% 80% at 85% 10%, #DCE2F7 0%, transparent 62%), radial-gradient(55% 70% at 10% 90%, #EDE4FF 0%, transparent 65%), linear-gradient(180deg, #F1F3FB 0%, var(--cream) 100%); }
.t-mint { background: radial-gradient(60% 80% at 85% 10%, #CFF3E4 0%, transparent 62%), radial-gradient(55% 70% at 10% 90%, #E6F8F0 0%, transparent 65%), linear-gradient(180deg, #EEFAF4 0%, var(--cream) 100%); }
.t-sky { background: radial-gradient(60% 80% at 85% 10%, #D3ECFC 0%, transparent 62%), radial-gradient(55% 70% at 10% 90%, #E8F5FD 0%, transparent 65%), linear-gradient(180deg, #EFF8FE 0%, var(--cream) 100%); }
.hero[data-theme="sunny"] { --accent: #E9AE16; --accent-ink: #A2730A; }
.hero[data-theme="navy"] { --accent: var(--navy); --accent-ink: var(--navy); }
.hero[data-theme="mint"] { --accent: #2FAE82; --accent-ink: #1F8A65; }
.hero[data-theme="sky"] { --accent: #2D9BDB; --accent-ink: #1C7DB6; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .32; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; background: var(--sun); top: -180px; inset-inline-end: -120px; }
.b2 { width: 420px; height: 420px; background: var(--pink); bottom: -200px; inset-inline-start: 10%; animation-delay: -6s; }
.b3 { width: 360px; height: 360px; background: var(--sky); top: 30%; inset-inline-start: -160px; opacity: .35; animation-delay: -12s; }
@keyframes drift { to { translate: 40px 30px; scale: 1.1; } }
.orb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0 8%, var(--o) 38%, color-mix(in srgb, var(--o) 70%, #000) 100%); box-shadow: 0 18px 30px -12px color-mix(in srgb, var(--o) 70%, transparent); animation: float 7s ease-in-out infinite; }
.o1 { --o: var(--coral); width: 46px; height: 46px; top: 14%; inset-inline-start: 46%; }
.o2 { --o: var(--sun); width: 28px; height: 28px; top: 70%; inset-inline-start: 6%; animation-delay: -2s; }
.o3 { --o: var(--mint); width: 36px; height: 36px; top: 20%; inset-inline-start: 4%; animation-delay: -4s; }
.o4 { --o: var(--lilac); width: 22px; height: 22px; bottom: 16%; inset-inline-start: 52%; animation-delay: -1s; }
@keyframes float { 50% { translate: 0 -18px; } }
.steps { position: absolute; width: 90px; opacity: .14; }
.s1 { top: 62%; inset-inline-start: 40%; rotate: -20deg; } .s2 { top: 8%; inset-inline-start: 30%; rotate: 15deg; width: 60px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 32px; min-height: 460px; }
.hero-slides { position: relative; min-height: 340px; }
.hero-slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .6s, transform .6s var(--ease), visibility .6s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transform: none; position: relative; }
/* outgoing text leaves first, incoming text follows, so two titles never overlap */
.hero-slide:not(.is-active) { transition-duration: .25s; }
.hero-slide.is-active { transition-delay: .22s; }
.eyebrow { display: inline-flex; align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: #fff; box-shadow: var(--clay); font-weight: 700; font-size: 13px; color: var(--accent-ink); margin-bottom: 16px; transition: color .6s; }
.hero h1 { font-size: clamp(34px, 5.4vw, 66px); line-height: 1.2; font-weight: 900; color: var(--navy); text-shadow: 0 3px 0 rgba(255,255,255,.9), 0 10px 26px rgba(35,48,92,.14); }
.hero-slide h1 { margin: 0 0 10px; } .hero-slide h1::first-line { color: var(--accent-ink); transition: color .6s; }
.hero-slide p { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.hero-cta.center { justify-content: center; }
.hero-dots { display: flex; gap: 8px; margin-top: 24px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 6px; border: 0; background: rgba(35,48,92,.2); transition: width .3s var(--ease), background .3s; padding: 0; }
.hero-dots button.is-active { width: 34px; background: var(--accent); }
.hero-stage { position: relative; height: 440px; perspective: 900px; }
.stage-disc { position: absolute; inset: 8% 10%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--sun-50) 40%, var(--sun) 100%); box-shadow: 0 40px 60px -30px rgba(233,174,22,.7), inset 0 -18px 40px rgba(233,174,22,.45), inset 0 14px 20px rgba(255,255,255,.8); }
.stage-banner { position: absolute; inset: 6% 4% 6% 8%; width: 88%; height: 88%; object-fit: cover; border-radius: 36px; background: #fff; box-shadow: 0 40px 60px -28px rgba(35,48,92,.5), 0 0 0 8px #fff; rotate: -3deg; opacity: 0; scale: .94; transition: opacity .7s var(--ease), scale .7s var(--ease); z-index: 3; }
.stage-banner.is-active { opacity: 1; scale: 1; }
.hero-stage .stage-item, .hero-stage .stage-chip { transition: opacity .6s var(--ease), transform .3s; }
.hero-stage.has-banner .stage-item { opacity: 0; }
.stage-mark { position: absolute; width: 150px; top: 6%; inset-inline-start: 4%; rotate: -12deg; filter: drop-shadow(0 18px 22px rgba(244,100,90,.4)); animation: float 6s ease-in-out infinite; }
.stage-item { position: absolute; width: 190px; border-radius: 28px; box-shadow: 0 30px 40px -20px rgba(35,48,92,.45), 0 0 0 6px #fff; background: #fff; transition: transform .3s; animation: float 8s ease-in-out infinite; }
.si1 { top: 12%; inset-inline-end: 8%; rotate: 8deg; z-index: 2; } .si2 { bottom: 4%; inset-inline-end: 30%; rotate: -6deg; width: 170px; z-index: 3; animation-delay: -3s; } .si3 { top: 30%; inset-inline-start: 18%; rotate: -10deg; width: 150px; animation-delay: -5s; }
.stage-chip { position: absolute; display: inline-flex; gap: 6px; align-items: center; background: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; box-shadow: var(--clay-hover); z-index: 4; animation: float 6s ease-in-out infinite; }
.c1 { bottom: 18%; inset-inline-start: 0; color: var(--coral-600); } .c2 { top: 4%; inset-inline-end: 24%; color: var(--navy); animation-delay: -2s; }
.hero-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
.hero-stats div { background: rgba(255,255,255,.75); backdrop-filter: blur(6px); border-radius: var(--r); padding: 14px; box-shadow: var(--clay); text-align: center; }
.hero-stats strong { display: block; font-family: var(--display); font-size: 22px; font-weight: 900; color: var(--coral-600); }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- sections */
section.shelf, .ages, .cats, .promos, .perks, .brands { margin-top: 56px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head h2 { margin: 0; position: relative; display: inline-block; }
.section-head h2::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -4px; width: 46px; height: 8px; border-radius: 4px; background: var(--sun); z-index: -1; }
.section-head p { margin: 2px 0 0; color: var(--muted); }
.shelf-ctrl { display: flex; align-items: center; gap: 8px; }
.age-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.age-tile { --c: var(--sun); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 12px 20px; border-radius: var(--r-lg); background: linear-gradient(160deg, #fff 0%, color-mix(in srgb, var(--c) 45%, #fff) 100%); box-shadow: var(--clay); text-align: center; transition: box-shadow .25s, transform .25s; transform-style: preserve-3d; }
.age-tile:hover { box-shadow: var(--clay-hover); color: var(--navy); }
.age-bubble { width: 84px; height: 84px; border-radius: 30px; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #fff 0 10%, var(--c) 60%); box-shadow: inset 0 -8px 14px rgba(0,0,0,.1), 0 14px 20px -10px var(--c); margin-bottom: 8px; transform: translateZ(30px); transition: transform .4s var(--ease); }
.age-tile:hover .age-bubble { transform: translateZ(40px) rotate(-8deg) scale(1.06); }
.age-bubble .ic { width: 40px; height: 40px; color: var(--navy); stroke-width: 1.6; }
.age-tile strong { font-family: var(--display); font-size: 20px; font-weight: 900; }
.age-tile small { color: var(--ink-2); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-tile { --c: var(--coral); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 10px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--clay); transition: box-shadow .25s; }
.cat-tile:hover { box-shadow: var(--clay-hover); color: var(--navy); }
.cat-3d { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 35%, #fff); box-shadow: inset 0 -6px 0 color-mix(in srgb, var(--c) 45%, transparent), 0 10px 18px -10px var(--c); margin-bottom: 6px; transition: transform .4s var(--ease); }
.cat-tile:hover .cat-3d { transform: translateY(-4px) rotate(6deg); }
.cat-3d .ic { width: 30px; height: 30px; }
.cat-tile small { color: var(--muted); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 24px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail-item { scroll-snap-align: start; }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 4 * 16px) / 5); } }
.promos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.promo { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 200px; padding: 30px; border-radius: var(--r-xl); box-shadow: var(--clay); }
.promo h3 { font-family: var(--display); font-size: 26px; font-weight: 900; } .promo p { color: var(--ink-2); }
.promo img { position: absolute; inset-inline-end: -20px; bottom: -30px; width: 200px; opacity: .25; rotate: -18deg; transition: rotate .5s var(--ease); }
.promo:hover img { rotate: -6deg; }
.promo.theme-mint { background: linear-gradient(135deg, #E6F8F0, var(--mint)); } .promo.theme-sky { background: linear-gradient(135deg, #E8F5FD, var(--sky)); }
.promo.theme-sunny { background: linear-gradient(135deg, var(--sun-50), var(--sun)); } .promo.theme-navy { background: linear-gradient(135deg, var(--navy-50), #C6CDE6); }
.promo.theme-coral { background: linear-gradient(135deg, var(--coral-50), #FFC2B8); }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.perk { display: flex; gap: 12px; align-items: center; background: #fff; padding: 18px; border-radius: var(--r); box-shadow: var(--clay); }
.perk > span { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: var(--coral-50); color: var(--coral-600); flex: none; }
.perk:nth-child(2) > span { background: var(--sun-50); color: var(--sun-600); } .perk:nth-child(3) > span { background: #E6F8F0; color: var(--ok); } .perk:nth-child(4) > span { background: var(--navy-50); color: var(--navy); }
.perk strong { display: block; } .perk small { color: var(--muted); }
.brand-row { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-chip { padding: 10px 20px; border-radius: 999px; background: #fff; box-shadow: var(--clay); font-weight: 800; transition: transform .2s var(--ease); }
.brand-chip:hover { transform: translateY(-3px); }

/* ---------------------------------------------------------------- product card */
.card { position: relative; background: #fff; border-radius: var(--r-lg); box-shadow: var(--clay); transition: box-shadow .3s, transform .3s; transform-style: preserve-3d; will-change: transform; height: 100%; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--clay-hover); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-lg) var(--r-lg) 22px 22px; overflow: hidden; background: var(--cream); margin: 8px 8px 0; transform: translateZ(18px); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s, transform .6s var(--ease); }
.card-hover { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-media img:first-child { transform: scale(1.06); }
.card:hover .card-hover { opacity: 1; }
.card-badges { position: absolute; top: 18px; inset-inline-start: 18px; display: flex; flex-direction: column; gap: 6px; z-index: 2; transform: translateZ(30px); }
.badge { display: inline-flex; padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 900; box-shadow: 0 3px 0 rgba(0,0,0,.08); }
.badge-sale { background: var(--coral); color: #fff; } .badge-new { background: var(--sun); color: var(--navy); } .badge-out { background: var(--navy); color: #fff; }
.badge.big { position: absolute; top: 18px; inset-inline-start: 18px; font-size: 14px; padding: 6px 14px; }
.card-wish { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2; width: 40px; height: 40px; border-radius: 14px; border: 0; background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--navy); box-shadow: var(--clay); transform: translateZ(30px); transition: transform .3s var(--ease); }
.card-wish:hover { transform: translateZ(30px) scale(1.12); color: var(--coral); }
.card-body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; transform: translateZ(10px); }
.card-brand { font-size: 12px; font-weight: 800; color: var(--coral-600); }
.card-title { font-size: 14.5px; font-weight: 700; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.2em; }
.card-meta { display: flex; align-items: center; justify-content: space-between; min-height: 22px; }
.swatches { display: inline-flex; align-items: center; gap: 4px; }
.swatches i { width: 16px; height: 16px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.12), inset 0 -3px 4px rgba(0,0,0,.12); }
.swatches small { font-size: 11px; color: var(--muted); }
.rating { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 800; }
.rating .ic { width: 15px; height: 15px; fill: var(--sun); stroke: var(--sun-600); }
.rating.big { font-size: 15px; } .rating.big .ic { width: 20px; height: 20px; }
.card-price { margin-top: auto; display: flex; flex-direction: column; align-items: flex-end; }
.card-price del { color: var(--muted); font-size: 13px; }
.card-price strong { font-size: 17px; font-weight: 900; }

/* ---------------------------------------------------------------- listing */
.listing-hero { --c: var(--coral); padding: 22px 0 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 18%, var(--cream)), var(--cream)); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); margin: 10px 0 8px; }
.crumbs .ic { width: 14px; height: 14px; }
.lead { color: var(--ink-2); max-width: 70ch; }
.subcats { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 8px; scrollbar-width: none; }
.subcat { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: #fff; border-radius: 999px; box-shadow: var(--clay); font-weight: 700; white-space: nowrap; font-size: 14px; }
.subcat small { background: var(--cream); border-radius: 999px; padding: 0 8px; color: var(--muted); }
.listing { display: grid; grid-template-columns: 290px 1fr; gap: 24px; align-items: start; padding-bottom: 60px; }
.filters { position: sticky; top: calc(var(--header-h) + 60px); max-height: calc(100vh - var(--header-h) - 80px); overflow: auto; background: #fff; border-radius: var(--r-lg); box-shadow: var(--clay); padding: 16px; scrollbar-width: thin; }
.filters-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 10px; border-bottom: 2px dotted var(--line); }
.filters-head strong { display: inline-flex; gap: 6px; align-items: center; font-size: 17px; }
.link-clear { color: var(--coral-600); font-weight: 700; font-size: 13px; }
.toggles { display: grid; gap: 8px; padding: 12px 0; border-bottom: 2px dotted var(--line); }
.toggle { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.toggle i { width: 42px; height: 24px; border-radius: 12px; background: #E9E2D6; position: relative; transition: background .2s; flex: none; }
.toggle i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: inset-inline-start .25s var(--ease); }
.toggle.is-on i { background: var(--ok); } .toggle.is-on i::after { inset-inline-start: 21px; }
.facet { border-bottom: 2px dotted var(--line); }
.facet summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; font-weight: 800; cursor: pointer; list-style: none; }
.facet summary::-webkit-details-marker { display: none; }
.facet-caret { transition: transform .2s; width: 18px; } .facet[open] .facet-caret { transform: rotate(180deg); }
.facet-body { padding-bottom: 12px; display: grid; gap: 2px; max-height: 290px; overflow: auto; }
.opt { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 10px; font-size: 14px; }
.opt:hover { background: var(--cream); color: var(--navy); }
.opt .box { width: 20px; height: 20px; border-radius: 7px; border: 2px solid #D6CCBC; flex: none; display: grid; place-items: center; transition: .2s; }
.opt.is-on .box { background: var(--coral); border-color: var(--coral); box-shadow: 0 3px 8px -2px var(--coral); }
.opt.is-on .box::after { content: ""; width: 9px; height: 5px; border: 2.5px solid #fff; border-top: 0; border-inline-end: 0; rotate: -45deg; translate: 0 -1px; }
.opt .count { margin-inline-start: auto; font-size: 12px; color: var(--muted); background: var(--cream); padding: 0 8px; border-radius: 999px; }
.opt.is-on { font-weight: 800; }
.color-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.color-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; text-align: center; }
.color-opt i { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.7), transparent 40%), var(--sw); box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.12), inset 0 -5px 8px rgba(0,0,0,.12), 0 4px 8px -4px rgba(0,0,0,.3); transition: transform .25s var(--ease); }
.color-opt:hover i { transform: scale(1.1); }
.color-opt.is-on i { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--coral); }
.color-opt.is-on { font-weight: 800; }
.size-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.size-opt { padding: 5px 12px; border-radius: 12px; background: var(--cream); font-size: 13px; font-weight: 700; border: 2px solid transparent; }
.size-opt.is-on { background: var(--navy); color: #fff; }
.size-opt:hover { border-color: var(--sun); color: var(--navy); }
.size-opt.is-on:hover { color: #fff; }
.facet-search { width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 6px 10px; margin-bottom: 6px; }
.price-form { display: grid; gap: 10px; }
.range { position: relative; height: 26px; }
.range input { position: absolute; inset: 0; width: 100%; appearance: none; -webkit-appearance: none; background: none; pointer-events: none; margin: 0; }
.range::before { content: ""; position: absolute; inset-inline: 0; top: 11px; height: 5px; border-radius: 3px; background: var(--line); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--coral); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.25); cursor: grab; }
.range input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--coral); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-inputs label { font-size: 12px; color: var(--muted); }
.price-inputs input { width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 6px 10px; direction: ltr; text-align: center; }
.results { min-width: 0; }
.results.is-loading { opacity: .55; pointer-events: none; transition: opacity .2s; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.results-count { margin: 0; color: var(--muted); }
.results-count strong { color: var(--navy); font-size: 18px; }
.sorts { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; overflow-x: auto; scrollbar-width: none; }
.sorts span { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; font-size: 13px; }
.sort { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--ink-2); }
.sort.is-on { background: var(--navy); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--coral-50); color: var(--coral-600); font-size: 13px; font-weight: 700; }
.chip .ic { width: 15px; }
.pill { background: var(--coral); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; perspective: 1400px; }
.grid-sm { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 30px; }
.pager-num, .pager-btn, .pager-gap { min-width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; }
.pager-num, .pager-btn { background: #fff; box-shadow: var(--clay); }
.pager-num.is-current { background: var(--coral); color: #fff; box-shadow: 0 4px 0 var(--coral-600); }
.empty { text-align: center; padding: 50px 20px; display: grid; justify-items: center; gap: 4px; }
.empty img { opacity: .5; margin-bottom: 10px; }
.err-code { font-family: var(--display); font-size: 110px; font-weight: 900; line-height: 1; color: var(--coral); text-shadow: 0 6px 0 var(--coral-600), 0 20px 30px rgba(244,100,90,.35); }

/* ---------------------------------------------------------------- product page */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: start; margin-top: 8px; }
.gallery { position: sticky; top: calc(var(--header-h) + 60px); display: grid; gap: 12px; }
.gallery-main { position: relative; border-radius: var(--r-xl); overflow: hidden; background: #fff; box-shadow: var(--clay-hover); aspect-ratio: 4 / 5; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.gallery-main.is-zoom img { transform: scale(1.8); }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 4px; }
.thumb { flex: none; width: 84px; border: 0; padding: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--clay); background: #fff; opacity: .7; transition: .2s; }
.thumb.is-on { opacity: 1; box-shadow: 0 0 0 3px var(--coral); }
.buybox { background: #fff; border-radius: var(--r-xl); box-shadow: var(--clay); padding: 26px; }
.pdp-brand { font-weight: 800; color: var(--coral-600); }
.buybox h1 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 4px; }
.pdp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: var(--cream); font-size: 12.5px; font-weight: 700; }
.tag-green { background: #E6F8F0; color: var(--ok); } .tag-warn { background: var(--sun-50); color: var(--warn); }
.pdp-short { color: var(--ink-2); }
.option { border: 0; padding: 0; margin: 0 0 18px; }
.option legend { display: flex; align-items: center; gap: 8px; width: 100%; font-weight: 800; margin-bottom: 8px; }
.option legend b { color: var(--coral-600); }
.option legend .link-btn { margin-inline-start: auto; font-size: 13px; }
.color-pick, .size-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.cp input, .sp input { position: absolute; opacity: 0; pointer-events: none; }
.cp span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; cursor: pointer; }
.cp i { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.75), transparent 42%), var(--sw); box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.12), inset 0 -6px 10px rgba(0,0,0,.14), 0 6px 10px -6px rgba(0,0,0,.35); transition: transform .25s var(--ease), box-shadow .2s; }
.cp em { font-style: normal; }
.cp input:checked + span i { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--coral), 0 10px 16px -8px rgba(0,0,0,.4); transform: scale(1.06); }
.cp input:focus-visible + span i { outline: 3px solid var(--sun); outline-offset: 4px; }
.sp span { display: inline-flex; min-width: 56px; justify-content: center; padding: 9px 14px; border-radius: 16px; background: var(--cream); font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 0 3px 0 #EADFCF; transition: .2s var(--ease); }
.sp input:checked + span { background: var(--navy); color: #fff; box-shadow: 0 3px 0 var(--navy-700); transform: translateY(-2px); }
.sp input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.sp.is-out span, .cp.is-out span { opacity: .4; text-decoration: line-through; }
.price-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-radius: var(--r); background: var(--cream); margin-bottom: 14px; }
.price-box del { display: block; color: var(--muted); }
.price-box strong { font-size: 28px; font-weight: 900; font-family: var(--display); }
.stock-note { font-size: 13px; font-weight: 800; color: var(--ok); }
.stock-note.low { color: var(--warn); } .stock-note.out { color: var(--err); }
.buy-row { display: flex; gap: 10px; align-items: stretch; }
.qty { display: inline-flex; align-items: center; background: var(--cream); border-radius: 16px; padding: 4px; box-shadow: inset 0 2px 4px rgba(35,48,92,.08); }
.qty button { width: 40px; height: 44px; border: 0; background: #fff; border-radius: 12px; display: grid; place-items: center; box-shadow: 0 3px 0 #EADFCF; }
.qty button:disabled { opacity: .4; }
.qty input, .qty output { width: 44px; text-align: center; border: 0; background: none; font-weight: 900; font-size: 17px; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm button { width: 34px; height: 34px; }
.notify { margin-top: 16px; padding: 14px; background: var(--sun-50); border-radius: var(--r); }
.notify p { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.nl-row { display: flex; gap: 8px; }
.nl-row input { flex: 1; min-width: 0; border: 2px solid var(--line); border-radius: 14px; padding: 0 14px; height: 46px; background: #fff; }
.pdp-perks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.pdp-perks li { display: flex; gap: 10px; align-items: center; }
.pdp-perks .ic { color: var(--coral); }
.pdp-tabs { margin-top: 42px; background: #fff; border-radius: var(--r-xl); box-shadow: var(--clay); padding: 8px 26px 26px; }
.tabs-head { display: flex; gap: 6px; border-bottom: 2px dotted var(--line); overflow-x: auto; }
.tabs-head button { border: 0; background: none; padding: 14px 16px; font-weight: 800; color: var(--muted); border-bottom: 4px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs-head button[aria-selected="true"] { color: var(--navy); border-color: var(--coral); }
.tab-panel { padding-top: 18px; }
.prose { max-width: 78ch; }
.prose ul { padding-inline-start: 22px; }
.care { display: flex; gap: 8px; align-items: flex-start; background: var(--cream); padding: 12px; border-radius: var(--r-sm); }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; background: var(--cream); border-radius: 14px; }
.specs dt { color: var(--muted); } .specs dd { margin: 0; font-weight: 800; }
.reviews { display: grid; grid-template-columns: 260px 1fr; gap: 28px; }
.review-summary { display: grid; gap: 6px; align-content: start; justify-items: center; background: var(--cream); padding: 20px; border-radius: var(--r); }
.big-score { font-family: var(--display); font-size: 52px; line-height: 1; font-weight: 900; }
.stars { --r: 0; width: 110px; height: 20px; background: linear-gradient(90deg, var(--sun) calc(var(--r) / 5 * 100%), #E6DDCF 0); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 20'%3E%3Cg fill='black'%3E%3Cpath id='s' d='m10 1 2.6 5.5 6 .8-4.3 4.2 1 6L10 14.6 4.7 17.5l1-6L1.4 7.3l6-.8z'/%3E%3Cuse href='%23s' x='22'/%3E%3Cuse href='%23s' x='44'/%3E%3Cuse href='%23s' x='66'/%3E%3Cuse href='%23s' x='88'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 20'%3E%3Cg fill='black'%3E%3Cpath id='s' d='m10 1 2.6 5.5 6 .8-4.3 4.2 1 6L10 14.6 4.7 17.5l1-6L1.4 7.3l6-.8z'/%3E%3Cuse href='%23s' x='22'/%3E%3Cuse href='%23s' x='44'/%3E%3Cuse href='%23s' x='66'/%3E%3Cuse href='%23s' x='88'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
[dir="rtl"] .stars { transform: scaleX(-1); }
.stars.sm { width: 80px; height: 15px; }
.bar-row { display: grid; grid-template-columns: 16px 1fr 36px; gap: 8px; align-items: center; width: 100%; font-size: 13px; }
.bar-row i { height: 8px; border-radius: 4px; background: #E6DDCF; overflow: hidden; display: block; }
.bar-row b { display: block; height: 100%; background: var(--sun); border-radius: 4px; }
.review { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.review header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.review time { margin-inline-start: auto; color: var(--muted); font-size: 12.5px; }
.reply { background: var(--cream); padding: 10px 14px; border-radius: 14px; font-size: 14px; }
.review-form { display: grid; gap: 10px; background: var(--cream); padding: 16px; border-radius: var(--r); margin-bottom: 12px; }
.review-form textarea { border: 2px solid var(--line); border-radius: 14px; padding: 10px; resize: vertical; background: #fff; }
.review-form .btn { justify-self: start; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { cursor: pointer; color: #D9CFBF; }
.star-input label .ic { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--sun); }
.star-input input:focus-visible + label { outline: 3px solid var(--navy); border-radius: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px; text-align: start; border-bottom: 1px solid var(--line); }
.table th { background: var(--cream); font-weight: 800; }

/* ---------------------------------------------------------------- cart / checkout */
.page-title { display: flex; gap: 10px; align-items: center; }
.panel { background: #fff; border-radius: var(--r-lg); box-shadow: var(--clay); padding: 22px; margin-bottom: 18px; }
.panel h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; }
.cart-layout, .checkout { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; }
.sticky { position: sticky; top: calc(var(--header-h) + 60px); }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line.is-problem { background: #FFF4F2; border-radius: 16px; padding-inline: 10px; }
.cart-img img { border-radius: 16px; background: var(--cream); object-fit: cover; }
.cart-name { font-weight: 800; display: block; }
.cart-price del { color: var(--muted); font-size: 13px; margin-inline-end: 6px; }
.cart-total { font-size: 16px; white-space: nowrap; }
.sum { margin: 14px 0; display: grid; gap: 8px; }
.sum div { display: flex; justify-content: space-between; gap: 10px; }
.sum dt { color: var(--ink-2); } .sum dd { margin: 0; font-weight: 800; }
.sum .total { border-top: 2px dotted var(--line); padding-top: 10px; font-size: 18px; }
.sum .total dd { font-size: 22px; font-family: var(--display); font-weight: 900; color: var(--coral-600); }
.coupon { margin-bottom: 8px; }
.coupon-on { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #E6F8F0; color: var(--ok); border-radius: 14px; font-weight: 700; }
.coupon-on .link-btn { margin-inline-start: auto; }
.alert { padding: 12px 16px; border-radius: 16px; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.alert-warn { background: var(--sun-50); color: #7A5310; } .alert-info { background: var(--navy-50); } .alert-error { background: #FDECEC; color: var(--err); }
.steps-bar { list-style: none; padding: 0; margin: 0 0 22px; display: flex; gap: 10px; counter-reset: s; }
.steps-bar li { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: var(--clay); font-weight: 800; color: var(--muted); font-size: 14px; }
.steps-bar li.on { background: var(--coral); color: #fff; box-shadow: 0 4px 0 var(--coral-600); }
.steps-bar li.done { color: var(--ok); }
.address-pick, .ship-list, .pay-list { display: grid; gap: 10px; }
.pick { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 2px solid var(--line); border-radius: 18px; cursor: pointer; transition: .2s; }
.pick:has(input:checked) { border-color: var(--coral); background: var(--coral-50); }
.pick input { accent-color: var(--coral); width: 20px; height: 20px; margin-top: 3px; flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid label, label.mt { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.form-grid input, .form-grid select, .form-grid textarea, label.mt textarea, .pay-again select { border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; background: #fff; font-weight: 500; min-height: 46px; width: 100%; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--sun); outline: 0; }
.form-grid .check, label.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.form-grid .check input { width: 20px; min-height: 0; accent-color: var(--coral); }
.form-grid .btn { align-self: end; }
.mini-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mini-lines li { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.mini-lines img { border-radius: 10px; background: var(--cream); object-fit: cover; }
.mini-lines small { display: block; }
.result-card { max-width: 560px; margin: 20px auto; background: #fff; border-radius: var(--r-xl); box-shadow: var(--clay-hover); padding: 36px 28px; text-align: center; display: grid; justify-items: center; gap: 6px; }
.result-icon { width: 96px; height: 96px; border-radius: 34px; display: grid; place-items: center; color: #fff; margin-bottom: 10px; background: var(--ok); box-shadow: 0 8px 0 #157548, 0 24px 30px -12px var(--ok); animation: bump .7s var(--ease); }
.result-icon .ic { width: 52px; height: 52px; stroke-width: 3; }
.is-fail .result-icon { background: var(--err); box-shadow: 0 8px 0 #A53333, 0 24px 30px -12px var(--err); }
.big-amount { font-family: var(--display); font-size: 34px; font-weight: 900; }
.pay-again { justify-content: space-between; }

/* ---------------------------------------------------------------- auth / account */
.auth-wrap { min-height: 70vh; display: grid; place-items: center; padding: 30px 16px; background: radial-gradient(circle at 20% 20%, var(--sun-50), transparent 40%), radial-gradient(circle at 80% 70%, var(--coral-50), transparent 45%); }
.auth-card { width: min(100%, 420px); background: #fff; border-radius: var(--r-xl); box-shadow: var(--clay-hover); padding: 32px 26px; text-align: center; }
.auth-card.wide { width: min(100%, 640px); margin: 0 auto; text-align: start; }
.auth-mark { margin: -76px auto 10px; width: 92px; filter: drop-shadow(0 16px 20px rgba(244,100,90,.4)); animation: float 5s ease-in-out infinite; }
.auth-card form { display: grid; gap: 12px; margin-top: 12px; }
.big-input { height: 60px; border: 2px solid var(--line); border-radius: 18px; text-align: center; font-size: 22px; font-weight: 800; letter-spacing: .08em; background: var(--cream); }
.big-input:focus { border-color: var(--sun); outline: 0; background: #fff; }
.code-input { letter-spacing: .6em; font-size: 28px; }
.dev-code { background: var(--sun-50); border-radius: 14px; padding: 8px; font-size: 13px; }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; margin: 14px 0 6px; border-radius: 18px; background: var(--cream); box-shadow: inset 0 3px 6px rgba(35,48,92,.08); }
.auth-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 14px; padding: 10px 8px; background: none; color: var(--muted); font-weight: 800; transition: background .2s, color .2s, box-shadow .2s; }
.auth-switch button .ic { width: 18px; height: 18px; }
.auth-switch button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 4px 0 var(--line), 0 10px 16px -10px rgba(35,48,92,.35); }
.auth-switch button:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.account { display: grid; grid-template-columns: 270px 1fr; gap: 22px; align-items: start; }
.account-nav { position: sticky; top: calc(var(--header-h) + 60px); }
.account-hi { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.account-hi small { display: block; color: var(--muted); }
.avatar { width: 48px; height: 48px; border-radius: 18px; display: grid; place-items: center; background: var(--sun); color: var(--navy); font-weight: 900; font-size: 20px; box-shadow: inset 0 -4px 0 var(--sun-600); flex: none; }
.account-nav nav { display: grid; gap: 4px; }
.account-nav nav a, .account-nav nav button { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; font-weight: 700; border: 0; background: none; width: 100%; text-align: start; color: var(--ink); }
.account-nav nav a.is-on { background: var(--coral-50); color: var(--coral-600); }
.account-nav nav a:hover, .account-nav nav button:hover { background: var(--cream); }
.hello { padding: 26px; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { display: grid; justify-items: center; gap: 2px; text-align: center; margin: 0; }
.stat .ic { width: 30px; height: 30px; color: var(--coral); }
.stat strong { font-family: var(--display); font-size: 28px; font-weight: 900; }
.kid-row { display: flex; flex-wrap: wrap; gap: 10px; }
.kid-chip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 20px; background: var(--cream); }
.kid-chip.is-girl .avatar { background: var(--pink); box-shadow: inset 0 -4px 0 #E07FA8; } .kid-chip.is-boy .avatar { background: var(--sky); box-shadow: inset 0 -4px 0 #4FA6D8; }
.kid-chip small { display: block; color: var(--muted); }
.order-rows, .order-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.order-rows a, .order-cards a { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: var(--cream); }
.order-cards a { grid-template-columns: 64px 1fr auto auto auto; }
.order-cards img { border-radius: 12px; object-fit: cover; }
.order-cards small { display: block; }
.status { display: inline-flex; padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.s-amber { background: var(--sun-50); color: #8A5A06; } .s-blue { background: #E3F1FC; color: #1F6FB2; } .s-purple { background: #EFE8FF; color: #6A45C2; }
.s-teal { background: #DFF6F3; color: #0E7C6F; } .s-green { background: #E2F6EC; color: var(--ok); } .s-gray { background: #EEF0F4; color: #5B6275; } .s-red { background: #FDECEC; color: var(--err); }
.track-line { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(72px, 1fr)); overflow-x: auto; padding-bottom: 4px; text-align: center; font-size: 13px; font-weight: 700; }
.track-line li { position: relative; display: grid; justify-items: center; gap: 6px; color: var(--muted); }
.track-line li::before { content: ""; position: absolute; top: 18px; inset-inline-start: 50%; width: 100%; height: 4px; background: var(--line); z-index: 0; }
.track-line li:last-child::before { display: none; }
.track-line i { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--line); color: #fff; }
.track-line li.done { color: var(--ok); } .track-line li.done i { background: var(--ok); } .track-line li.done::before { background: var(--ok); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.timeline li { padding-inline-start: 16px; border-inline-start: 3px solid var(--sun); }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.addr { padding: 16px; border-radius: 18px; background: var(--cream); border: 2px solid transparent; }
.addr.is-default { border-color: var(--sun); }
.page-article { max-width: 860px; margin: 0 auto; }

/* ---------------------------------------------------------------- footer & mobile nav */
.site-footer { position: relative; margin-top: 80px; background: var(--navy); color: #D9DEF0; padding: 60px 0 calc(90px + env(safe-area-inset-bottom)); }
.footer-wave { position: absolute; inset-inline: 0; top: -38px; height: 40px; background: radial-gradient(circle at 20px -6px, transparent 26px, var(--navy) 27px) 0 0 / 40px 40px repeat-x; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.site-footer a { display: flex; align-items: center; gap: 6px; padding: 4px 0; color: #D9DEF0; }
.site-footer a:hover { color: var(--sun); }
.footer-brand p { color: #AEB6D3; margin-top: 14px; }
.newsletter { margin-top: 16px; display: grid; gap: 8px; }
.newsletter label { font-weight: 700; color: #fff; }
.newsletter input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; }
.trust { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--sun); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 18px; font-size: 13px; color: #8E97BA; text-align: center; }
.bottom-nav { display: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .age-grid { grid-template-columns: repeat(3, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  body { font-size: 14.5px; }
  .header-row { gap: 8px; flex-wrap: wrap; height: auto; padding: 10px 0; }
  .brand-mark { width: 40px; height: 40px; } .brand-fa { font-size: 22px; } .brand-en { font-size: 9px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .search input { height: 46px; }
  .header-actions { margin-inline-start: auto; }
  .mega { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-stage { height: 300px; order: -1; }
  .stage-item { width: 130px; } .si2 { width: 120px; } .si3 { width: 110px; }
  .stage-mark { width: 100px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .age-grid { grid-template-columns: repeat(5, 150px); overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
  .age-tile { scroll-snap-align: start; }
  .promos { grid-template-columns: 1fr; }
  .listing { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 85; max-height: none; border-radius: 0; transform: translateX(-100%); transition: transform .3s var(--ease); top: 0; }
  [dir="rtl"] .filters { transform: translateX(100%); }
  .filters.is-open { transform: none; }
  .sorts { width: 100%; margin: 0; order: 3; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card-title { font-size: 13.5px; }
  .card-price strong { font-size: 15px; }
  .rail { grid-auto-columns: 46%; }
  .pdp { grid-template-columns: 1fr; gap: 18px; }
  .gallery { position: static; }
  .buybox { padding: 18px; }
  .buy-row { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); background: #fff; padding: 10px; margin: 0 -10px; border-radius: 20px; box-shadow: var(--clay-hover); z-index: 5; }
  .reviews { grid-template-columns: 1fr; }
  .pdp-tabs { padding: 4px 16px 18px; }
  .cart-layout, .checkout, .account { grid-template-columns: 1fr; }
  .sticky, .account-nav { position: static; }
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line .qty, .cart-total { grid-column: 2; justify-self: start; }
  .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; }
  .stat-tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .order-cards a { grid-template-columns: 56px 1fr auto; } .order-cards a > strong, .order-cards a > .ic { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .bottom-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-radius: 22px; box-shadow: var(--clay-hover); padding: 6px; }
  .bottom-nav a, .bottom-nav button { position: relative; display: grid; justify-items: center; gap: 0; padding: 6px 0; border: 0; background: none; font-size: 11px; font-weight: 700; color: var(--muted); border-radius: 16px; }
  .bottom-nav .is-active { color: var(--coral-600); background: var(--coral-50); }
  .bottom-nav .dot { position: absolute; top: 6px; inset-inline-end: 30%; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
  .toast { top: auto; bottom: 96px; }
}
@media (max-width: 420px) { .stat-tiles .stat strong { font-size: 22px; } .hero-stats strong { font-size: 18px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- install (PWA) prompt */
.install-card { position: fixed; z-index: 85; inset-inline: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: 440px; margin-inline: auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; background: #fff; border-radius: 22px; box-shadow: 0 6px 0 var(--line), 0 24px 40px -18px rgba(35,48,92,.45); translate: 0 140%; transition: translate .5s var(--ease); }
.install-card.is-in { translate: 0 0; }
.install-card img { border-radius: 14px; flex: none; }
.install-card div { flex: 1; min-width: 0; }
.install-card strong { display: block; color: var(--navy); }
.install-card small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
@media (max-width: 760px) { .install-card { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* ================================================================ motion & header 2.0 */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* --- animated logo: the two footprints take turns stepping, a light sweeps the tile */
.logo-mark { display: block; overflow: visible; }
.stage-mark, .auth-mark { height: auto; }
.auth-mark { display: block; }
.logo-mark .lm-step { transform-box: fill-box; transform-origin: 50% 90%; animation: lm-walk 4.8s cubic-bezier(.3,.7,.3,1) infinite; }
.logo-mark .lm-b { animation-delay: .42s; }
.logo-mark .lm-shine { animation: lm-shine 4.8s ease-in-out infinite 1.2s; }
@keyframes lm-walk {
  0%, 34%, 100% { transform: none; }
  7% { transform: translateY(-16px) rotate(-9deg) scale(1.04); }
  14% { transform: translateY(0) rotate(0) scale(1.08, .9); }
  19% { transform: scale(.97, 1.04); }
  24% { transform: none; }
}
@keyframes lm-shine { 0%, 55% { transform: translateX(0); } 85%, 100% { transform: translateX(420px); } }
.brand-mark { animation: lm-pop .9s var(--ease) both; }
@keyframes lm-pop { from { transform: scale(.3) rotate(-30deg); opacity: 0; } }
.brand:hover .brand-mark .lm-step { animation-duration: 1.2s; }
.brand-fa b, .brand-fa i { display: inline-block; animation: word-rise .7s var(--ease) both .15s; }
.brand-fa i { animation-delay: .3s; }
@keyframes word-rise { from { transform: translateY(14px) scale(.8); opacity: 0; } }
.brand-en { direction: ltr; unicode-bidi: isolate; }
.brand-en span { display: inline-block; animation: letter-wave 1s var(--ease) both; animation-delay: calc(.45s + var(--k) * .06s); }
.brand:hover .brand-en span { animation: letter-hop .6s var(--ease); animation-delay: calc(var(--k) * .05s); }
@keyframes letter-wave { from { transform: translateY(8px); opacity: 0; } }
@keyframes letter-hop { 40% { transform: translateY(-5px); color: var(--coral); } }
.stage-mark .lm-step { animation-duration: 3.6s; }

/* --- header decoration (soft drifting colour blobs, visible on mobile) */
.hdr-deco { display: none; }
.menu-btn .burger { display: grid; gap: 4px; width: 20px; }
.menu-btn .burger i { display: block; height: 2.5px; border-radius: 2px; background: currentColor; transition: width .35s var(--ease), transform .35s var(--ease); }
.menu-btn .burger i:nth-child(2) { width: 70%; } .menu-btn .burger i:nth-child(3) { width: 45%; }
.menu-btn:hover .burger i, .menu-btn:focus-visible .burger i { width: 100%; }

/* search: gradient ring that spins while focused + typewriter placeholder (JS) */
.search input { background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from var(--ang), var(--coral), var(--sun), var(--sky), var(--mint), var(--coral)) border-box; border: 2px solid rgba(35,48,92,.06); }
.search input:focus { border-color: transparent; animation: ring-spin 3s linear infinite; }
@keyframes ring-spin { to { --ang: 360deg; } }

/* top progress bar while the next page loads */
.nav-progress { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 120; pointer-events: none; background: linear-gradient(90deg, var(--sun), var(--coral), var(--lilac), var(--sky)); background-size: 200% 100%; transform-origin: right; transform: scaleX(0); opacity: 0; }
body.is-leaving .nav-progress { opacity: 1; animation: nav-load 6s cubic-bezier(.1,.7,.2,1) forwards, nav-hue 1.2s linear infinite; }
@keyframes nav-load { from { transform: scaleX(.05); } to { transform: scaleX(.92); } }
@keyframes nav-hue { to { background-position: -200% 0; } }

/* category "stories" rail (mobile) */
.m-cats { display: none; }

/* scroll reveal: only applied when JS adds .rv, so content never hides without JS */
.rv { opacity: 0; transform: translateY(26px) scale(.97); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .8s var(--ease); transition-delay: calc(var(--rv, 0) * 70ms); }
.rv.is-in { opacity: 1; transform: none; }
.section-head h2 { position: relative; }
.section-head h2::after { content: ""; display: block; height: 6px; width: 0; margin-top: 6px; border-radius: 6px; background: radial-gradient(circle at 3px 3px, var(--coral) 2.4px, transparent 2.6px) 0 0 / 12px 6px repeat-x; transition: width 1s cubic-bezier(.2,.7,.2,1) .25s; }
.section-head.center h2::after { margin-inline: auto; }
.section-head.is-in h2::after, .section-head:not(.rv) h2::after { width: 64px; }

/* primary buttons: light sweep on hover */
.btn-primary, .btn-sun { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after, .btn-sun::after { content: ""; position: absolute; inset: -2px auto -2px -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-18deg) translateX(0); transition: none; z-index: -1; pointer-events: none; }
.btn-primary:hover::after, .btn-sun:hover::after { transform: skewX(-18deg) translateX(420%); transition: transform .75s ease; }

/* wishlist heart burst */
.card-wish.pop .ic, .icon-btn.wish.pop .ic { animation: heart-pop .55s var(--ease); }
.card-wish.pop::after, .icon-btn.wish.pop::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--coral); animation: heart-ring .55s ease-out forwards; pointer-events: none; }
.icon-btn.wish { position: relative; }
@keyframes heart-pop { 30% { transform: scale(1.45) rotate(-12deg); } 60% { transform: scale(.85); } }
@keyframes heart-ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* product photo flying into the cart */
.fly-img { position: fixed; z-index: 130; border-radius: 18px; object-fit: cover; pointer-events: none; box-shadow: 0 18px 30px -12px rgba(35,48,92,.45); }

/* card polish */
.card-media img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img { transform: scale(1.06); }
.badge { animation: badge-in .6s var(--ease) both .2s; }
@keyframes badge-in { from { transform: scale(0) rotate(-20deg); } }
.badge-sale { animation: badge-in .6s var(--ease) both .2s, badge-wobble 3.6s ease-in-out infinite 1.2s; }
@keyframes badge-wobble { 0%, 86%, 100% { rotate: 0deg; } 90% { rotate: -8deg; } 95% { rotate: 6deg; } }

/* bottom nav: icon hop on the active tab */
.bottom-nav .is-active .ic { animation: tab-hop .6s var(--ease); }
.bottom-nav a:active .ic, .bottom-nav button:active .ic { transform: scale(.82); transition: transform .1s; }
@keyframes tab-hop { 40% { transform: translateY(-6px) scale(1.12); } }
.bn-pill { display: none; }

/* smooth cross-page transition where the browser supports it */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.bottom-nav { view-transition-name: bottom-nav; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .38s cubic-bezier(.2,.7,.2,1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 900px) {
  .site-header { background: transparent; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
  .site-header.is-tucked { transform: translateY(calc(-1 * var(--tuck, 0px))); }
  .hdr-deco { display: block; position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: 0 0 30px 30px; background: linear-gradient(180deg, rgba(255,240,226,.92), rgba(255,249,240,.9)); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 18px 34px -26px rgba(35,48,92,.55); }
  .hdr-deco i { position: absolute; width: 140px; height: 140px; border-radius: 50%; filter: blur(34px); opacity: .55; animation: deco-drift 14s ease-in-out infinite alternate; }
  .hdr-deco i:nth-child(1) { background: var(--coral); top: -70px; inset-inline-start: -30px; opacity: .35; }
  .hdr-deco i:nth-child(2) { background: var(--sun); top: -60px; inset-inline-end: -20px; animation-delay: -5s; }
  .hdr-deco i:nth-child(3) { background: var(--sky); bottom: -90px; inset-inline-start: 40%; opacity: .35; animation-delay: -9s; }
  @keyframes deco-drift { to { translate: 50px 26px; scale: 1.25; } }
  .header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px 8px; padding: 10px 0 14px; }
  .menu-btn { grid-column: 1; grid-row: 1; justify-self: start; width: 46px; height: 46px; border-radius: 16px; background: rgba(255,255,255,.85); box-shadow: var(--clay); }
  .brand { grid-column: 2; grid-row: 1; gap: 8px; }
  .header-actions { grid-column: 3; grid-row: 1; justify-self: end; margin: 0; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .search input { height: 48px; border-radius: 999px; box-shadow: 0 10px 22px -16px rgba(35,48,92,.5); }
  .brand-mark { width: 42px; height: 42px; }
  .brand-fa { font-size: 23px; }
  .cart-btn { width: 46px; height: 46px; border-radius: 16px; }

  .m-cats { display: block; margin: 12px 0 2px; }
  .m-cats-rail { display: flex; gap: 12px; overflow-x: auto; padding: 6px 16px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .m-cats-rail::-webkit-scrollbar { display: none; }
  .m-cat { flex: none; display: grid; justify-items: center; gap: 6px; width: 70px; scroll-snap-align: start; color: var(--navy); font-size: 12px; font-weight: 800; text-align: center; animation: story-in .6s var(--ease) both; animation-delay: calc(.2s + var(--k) * 60ms); }
  .m-ring { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; padding: 3px; isolation: isolate; }
  .m-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1; background: conic-gradient(from var(--ang), var(--c), var(--sun), var(--c)); animation: ring-spin 4s linear infinite; }
  .m-ic { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #fff; border: 3px solid var(--cream); color: var(--c); }
  .m-ic .ic { width: 26px; height: 26px; transition: transform .4s var(--ease); }
  .m-cat:active .m-ic .ic { transform: scale(.8) rotate(-10deg); }
  .m-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  @keyframes story-in { from { opacity: 0; transform: translateY(12px) scale(.7); } }

  .bottom-nav .is-active { background: none; }
  .bn-pill { display: block; position: absolute; top: 6px; bottom: 6px; width: calc((100% - 12px) / 4); inset-inline-start: 6px; border-radius: 16px; background: var(--coral-50); transition: transform .45s var(--ease); z-index: -1; }
  .bottom-nav { isolation: isolate; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  .logo-mark .lm-step, .logo-mark .lm-shine, .hdr-deco i, .m-ring::before { animation: none; }
  @view-transition { navigation: none; }
}

/* ================================================================ shopper features */
/* free-shipping progress */
.free-ship { display: grid; gap: 8px; padding: 12px 14px; margin-bottom: 14px; border-radius: 16px; background: var(--sun-50); color: var(--navy); font-size: 13px; font-weight: 700; }
.free-ship .fs-text { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.free-ship .fs-text .ic { color: var(--coral); }
.free-ship .unit { font-size: .85em; font-weight: 600; }
.fs-bar { position: relative; height: 8px; border-radius: 8px; background: rgba(35,48,92,.08); overflow: hidden; }
.fs-bar i { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--sun), var(--coral)); background-size: 200% 100%; animation: fs-grow 1s cubic-bezier(.2,.7,.2,1) both, nav-hue 2.4s linear infinite; }
@keyframes fs-grow { from { width: 0; } }
.free-ship.is-done { background: #E5F7EF; }
.free-ship.is-done .fs-bar i { background: linear-gradient(90deg, var(--mint), #2FB383); }
.drawer-foot .free-ship { margin-bottom: 10px; }

/* sale countdown */
.sale-timer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding: 10px 14px; margin-bottom: 12px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, var(--coral), #FF8A65 60%, var(--sun)); background-size: 200% 100%; animation: nav-hue 6s linear infinite; box-shadow: 0 10px 22px -14px var(--coral); }
.st-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13.5px; }
.st-cells { display: inline-flex; align-items: baseline; gap: 4px; direction: rtl; }
.st-cells b { min-width: 34px; padding: 4px 6px; border-radius: 10px; background: rgba(255,255,255,.22); text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; }
.st-cells small { font-size: 11px; opacity: .9; margin-inline-end: 4px; }
.st-cells b.tick { animation: cd-tick .45s var(--ease); }
@keyframes cd-tick { from { transform: translateY(-6px) scale(1.15); opacity: .4; } }

/* recent searches */
.recent-head { display: flex; align-items: center; justify-content: space-between; }
.recent-head h4 { margin: 4px 6px; }
.recent-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; }
.recent-chips .chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--navy-50); color: var(--navy); font-weight: 700; font-size: 13px; }
.recent-chips .chip .ic { width: 14px; height: 14px; color: var(--muted); }
.recent-chips .chip:hover { background: var(--coral-50); color: var(--coral-600); }

/* back to top with a reading-progress ring */
.to-top { position: fixed; z-index: 55; inset-inline-start: 18px; bottom: 22px; width: 50px; height: 50px; border: 0; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: var(--clay-hover); display: grid; place-items: center; animation: tt-in .45s var(--ease); }
.to-top[hidden] { display: none; }
.to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.to-top circle { fill: none; stroke-width: 3.5; }
.tt-track { stroke: var(--navy-50); }
.tt-bar { stroke: var(--coral); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0)); transition: stroke-dashoffset .15s linear; }
.tt-ic { rotate: 180deg; transition: translate .3s var(--ease); }
.to-top:hover .tt-ic { translate: 0 -3px; }
@keyframes tt-in { from { transform: scale(.3) translateY(20px); opacity: 0; } }
@media (max-width: 900px) { .to-top { bottom: calc(92px + env(safe-area-inset-bottom)); width: 44px; height: 44px; inset-inline-start: auto; inset-inline-end: 14px; } }

/* confetti */
.confetti { position: fixed; inset: 0; z-index: 140; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; left: var(--x); width: 9px; height: 14px; border-radius: 2px; animation: confetti-fall var(--t) cubic-bezier(.25,.6,.45,1) var(--d) forwards; opacity: 0; }
@keyframes confetti-fall { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: .9; transform: translate(var(--dx), 105vh) rotate(var(--r)); } }
.result-card.is-ok .result-icon { animation: lm-pop .8s var(--ease) both .2s; }

/* install-the-app block */
.install-app { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 18px 0; border-radius: 22px; color: #fff; background: linear-gradient(125deg, var(--navy), #3B4A86 60%, var(--coral)); background-size: 180% 100%; animation: nav-hue 9s linear infinite alternate; box-shadow: 0 16px 30px -20px rgba(35,48,92,.7); position: relative; overflow: hidden; }
.install-app[hidden] { display: none; }
.install-app::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(255,200,61,.45), transparent 70%); inset-inline-end: -40px; top: -60px; pointer-events: none; }
.install-app .ia-icon { flex: none; animation: float 5s ease-in-out infinite; }
.install-app .ia-mark { width: 60px; height: 60px; filter: drop-shadow(0 8px 12px rgba(0,0,0,.25)); }
.install-app .ia-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.install-app strong { font-size: 15px; }
.install-app small { opacity: .85; font-size: 12.5px; line-height: 1.7; }
.install-app .btn { flex: none; position: relative; z-index: 1; }
.install-app.is-compact { padding: 12px; gap: 10px; border-radius: 18px; margin: 14px 0 4px; }
.install-app.is-compact .ia-mark { width: 44px; height: 44px; }
.drawer .install-app { margin: 18px 0 6px; }
.bottom-nav .bn-login { color: var(--coral-600); }
.bottom-nav .bn-login span { font-weight: 800; white-space: nowrap; font-size: 10.5px; }

/* ================================================================ hero 2: orbit composition + compact mobile */
.hero .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.hero .eyebrow .ic { width: 16px; height: 16px; color: var(--accent); }
.hero .h1 { font-size: clamp(34px, 5.4vw, 66px); line-height: 1.2; font-weight: 900; color: var(--navy); margin: 0 0 10px; }
.hero-stage.is-orbit .stage-disc { display: none; }
.orbit { position: absolute; inset: 0; display: grid; place-items: center; }
.orbit-ring { position: absolute; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--accent) 35%, transparent); animation: orbit-spin 60s linear infinite; }
.orbit-ring.r1 { width: 78%; aspect-ratio: 1; }
.orbit-ring.r2 { width: 52%; aspect-ratio: 1; border-style: solid; border-color: rgba(255,255,255,.9); background: radial-gradient(circle at 35% 30%, #fff, color-mix(in srgb, var(--accent) 14%, #fff) 70%); box-shadow: 0 40px 60px -30px color-mix(in srgb, var(--accent) 60%, transparent), inset 0 -14px 30px color-mix(in srgb, var(--accent) 18%, transparent); animation: none; }
.orbit-mark { position: relative; width: 34%; height: auto; z-index: 2; filter: drop-shadow(0 22px 26px rgba(244,100,90,.45)); animation: float 6s ease-in-out infinite; }
.orbit-mark .lm-step { animation-duration: 3.4s; }
.orbit-dot { --r: 39%; position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; animation: orbit-spin 36s linear infinite; animation-delay: calc(var(--k) * -36s / var(--n)); }
.orbit-dot > span { position: absolute; top: calc(50% - var(--r)); translate: 0 -50%; width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; background: #fff; color: var(--accent-ink); box-shadow: var(--clay-hover); animation: orbit-spin 36s linear infinite reverse; animation-delay: inherit; }
.orbit-dot:nth-child(3n+1) > span { color: var(--coral); } .orbit-dot:nth-child(3n+2) > span { color: #2D9BDB; } .orbit-dot:nth-child(3n) > span { color: #E9AE16; }
.orbit-dot .ic { width: 28px; height: 28px; }
@keyframes orbit-spin { to { rotate: 360deg; } }
.hero-stage.is-orbit .stage-chip.c1 { inset-inline-end: 0; bottom: 14%; }
.hero-stage.is-orbit .stage-chip.c2 { inset-inline-start: 2%; top: 10%; }
.hero-stats .hs-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 4px; border-radius: 12px; background: var(--coral-50); color: var(--coral-600); }
.hero-stats .hs-ic .ic { width: 18px; height: 18px; }
.hero-stats { margin-top: 0; margin-bottom: 8px; }
.section-head h2 .sh-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-inline-end: 8px; border-radius: 12px; background: var(--coral-50); color: var(--coral-600); vertical-align: -6px; }
.section-head h2 .sh-ic .ic { width: 18px; height: 18px; }
.promo .promo-img { width: 120px; height: 120px; object-fit: cover; border-radius: 22px; opacity: 1; }

@media (max-width: 900px) {
  .hero { padding: 14px 0 10px; }
  .hero-grid { gap: 6px; }
  .hero-stage { height: 250px; order: -1; margin-inline: -4px; }
  .hero-stage.has-items { height: 250px; }
  .hero-stage.has-banner { height: auto; aspect-ratio: 16 / 10; }
  .hero-stage.has-banner .stage-banner { inset: 0; width: 100%; height: 100%; rotate: 0deg; border-radius: 26px; box-shadow: 0 24px 40px -24px rgba(35,48,92,.5), 0 0 0 5px #fff; }
  .hero-stage.has-banner .stage-chip { display: none; }
  .orbit-dot { --r: 41%; }
  .orbit-dot > span { width: 42px; height: 42px; border-radius: 14px; }
  .orbit-dot .ic { width: 20px; height: 20px; }
  .orbit-ring.r1 { width: 86%; } .orbit-ring.r2 { width: 56%; }
  .orbit-mark { width: 30%; }
  .stage-chip { font-size: 11.5px; padding: 6px 10px; }
  .hero-stage.is-orbit .stage-chip.c1 { bottom: 4%; inset-inline-end: 2%; } .hero-stage.is-orbit .stage-chip.c2 { top: 2%; inset-inline-start: 2%; }
  .hero-slides { min-height: 0; text-align: center; }
  .hero-slide { align-items: center; }
  .hero .eyebrow { font-size: 12px; }
  .hero h1, .hero .h1 { font-size: clamp(27px, 7.4vw, 36px); margin-bottom: 6px; }
  .hero-slide p { font-size: 14.5px; margin: 0 auto 4px; }
  .hero-cta { justify-content: center; gap: 8px; }
  .hero-cta .btn-lg { padding-inline: 18px; min-height: 48px; font-size: 15px; }
  .hero-dots { justify-content: center; margin-top: 14px; }
  .hero-stats { display: flex; overflow-x: auto; gap: 10px; padding: 4px 2px 10px; scrollbar-width: none; }
  .hero-stats::-webkit-scrollbar { display: none; }
  .hero-stats > div { flex: 0 0 auto; min-width: 132px; padding: 10px 12px; }
  .hero-stats strong { font-size: 17px; }
  .orb.o3, .blob.b3 { display: none; }
}
.hero-stage.is-orbit .stage-chip { width: max-content; }
.hero-stage.is-orbit .stage-chip.c1 { inset-inline-start: auto; top: auto; }
.hero-stage.is-orbit .stage-chip.c2 { inset-inline-end: auto; bottom: auto; }

/* customer invoices */
.invoice-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.invoice-list > li { padding: 14px; border-radius: 18px; background: var(--cream); display: grid; gap: 6px; }
.il-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.il-head strong { margin-inline-start: auto; }
.il-pays { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.il-pays li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.il-pays b { margin-inline-start: auto; }
.il-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
