/* ==========================================================================
   TINY TURNS — storefront styles
   Layout: editorial fashion storefront — full-bleed campaign blocks alternating
   with tight 4-up product grids on a warm cream ground; mobile-first, bottom tab bar.
   Single committed light look (cream paper), colours set explicitly.
   ========================================================================== */
:root {
  --cream: #FBF6EF;
  --paper: #F3EBE1;
  --paper-2: #EDE3D7;
  --ink: #231C1F;
  --ink-2: #5F5458;
  --ink-3: #8E8286;
  --line: #E6DACD;
  --white: #FFFDF9;
  --rasp: #C81E5B;
  --rasp-deep: #A3164A;
  --rasp-soft: #F8DCE5;
  --butter: #F6E7A6;
  --sun: #F8E48A;          /* echoes the hero dress */
  --sky: #CFE3F1;
  --sage: #D4DFCB;
  --peach: #F6D2BE;
  --ok: #2F7A4F;

  --f-display: 'Bricolage Grotesque', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Figtree', 'Helvetica Neue', Arial, system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1440px;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 64px;
  --tab-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--rasp); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: .92;
  text-wrap: balance;
  margin: 0;
}
.h-sec {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.spark { color: var(--rasp); display: inline-block; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--rasp);
  transform: translateY(101%); transition: transform .35s var(--ease);
  border-radius: inherit;
}
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: scale(.97); }
.btn--rasp { --bg: var(--rasp); --fg: var(--white); }
.btn--rasp::after { background: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { --fg: var(--white); box-shadow: inset 0 0 0 1.5px var(--rasp); }
.btn--light { --bg: var(--white); --fg: var(--ink); }
.btn--light:hover { --fg: var(--white); }
.btn--block { width: 100%; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 1.5px solid currentColor; padding-bottom: 3px;
  transition: color .2s, gap .25s var(--ease);
}
.link-arrow:hover { color: var(--rasp); gap: 12px; }

.icon-btn {
  width: 44px; height: 44px; border-radius: var(--r-pill);
  display: inline-grid; place-items: center; position: relative;
  transition: background-color .2s;
}
.icon-btn:hover { background: var(--paper); }
.icon-btn svg { width: 22px; height: 22px; }
.count {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--rasp); color: var(--white);
  font-size: 10px; font-weight: 700; line-height: 18px; text-align: center;
  font-variant-numeric: tabular-nums;
  transform: scale(1); transition: transform .3s var(--ease);
}
.count:empty, .count[data-n="0"] { display: none; }
.count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }

/* ---------- announcement + header ---------- */
.announce {
  background: var(--ink); color: var(--cream);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  text-align: center; padding: 9px 16px;
}
.announce .spark { color: var(--butter); margin-inline: 8px; }
@media (max-width: 480px) { .announce { font-size: 10.5px; letter-spacing: .04em; white-space: nowrap; padding-inline: 8px; } .announce .spark { margin-inline: 4px; } }

.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header__row {
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600;
  transition: background-color .2s, color .2s;
}
.nav a:hover { background: var(--paper); }
.nav a.is-active { background: var(--ink); color: var(--cream); }
.nav a.sale { color: var(--rasp); }
.nav a.sale.is-active { background: var(--rasp); color: var(--white); }

.logo {
  font-family: var(--f-display); font-weight: 800;
  font-size: 22px; letter-spacing: -0.02em; line-height: 1;
  display: inline-flex; align-items: center; gap: 6px;
}
.logo .spark { font-size: .72em; transition: transform .6s var(--ease); }
.logo:hover .spark { transform: rotate(180deg) scale(1.15); }

.tools { display: flex; justify-content: flex-end; gap: 2px; }
.menu-btn { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 56px; }
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .tools .hide-m { display: none; }
  .header__row { grid-template-columns: 44px 1fr 44px; }
  .logo { justify-self: center; font-size: 20px; }
}

