/* ==========================================================================
   Kite & Kin — concept site by SiteSync Solutions
   Design tokens (contrast checked against WCAG 2.2 AA):
     ink #2b2140 on cream #fff7ec ............ 14.18:1
     ink on coral #ff6f61 .................... 5.52:1 (buttons, badges)
     ink on sunshine #ffd166 ................. 10.45:1
     muted #5c5270 on cream .................. 6.83:1
     coral-deep #a83226 on cream ............. 6.28:1 (small accent text)
     leaf #1f6b46 on cream ................... 6.08:1 (in stock)
   Coral and sunshine are never used for small text on cream (2.57:1 / 1.36:1).
   ========================================================================== */

@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --cream: #fff7ec;
  --surface: #ffffff;
  --ink: #2b2140;
  --muted: #5c5270;
  --coral: #ff6f61;
  --coral-soft: #ffe3dd;
  --coral-deep: #a83226;
  --sun: #ffd166;
  --sun-soft: #fff0c7;
  --sage-soft: #d9efe0;
  --sky-soft: #dceefa;
  --leaf: #1f6b46;
  --line: #eadfce;
  --line-strong: #cdbfa9;

  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --shadow: 0 1px 0 rgba(43,33,64,.04), 0 8px 24px -12px rgba(43,33,64,.22);
  --shadow-lg: 0 24px 60px -20px rgba(43,33,64,.35);

  --font-display: "Fredoka", "Baloo 2", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--coral); }
a:hover { text-decoration-color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.price, .num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius-pill); text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(48px, 8vw, 88px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-deep); margin-bottom: .6rem; }

