/* ski-boots/brand-page.css — the ski-boot BRAND and FIT page template (.bp-*).
   One stylesheet for every /ski-boots/<brand>/ and /ski-boots/<fit>/ shell
   (one-storefront runbook, Phase 1). Loaded after global.css + shop/shop.css.
   Brand rules: League Gothic uppercase headings, Commissioner body, 0 radius,
   --red / --black / --light-grey only. Photo scrims and the hub carousel's
   hover lift are existing approved patterns (ski-boots/index.html). */

/* ── HERO (split: text panel left, product photo right — the photo is a
      near-square in-store shot, so a full-bleed cover would crop the boot) ── */
.bp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 640px;
  height: 82vh;
  max-height: 860px;
  background: var(--black);
  color: #fff;
  overflow: hidden;
}
.bp-hero__media { position: relative; min-height: 0; background: var(--light-grey); }   /* studio-grey product shot */
.bp-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}
.bp-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 72px 64px 72px 100px;
  max-width: 760px;
}
.bp-crumbs {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin: 0 0 28px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.bp-crumbs a { color: rgba(255,255,255,0.8); text-decoration: none; }
.bp-crumbs a:hover { color: #fff; text-decoration: underline; }
.bp-crumbs [aria-current] { color: #fff; }
.bp-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin: 0 0 18px;
}
.bp-hero__title {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 148px);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.bp-hero__sub {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255,255,255,0.88);
  max-width: 600px;
  margin: 0 0 34px;
}
.bp-hero__actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ── COPY + LASTS TABLE ──────────────────────────────────────────── */
.bp-intro { background: #fff; padding: 88px 40px; }
.bp-intro__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  align-items: start;
}
.bp-intro__copy p {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--grey-90);
  margin: 0 0 22px;
  max-width: 720px;
}
.bp-intro__copy p:last-child { margin-bottom: 0; }
.bp-intro__copy a { color: var(--red-text); text-decoration: underline; text-underline-offset: 3px; }
.bp-lasts { background: var(--light-grey); padding: 28px 28px 24px; border-top: 2px solid var(--red); }
.bp-lasts__title {
  font-family: var(--font-display);
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
}
.bp-lasts__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bp-lasts__table caption {
  caption-side: bottom;
  text-align: left;
  font-size: 12px;
  color: var(--grey-30);
  padding-top: 10px;
}
.bp-lasts__table th, .bp-lasts__table td {
  text-align: left;
  padding: 10px 6px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.bp-lasts__table thead th { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-30); }
.bp-lasts__table tbody th { font-weight: 600; }
.bp-lasts__table td { font-weight: 300; }
.bp-lasts__note { font-size: 13px; font-weight: 300; line-height: 1.6; color: var(--grey-30); margin: 14px 0 0; }
/* Fit pages: the lasts table has 7–11 rows, too tall for the 300px aside (it left a
   dead column under the copy) — the aside widens and the rows split into two
   side-by-side tables at half the height. */
.bp-intro__inner--wide-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 48px; }
.bp-lasts__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-items: start; }
.bp-lasts--split .bp-lasts__table th, .bp-lasts--split .bp-lasts__table td { padding: 9px 4px; font-size: 14px; }
.bp-lasts__caption { font-size: 12px; color: var(--grey-30); margin: 10px 0 0; }

/* ── MODELS CAROUSEL (mirrors the /ski-boots/ hub's Surefoot x Lange carousel) ── */
.bp-models { background: var(--light-grey); padding: 88px 0 80px; }
.bp-models__inner { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
.bp-models__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 24px;
}
.bp-models__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.bp-models__note { font-size: 15px; font-weight: 300; line-height: 1.6; color: var(--grey-30); margin: 0; max-width: 720px; }
.bp-models__count {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-30);
  margin: 10px 0 0;
}
.bp-models__count:empty { display: none; }