/* ---------- mobile menu (sheet) ---------- */
.menu-list { display: grid; gap: 2px; padding-block: 8px 24px; }
.menu-list a {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 30px; letter-spacing: -0.03em;
  padding: 10px 4px; border-bottom: 1px solid var(--line);
}
.menu-list a.sale { color: var(--rasp); }
.menu-list a span { font-family: var(--f-body); font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- page shell + transitions ---------- */
main { min-height: 60vh; }
.page { animation: pageIn .5s var(--ease) both; }
.page.leaving { animation: pageOut .18s ease-in both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes pageOut { to { opacity: 0; transform: translateY(-6px); } }

.section { padding-block: clamp(56px, 8vw, 112px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, 3vw, 40px); flex-wrap: wrap; }
.sec-head p { margin: 10px 0 0; color: var(--ink-2); max-width: 46ch; }

/* reveal — only applied to elements that start below the fold */
.rv { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.rv-wait { opacity: 0; transform: translateY(28px); }

/* ---------- hero ---------- */
.hero { background: var(--sun); position: relative; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: stretch; min-height: clamp(520px, 52vw, 760px);
}
.hero__copy {
  align-self: center; padding-block: 56px; position: relative; z-index: 2;
  display: grid; gap: 24px; justify-items: start;
}
.hero__title { font-size: clamp(54px, 7.6vw, 118px); }
.hero__title em { font-style: normal; color: var(--rasp); display: block; }
.hero__sub { font-size: clamp(16px, 1.4vw, 19px); max-width: 32ch; margin: 0; color: var(--ink); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__ctas .btn--ghost { box-shadow: inset 0 0 0 1.5px var(--ink); }
/* campaign set: cut-out model on the yellow panel, sky disc behind, soft floor shadow */
.hero__media {
  position: relative; align-self: end; isolation: isolate;
  height: clamp(500px, 48vw, 720px); padding-top: 28px;
  display: flex; justify-content: center; align-items: flex-end;
}
.hero__media::before {
  content: ''; position: absolute; z-index: -2; left: 50%; bottom: 9%;
  width: min(92%, 600px); aspect-ratio: 1; border-radius: 50%;
  background: var(--sky); transform: translateX(-50%);
}
.hero__media::after {
  content: ''; position: absolute; z-index: -1; left: 50%; bottom: 10px;
  width: 44%; height: 28px; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(35 28 31 / .28), transparent);
  transform: translateX(-50%);
}
.hero__media img {
  position: relative; height: 100%; width: auto; max-width: 100%;
  object-fit: contain; object-position: 50% 100%; margin-bottom: 18px;
  filter: drop-shadow(0 18px 24px rgb(35 28 31 / .18));
  animation: rise .9s var(--ease) .1s both;
}
@keyframes rise { from { transform: translateY(24px); opacity: .001; } }
.hero__meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }

.sticker {
  position: absolute; z-index: 3; width: 128px; height: 128px;
  right: clamp(16px, 6vw, 96px); top: clamp(20px, 5vw, 64px);
  border-radius: 50%; background: var(--rasp); color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px -10px rgb(163 22 74 / .55);
}
.sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.sticker b { font-family: var(--f-display); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: .9; text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding-block: 36px 8px; gap: 18px; }
  .hero__media { height: clamp(420px, 118vw, 560px); padding-top: 12px; }
  .hero__media::before { width: min(96%, 440px); bottom: 12%; }
  .sticker { width: 88px; height: 88px; top: auto; bottom: 56px; right: auto; left: 12px; }
  .sticker b { font-size: 19px; }
}

/* marquee strip */
.ticker { background: var(--ink); color: var(--cream); overflow: hidden; white-space: nowrap; }
.ticker__track { display: inline-flex; gap: 40px; padding-block: 14px; animation: ticker 40s linear infinite; }
.ticker__track span { font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; display: inline-flex; gap: 40px; align-items: center; }
.ticker__track i { font-style: normal; color: var(--butter); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- shop by age ---------- */
.ages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.age-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 4 / 5; max-width: 100%; background: var(--paper);
  display: block; isolation: isolate;
}
.age-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.age-card:hover img { transform: scale(1.05); }
.age-card__label {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  background: var(--cream); border-radius: var(--r-md);
  padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: background-color .3s, color .3s;
}
.age-card:hover .age-card__label { background: var(--rasp); color: var(--white); }
.age-card__label strong { font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.03em; line-height: 1; display: block; }
.age-card__label small { font-size: 14px; font-weight: 500; opacity: .8; }
.age-card__go { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--cream); transition: transform .35s var(--ease), background-color .3s; }
.age-card:hover .age-card__go { transform: rotate(-45deg); background: var(--white); color: var(--rasp); }