/* ---------- Concept banner ---------- */
.concept-bar { background: var(--ink); color: #fff; font-size: .85rem; line-height: 1.4; }
.concept-bar .wrap { padding-block: 8px; display: flex; gap: 8px; align-items: center; justify-content: center; text-align: center; }
.concept-bar a { color: #fff; text-decoration-color: var(--sun); font-weight: 700; }
.cb-short { display: none; }
@media (max-width: 719px) { .cb-long { display: none; } .cb-short { display: inline; } }
.concept-bar__tag { flex: none; background: var(--sun); color: var(--ink); border-radius: var(--radius-pill); padding: 1px 9px; font-weight: 700; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,247,236,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: -.01em; min-height: 44px; margin-right: auto; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .amp { color: var(--coral-deep); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: var(--radius-pill);
  text-decoration: none; font-weight: 700; background: none; border: 0;
}
.nav a:hover, .icon-btn:hover { background: var(--sun-soft); }
.nav a[aria-current="page"] { background: var(--sun); }
.icon-btn svg { width: 22px; height: 22px; }
.basket-btn { position: relative; background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.basket-btn:hover { background: var(--sun); }
.count-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--coral); color: var(--ink); font-size: .8rem; font-weight: 700; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.count-badge[data-count="0"] { background: var(--line); }
.basket-btn.bump { animation: bump .5s ease; }
@keyframes bump { 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }
.header-wish { position: relative; }
.header-wish .dot { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px var(--cream); }
.header-wish .dot[hidden] { display: none; }
@media (max-width: 560px) {
  .brand { font-size: 1.15rem; gap: 6px; }
  .brand svg { width: 28px; height: 28px; }
  .nav { gap: 0; }
  .nav a { padding: 0 10px; }
  .nav .basket-btn { padding: 0 10px; margin-left: 4px; }
  .nav .hide-sm { display: none; }
  .basket-label { display: none; }
}

/* ---------- Buttons & form controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-pill);
  font-weight: 700; text-decoration: none; border: 2px solid var(--ink);
  background: var(--coral); color: var(--ink); transition: transform .15s ease, box-shadow .15s ease, background .15s;
  box-shadow: 0 3px 0 var(--ink);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn--sun { background: var(--sun); }
.btn--ghost { background: var(--surface); }
.btn--plain { background: transparent; box-shadow: none; border-color: transparent; text-decoration: underline; text-decoration-color: var(--coral); padding: 0 12px; }
.btn--plain:hover { transform: none; box-shadow: none; background: var(--sun-soft); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--line); border-color: var(--line-strong); color: var(--muted); box-shadow: none; cursor: not-allowed; transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 700; font-size: .95rem; }
.field .hint { font-size: .875rem; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 10px 16px; border-radius: var(--radius-sm);
  border: 2px solid var(--line-strong); background: var(--surface);
}
textarea.input { min-height: 96px; resize: vertical; }
.input:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.input[aria-invalid="true"] { border-color: var(--coral-deep); }
.error-text { color: var(--coral-deep); font-weight: 700; font-size: .9rem; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 10px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }

/* ---------- Pills, badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-pill); font-size: .78rem; font-weight: 700; background: var(--sun); color: var(--ink); line-height: 1.5; }
.badge--coral { background: var(--coral); }
.badge--sage { background: var(--sage-soft); }
.badge--line { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); }

.chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: var(--radius-pill); border: 2px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: .95rem; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-checked="true"], .chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.swatch { --c: #ccc; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--surface); background: var(--c); box-shadow: 0 0 0 2px var(--line-strong); padding: 0; position: relative; }
.swatch:hover { box-shadow: 0 0 0 2px var(--ink); }
.swatch[aria-pressed="true"], .swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--ink); }
.swatch[aria-pressed="true"]::after, .swatch[aria-checked="true"]::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 0 0 1px rgba(43,33,64,.25); }
.swatch-mini { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px rgba(43,33,64,.25); display: inline-block; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 8vw, 96px) clamp(48px, 8vw, 96px); }
.hero .wrap { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { max-width: 16ch; }
.hero h1 .scribble { position: relative; white-space: nowrap; }
.hero h1 .scribble::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .32em; background: var(--sun); border-radius: var(--radius-pill); z-index: -1; }
.hero p.lede { font-size: 1.2rem; max-width: 46ch; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: min(520px, 88vw); margin-top: 24px; width: 100%; justify-self: center; }
.hero-art .blob { position: absolute; border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%; }
.hero-art .blob--1 { inset: 6% 4% 8% 6%; background: var(--sun); }
.hero-art .blob--2 { width: 46%; height: 46%; right: -2%; bottom: 0; background: var(--coral-soft); border-radius: 50%; }
.hero-art .garment-card { position: absolute; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8%; }
.hero-art .g1 { width: 58%; left: 6%; top: 14%; transform: rotate(-6deg); }
.hero-art .g2 { width: 46%; right: 4%; top: 6%; transform: rotate(7deg); }
.hero-art .g3 { width: 44%; right: 10%; bottom: 6%; transform: rotate(-3deg); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; padding: 0; list-style: none; font-weight: 700; font-size: .95rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 20px; height: 20px; color: var(--coral-deep); }

/* The drifting kite (signature moment) */
.sky-kite { position: absolute; top: -8%; left: 0; width: 12%; height: auto; pointer-events: none; z-index: 3; animation: drift 14s ease-in-out infinite alternate; will-change: transform; }
.hero > .sky-kite { width: 56px; top: 16px; left: 8%; }
.sky-kite .tail { transform-origin: 50% 0; animation: tail 2.4s ease-in-out infinite alternate; }
@keyframes drift {
  0% { transform: translate(0%, 0%) rotate(-10deg); }
  25% { transform: translate(180%, -28%) rotate(6deg); }
  50% { transform: translate(370%, 8%) rotate(-4deg); }
  75% { transform: translate(540%, -32%) rotate(9deg); }
  100% { transform: translate(690%, -8%) rotate(-6deg); }
}
@keyframes tail { from { transform: rotate(-8deg); } to { transform: rotate(10deg); } }
.flying-kite { position: fixed; z-index: 90; width: 44px; height: 44px; pointer-events: none; left: 0; top: 0; }

/* ---------- Age tiles ---------- */
.age-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .age-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.age-tile { --bg: var(--sun-soft); position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 132px; padding: 18px; border-radius: var(--radius); background: var(--bg); text-decoration: none; overflow: hidden; transition: transform .2s ease; border: 2px solid transparent; }
.age-tile:hover { transform: translateY(-3px) rotate(-.6deg); border-color: var(--ink); }
.age-tile strong { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1; }
.age-tile span { font-weight: 700; color: var(--muted); font-size: .9rem; }
.age-tile .shape { position: absolute; right: -16px; bottom: -16px; width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,.6); }
.age-tile:nth-child(4n+2) { --bg: var(--coral-soft); }
.age-tile:nth-child(4n+3) { --bg: var(--sage-soft); }
.age-tile:nth-child(4n+4) { --bg: var(--sky-soft); }
.age-tile:nth-child(4n+2) .shape { border-radius: 30% 70% 60% 40%; }
.age-tile:nth-child(4n+3) .shape { border-radius: 16px; transform: rotate(18deg); }

/* ---------- Product grid & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1080px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 1 / 1; background: var(--tint, var(--sun-soft)); display: grid; place-items: center; }
.card__media .garment { width: 72%; }
.card__badges { position: absolute; bottom: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.card__media .garment { margin-bottom: 14px; }
.card__body { padding: 12px 14px 16px; display: grid; gap: 4px; flex: 1; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.25; margin: 0; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card__title a:focus-visible { outline: none; }
.card:has(.card__title a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.card__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.card__swatches { display: flex; gap: 4px; }
.card__ages { font-size: .82rem; color: var(--muted); }
.card__stock { font-size: .82rem; font-weight: 700; color: var(--coral-deep); }
.heart-btn { position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(43,33,64,.12); }
.heart-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; transition: transform .2s ease; }
.heart-btn[aria-pressed="true"] svg { fill: var(--coral); stroke: var(--ink); }
.heart-btn:hover svg { transform: scale(1.12); }
.heart-btn.pop svg { animation: pop .4s ease; }
@keyframes pop { 40% { transform: scale(1.35); } }

.garment { transition: transform .3s ease; }
.garment .g-main { fill: var(--g, #ff6f61); transition: fill .35s ease; }
.garment .g-shade { fill: var(--gs, #d65b4f); transition: fill .35s ease; }
.garment .g-light { fill: var(--gl, #ffb1a8); transition: fill .35s ease; }
.garment .g-line { fill: none; stroke: #2b2140; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.garment .g-ink { fill: #2b2140; }
.garment .g-white { fill: #fff; }
.garment .g-pattern { fill: var(--gp, rgba(255,255,255,.55)); }

/* ---------- Shop layout & filters ---------- */
.page-head { padding-block: clamp(28px, 5vw, 48px) 8px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .25em; }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.breadcrumbs a { color: var(--ink); }
.shop-layout { display: grid; gap: 28px; grid-template-columns: 1fr; padding-bottom: 72px; }
@media (min-width: 960px) { .shop-layout { grid-template-columns: 270px 1fr; } }
.filters { display: none; }
@media (min-width: 960px) { .filters { display: block; position: sticky; top: calc(var(--header-h) + 16px); align-self: start; max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; padding-right: 6px; } }
.filter-group { border: 0; padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.filter-group legend, .filter-group h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 10px; padding: 0; }
.filter-group .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-group .swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; justify-content: space-between; margin-bottom: 16px; }
.toolbar .result-count { font-weight: 700; margin: 0; }
.toolbar select { min-height: 44px; border-radius: var(--radius-pill); padding: 0 40px 0 16px; border: 2px solid var(--line-strong); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232b2140' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center; appearance: none; font-weight: 700; }
.filter-open-btn { display: inline-flex; }
@media (min-width: 960px) { .filter-open-btn { display: none; } }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.active-filters .chip { min-height: 38px; font-size: .88rem; padding: 0 12px; }
.active-filters .chip svg { width: 14px; height: 14px; }
.age-note { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; background: var(--sun-soft); border-radius: var(--radius-sm); padding: 8px 8px 8px 16px; margin-bottom: 16px; font-weight: 700; }
.age-note[hidden] { display: none; }
.empty-state { text-align: center; background: var(--surface); border-radius: var(--radius); padding: 48px 24px; box-shadow: var(--shadow); }
.empty-state svg { width: 96px; margin: 0 auto 16px; }

/* Slide-up sheet (mobile filters) & drawers */
.sheet, .drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.sheet.is-open, .drawer.is-open { display: block; }
.scrim { position: absolute; inset: 0; background: rgba(43,33,64,.45); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; display: flex; flex-direction: column; background: var(--cream); border-radius: var(--radius) var(--radius) 0 0; animation: slideUp .28s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow-lg); }
@keyframes slideUp { from { transform: translateY(100%); } }
.sheet__head, .drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.sheet__head h2, .drawer__head h2 { margin: 0; font-size: 1.35rem; }
.sheet__body { overflow: auto; padding: 18px 20px; flex: 1; overscroll-behavior: contain; }
.sheet__foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--cream); animation: slideIn .28s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow-lg); }
@keyframes slideIn { from { transform: translateX(100%); } }
.drawer__body { flex: 1; overflow: auto; padding: 16px 20px; overscroll-behavior: contain; }
.drawer__foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; }
body.no-scroll { overflow: hidden; }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 28px; grid-template-columns: 1fr; padding-bottom: 48px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; } }
.gallery { display: grid; gap: 12px; }
@media (min-width: 900px) { .gallery { position: sticky; top: calc(var(--header-h) + 16px); } }
.gallery__main { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--tint, var(--sun-soft)); display: grid; place-items: center; overflow: hidden; }
.gallery__main .garment { width: 74%; }
.gallery__main .view-detail .garment { width: 170%; max-width: none; transform: translate(12%, 16%); }
.gallery__main .view-back .garment, .gallery__thumbs .view-back .garment { transform: scaleX(-1); }
.view-back .g-light, .view-back .g-ink, .view-back .g-white { opacity: 0; }
.gallery__thumbs .view-detail .garment { width: 170%; max-width: none; transform: translate(12%, 16%); }
.gallery__thumbs { display: flex; gap: 10px; }
.gallery__thumbs button { width: 76px; height: 76px; border-radius: var(--radius-sm); border: 2px solid transparent; background: var(--tint, var(--sun-soft)); display: grid; place-items: center; padding: 6px; overflow: hidden; }
.gallery__thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.gallery__thumbs .garment { width: 100%; }
.gallery__caption { font-size: .85rem; color: var(--muted); }
.pdp__info h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-bottom: .2em; }
.pdp__price { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: 4px 0 14px; }
.pdp__block { margin-block: 22px; }
.pdp__block .label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.size-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60px; border-radius: var(--radius-sm); border: 2px solid var(--line-strong); background: var(--surface); padding: 6px 4px; font-weight: 700; line-height: 1.2; text-align: center; }
.size-opt small { font-weight: 700; font-size: .74rem; color: var(--muted); margin-top: 2px; }
.size-opt.is-low small { color: var(--coral-deep); }
.size-opt.is-out { background: repeating-linear-gradient(135deg, var(--surface) 0 8px, #f6efe4 8px 16px); color: var(--muted); border-style: dashed; }
.size-opt:hover { border-color: var(--ink); }
.size-opt[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.size-opt[aria-checked="true"] small { color: #fff; }
.stock-msg { margin-top: 10px; font-weight: 700; min-height: 1.6em; }
.stock-msg.is-ok { color: var(--leaf); }
.stock-msg.is-low { color: var(--coral-deep); }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: var(--radius-pill); background: var(--surface); }
.qty button { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; font-size: 1.3rem; font-weight: 700; display: grid; place-items: center; }
.qty button:disabled { color: var(--line-strong); cursor: not-allowed; }
.qty output, .qty input { min-width: 32px; width: 40px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; border: 0; background: none; padding: 0; }
.buy-row { display: flex; gap: 10px; align-items: center; }
.buy-row .btn-add { flex: 1; min-width: 0; padding: 0 16px; }
.heart-lg { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ink); background: var(--surface); display: grid; place-items: center; flex: none; }
.heart-lg svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2; }
.heart-lg[aria-pressed="true"] svg { fill: var(--coral); }
.notify-box { background: var(--surface); border-radius: var(--radius); padding: 18px; border: 2px dashed var(--line-strong); margin-top: 14px; }
.notify-box h3 { margin-bottom: 4px; }
.notify-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.notify-form .input { flex: 1 1 200px; }
.concept-note { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-top: 10px; }
.concept-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.promise-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.promise-list li { display: flex; gap: 12px; align-items: flex-start; }
.promise-list svg { width: 24px; height: 24px; flex: none; color: var(--coral-deep); }
details.acc { border-top: 1px solid var(--line); }
details.acc:last-of-type { border-bottom: 1px solid var(--line); }
details.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 56px; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-size: 1.6rem; line-height: 1; transition: transform .2s; }
details.acc[open] summary::after { transform: rotate(45deg); }
details.acc > div { padding-bottom: 16px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

/* Sticky mobile add-to-basket bar */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--surface); border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; box-shadow: 0 -8px 24px -12px rgba(43,33,64,.25); transform: translateY(110%); transition: transform .25s ease; }
.sticky-buy.is-visible { transform: none; }
.sticky-buy__info { flex: 1; min-width: 0; line-height: 1.25; }
.sticky-buy__info strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy__info span { font-size: .85rem; color: var(--muted); }
@media (min-width: 900px) { .sticky-buy { display: none; } }
body.has-sticky-buy .site-footer { padding-bottom: 96px; }
@media (min-width: 900px) { body.has-sticky-buy .site-footer { padding-bottom: 0; } }

