/*!
 * page-product.css — page CSS for one-touch.html and folding.html (owner: product-pages agent).
 * Loads after brand.css + motion-v3.css + foldbike.css. Only page-specific layout lives here; brand.css/foldbike.css
 * primitives (.sb-*, .fold-*, .fb*) are used directly wherever they already cover the job.
 *
 * Compat shims that used to live here (.zh, .motion-swap-*) now live in brand.css and motion-v3.css.
 */

/* ---------- Reset-colours button ---------- */
.theme-reset {
  display: inline-flex; align-items: center; gap: 0; min-height: 44px; padding: 8px 12px;
  border: 1px solid currentColor; border-radius: 999px; background: transparent; color: var(--sb-ink);
  font: inherit; font-size: .875rem; font-weight: 700; line-height: 1.3; text-align: left; cursor: pointer;
}
.theme-reset[aria-disabled="true"] { border-style: dashed; color: var(--sb-muted); cursor: default; }
.theme-reset[aria-disabled="true"]:hover { background: transparent; color: var(--sb-muted); }
.theme-reset:hover { background: var(--sb-ink); border-color: var(--sb-ink); color: var(--sb-paper); }
.theme-reset:focus-visible { outline: 3px solid var(--sb-focus); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .theme-reset { transition: background-color .15s ease, color .15s ease; } }

/* ---------- Film viewer (ported minimal subset of film.css: native controls + poster, portrait box) ---------- */
.pp-film { max-width: min(100%, 420px); margin-inline: auto; }
.pp-film video {
  display: block; width: 100%; height: auto; aspect-ratio: 720 / 1280; background: var(--sb-ink);
}
.pp-film video:focus-visible { outline: 3px solid var(--sb-flare); outline-offset: 2px; }
.pp-film figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  padding: 10px 2px 0; font-size: .8125rem; letter-spacing: .02em; color: var(--sb-muted);
}

/* ---------- Hero (both pages) ---------- */
.pp-hero { position: relative; overflow: hidden; height: clamp(460px, 80vw, 620px); }
.pp-hero__media { position: absolute; inset: 0; overflow: hidden; }
.pp-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pp-hero__sticker { position: absolute; right: var(--sb-gutter); top: 56px; }
.pp-hero__tag { position: absolute; left: var(--sb-gutter); top: 40px; }
.pp-hero__head { position: absolute; left: 0; bottom: 28px; max-width: 92%; }
/* "BIG CHARACTER." is a long word: size the hero slab by viewport width so it never breaks mid-word (EN at 320-390px) */
.pp-hero__head .sb-slab--xl { --sb-slab-fs: clamp(1.75rem, 6.4vw, 5.75rem); }
@media (min-width: 700px) { .pp-hero { height: clamp(500px, 48vw, 660px); } }

/* ---------- Intro strip ---------- */
.pp-intro { padding-block: 28px; }
.pp-intro__kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Up-close details grid ---------- */
.pp-details__grid { position: relative; margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.pp-details__grid .sb-figure { height: 220px; background: var(--sb-brick); }
.pp-details__note { margin-top: 14px; max-width: 40rem; }
@media (min-width: 700px) {
  .pp-details__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pp-details__grid .sb-figure { height: 260px; }
}
@media (min-width: 1024px) { .pp-details__grid .sb-figure { height: 320px; } }

/* ---------- Colour stage (#colors) ---------- */
.pp-colour-stage { display: flex; flex-direction: column; gap: 4px; }
/* All six originals are portraits with the bicycle in the lower half. This
   bounded crop keeps handlebars and both wheels visible; the label sits below. */
.pp-colour-photo { position: relative; overflow: hidden; border: 1px solid var(--sb-line); border-radius: 18px; background: var(--sb-sand); }
.pp-colour-photo img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: center 80%; }
/* Above the img (z-index:1) and the crossfade layer (z-index:2, both set in motion-v3.css). */
.pp-colour-info { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; padding: 14px 18px; background: var(--sb-paper); }
.pp-colour-info .sb-slab { --sb-slab-bg: transparent; --sb-slab-fg: var(--sb-ink); --sb-slab-fs: 1.5rem; padding: 0; line-height: 1.3; }
.pp-colour-index { position: absolute; z-index: 3; right: var(--sb-gutter); top: 16px; }
.pp-colour-swatches { padding-top: 20px; }
.pp-colour-note { padding-top: 14px; max-width: 34rem; }
@media (min-width: 1024px) {
  .pp-colour-stage { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); align-items: start; gap: 12px 40px; }
  .pp-colour-photo { grid-row: 1 / 4; }
  .pp-colour-swatches { padding-top: 24px; }
  .pp-colour-note { padding-top: 0; }
}

/* ---------- Spec / product info ---------- */
.pp-spec { padding-block: var(--sb-section-y); }
.pp-spec .sb-spec { margin-top: 22px; }
.pp-spec__note { margin-top: 16px; max-width: 34rem; color: var(--sb-muted); font-size: .8125rem; line-height: 1.6; }

/* ---------- Fold toggle stage (folding.html #toggle) ---------- */
.pp-toggle-stage { position: relative; height: 66vh; max-height: 600px; min-height: 380px; overflow: hidden; background: var(--sb-brick); }
.pp-toggle-stage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pp-toggle-buttons { position: absolute; left: var(--sb-gutter); right: var(--sb-gutter); top: 20px; }
.pp-toggle-head { position: absolute; left: 0; bottom: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pp-toggle-line { padding: 14px var(--sb-gutter) 0; }
@media (min-width: 700px) { .pp-toggle-stage { height: 70vh; } }

/* ---------- How it folds (folding.html #how-it-folds; fold-drawing.css does the block) ---------- */
.fd__ctas .sb-btn { min-width: 220px; }
@media (max-width: 699px) { .fd__ctas .sb-btn { flex: 1 1 100%; } }

/* ---------- Colours mosaic (folding.html "Pick a mood") ---------- */
.pp-colours-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding-bottom: 16px; }
.pp-colours-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 196px 196px; gap: 4px; }
.pp-colours-grid a:first-child { grid-row: 1 / 3; }
.pp-colours-grid .sb-figure img { object-position: 50% 68%; }
@media (min-width: 700px) { .pp-colours-grid { grid-template-rows: 260px 260px; } }
@media (min-width: 1024px) { .pp-colours-grid { grid-template-rows: 320px 320px; } }

/* ---------- Bottom CTA ---------- */
.pp-cta { padding-block: 40px 64px; }
.pp-cta .sb-btn { max-width: 420px; margin-inline: auto; }
@media (min-width: 700px) { .pp-cta .sb-btn { margin-inline: 0; } }