@media (max-width: 760px) {
  .ages { grid-template-columns: repeat(3, minmax(72%, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .ages::-webkit-scrollbar { display: none; }
  .age-card { scroll-snap-align: start; }
}

/* ---------- product grid + cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(12px, 1.4vw, 20px); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 10px; } }

.card { position: relative; min-width: 0; }
.card__img { position: relative; border-radius: var(--r-md); overflow: hidden; isolation: isolate; }
.card__media {
  position: relative; display: block; aspect-ratio: 4 / 5; max-width: 100%;
  border-radius: var(--r-md); overflow: hidden; background: var(--paper);
}
.card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .5s var(--ease), transform .9s var(--ease);
}
.card__media .img-alt { opacity: 0; }
@media (hover: hover) {
  .card:hover .card__media .img-alt { opacity: 1; }
  .card:hover .card__media.has-alt .img-main { opacity: 0; }
  .card:hover .card__media:not(.has-alt) .img-main { transform: scale(1.08); }
}
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--cream); color: var(--ink);
  font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.badge--sale { background: var(--rasp); color: var(--white); }

.heart {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--cream) 85%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .2s var(--ease), background-color .2s;
}
.heart:hover { transform: scale(1.08); }
.heart svg { width: 19px; height: 19px; fill: transparent; stroke: var(--ink); stroke-width: 1.8; transition: fill .2s, stroke .2s; }
.heart.on svg { fill: var(--rasp); stroke: var(--rasp); }
.heart.pop svg { animation: heartPop .5s var(--ease); }
.heart.pop::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--rasp); animation: ring .5s ease-out forwards;
}
@keyframes heartPop { 0% { transform: scale(1); } 35% { transform: scale(1.4); } 60% { transform: scale(.9); } 100% { transform: scale(1); } }
@keyframes ring { from { opacity: 1; transform: scale(.6); } to { opacity: 0; transform: scale(1.4); } }

/* quick add — desktop: slide-up size bar; touch: + button */
.qa {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3;
  background: var(--cream); border-radius: 14px; padding: 10px;
  transform: translateY(calc(100% + 12px)); transition: transform .35s var(--ease);
}
.qa__label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; display: flex; justify-content: space-between; }
.qa__sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.qa__sizes button {
  min-width: 44px; height: 34px; padding: 0 8px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--white); font-size: 12px; font-weight: 600;
  transition: background-color .15s, color .15s, border-color .15s;
}
.qa__sizes button:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
@media (hover: hover) { .card:hover .qa, .card:focus-within .qa { transform: translateY(0); } }
.qa-plus {
  position: absolute; right: 8px; bottom: 8px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; background: var(--cream);
  display: none; place-items: center; box-shadow: 0 2px 10px rgb(35 28 31 / .12);
}
.qa-plus svg { width: 18px; height: 18px; }
@media (hover: none) { .qa { display: none; } .qa-plus { display: grid; } }

.card__body { padding-top: 12px; display: grid; gap: 4px; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card__name { font-weight: 600; font-size: 14.5px; line-height: 1.3; min-width: 0; }
.card__name a:hover { color: var(--rasp); }
.price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price s { color: var(--ink-3); font-weight: 500; margin-left: 6px; font-size: .9em; }
.price.is-sale { color: var(--rasp); }
.card__meta { font-size: 12.5px; color: var(--ink-3); }
.dots { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--c); box-shadow: inset 0 0 0 1px rgb(35 28 31 / .15);
  outline: 1.5px solid transparent; outline-offset: 2px; transition: outline-color .2s;
}
.dot.on { outline-color: var(--ink); }
@media (max-width: 700px) {
  .card__row { flex-direction: column; gap: 2px; }
  .card__name { font-size: 13.5px; }
}

/* ---------- mood (horizontal editorial) ---------- */
.moods {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-bottom: 4px;
}
.moods::-webkit-scrollbar { display: none; }
.mood {
  position: relative; scroll-snap-align: start; display: block;
  border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4.3; max-width: 100%;
  color: var(--white); isolation: isolate;
}
.mood img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); z-index: -2; }
.mood::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(20 14 16 / 0) 45%, rgb(20 14 16 / .62) 100%); }
.mood:hover img { transform: scale(1.06); }
.mood__txt { position: absolute; left: 20px; right: 20px; bottom: 20px; display: grid; gap: 6px; }
.mood__num { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.mood__name { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -0.035em; line-height: .92; }
.mood__line { font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mood__line span:last-child { width: 36px; height: 36px; border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; flex: none; transition: transform .35s var(--ease), background-color .3s; }
.mood:hover .mood__line span:last-child { background: var(--rasp); color: var(--white); transform: rotate(-45deg); }
@media (max-width: 700px) { .moods { grid-auto-columns: 78%; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); } }
.scroller-ctrls { display: flex; gap: 8px; }
.scroller-ctrls button { width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); display: grid; place-items: center; transition: background-color .2s, color .2s; }
.scroller-ctrls button:hover { background: var(--ink); color: var(--cream); }
@media (max-width: 700px) { .scroller-ctrls { display: none; } }