.bp-car__arrow {
  position: absolute;
  top: 150px;                      /* centred on the card image */
  width: 52px;
  height: 52px;
  border: 1px solid var(--grey-300);
  background: #fff;
  color: var(--black);
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}
.bp-car__arrow--prev { left: 24px; }
.bp-car__arrow--next { right: 24px; }
.bp-car__arrow:hover { background: var(--black); color: #fff; border-color: var(--black); }
.bp-car__arrow:disabled { opacity: 0; pointer-events: none; }
.bp-car:not(.is-live) .bp-car__arrow { display: none; }   /* arrows only once the live cards exist */
/* right-edge fade: there is more to scroll */
.bp-car.is-live::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 72px;
  background: linear-gradient(90deg, rgba(248,248,248,0) 0%, var(--light-grey) 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s;
}
.bp-car.is-live.at-end::after { opacity: 0; }
.bp-car__progress { height: 3px; background: rgba(0,0,0,0.1); margin: 4px 0 0; }
.bp-car__bar { height: 100%; width: 0; background: var(--black); transition: width 0.15s ease-out; }

.bp-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.bp-pills:empty { display: none; }
.bp-pill {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 18px;
  background: #fff;
  color: var(--black);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 0;
  cursor: pointer;
}
.bp-pill:hover { border-color: var(--black); }
.bp-pill[aria-pressed="true"] { background: var(--black); color: #fff; border-color: var(--black); }

.bp-car { position: relative; max-width: 100%; overflow: hidden; }
.bp-car__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 40px 28px;
  /* first card aligns with the headline's max-width */
  padding-left: calc(max(40px, (100vw - 1160px) / 2 + 40px));
  padding-right: calc(max(40px, (100vw - 1160px) / 2 + 40px));
  /* snap points align with the padded start, so scrollLeft 0 IS the first card
     (without this, mandatory snapping pulls the track past the padding on load) */
  scroll-padding-left: calc(max(40px, (100vw - 1160px) / 2 + 40px));
  scrollbar-width: none;
}
.bp-car__track::-webkit-scrollbar { display: none; }
.bp-car__track:empty { display: none; }

.bp-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: #fff;
  padding: 0 0 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bp-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.08); }
.bp-card__media { display: block; background: #fff; aspect-ratio: 1 / 1; overflow: hidden; padding: 18px; }
.bp-card__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bp-card__brand {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-30);
  margin: 6px 22px 6px;
}
.bp-card__title { font-family: var(--font-body); font-size: 17px; font-weight: 600; line-height: 1.35; margin: 0 22px 6px; }
.bp-card__title a { color: var(--black); text-decoration: none; }
.bp-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bp-card__spec { font-size: 14px; font-weight: 300; color: var(--grey-90); margin: 0 22px 10px; }
.bp-card__price { font-size: 16px; font-weight: 500; margin: auto 22px 0; }
.bp-card__note {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-30);
  border: 1px solid rgba(0,0,0,0.15);
  padding: 3px 7px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Stamped static list (crawler / no-JS / API-down view). Hidden once the live
   cards render (brand-grid.js sets [hidden]). */
.bp-models__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
}
.bp-models__list[hidden] { display: none; }   /* author display:grid must not beat the hidden attribute */
.bp-models__list li { padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.1); font-size: 15px; line-height: 1.5; }
.bp-models__list a { color: var(--black); font-weight: 600; text-decoration: none; }
.bp-models__list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bp-models__meta { display: block; font-size: 13px; font-weight: 300; color: var(--grey-30); }

/* ── HOW SUREFOOT FITS A <BRAND> (the fitting-process "four steps at a glance" cards) ── */
.bp-diff { background: #fff; padding: 96px 40px; }
.bp-diff__inner { max-width: 1160px; margin: 0 auto; }
.bp-diff__head { text-align: center; margin: 0 auto 44px; max-width: 720px; }
.bp-diff__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.bp-diff__lede { font-size: 16px; font-weight: 300; line-height: 1.65; color: var(--grey-30); margin: 0; }
.bp-diff__more {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-text);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
}
.bp-diff__more:hover { color: var(--black); border-color: var(--black); }
.bp-diff__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bp-diff__card {
  background: var(--light-grey);
  border: 1px solid var(--grey-300);
  padding: 26px 22px 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s;
}
a.bp-diff__card:hover { border-color: var(--red); }
.bp-diff__card p { font-family: var(--font-body); font-size: 14px; line-height: 1.55; color: #555; margin: 0; }
.bp-diff__card p.bp-diff__num { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--red-text); margin: 0 0 4px; }
.bp-diff__card h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 24px; line-height: 1; margin: 0; color: var(--black); }