/* ---------- Modal ---------- */
dialog.modal { border: 0; padding: 0; border-radius: var(--radius); max-width: min(720px, calc(100% - 24px)); width: 100%; background: var(--cream); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: rgba(43,33,64,.5); }
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--cream); }
.modal__head h2 { margin: 0; font-size: 1.4rem; }
.modal__body { padding: 18px 22px 22px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
table.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
table.data th, table.data td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data thead th { background: var(--sun-soft); font-weight: 700; }
table.data tbody tr:last-child td { border-bottom: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

/* ---------- Basket ---------- */
.line-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; background: var(--surface); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.line__media { width: 84px; height: 84px; border-radius: var(--radius-sm); background: var(--tint, var(--sun-soft)); display: grid; place-items: center; }
.line__media .garment { width: 80%; }
.line__top { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.line__name { font-weight: 700; text-decoration: none; line-height: 1.3; }
.line__variant { font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.line__actions { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.line__links { display: flex; gap: 0; flex-wrap: wrap; }
.line__links button { background: none; border: 0; min-height: 44px; padding: 0 8px; font-weight: 700; font-size: .88rem; text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 3px; }
.line__warn { font-size: .85rem; font-weight: 700; color: var(--coral-deep); margin-top: 4px; }
.line .qty button { width: 40px; height: 40px; }
.line .qty { transform-origin: left; }
.free-bar { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.free-bar p { margin: 0 0 8px; font-weight: 700; }
.progress { height: 12px; border-radius: var(--radius-pill); background: var(--sun-soft); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.progress span { display: block; height: 100%; background: var(--coral); border-radius: inherit; transition: width .4s ease; }
.summary { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.summary dl { margin: 0; display: grid; gap: 8px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; }
.summary .total { border-top: 2px solid var(--ink); padding-top: 10px; font-size: 1.15rem; }
.summary .total dt { color: var(--ink); font-weight: 700; }
.promo-form { display: flex; gap: 8px; }
.promo-form .input { min-height: 44px; text-transform: uppercase; }
.basket-layout { display: grid; gap: 24px; grid-template-columns: 1fr; padding-bottom: 72px; }
@media (min-width: 900px) { .basket-layout { grid-template-columns: 1fr 360px; align-items: start; } .basket-layout aside { position: sticky; top: calc(var(--header-h) + 16px); } }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; gap: 24px; grid-template-columns: 1fr; padding-bottom: 72px; }
@media (min-width: 960px) { .checkout-layout { grid-template-columns: 1fr 380px; align-items: start; } .checkout-layout aside { position: sticky; top: calc(var(--header-h) + 16px); } }
.step { background: var(--surface); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); margin-bottom: 18px; border: 0; }
.step legend, .step h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 0; float: left; width: 100%; }
.step legend + * { clear: both; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--sun); display: inline-grid; place-items: center; font-size: 1rem; flex: none; }
.two-col { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .two-col { grid-template-columns: 1fr 1fr; } }
.radio-cards { display: grid; gap: 10px; }
.radio-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius-sm); border: 2px solid var(--line-strong); background: var(--surface); cursor: pointer; min-height: 64px; }
.radio-card:has(input:checked) { border-color: var(--ink); background: var(--sun-soft); }
.radio-card input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; margin: 0; }
.radio-card .rc-main { flex: 1; }
.radio-card .rc-main strong { display: block; }
.radio-card .rc-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.demo-pay { border: 2px dashed var(--ink); border-radius: var(--radius); background: repeating-linear-gradient(135deg, var(--sun-soft) 0 14px, #fff8de 14px 28px); padding: 20px; }
.demo-pay h3 { display: flex; gap: 10px; align-items: center; }
.address-found { background: var(--sage-soft); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 700; margin-bottom: 12px; }
.mini-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mini-lines li { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; }
.mini-lines .line__media { width: 56px; height: 56px; position: relative; }
.mini-lines .qty-dot { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.mini-lines .nm { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.mini-lines .vr { font-size: .82rem; color: var(--muted); }
.mini-lines .pr { font-weight: 700; font-variant-numeric: tabular-nums; }
.disclaimer-box { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 16px 18px; font-size: .92rem; }
.disclaimer-box a { color: #fff; text-decoration-color: var(--sun); font-weight: 700; }
.disclaimer-box strong { color: var(--sun); }

/* Confirmation */
.confirm-hero { text-align: center; padding-block: 40px 20px; }
.confirm-hero svg { width: 120px; margin: 0 auto 12px; }
.order-no { display: inline-block; font-family: var(--font-display); font-size: 1.5rem; background: var(--sun); padding: 4px 18px; border-radius: var(--radius-pill); font-variant-numeric: tabular-nums; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: t; }
.timeline li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; counter-increment: t; }
.timeline li::before { content: counter(t); width: 36px; height: 36px; border-radius: 50%; background: var(--coral-soft); display: grid; place-items: center; font-weight: 700; }

/* ---------- Generic content blocks ---------- */
.panel { background: var(--surface); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.feature-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature .icon { width: 56px; height: 56px; border-radius: 18px; background: var(--sun); display: grid; place-items: center; margin-bottom: 14px; }
.feature:nth-child(2) .icon { background: var(--coral-soft); border-radius: 50%; }
.feature:nth-child(3) .icon { background: var(--sage-soft); border-radius: 30% 70% 60% 40%; }
.feature .icon svg { width: 28px; height: 28px; }
.split { display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.band { background: var(--surface); }
.band--sun { background: var(--sun-soft); }
.band--coral { background: var(--coral-soft); }
.grow-art { position: relative; background: var(--sage-soft); border-radius: var(--radius); aspect-ratio: 5 / 4; display: grid; place-items: center; overflow: hidden; }
.grow-art .garment { width: 62%; }
.grow-art .callout { position: absolute; background: var(--surface); border-radius: var(--radius-pill); padding: 6px 14px; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow); }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3 3 7-7' stroke='%232b2140' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.promises { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .promises { grid-template-columns: repeat(4, 1fr); } }
.promise { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.promise svg { width: 28px; height: 28px; flex: none; color: var(--coral-deep); }
.promise strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.promise span { font-size: .92rem; color: var(--muted); }
.newsletter { display: grid; gap: 20px; align-items: center; background: var(--ink); color: #fff; border-radius: calc(var(--radius) * 1.4); padding: clamp(24px, 5vw, 48px); position: relative; overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 860px) { .newsletter { grid-template-columns: 1.2fr 1fr; } }
.newsletter h2 { color: #fff; }
.newsletter p { color: #e9e3f2; }
.newsletter .input { border-color: transparent; }
.newsletter .concept-note { color: #e9e3f2; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form .input { flex: 1 1 220px; }
.newsletter .deco { position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: var(--coral); opacity: .9; }
.newsletter > * { position: relative; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.callout-note { background: var(--sun-soft); border-radius: var(--radius-sm); padding: 14px 18px; border-left: 6px solid var(--sun); margin: 1.2em 0; }
.help-layout { display: grid; gap: 28px; grid-template-columns: 1fr; padding-bottom: 72px; }
@media (min-width: 900px) { .help-layout { grid-template-columns: 240px 1fr; } }
.help-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
@media (min-width: 900px) { .help-nav { flex-direction: column; position: sticky; top: calc(var(--header-h) + 16px); align-self: start; } }
.help-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); text-decoration: none; font-weight: 700; white-space: nowrap; background: var(--surface); }
.help-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.sample-review { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }

/* ---------- Toasts & notices ---------- */
.toast-region { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 95; display: grid; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
body.has-sticky-buy .toast-region { bottom: 96px; }
@media (min-width: 900px) { body.has-sticky-buy .toast-region { bottom: 20px; } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: var(--radius-sm); padding: 10px 10px 10px 16px; box-shadow: var(--shadow-lg); animation: toastIn .25s ease; font-weight: 700; }
.toast a { color: var(--sun); white-space: nowrap; }
.toast .toast__close { margin-left: auto; width: 40px; height: 40px; border: 0; background: none; color: #fff; border-radius: 50%; font-size: 1.3rem; flex: none; }
@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } }
.back-notice { background: var(--sage-soft); border-bottom: 1px solid #b9dcc5; }
.back-notice .wrap { display: flex; align-items: center; gap: 12px; padding-block: 10px; flex-wrap: wrap; }
.back-notice strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.back-notice .actions { margin-left: auto; display: flex; gap: 6px; }
.back-notice .kite-ico { width: 32px; flex: none; }
@media (max-width: 600px) { .back-notice .kite-ico { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 0; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; padding-block: 48px 28px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-grid .brand-col { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-grid .brand-col { grid-column: auto; } }
.footer-grid h2 { font-size: 1.05rem; margin-bottom: 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.footer-grid ul a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.footer-grid ul a:hover { text-decoration: underline; text-decoration-color: var(--coral); }
.footer-grid address { font-style: normal; color: var(--muted); font-size: .95rem; }
.footer-legal { border-top: 1px solid var(--line); padding-block: 18px 28px; font-size: .9rem; color: var(--muted); display: grid; gap: 6px; }
.footer-legal a { color: var(--ink); font-weight: 700; }
.footer-concept { background: var(--sun-soft); color: var(--ink); border-radius: var(--radius-sm); padding: 10px 14px; }

/* JS-rendered areas reserve space so the footer doesn't jump (CLS) */
.js-zone { min-height: 72vh; }

/* Utility */
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 44%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin-inline: -4px; }
@media (min-width: 760px) { .scroller { grid-auto-columns: minmax(200px, 23%); } }
.scroller > * { scroll-snap-align: start; }
[hidden] { display: none !important; }

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