/* ---------- story ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.story__img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 6; max-width: 100%; position: relative; }
.story__img img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.story__tag {
  position: absolute; left: 16px; bottom: 16px; background: var(--butter); color: var(--ink);
  border-radius: var(--r-pill); padding: 8px 14px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.story__copy { display: grid; gap: 22px; justify-items: start; }
.story__copy .display { font-size: clamp(40px, 5.4vw, 80px); }
.story__copy p { margin: 0; font-size: clamp(16px, 1.3vw, 18px); color: var(--ink-2); max-width: 44ch; }
.story__facts { display: flex; gap: clamp(20px, 3vw, 40px); flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line); width: 100%; }
.story__facts div { display: grid; }
.story__facts b { font-family: var(--f-display); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.story__facts span { font-size: 13px; color: var(--ink-2); }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } .story__img { aspect-ratio: 4 / 4.2; } }

/* ---------- reviews ---------- */
.reviews-sec { background: var(--paper); }
.reviews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.review { background: var(--cream); border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stars { display: inline-flex; gap: 2px; color: var(--rasp); font-size: 14px; letter-spacing: 1px; }
.review q { font-size: 16px; line-height: 1.5; quotes: none; flex: 1; }
.review footer { display: grid; font-size: 13px; }
.review footer b { font-weight: 700; }
.review footer span { color: var(--ink-3); }
.verified { display: inline-flex; gap: 4px; align-items: center; color: var(--ok); font-size: 12px; font-weight: 600; }
@media (max-width: 1000px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .reviews { grid-template-columns: repeat(4, 82%); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .review { scroll-snap-align: start; }
}
.rating-sum { display: flex; align-items: center; gap: 12px; }
.rating-sum b { font-family: var(--f-display); font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.rating-sum small { display: block; font-size: 13px; color: var(--ink-2); }

/* ---------- ugc ---------- */
.ugc { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ugc a { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; display: block; }
.ugc img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ugc a::after {
  content: '@' attr(data-handle); position: absolute; left: 10px; bottom: 10px;
  background: var(--cream); color: var(--ink); font-size: 11px; font-weight: 700;
  padding: 5px 9px; border-radius: var(--r-pill); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease);
}
.ugc a:hover img { transform: scale(1.06); }
.ugc a:hover::after { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .ugc { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .ugc a { aspect-ratio: 1; border-radius: 12px; }
}

/* ---------- newsletter ---------- */
.club {
  background: var(--rasp); color: var(--white); border-radius: var(--r-lg);
  padding: clamp(36px, 6vw, 80px); position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: end;
}
.club .display { font-size: clamp(42px, 6vw, 92px); }
.club .display .spark { color: var(--butter); }
.club p { margin: 16px 0 0; font-size: 17px; max-width: 38ch; opacity: .92; }
.club form { display: grid; gap: 12px; }
.club__field { display: flex; gap: 8px; background: var(--white); border-radius: var(--r-pill); padding: 6px; }
.club__field input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 18px; font-size: 16px; color: var(--ink); outline: none; }
.club__field input::placeholder { color: var(--ink-3); }
.club__field .btn { min-height: 46px; padding: 0 22px; }
.club small { font-size: 12px; opacity: .85; }
.club__msg { font-weight: 600; min-height: 1.5em; }
.club__blob {
  position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%;
  border: 2px dashed rgb(255 253 249 / .35); pointer-events: none; animation: spin 40s linear infinite;
}
@media (max-width: 820px) { .club { grid-template-columns: 1fr; } }
@media (max-width: 460px) {
  .club__field { flex-direction: column; border-radius: var(--r-md); background: transparent; padding: 0; }
  .club__field input { background: var(--white); border-radius: var(--r-pill); min-height: 52px; }
  .club__field .btn { min-height: 52px; }
}

/* ---------- footer ---------- */
.footer { padding-block: 64px 32px; border-top: 1px solid var(--line); margin-top: clamp(56px, 8vw, 112px); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-2); }
.footer a:hover { color: var(--rasp); }
.footer__big { font-family: var(--f-display); font-weight: 800; font-size: clamp(56px, 13vw, 200px); letter-spacing: -0.05em; line-height: .8; margin-top: 56px; white-space: nowrap; overflow: hidden; }
.footer__big .spark { font-size: .5em; vertical-align: .6em; }
.footer__legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); margin-top: 24px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- PLP ---------- */
.plp-head { padding-block: clamp(28px, 4vw, 56px) 20px; display: grid; gap: 10px; }
.crumbs { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--rasp); }
.plp-head .display { font-size: clamp(40px, 6vw, 84px); }
.plp-head .display span { color: var(--ink-3); font-weight: 600; }
.plp-head p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.plp-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-top: 8px; }
.plp-cats::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 40px; padding: 0 16px; border-radius: var(--r-pill);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip.on { background: var(--ink); color: var(--cream); box-shadow: none; }
.chip .n { font-size: 11px; background: var(--rasp); color: var(--white); border-radius: var(--r-pill); padding: 1px 7px; }
.chip svg { width: 14px; height: 14px; }