/* ── BOOK BAND (photo + scrim, like the hub's "Shop All" band) ────── */
.bp-book {
  position: relative;
  background: var(--black) 50% 100% / cover no-repeat;   /* bottom-anchored: keep the sole, lose the cuff */
  color: #fff;
  padding: 120px 40px;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.bp-book::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.62) 45%, rgba(0,0,0,0.22) 100%);
}
.bp-book__inner {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
}
.bp-book__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red-text);
  margin: 0 0 14px;
}
.bp-book__title { font-family: var(--font-display); font-size: clamp(48px, 5.4vw, 80px); line-height: 0.95; text-transform: uppercase; margin: 0 0 16px; max-width: 620px; }
.bp-book__body { font-size: 17px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,0.85); max-width: 540px; margin: 0 0 32px; }
.bp-book__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.bp-faq { background: #fff; padding: 96px 40px 100px; }
.bp-faq__inner { max-width: 860px; margin: 0 auto; }
.bp-faq__title { font-family: var(--font-display); font-size: clamp(40px, 4.6vw, 68px); text-transform: uppercase; margin: 0 0 40px; text-align: center; }
.bp-faq__item { border-bottom: 1px solid rgba(0,0,0,0.1); }
.bp-faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
}
.bp-faq__item summary::-webkit-details-marker { display: none; }
.bp-faq__item summary::after { content: "+"; font-size: 24px; font-weight: 300; color: var(--red-text); flex-shrink: 0; }
.bp-faq__item[open] summary::after { content: "–"; }
.bp-faq__item p { font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--grey-90); margin: 0 0 22px; padding: 0 4px; max-width: 760px; }

/* ── KEEP BROWSING (tiles, not a link list) ──────────────────────── */
.bp-links { background: var(--light-grey); padding: 80px 40px 88px; border-top: 1px solid rgba(0,0,0,0.06); }
.bp-links__inner { max-width: 1160px; margin: 0 auto; }
.bp-links__title { font-family: var(--font-display); font-size: clamp(34px, 3.6vw, 52px); line-height: 0.98; text-transform: uppercase; margin: 0 0 28px; }
.bp-links__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bp-tile {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--grey-300);
  padding: 24px 22px 22px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s;
  height: 100%;
  box-sizing: border-box;
}
.bp-tile:hover { border-color: var(--red); }
.bp-tile__eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-30);
  margin: 0 0 8px;
}
.bp-tile__title { font-family: var(--font-display); font-size: 26px; line-height: 1; text-transform: uppercase; color: var(--black); margin: 0 0 8px; }
.bp-tile__text { font-family: var(--font-body); font-size: 14px; line-height: 1.5; color: #555; margin: 0; }
.bp-tile__arrow { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--red-text); flex-shrink: 0; transition: transform 0.15s; }
.bp-tile:hover .bp-tile__arrow { transform: translateX(4px); }

/* ── BY BRAND / BY FIT link row (runbook 1.13: every brand page links every
      other brand page and the two fit pages; sits under the Keep browsing tiles) ── */