.toolbar {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 20;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding-block: 10px; border-bottom: 1px solid var(--line); margin-bottom: 24px;
}
.toolbar__row { display: flex; gap: 8px; align-items: center; }
.toolbar__filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.toolbar__filters::-webkit-scrollbar { display: none; }
.toolbar__right { display: flex; align-items: center; gap: 12px; flex: none; }
.result-count { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sort { position: relative; }
.sort select {
  appearance: none; -webkit-appearance: none; height: 40px; border-radius: var(--r-pill);
  border: 0; box-shadow: inset 0 0 0 1px var(--line); background: var(--white);
  padding: 0 38px 0 16px; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.sort::after { content: ''; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.active-filters:empty { display: none; }
.pill-x { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: var(--rasp-soft); color: var(--rasp-deep); font-size: 12.5px; font-weight: 600; }
.pill-x:hover { background: var(--rasp); color: var(--white); }
.clear-all { font-size: 12.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 0 6px; }
@media (max-width: 700px) {
  .toolbar__right .result-count { display: none; }
  .sort select { width: 44px; padding: 0; color: transparent; }
  .sort::after { display: none; }
  .sort .sort-ic { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
}
@media (min-width: 701px) { .sort .sort-ic { display: none; } }

.empty { text-align: center; padding: 64px 16px; display: grid; gap: 16px; justify-items: center; }
.empty .display { font-size: 36px; }
.empty p { margin: 0; color: var(--ink-2); }

/* filter panel groups */
.fgroup { border-bottom: 1px solid var(--line); padding-block: 18px; }
.fgroup h5 { margin: 0 0 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; display: flex; justify-content: space-between; }
.fopts { display: flex; flex-wrap: wrap; gap: 8px; }
.fopt { height: 40px; min-width: 48px; padding: 0 14px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); background: var(--white); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: background-color .15s, color .15s, box-shadow .15s; }
.fopt:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.fopt.on { background: var(--ink); color: var(--cream); box-shadow: none; }
.fopt .sw { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(35 28 31 / .15); }
.fgroup.flash { animation: flash 1s var(--ease); }
@keyframes flash { 0%, 60% { background: var(--rasp-soft); } }

/* ---------- drawers / sheets ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 80; background: rgb(35 28 31 / .42);
  opacity: 0; transition: opacity .35s var(--ease); pointer-events: none;
}
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; z-index: 90; top: 0; right: 0; bottom: 0;
  width: min(440px, 100%); background: var(--cream);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .45s var(--ease);
  padding-top: env(safe-area-inset-top, 0px);
  box-shadow: -20px 0 60px -30px rgb(35 28 31 / .4);
  visibility: hidden;
}
.drawer.left { right: auto; left: 0; transform: translateX(-100%); }
.drawer.open { transform: none; visibility: visible; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
.drawer__head h3 small { font-family: var(--f-body); font-weight: 600; font-size: 13px; color: var(--ink-3); letter-spacing: 0; margin-left: 6px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 0 20px; overscroll-behavior: contain; }
.drawer__foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: grid; gap: 12px; background: var(--cream); }

@media (max-width: 700px) {
  .drawer.sheet {
    top: auto; left: 0; width: 100%; max-height: 88vh;
    border-radius: 24px 24px 0 0; transform: translateY(100%);
  }
  .drawer.sheet.open { transform: none; }
  .drawer.sheet .drawer__head::before { content: ''; position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; border-radius: 4px; background: var(--line); transform: translateX(-50%); }
  .drawer.sheet .drawer__head { position: relative; padding-top: 22px; }
}

/* cart */
.ship-bar { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ship-bar b { color: var(--rasp); }
.ship-bar__track { height: 6px; border-radius: 6px; background: var(--paper-2); margin-top: 10px; overflow: hidden; }
.ship-bar__fill { height: 100%; background: var(--rasp); border-radius: inherit; transition: width .6s var(--ease); }
.line { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); animation: lineIn .4s var(--ease); }
@keyframes lineIn { from { opacity: 0; transform: translateX(16px); } }
.line__img { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--paper); }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__top { display: flex; justify-content: space-between; gap: 10px; }
.line__name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.line__opts { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.line__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.stepper { display: inline-flex; align-items: center; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); background: var(--white); height: 36px; }
.stepper button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.stepper button:hover { background: var(--paper); }
.stepper span { min-width: 26px; text-align: center; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.stepper--lg { height: 52px; }
.stepper--lg button { width: 48px; height: 52px; }
.remove { font-size: 12px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.remove:hover { color: var(--rasp); }
.totals { display: flex; justify-content: space-between; font-size: 15px; }
.totals b { font-family: var(--f-display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pay-note { font-size: 12px; color: var(--ink-3); text-align: center; }
.cart-empty { text-align: center; padding: 56px 8px; display: grid; gap: 14px; justify-items: center; }
.cart-empty .display { font-size: 32px; }
.cart-empty p { margin: 0; color: var(--ink-2); }
.upsell h5 { margin: 20px 0 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.upsell__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-bottom: 20px; }
.upsell__row a { display: grid; gap: 6px; font-size: 12px; font-weight: 600; line-height: 1.3; }
.upsell__row img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; width: 100%; }

/* quick-add sheet (touch) */
.qs-product { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding-block: 16px; }
.qs-product img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; width: 100%; }

/* search */
.search { position: fixed; inset: 0; z-index: 95; background: var(--cream); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); opacity: 0; transform: translateY(-12px); transition: opacity .3s var(--ease), transform .3s var(--ease); visibility: hidden; }
.search.open { opacity: 1; transform: none; visibility: visible; }
.search__bar { display: flex; align-items: center; gap: 12px; height: 72px; border-bottom: 1px solid var(--line); }
.search__bar input { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 3vw, 36px); letter-spacing: -0.03em; outline: none; }
.search__bar input::placeholder { color: var(--ink-3); }
.search__body { flex: 1; overflow-y: auto; padding-block: 24px 120px; }
.search__trend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }

/* modal (size guide) */
.modal { position: fixed; z-index: 96; left: 50%; top: 50%; width: min(620px, calc(100% - 32px)); max-height: 86vh; overflow: auto; background: var(--cream); border-radius: var(--r-lg); padding: 24px; transform: translate(-50%, -46%); opacity: 0; transition: opacity .3s var(--ease), transform .35s var(--ease); visibility: hidden; }
.modal.open { transform: translate(-50%, -50%); opacity: 1; visibility: visible; }
.modal h3 { margin: 0; font-family: var(--f-display); font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.table-wrap { overflow-x: auto; margin-top: 16px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.size-table th { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.size-table tr.hl td { background: var(--rasp-soft); }
.tip { background: var(--butter); border-radius: var(--r-md); padding: 14px 16px; font-size: 13.5px; margin-top: 16px; }

/* toast */
.toast {
  position: fixed; z-index: 99; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--ink); color: var(--cream); border-radius: var(--r-pill);
  padding: 12px 14px 12px 20px; display: flex; gap: 14px; align-items: center;
  font-size: 14px; font-weight: 600; box-shadow: 0 16px 40px -16px rgb(35 28 31 / .5);
  transform: translate(-50%, calc(100% + 120px)); transition: transform .45s var(--ease), visibility .45s; visibility: hidden;
  max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast button { background: var(--cream); color: var(--ink); border-radius: var(--r-pill); padding: 6px 12px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; flex: none; }
@media (max-width: 960px) { .toast { bottom: calc(var(--tab-h) + 14px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- PDP ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding-top: 20px; align-items: start; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--paper); aspect-ratio: 4 / 5; max-width: 100%; cursor: zoom-in; }
.gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 5 / 5.4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery figure.zoomed { cursor: zoom-out; }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--cream); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--r-pill); }
.gallery__dots { display: none; }

.buy { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 20px); display: grid; gap: 22px; }
.buy__name { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 3.2vw, 46px); letter-spacing: -0.035em; line-height: .98; margin: 6px 0 0; text-wrap: balance; }
.buy__rating { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.buy__rating a { text-decoration: underline; text-underline-offset: 3px; }
.buy__price { display: flex; align-items: baseline; gap: 10px; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.buy__price small { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.buy__price .off { font-size: 12px; background: var(--rasp); color: var(--white); padding: 3px 8px; border-radius: var(--r-pill); font-weight: 700; align-self: center; }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 13.5px; }
.opt-head b { font-weight: 700; }
.opt-head .link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.opt-head .link:hover { color: var(--rasp); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 40px; height: 40px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(35 28 31 / .15); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .2s, transform .2s var(--ease); }
.swatch:hover { transform: scale(1.06); }
.swatch.on { outline-color: var(--ink); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.size { height: 50px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); background: var(--white); font-weight: 600; font-size: 14px; transition: background-color .15s, color .15s, box-shadow .15s; position: relative; }
.size:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.size.on { background: var(--ink); color: var(--cream); box-shadow: none; }
.size.low::after { content: 'Few left'; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); background: var(--butter); color: var(--ink); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px; border-radius: var(--r-pill); white-space: nowrap; }
.size-err { color: var(--rasp); font-size: 13px; font-weight: 600; margin-top: 8px; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.buy__actions { display: grid; grid-template-columns: auto minmax(0, 1fr) 52px; gap: 10px; }
.buy__actions .heart { position: static; width: 52px; height: 52px; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--white); }
.buy__actions .heart svg { width: 22px; height: 22px; }
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.perk { background: var(--paper); border-radius: 14px; padding: 12px; font-size: 12px; line-height: 1.35; display: grid; gap: 6px; }
.perk svg { width: 20px; height: 20px; color: var(--rasp); }
.pin { display: flex; gap: 8px; }
.pin input { flex: 1; min-width: 0; height: 44px; border-radius: var(--r-pill); border: 0; box-shadow: inset 0 0 0 1px var(--line); background: var(--white); padding: 0 16px; font-size: 14px; }
.pin button { font-size: 13px; font-weight: 700; padding: 0 16px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pin button:hover { background: var(--ink); color: var(--cream); }
.pin-msg { font-size: 13px; margin-top: 8px; min-height: 1.4em; }
.pin-msg.ok { color: var(--ok); font-weight: 600; }
.pin-msg.err { color: var(--rasp); font-weight: 600; }

.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-weight: 700; font-size: 15px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary i { width: 22px; height: 22px; border-radius: 50%; position: relative; flex: none; }
.acc summary i::before, .acc summary i::after { content: ''; position: absolute; left: 5px; right: 5px; top: 50%; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.acc summary i::after { transform: rotate(90deg); }
.acc details[open] summary i::after { transform: rotate(0); }
.acc__body { padding-bottom: 20px; color: var(--ink-2); font-size: 14.5px; }
.acc__body ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.acc__body p { margin: 0 0 10px; }
.care { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.care span { background: var(--paper); border-radius: var(--r-pill); padding: 6px 12px; font-size: 12.5px; color: var(--ink); font-weight: 600; }

.pdp-reviews { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(24px, 4vw, 64px); }
.bars { display: grid; gap: 6px; margin-top: 16px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.bars div { display: grid; grid-template-columns: 26px minmax(0, 1fr) 32px; gap: 8px; align-items: center; }
.bars i { height: 6px; border-radius: 6px; background: var(--paper-2); overflow: hidden; display: block; }
.bars i b { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.fit { margin-top: 20px; font-size: 13px; }
.fit__scale { position: relative; height: 6px; border-radius: 6px; background: var(--paper-2); margin: 10px 0 6px; }
.fit__scale span { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--rasp); transform: translate(-50%, -50%); }
.fit__labels { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 12px; }
.rv-list { display: grid; gap: 0; }
.rv-item { padding-block: 20px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.rv-item:first-child { padding-top: 0; }
.rv-item h6 { margin: 0; font-size: 15px; }
.rv-item p { margin: 0; color: var(--ink-2); }
.rv-item footer { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 12px; flex-wrap: wrap; }

.sticky-atc {
  position: fixed; left: 0; right: 0; z-index: 45;
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
  background: var(--cream); border-top: 1px solid var(--line);
  padding: 10px 16px; display: none; gap: 12px; align-items: center;
  transform: translateY(120%); transition: transform .35s var(--ease);
}
.sticky-atc.show { transform: none; }
.sticky-atc img { width: 44px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; flex: none; }
.sticky-atc div { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; }
.sticky-atc div b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc .btn { min-height: 46px; padding: 0 20px; }

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; padding-top: 0; }
  .gallery {
    display: grid; grid-auto-flow: column; grid-auto-columns: 100%; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0;
    margin-inline: calc(var(--gutter) * -1);
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure, .gallery figure:first-child { grid-column: auto; border-radius: 0; aspect-ratio: 4 / 5; scroll-snap-align: start; }
  .gallery__dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
  .gallery__dots span { width: 6px; height: 6px; border-radius: 6px; background: var(--line); transition: width .3s var(--ease), background-color .3s; }
  .gallery__dots span.on { width: 20px; background: var(--ink); }
  .buy { position: static; }
  .sticky-atc { display: flex; }
  .pdp-reviews { grid-template-columns: 1fr; }
}
@media (max-width: 960px) and (min-width: 901px) { .sticky-atc { display: none; } }

/* ---------- mobile tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: none;
}
.tabbar nav { display: grid; grid-template-columns: repeat(5, 1fr); height: var(--tab-h); }
.tab { display: grid; place-items: center; align-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--ink-3); position: relative; transition: color .2s; }
.tab svg { width: 22px; height: 22px; }
.tab.on { color: var(--ink); }
.tab.on::before { content: ''; position: absolute; top: 0; width: 24px; height: 3px; border-radius: 0 0 3px 3px; background: var(--rasp); }
.tab .count { top: 6px; right: calc(50% - 22px); }
@media (max-width: 960px) {
  .tabbar { display: block; }
  body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); }
  body.has-atc { padding-bottom: calc(var(--tab-h) + 70px + env(safe-area-inset-bottom, 0px)); }
}

/* wishlist page */
.wl-empty { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 56px 16px 24px; }
.wl-empty .big-heart { width: 72px; height: 72px; border-radius: 50%; background: var(--rasp-soft); display: grid; place-items: center; color: var(--rasp); }
.wl-empty .big-heart svg { width: 32px; height: 32px; }

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

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.co-form { display: grid; gap: 28px; }
.co-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.co-form legend { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 12px; padding: 0; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; min-width: 0; }
.field input, .field select {
  height: 50px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1px var(--line); background: var(--white);
  padding: 0 14px; font-size: 16px; font-weight: 500; width: 100%; min-width: 0; transition: box-shadow .2s;
}
.field input:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
.field.bad input, .field.bad select { box-shadow: inset 0 0 0 1.5px var(--rasp); background: var(--rasp-soft); }
.co-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; }
.co-note { margin: 0; font-size: 13px; color: var(--ink-2); }
.co-note a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 14px; }
.pay-opt input { accent-color: var(--rasp); margin-top: 3px; }
.pay-opt small { color: var(--ink-2); }
.co-summary { background: var(--paper); border-radius: var(--r-lg); padding: 20px 22px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 20px); }
.co-summary .line { border-bottom-color: var(--paper-2); }
.big-check { width: 72px; height: 72px; border-radius: 50%; background: var(--butter); color: var(--ink); display: grid; place-items: center; }
@media (max-width: 860px) {
  .checkout { grid-template-columns: 1fr; }
  .co-summary { position: static; order: -1; }
}