.bp-brands { margin: 36px 0 0; }
.bp-brands__title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-30);
  margin: 0 0 12px;
}
.bp-brands__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bp-brands__list a {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--grey-300);
  background: #fff;
  color: var(--black);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s;
}
.bp-brands__list a:hover, .bp-brands__list a:focus-visible { border-color: var(--red); }
.bp-brands__list a[aria-current="page"] { background: var(--black); color: #fff; border-color: var(--black); }

/* ── STORY block: a second copy section with its own H2 (the Fubuki section on
      the après page, the size-chart intro on Nordica). Same type as .bp-intro. ── */
.bp-intro--grey { background: var(--light-grey); border-top: 1px solid rgba(0,0,0,0.06); }
.bp-intro__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 0.98;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.bp-intro__inner--single { grid-template-columns: minmax(0, 1fr); }
/* Copy block with a picture column: text left, square photo right (après page, Chance 9/3). */
.bp-intro__inner--figure { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: center; }
.bp-intro__figure { margin: 0; background: var(--light-grey); aspect-ratio: 1 / 1; overflow: hidden; }
.bp-intro__figure img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── CHART: a real HTML table section (Nordica size chart, après comparison).
      Scrolls inside its own container on narrow screens; the page never does. ── */
.bp-chart { background: #fff; padding: 80px 40px; border-top: 1px solid rgba(0,0,0,0.06); }
.bp-chart__inner { max-width: 1160px; margin: 0 auto; }
.bp-chart__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 0.98;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.bp-chart__lede { font-family: var(--font-body); font-size: 17px; font-weight: 300; line-height: 1.7; color: var(--grey-90); max-width: 720px; margin: 0 0 28px; }
.bp-chart__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bp-chart__table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.bp-chart__table caption { caption-side: bottom; text-align: left; font-size: 12px; color: var(--grey-30); padding-top: 10px; }
.bp-chart__table th, .bp-chart__table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(0,0,0,0.1); }
.bp-chart__table thead th { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-30); }
.bp-chart__table tbody th { font-weight: 600; white-space: nowrap; }
.bp-chart__table td { font-weight: 300; }
.bp-chart__note { font-size: 14px; font-weight: 300; line-height: 1.6; color: var(--grey-30); margin: 16px 0 0; max-width: 720px; }

/* ── Buyable card CTA (après page only; brand-grid.js data-apres mode) ── */
.bp-card__cta {
  display: inline-block;
  margin: 14px 22px 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-text);
  text-decoration: none;
}
.bp-card__cta:hover, .bp-card__cta:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .bp-diff__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .bp-hero { grid-template-columns: 1fr; height: auto; max-height: none; min-height: 0; }
  /* Mobile: the photo is a plain in-flow image (no absolute cover in a grid
     cell) — cheaper to lay out and paint; it is the LCP element. */
  .bp-hero__media { order: -1; aspect-ratio: auto; }
  .bp-hero__bg { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 60%; }
  .bp-hero__content { padding: 40px 24px 56px; max-width: none; }
  .bp-crumbs { margin-bottom: 22px; }
  .bp-intro, .bp-diff, .bp-book, .bp-faq, .bp-links, .bp-chart { padding-left: 24px; padding-right: 24px; }
  .bp-chart { padding-top: 64px; padding-bottom: 64px; }
  .bp-intro { padding-top: 64px; padding-bottom: 64px; }
  .bp-intro__inner, .bp-intro__inner--wide-aside, .bp-intro__inner--figure { grid-template-columns: 1fr; gap: 36px; }
  .bp-intro__figure { max-width: 520px; }
  .bp-lasts__cols { grid-template-columns: 1fr; }
  .bp-models { padding: 64px 0 56px; }
  .bp-models__inner { padding: 0 24px; }
  .bp-models__head { grid-template-columns: 1fr; gap: 16px; }
  .bp-car__track { padding-left: 24px; padding-right: 24px; scroll-padding-left: 24px; }
  .bp-car__arrow { top: 120px; width: 44px; height: 44px; }
  .bp-car__arrow--prev { left: 12px; }
  .bp-car__arrow--next { right: 12px; }
  .bp-card { flex-basis: 260px; }
  .bp-book { padding: 88px 24px; min-height: 0; }
  .bp-links__grid { grid-template-columns: 1fr; }
  .bp-models__list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bp-diff__grid { grid-template-columns: 1fr; }
  .bp-card { flex-basis: 240px; }
}
