*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ─── DESIGN TOKENS ─────────────────────────────── */
:root {
  --bg:           #ffffff;
  --bg-card:      #ffffff;
  --ink:          #2c2c2c;
  --ink-mid:      #2c2c2c;
  --ink-muted:    rgba(44,44,44,0.55);
  --accent:       #5F3781;
  --border:       rgba(0,0,0,0.12);
  --progress-bg:  #E6E6E6;

  /* 12-col grid: 220px margin, 20px gutter */
  --margin:       220px;
  --gutter:       20px;
  --cols:         12;

  /* col unit = (100vw - 2*margin - 11*gutter) / 12 */
  --col: calc((100vw - 2 * var(--margin) - 11 * var(--gutter)) / 12);

  /* Font stacks */
  --f-heading: 'Noto Sans JP', sans-serif;   /* ExtraBold 800 / Black 900 */
  --f-field:   'Ubuntu', 'Noto Sans JP', sans-serif;
  --f-body:    'Open Sans', sans-serif;
}

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

/* ─── HEADER ─────────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  /* 48px at 1920px = 2.5vw, scales down with viewport */
  padding-top: clamp(20px, 2.5vw, 48px);
  padding-bottom: clamp(20px, 2.5vw, 48px);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
  padding-right: calc(3 * var(--col) + 2 * var(--gutter) + var(--margin));
  flex-shrink: 0;
}

.header-inner {
  margin-left: var(--margin);
  display: flex;
  align-items: center;
}

.logo-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 32px;
  color: #2c2c2c;
  letter-spacing: 0.01em;
}

.logo-btn em { font-style: italic; font-weight: 700; }

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

/* ─── PAGE SYSTEM ────────────────────────────────── */
html, body { height: 100%; }
body { display: flex; flex-direction: column; }

.page { display: none; flex: 1; }
.page.active { display: flex; flex-direction: column; }

/* Landing fills all remaining space below the header — no scroll */
#landing-section.active {
  overflow: hidden;
}

/* Mobile brands — hidden on desktop, shown on mobile */
.mobile-brands { display: none; }

/* ─── FOOTER ─────────────────────────────────────── */
.site-footer {
  /* 48px at 1920px = 2.5vw, scales down with viewport */
  padding: clamp(20px, 2.5vw, 48px) var(--margin);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-copy {
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 400;
}

/* ─── BRAND SIDEBAR ──────────────────────────────── */
.brand-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: calc(3 * var(--col) + 2 * var(--gutter) + var(--margin));
  height: 100vh;
  padding-top: clamp(80px, 8.33vw, 160px);
  padding-bottom: clamp(60px, 6.25vw, 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(10px, 1.67vw, 32px);
  padding-left: clamp(24px, 2.08vw, 40px);
  z-index: 50;
  pointer-events: none;
  /* When viewport height is short, allow internal scroll so brands don't clip */
  overflow-y: auto;
  /* Hide scrollbar visually */
  scrollbar-width: none;
}
.brand-sidebar::-webkit-scrollbar { display: none; }

/* Cap brand item font so it never clips — scales down with viewport height */
.brand-item {
  font-family: var(--f-heading);
  font-weight: 800;
  /* 24px at 1920px = 1.25vw. Also cap by vh so tall lists don't overflow */
  font-size: clamp(12px, min(1.25vw, 2.2vh), 24px);
  line-height: 1.4;
  color: rgba(44,44,44,0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Landing scrollable when viewport height is short (< 600px) */
@media (max-height: 600px) and (min-width: 769px) {
  #landing-section.active { overflow: visible; height: auto; }
  .brand-sidebar { position: absolute; }
}

/* ─── LANDING ────────────────────────────────────── */
.landing-body {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  /* Right padding reserves space for the fixed brand sidebar */
  padding-right: calc(3 * var(--col) + 2 * var(--gutter) + var(--margin));
}

.landing-content {
  margin-left: var(--margin);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.landing-title {
  font-family: var(--f-heading);
  font-weight: 800;
  /* 150px at 1920px viewport = 7.8125vw */
  font-size: clamp(40px, 7.8125vw, 150px);
  /* 147px line-height at 1920px = 7.65625vw */
  line-height: clamp(39px, 7.65625vw, 147px);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.btn-take-quiz {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 16px 40px;
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s;
  margin-top: clamp(28px, 2.5vw, 48px);
  align-self: flex-start;
  min-width: 288px;
}
.btn-take-quiz:hover { background: #4a2868; }

/* ─── QUIZ ───────────────────────────────────────── */
/*
  Desktop: flex row.
  Left col (4): title, independent height.
  Right col (6): progress bar (40px gap) then options then nav.
  quiz-progress-col sits at the top of the right column via flex column inside quiz-right-wrap.
  On mobile: order 1=progress, 2=title, 3=options+nav.
*/
.quiz-layout {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding-top: 32px;
  padding-bottom: 32px;
  min-height: 0;
}

/* Left margin via ::before */
.quiz-layout::before {
  content: '';
  width: var(--margin);
  flex-shrink: 0;
  display: block;
}

/* Title — 4 cols wide */
.quiz-left {
  width: calc(4 * var(--col) + 3 * var(--gutter));
  flex-shrink: 0;
  padding: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: flex-start;
}

/* 1-col spacer */
.quiz-spacer {
  width: calc(var(--col) + var(--gutter));
  flex-shrink: 0;
}

/* Right col — 6 cols, flex column: progress → options → nav */
.quiz-right {
  width: calc(6 * var(--col) + 5 * var(--gutter));
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  min-width: 0;
}

/* Progress col — first child of right col, always visible */
.quiz-progress-col {
  width: 100%;
  margin-bottom: 40px;
  display: block;
}

/* Progress bar — no rounded corners */
.progress-bar {
  height: 10px;
  background: var(--progress-bg);
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 0;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

/* Question title: 74px / 86px at 1920px — fluid */
.quiz-question-title {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: clamp(28px, 3.854vw, 74px);
  line-height: clamp(32px, 4.479vw, 86px);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* Hint: white, 24px below title on desktop, only on multi-select */
.quiz-question-hint {
  font-family: var(--f-body);
  font-size: 14px;
  color: #555555;
  margin-top: 24px;
  line-height: 1.5;
}

/* Option rows — 32px gap between cards, card bg, 8px radius */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex-shrink: 0;
}

.option-row {
  display: flex;
  align-items: flex-start;
  padding: 20px 32px;
  border: 1px solid #d2d2d2;
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  background: #f5f4f4;
  width: 100%;
  text-align: left;
  position: relative;
  transition: border-color 0.12s;
}

.option-row:focus { outline: none; }

.option-row.selected {
  background: #f0ecf5;
  border-color: #5F3781;
}

/* No left accent bar — border alone indicates selection */

.option-row.no-desc { align-items: center; }
.option-row-text { display: flex; flex-direction: column; }

/* Option title: Ubuntu Mono regular (not bold), 20px / 30px, white */
.option-label {
  font-family: 'Ubuntu Mono', 'Ubuntu', monospace;
  font-size: 20px;
  font-weight: 400;
  color: #222222;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 30px;
}

/* Selected: label turns yellow */
.option-row.selected .option-label { color: #5F3781; font-weight: 700; }

/* Sub text: 4px margin above, Open Sans 16px / 24px */
.option-desc {
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 24px;
  margin-top: 4px;
}

.option-row.selected .option-desc { color: rgba(95,55,129,0.7); }

/* Quiz nav — Restart far left, BACK+NEXT grouped right with 32px gap between them */
.quiz-nav {
  margin-top: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Desktop: nav-right always pushed to the right */
.quiz-nav-right { display: flex; align-items: center; gap: 32px; order: 2; margin-left: auto; }
.btn-restart-nav { order: 1; margin-left: 0; }

/* NEXT — grey filled rect when inactive, yellow when active, 365px desktop */
.btn-next {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: clamp(13px, 0.833vw, 16px);
  letter-spacing: 0.08em;
  color: rgba(0,0,0,0.3);
  background: rgba(0,0,0,0.08);
  border: none;
  cursor: default;
  pointer-events: none;
  padding: 20px 40px;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
  border-radius: 4px;
  width: clamp(160px, 19.01vw, 365px);
  text-align: center;
}

.btn-next.active {
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  pointer-events: all;
}
.btn-next.active:hover { background: #4a2868; }

/* BACK — always visible, plain uppercase text */
.btn-back-nav {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: clamp(13px, 0.833vw, 16px);
  letter-spacing: 0.1em;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 0;
  text-transform: uppercase;
  transition: color 0.15s;
  visibility: visible !important;
}
.btn-back-nav:hover { color: var(--ink-mid); }

/* Restart — white, underlined, left side */
.btn-restart-nav {
  font-family: var(--f-body);
  font-size: 13px;
  color: #2c2c2c;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.15s;
}
.btn-restart-nav:hover { color: var(--ink-mid); }

/* ─── RESULTS ────────────────────────────────────── */
.results-header {
  padding: 32px var(--margin) 0;
}

.results-title {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.05;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.results-sub {
  font-family: var(--f-body);
  font-size: clamp(14px, 1.1vw, 18px);
  color: var(--ink-mid);
  line-height: 1.6;
  margin-top: 20px;
}

/* Shoe grid — uses margin */
.shoes-grid {
  padding: 56px var(--margin) 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Shoe card */
.shoe-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.4s ease both;
  transition: border-color 0.2s, transform 0.2s;
}
.shoe-card:hover { border-color: rgba(95,55,129,0.35); transform: translateY(-3px); }

.shoe-img-area {
  height: 240px;
  background: #ece9e9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shoe-svg-render {
  width: 76%;
  max-width: 260px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
  transition: transform 0.3s ease;
}
.shoe-card:hover .shoe-svg-render { transform: translateY(-4px) scale(1.04); }

.shoe-img-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.shoe-card:hover .shoe-img-real { transform: scale(1.04); }

.shoe-detail-svg .shoe-img-real {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  border-radius: 2px;
}

.shoe-body { padding: 32px; display: flex; flex-direction: column; gap: 0; flex: 1; }

.shoe-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.shoe-brand {
  font-family: var(--f-body);
  font-size: clamp(14px, 1.25vw, 24px);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #2c2c2c;
  text-transform: uppercase;
  line-height: clamp(16px, 1.35vw, 26px);
  margin-bottom: 4px;
}

.shoe-name {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: clamp(26px, 2.5vw, 48px);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 16px;
}

.shoe-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }

.shoe-tag {
  font-family: var(--f-body);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid;
  text-transform: uppercase;
}

.shoe-tag.indoor     { background: rgba(74,158,80,0.12);   border-color: #3a8040; color: #2d6e33; }
.shoe-tag.sport      { background: rgba(204,68,68,0.10);   border-color: #b03030; color: #952828; }
.shoe-tag.trad       { background: rgba(180,20,110,0.10);  border-color: #a81268; color: #8c0f57; }
.shoe-tag.boulder    { background: rgba(160,110,0,0.10);   border-color: #8a6200; color: #6e4e00; }
.shoe-tag.comp       { background: rgba(130,60,180,0.10);  border-color: #6e3aaa; color: #5a2e8e; }
.shoe-tag.multipitch { background: rgba(20,110,170,0.10);  border-color: #1660a0; color: #0f4e85; }

.shoe-divider { height: 1px; background: #d8d8d8; margin: 24px 0; }

.shoe-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }

.spec-label {
  font-family: var(--f-field);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #2c2c2c;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.spec-value {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  color: #2c2c2c;
}

.shoe-desc {
  font-family: var(--f-body);
  font-size: 13px;
  color: #2c2c2c;
  line-height: 1.6;
  margin-top: 24px;
}

.match-wrap { margin-top: auto; padding-top: 32px; }

.match-row { display: flex; justify-content: space-between; margin-bottom: 6px; }

.match-label-text {
  font-family: 'Ubuntu Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #5F3781;
  text-transform: uppercase;
}

.match-pct {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.match-track { height: 6px; background: var(--progress-bg); border-radius: 0; overflow: hidden; }
.match-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 0;
  width: 0;
  transition: width 1s cubic-bezier(0.4,0,0.2,1) 0.3s;
}

.results-footer {
  padding: 0 var(--margin) 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn-show-more {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 16px 40px;
  cursor: pointer;
  border-radius: 4px;
  min-width: 288px;
  text-align: center;
  transition: background 0.15s;
}
.btn-show-more:hover { background: #4a2868; }
.btn-show-more[style*="display: none"],
.btn-show-more[style*="display:none"] { display: none !important; }

.btn-retake {
  font-family: var(--f-body);
  font-size: 13px;
  color: #2c2c2c;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.15s;
  padding: 0;
}
.btn-retake:hover { color: var(--ink-mid); }

/* ─── TOP MATCH ──────────────────────────────────── */
.shoe-card.top-match {
  border-color: #5F3781;
}

.top-match-badge {
  display: inline-block;
  flex-shrink: 0;
  background: #5F3781;
  color: #ffffff;
  font-family: 'Open Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 8px;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

/* ─── ANIMATIONS ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1400px) {
  :root { --margin: 80px; }
}
@media (max-width: 1100px) {
  :root { --margin: 40px; }
  .quiz-left { width: calc(var(--margin) + 4 * var(--col) + 3 * var(--gutter) + 40px); padding: 48px 40px; }
}

/* ── TABLET / MOBILE — 768px ── */
@media (max-width: 768px) {
  :root { --margin: 24px; }

  /* Header — centred logo, no right padding */
  header {
    padding-right: 0;
    justify-content: center;
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .header-inner { margin-left: 0; }

  /* Brand sidebar hidden — shown inline below button on mobile */
  .brand-sidebar { display: none !important; }

  /* Landing fills full viewport height on mobile — footer pinned to bottom */
  #landing-section.active {
    height: 100dvh;
    overflow: hidden;
  }

  .landing-body {
    flex-direction: column;
    padding-right: 0;
    padding: 24px var(--margin) 0;
    align-items: flex-start;
    flex: 1;
  }

  .landing-content {
    margin-left: 0;
    width: 100%;
  }

  .btn-take-quiz {
    min-width: 0;
    width: 100%;
    font-size: 14px;
  }

  /* Mobile brands — horizontal wrap below button, centred, 24px above footer divider */
  .mobile-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 40px;
    margin-bottom: 24px;
    justify-content: center;
    width: 100%;
  }

  .mobile-brands .brand-item {
    font-size: 16px;
    line-height: 24px;
    color: rgba(44,44,44,0.5);
  }

  /* H1 scales fluidly with viewport on mobile/tablet — fills the content column */
  .landing-title {
    font-size: clamp(40px, 16vw, 150px);
    line-height: clamp(38px, 15.5vw, 147px);
  }

  /* Quiz — flat flex column: progress(1) → title(2) → options+nav(3) */
  .quiz-layout {
    display: flex;
    flex-direction: column;
    padding: 0;
    align-items: stretch;
  }
  .quiz-layout::before { display: none; }
  .quiz-spacer { display: none; }

  /* quiz-right becomes transparent to layout — children are ordered directly */
  .quiz-right {
    display: contents;
  }

  /* 1: progress bar */
  .quiz-progress-col {
    order: 1;
    width: 100%;
    padding: 24px var(--margin) 0;
    margin-bottom: 0;
  }
  .progress-bar { margin-bottom: 0; }

  /* 2: title + hint — 40px below progress */
  .quiz-left {
    order: 2;
    width: 100%;
    flex-shrink: unset;
    align-self: unset;
    padding: 40px var(--margin) 4px;
    justify-content: flex-start;
  }
  .quiz-question-hint { margin-top: 16px; }

  /* 3: options list — 40px below title */
  .options-list {
    order: 3;
    gap: 16px;
    padding: 40px var(--margin) 0;
    width: 100%;
    box-sizing: border-box;
  }

  /* 4: nav */
  .quiz-nav {
    order: 4;
    padding: 0 var(--margin) 32px;
    width: 100%;
    box-sizing: border-box;
  }

  .option-row {
    padding: 16px 20px;
    width: 100%;
    box-sizing: border-box;
  }
  .option-label { font-size: 16px; line-height: 24px; }
  .option-desc { font-size: 14px; line-height: 20px; }

  /* Nav full-width on mobile */
  .btn-show-more { width: 100%; min-width: 0; }

  /* Title scales fluidly on mobile */
  .quiz-question-title {
    font-size: clamp(28px, 8.5vw, 74px);
    line-height: clamp(32px, 9.5vw, 86px);
  }

  /* Nav: stacked on mobile — NEXT full width, BACK centred 16px below, Restart centred 40px below */
  .quiz-nav {
    flex-direction: column;
    align-items: center;
    margin-top: 32px;
    gap: 0;
  }
  /* quiz-nav-right: column with NEXT first via order */
  .quiz-nav-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    order: 1;
    margin-left: 0;
  }
  /* NEXT: full width, shown first */
  .btn-next {
    width: 100%;
    padding: 18px 20px;
    font-size: 14px;
    order: 1;
  }
  /* BACK: centred, 16px below NEXT */
  .btn-back-nav {
    font-size: 14px;
    padding: 16px 0 0 0;
    text-align: center;
    width: 100%;
    order: 2;
  }
  /* Restart: centred, 40px below BACK */
  #btn-restart {
    order: 2;
    margin-top: 40px;
    text-align: center;
    padding: 0;
    margin-left: 0;
  }

  /* Results */
  .results-header { padding: 16px var(--margin) 0; }
  /* results-title uses fluid clamp — no override needed on mobile */
  .shoes-grid { padding: 40px var(--margin) 48px; grid-template-columns: 1fr; gap: 16px; }
  .results-footer { padding: 0 var(--margin) 40px; }

  /* Footer centred on mobile — with divider and fluid 16px padding */
  .site-footer {
    justify-content: center;
    padding-left: var(--margin);
    padding-right: var(--margin);
    padding-top: clamp(16px, 3.125vw, 24px);
    padding-bottom: clamp(16px, 3.125vw, 24px);
    border-top: 1px solid #e0dede;
  }
}

/* ─── BRAND LINKS ─────────────────────────────────── */
.brand-link {
  cursor: pointer;
  pointer-events: all;
  transition: color 0.15s;
  text-decoration: none;
}
.brand-link:hover { color: #5F3781 !important; }

/* ─── SHOE CARD CLICKABLE ────────────────────────── */
.shoe-card[role="button"] { cursor: pointer; }

/* ─── BRAND PAGE ─────────────────────────────────── */
.brand-page-header {
  padding: 0 var(--margin) 8px;
}

/* Override results-header padding for brand page so it doesn't double-pad */
.results-header.brand-page-header {
  padding: 0 var(--margin) 8px;
}

/* ── Brand breadcrumb ── */
.brand-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 0 56px;
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--ink-muted);
}

/* ── Brand switcher panel — wider to fit brand names ── */
.brand-switcher-panel {
  min-width: 200px;
  left: 0;
  right: auto;
}

.brand-page-header .brand-subline {
  font-family: var(--f-body);
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1.6;
  color: var(--ink-mid);
  margin-top: 24px;
  /* 10 col width on desktop */
  max-width: calc(10 * var(--col) + 9 * var(--gutter));
}

/* ── BRAND PAGE GRID — no extra top padding (sort bar handles spacing) ── */
#brand-section .shoes-grid {
  padding-top: 0;
}

/* ── BRAND CONTROL BAR (sort + filter) ── */
.brand-sort-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 var(--margin);
  margin-top: 56px;
  margin-bottom: 24px;
}

/* ── Shared button style ── */
.bsb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 500;
  color: #333;
  background: transparent;
  border: 1px solid #bbb;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
  position: relative;
}
.bsb-btn:hover { border-color: #5F3781; color: #5F3781; }

.bsb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--f-body);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

/* ── Filter wrap + panel ── */
.bsb-filter-wrap,
.bsb-sort-wrap {
  position: relative;
}

.filter-panel,
.sort-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid #d8d5d5;
  border-radius: 10px;
  padding: 20px;
  z-index: 100;
  min-width: 260px;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.filter-panel.open,
.sort-panel.open { display: block; }

/* ── Filter sections ── */
.filter-section {
  margin-bottom: 18px;
}
.filter-section:last-of-type { margin-bottom: 12px; }

.filter-section-label {
  font-family: var(--f-field);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.filter-section .filter-chip:first-of-type { margin-top: 0; }

.filter-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  color: #555;
  background: transparent;
  border: 1px solid #c8c4c4;
  border-radius: 6px;
  padding: 6px 12px;
  margin: 0 6px 8px 0;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.filter-chip:hover { border-color: #5F3781; color: #5F3781; }
.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

.filter-clear {
  font-family: var(--f-body);
  font-size: 12px;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0 0;
  text-decoration: underline;
  transition: color 0.12s;
}
.filter-clear:hover { color: #444; }

/* ── Sort options ── */
.sort-option {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 400;
  color: #444;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 9px 12px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.sort-option:hover { background: #f0ecf5; color: #5F3781; }
.sort-option.active { color: var(--accent); font-weight: 600; }

/* ── No results message ── */
.brand-no-results {
  padding: 40px;
  color: var(--ink-muted);
  font-family: var(--f-body);
  font-size: 15px;
}

@media (max-width: 768px) {
  .brand-sort-bar {
    margin-top: 32px;
    gap: 8px;
  }
  .bsb-btn {
    font-size: 14px;
    padding: 9px 14px;
  }
  .filter-panel,
  .sort-panel {
    min-width: 220px;
  }
  .brand-breadcrumb {
    padding-top: 16px;
    padding-bottom: 32px;
  }
}

/* ─── SHOE DETAIL PAGE ───────────────────────────── */
.shoe-detail-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shoe-detail-layout {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--margin) 80px;
  flex: 1;
}

.shoe-detail-back {
  padding: 32px 0 24px;
}

.btn-detail-back {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--ink-muted);
  transition: color 0.15s;
  padding: 0;
  letter-spacing: 0.04em;
}
.btn-detail-back:hover { color: var(--ink); }

.shoe-detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 40px 0 60px;
  border-bottom: 1px solid var(--border);
}

.shoe-detail-hero.no-image {
  grid-template-columns: 1fr;
}

.shoe-detail-svg {
  background: #ece9e9;
  border-radius: 4px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shoe-detail-hero.has-image .shoe-detail-svg {
  background: none;
  padding: 0;
  border-radius: 0;
}

.shoe-detail-svg .shoe-svg-render {
  width: 100%;
  max-width: 340px;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.5));
}

.shoe-detail-brand {
  font-family: var(--f-body);
  font-size: clamp(14px, 1.25vw, 24px);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #2c2c2c;
  text-transform: uppercase;
  line-height: clamp(16px, 1.35vw, 26px);
  margin-bottom: 4px;
}

.shoe-detail-name {
  font-family: var(--f-heading);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 88px);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 20px;
}

.shoe-detail-desc {
  font-family: var(--f-body);
  font-size: 16px;
  color: #2c2c2c;
  line-height: 1.7;
  margin-top: 20px;
  margin-bottom: 24px;
}

.shoe-detail-price {
  font-family: 'Ubuntu Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}

.shoe-detail-specs-section {
  padding: 48px 0 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  padding-bottom: 48px;
}

.shoe-detail-section-title {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: clamp(12px, 0.833vw, 16px);
  letter-spacing: 0.12em;
  color: #2c2c2c;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.shoe-detail-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 40px;
}

.shoe-detail-spec-item .spec-label {
  font-size: 9px;
  margin-bottom: 6px;
  color: var(--ink-muted);
}

.shoe-detail-spec-item .spec-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

/* Responsive shoe detail */
@media (max-width: 768px) {
  .shoe-detail-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px 0 40px;
  }
  .shoe-detail-svg { padding: 24px; }
  .shoe-detail-specs-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .shoe-detail-layout { padding: 0 var(--margin) 60px; }
}

@media (max-width: 480px) {
  .shoe-detail-specs-grid { grid-template-columns: 1fr; }
}

/* ─── BRAND PAGE OVERRIDES ───────────────────────────────────────────────────── */

/* Back to top — fixed sticky button, bottom-right */
.btn-back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #5F3781;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.btn-back-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.btn-back-top:hover { background: #4a2868; }


/* ═══════════════════════════════════════════════════════════════════════════
   SHOE DETAIL v2  —  matches Figma layout (breadcrumb / perf-bars / fit / pc)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Layout wrapper ─────────────────────────────────────────────────────── */
.sd2-layout {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 0;
  overflow: visible;
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.sd2-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 0 0;
  margin-bottom: 56px;
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--ink-muted);
}
.sd2-bread-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--ink-muted);
  padding: 0;
  transition: color 0.15s;
}
.sd2-bread-btn:hover { color: var(--ink); }
.sd2-bread-sep { color: var(--ink-muted); opacity: 0.5; }
.sd2-bread-current { color: var(--ink-muted); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.sd2-hero {
  padding: 56px 0 40px;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.sd2-hero-text { flex: 1; }
.sd2-hero-img  { flex: 0 0 auto; }
.sd2-hero-img img {
  width: clamp(160px, 30vw, 280px);
  object-fit: contain;
  display: block;
}

.sd2-hero-brand {
  font-family: var(--f-body);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #2c2c2c;
  margin-bottom: 4px;
}
.sd2-hero-name {
  font-family: var(--f-heading);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 72px);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.sd2-hero-tags { margin-bottom: 20px; display: flex; gap: 6px; flex-wrap: wrap; }
.sd2-hero-desc {
  font-family: var(--f-body);
  font-size: clamp(14px, 1.1vw, 18px);
  color: var(--ink-mid);
  line-height: 1.6;
  margin-bottom: 20px;
  margin-top: 20px;
}
.sd2-hero-price {
  font-family: 'Ubuntu Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}

/* ── Performance row (perf card + best-for) ─────────────────────────────── */
.sd2-perf-row {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  margin-bottom: 0;
}

/* Perf card */
.sd2-perf-card {
  background: #f4f2f2;
  border-radius: 0;
  padding: 40px;
}

/* Tabs */
.sd2-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
}
.sd2-tab {
  background: #aaa9a9;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Ubuntu Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
  padding: 9px 22px;
  margin-right: 10px;
  transition: background 0.15s, color 0.15s;
}
.sd2-tab:hover { color: #ffffff; background: #888; }
.sd2-tab.active {
  background: var(--accent);
  color: #ffffff;
}

/* Tab panels */
.sd2-tab-panel { display: block; }
.sd2-hidden    { display: none !important; }

/* Rating bars — label + value on one row, full-width bar below */
.sd2-rating-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}
.sd2-rating-row:last-child { margin-bottom: 0; }
.sd2-rating-label {
  font-family: 'Ubuntu Mono', monospace;
  font-size: 16px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--accent);
  flex-shrink: 0;
}
.sd2-rating-right {
  display: flex;
  align-items: center;
  gap: 0;
}
.sd2-rating-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.sd2-rating-track {
  width: 100%;
  height: 6px;
  background: #e0dede;
  border-radius: 0;
  overflow: hidden;
}
.sd2-rating-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 0;
  transition: width 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}
.sd2-rating-value {
  font-family: 'Ubuntu Mono', monospace;
  font-size: 16px;
  line-height: 16px;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
  flex-shrink: 0;
}

/* Tech specs inside tab */
.sd2-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
.sd2-spec-item .spec-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.sd2-spec-item .spec-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* Latest Reviews card (replaces Best For) */
.sd2-bestfor-card {
  background: #ece9e9;
  border-radius: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Keep legacy bestfor styles for any fallback use */
.sd2-bestfor-title {
  font-family: 'Ubuntu Mono', monospace;
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 24px;
}
.sd2-bestfor-list {
  list-style: disc;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sd2-bestfor-list li {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 22px;
  color: var(--ink);
}

/* ── Latest Reviews inner elements ── */
.sd2-reviews-title {
  font-family: 'Ubuntu Mono', monospace;
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 20px;
}
.sd2-reviews-empty {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 24px;
}
/* Carousel */
.sd2-reviews-carousel {
  flex: 1;
  position: relative;
  margin-bottom: 16px;
}
.sd2-review-slide {
  display: none;
}
.sd2-review-slide.active {
  display: block;
}
.sd2-review-text {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  font-style: italic;
}
/* Dot indicators */
.sd2-reviews-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.sd2-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s;
  flex-shrink: 0;
}
.sd2-dot.active {
  background: var(--ink);
}
/* Submit button — matches nav CTA size */
.sd2-reviews-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 12px 32px;
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
  text-decoration: none;
  align-self: flex-start;
  margin-top: auto;
}
.sd2-reviews-btn:hover { background: #4a2868; }

/* ── Divider ────────────────────────────────────────────────────────────── */
.sd2-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 56px 0 0;
}

/* ── Generic section ────────────────────────────────────────────────────── */
.sd2-section {
  padding: 56px 0 0;
}
.sd2-section-title {
  font-family: var(--f-heading);
  font-size: 24px;
  line-height: 28px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 24px;
}

/* ── Fit section ─────────────────────────────────────────────────────────── */
.sd2-fit-advice {
  font-family: var(--f-body);
  font-size: 14px;
  color: #2c2c2c;
  line-height: 1.65;
  margin-bottom: 28px;
}
.sd2-fit-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.sd2-fit-stat-range {
  font-family: var(--f-heading);
  font-size: 20px;
  line-height: 22px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}
.sd2-fit-stat-label {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 18px;
  color: var(--accent);
  margin-bottom: 10px;
}
.sd2-fit-stat-note {
  font-family: var(--f-body);
  font-size: 14px;
  color: #2c2c2c;
  line-height: 1.6;
}

.sd2-fit-disclaimer {
  margin-top: 24px;
  font-family: var(--f-body);
  font-size: 12px;
  color: #888;
  line-height: 1.6;
  font-style: italic;
}

/* ── Pros & Cons ─────────────────────────────────────────────────────────── */
.sd2-pc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sd2-pc-card {
  background: #ece9e9;
  border-radius: 0;
  padding: 40px;
}
.sd2-pc-title {
  font-family: 'Ubuntu Mono', monospace;
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}
.sd2-pc-list {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sd2-pc-list li {
  font-family: var(--f-body);
  font-size: 14px;
  color: #2c2c2c;
  line-height: 1.55;
}

/* ── Alternatives ────────────────────────────────────────────────────────── */
.sd2-alt-section {
  margin-top: 56px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #ece9e9;
  padding: 56px calc((100vw - 760px) / 2 + 24px);
  box-sizing: border-box;
}
.sd2-alt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sd2-alt-card {
  background: transparent;
  border-radius: 4px;
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.18s ease;
  border: 1px solid #c8c4c4;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sd2-alt-card:hover {
  border-color: var(--accent);
}
.sd2-alt-brand {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #2c2c2c;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.sd2-alt-name {
  font-family: var(--f-heading);
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 12px;
}
.sd2-alt-tags { display: flex; gap: 5px; flex-wrap: wrap; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .sd2-layout { padding: 0 20px 0; }
  .sd2-breadcrumb { padding-top: 16px; margin-bottom: 32px; }
  .sd2-perf-row { grid-template-columns: 1fr; gap: 0; }
  .sd2-hero { flex-direction: column-reverse; gap: 24px; }
  .sd2-hero-img img { width: 100%; max-width: 320px; }
  .sd2-hero-brand { font-size: 18px; }
  .sd2-alt-section { padding: 40px 20px; }
  .sd2-alt-grid { grid-template-columns: 1fr 1fr; }
  .sd2-pc-row { grid-template-columns: 1fr; }
  .sd2-fit-stats { grid-template-columns: 1fr; gap: 24px; }
  /* Reduce section spacing from 56px → 40px on mobile */
  .sd2-section { padding-top: 40px; }
  .sd2-divider { margin-top: 40px; }
  .sd2-alt-section { margin-top: 40px; }
}

@media (max-width: 480px) {
  .sd2-hero-name { font-size: clamp(32px, 8.5vw, 72px); }
  .sd2-hero-brand { font-size: 15px; }
  .sd2-specs-grid { grid-template-columns: 1fr; }
  .sd2-alt-grid { grid-template-columns: 1fr; }
}

/* ─── EMAIL BANNER ───────────────────────────────── */
.email-banner {
  margin-top: 8px;
  padding: 28px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 480px;
}

.email-banner-text {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  text-transform: uppercase;
  text-align: center;
}

.email-banner-form {
  display: flex;
  gap: 8px;
  width: 100%;
}

.email-banner-input {
  flex: 1;
  background: transparent;
  border: 1px solid #bbb;
  border-radius: 4px;
  padding: 12px 16px;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  min-width: 0;
}
.email-banner-input::placeholder { color: var(--ink-muted); }
.email-banner-input:focus { border-color: var(--accent); }

.email-banner-btn {
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 16px 40px;
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.email-banner-btn:hover { background: #4a2868; }
.email-banner-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.email-banner-success {
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--accent);
  display: none;
  text-align: center;
}

@media (max-width: 768px) {
  .email-banner {
    padding: 24px 20px;
    max-width: 100%;
  }
  .email-banner-form { flex-direction: column; }
  .email-banner-btn { width: 100%; padding: 16px; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   NAV  (replaces old header + sidebar)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Reset header padding for full-width nav */
header {
  padding-right: 0;
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  margin-left: 0;
  padding: 0 var(--margin);
  gap: 0;
}

/* ── Desktop nav links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: 40px;
}

.nav-link {
  font-family: var(--f-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-link:hover { color: var(--accent); }
.nav-link.active { color: var(--accent); }

/* Brands dropdown trigger */
.nav-brands-wrap { position: relative; }
.nav-brands-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
/* No chevron on Brands */
.nav-chevron { display: none; }

/* Dropdown panel */
.nav-brands-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -14px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 6px;
  min-width: 170px;
  z-index: 300;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: none;
  flex-direction: column;
}
.nav-brands-dropdown.open { display: flex; }

.nav-brand-item {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 400;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
  padding: 9px 14px;
  text-align: left;
  border-radius: 6px;
  transition: background 0.1s, color 0.1s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-brand-item:hover { background: #f0ecf5; color: var(--accent); }

/* ── Nav CTA — pushed to far right ── */
.nav-cta {
  margin-left: auto;
  padding: 12px 32px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
  text-decoration: none;
}
.nav-cta:hover { background: #4a2868; }

/* ── Hamburger — mobile only ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
  transform-origin: center;
}
/* Active = X */
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hide the original global brand-sidebar (replaced by new nav) ── */
#brand-sidebar { display: none !important; }
/* mobile-brands is still used on the quiz landing page */


/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE MENU  (full-screen accordion)
   ═══════════════════════════════════════════════════════════════════════════ */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 500;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--margin);
  flex-shrink: 0;
}

/* The close hamburger in the menu mirrors the open one */
.nav-hamburger--close {
  display: flex !important; /* always show inside menu */
  margin-left: auto;
}

.mobile-menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}

/* Each row */
.mm-row {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.mm-row:first-child { border-top: 1px solid rgba(0,0,0,0.08); }

.mm-row-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--margin);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
  text-decoration: none;
}
.mm-row-btn:hover { background: rgba(95,55,129,0.05); }
.mm-row-btn.active .mm-row-label { color: var(--accent); }

.mm-row-label {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.15s;
}

.mm-row-chevron {
  flex-shrink: 0;
  color: var(--ink-muted);
  transition: transform 0.2s;
}
/* Down chevron rotates to up when open */
.mm-row--accordion.open .mm-row-chevron:not(.mm-row-chevron--right) {
  transform: rotate(180deg);
}
.mm-row-btn.active .mm-row-chevron { color: var(--accent); }

/* Accordion body */
.mm-accordion-body {
  display: none;
  flex-direction: column;
  padding-bottom: 8px;
}
.mm-accordion-body.open { display: flex; }

.mm-brand-link {
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 400;
  color: rgba(44,44,44,0.75);
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px var(--margin);
  text-align: left;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.12s;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  text-decoration: none;
}
.mm-brand-link:last-child { border-bottom: none; }
.mm-brand-link:hover { color: var(--accent); }

.mobile-menu-footer {
  padding: 20px var(--margin);
  border-top: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   HOMEPAGE  (new entry point — centred hero, photo grid, guide, review form)
   ═══════════════════════════════════════════════════════════════════════════ */

#homepage-section.active {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── Hero ── */
.hp-hero {
  padding: 80px var(--margin) 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hp-hero-title {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 72px);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.hp-hero-sub {
  font-family: var(--f-body);
  font-size: clamp(14px, 1.1vw, 18px);
  color: var(--ink-mid);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 32px;
}

.hp-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 16px 40px;
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s;
}
.hp-hero-cta:hover { background: #4a2868; }

/* ── Photo grid ── */
/*
  Row 1: col1=6/12, col2=3/12, col3=3/12
  Row 2: col1=3/12, col2=4/12, col3=5/12
  Each row height = 320px. All gaps = 20px.
  Use a 12-column subgrid via explicit grid-template-columns.
*/
.hp-photo-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 320px 320px;
  gap: 20px;
  padding: 0;           /* stretch to viewport edges */
  margin: 0 0 0 0;
}

.hp-photo {
  background: #d8d5d5;
  border-radius: 8px;   /* default: all corners rounded */
  overflow: hidden;
}

.hp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Row 1 */
/* Left edge — no radius on top-left/bottom-left */
.hp-photo--1 { grid-column: 1 / 7;  grid-row: 1; background: #d8d5d5; border-radius: 0 8px 8px 0; }
/* Middle */
.hp-photo--2 { grid-column: 7 / 10; grid-row: 1; background: #e0dddd; border-radius: 8px; }
/* Right edge — no radius on top-right/bottom-right */
.hp-photo--3 { grid-column: 10 / 13; grid-row: 1; background: #d4d1d1; border-radius: 8px 0 0 8px; }
/* Row 2 */
/* Left edge */
.hp-photo--4 { grid-column: 1 / 4;  grid-row: 2; background: #d6d3d3; border-radius: 0 8px 8px 0; }
/* Middle */
.hp-photo--5 { grid-column: 4 / 8;  grid-row: 2; background: #dbd8d8; border-radius: 8px; }
/* Right edge */
.hp-photo--6 { grid-column: 8 / 13; grid-row: 2; background: #e2dfdf; border-radius: 8px 0 0 8px; }

/* ── Divider ── */
.hp-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 80px var(--margin) 0;
}

/* ── Featured Guide — mirrors .news-featured layout ── */
.hp-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px var(--margin);
}

.hp-guide-eyebrow {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hp-guide-title {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: clamp(24px, 2.5vw, 44px);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 16px;
}

.hp-guide-desc {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.65;
  margin: 0 0 24px;
  font-weight: 400;
}

/* Read more button — same as hp-submit / sd2-reviews-btn */
.hp-guide-btn,
.news-featured-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 12px 32px;
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
  text-decoration: none;
  align-self: flex-start;
}
.hp-guide-btn:hover,
.news-featured-btn:hover { background: #4a2868; }

/* Clickable image — pointer cursor + subtle hover */
.hp-guide-img {
  width: 100%;
  aspect-ratio: 16/11;
  min-height: 0;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.hp-guide-img-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  transition: transform 0.3s ease;
}
.hp-guide-img:hover .hp-guide-img-photo { transform: scale(1.03); }

/* ── Review form ── */
/* Outer wrapper — provides the 80px section breathing room */
.hp-review-wrap {
  padding: 0 var(--margin) 80px;
}

/* Single card, uniform #222 bg across both cols */
.hp-review {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
  background: #ece9e9;
  border-radius: 8px;
  overflow: hidden;
}

.hp-review-text {
  padding: 48px 40px;
}

.hp-review-title {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 52px);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.hp-review-desc {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.6;
}

/* Right column — same bg as left */
.hp-review-card {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ece9e9;
}

.hp-review-form {
  display: contents;
}

/* Wrapper for select + chevron overlay */
.hp-field-wrap {
  position: relative;
  width: 100%;
}
.hp-field-wrap .hp-select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

/* All form fields — identical look */
.hp-input,
.hp-select {
  background: transparent;
  border: 1px solid #bbb;
  border-radius: 4px;
  padding: 12px 16px;
  font-family: 'Ubuntu Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-muted);
  outline: none;
  transition: border-color 0.15s;
  resize: none;
  width: 100%;
  box-sizing: border-box;
}
.hp-input::placeholder { color: var(--ink-muted); }
.hp-input:focus,
.hp-select:focus { border-color: var(--accent); color: var(--ink); }

/* Select: kill native arrow, add padding for our chevron */
.hp-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 36px;
}
.hp-select option { background: #ffffff; color: var(--ink); }

.hp-textarea { min-height: 120px; color: var(--ink-muted); }
.hp-textarea:focus { color: var(--ink); }

/* Submit button */
.hp-submit {
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 12px 32px;
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.15s;
}
.hp-submit:hover { background: #4a2868; }

/* Honeypot — visually hidden but not display:none (bots read the DOM) */
.hp-honeypot {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
  pointer-events: none;
}

/* Review carousel byline */
.sd2-review-byline {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 10px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — NAV + HOMEPAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* Collapse nav to hamburger at 900px */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-hamburger { display: flex; margin-left: auto; }

  header { padding-top: 20px; padding-bottom: 20px; }
  .header-inner { padding: 0 var(--margin); }
}

@media (max-width: 768px) {
  /* Hero */
  .hp-hero { padding: 40px var(--margin); }
  .hp-hero-cta { width: 100%; padding: 16px 24px; font-size: 14px; }

  /* Photo grid → 3-image layout on mobile, edge-to-edge, equal widths */
  .hp-photo-grid {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 200px;
    gap: 8px;
    padding: 0;
  }
  /* Show only first 3, all in row 1 */
  .hp-photo--1 { grid-column: 1 / 2; grid-row: 1; border-radius: 0 8px 8px 0; }
  .hp-photo--2 { grid-column: 2 / 3; grid-row: 1; border-radius: 8px; }
  .hp-photo--3 { grid-column: 3 / 4; grid-row: 1; border-radius: 8px 0 0 8px; }
  .hp-photo--4 { display: none; }
  .hp-photo--5 { display: none; }
  .hp-photo--6 { display: none; }

  /* Guide → stacked */
  .hp-guide { grid-template-columns: 1fr; gap: 24px; padding: 40px var(--margin); }
  .hp-guide-title { font-size: clamp(22px, 7vw, 40px); }
  .hp-guide-img { order: -1; aspect-ratio: 16/9; }
  .hp-guide-btn { width: 100%; }

  /* Review → stacked */
  .hp-review-wrap { padding: 0 var(--margin) 40px; }
  .hp-review { grid-template-columns: 1fr; border-radius: 6px; }
  .hp-review-text { padding: 28px 24px 20px; }
  .hp-review-card { padding: 24px; }
  .hp-review-title { font-size: clamp(24px, 8vw, 44px); }

  /* Dividers */
  .hp-divider { margin: 40px var(--margin) 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   QUIZ LANDING — brand sidebar (uses original brand-sidebar styles)
   Only visible when landing-section is active (controlled via JS showPage)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hide nav CTA on quiz landing */
body.on-quiz-landing .nav-cta { display: none !important; }

/* ── Review form success / error messages ── */
.hp-review-success {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--accent);
  line-height: 1.5;
  margin-top: 8px;
}
.hp-review-error {
  font-family: var(--f-body);
  font-size: 14px;
  color: #e05050;
  line-height: 1.5;
  margin-top: 8px;
}

/* ── Shoe detail review section ── */
.sd2-review-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.sd2-review-subline {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.65;
  margin: 8px 0 0;
}
.sd2-review-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  max-width: none;
  margin-top: 32px;
}
.sd2-review-card .hp-review-form {
  gap: 12px;
  display: flex;
  flex-direction: column;
}

/* ── Contact page ── */
.contact-inner {
  padding: 0 var(--margin) 80px;
}
.contact-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 0 56px;
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--ink-muted);
}
/* Title inherits .results-title — constrain to 8-col same as form */
.contact-title {
  max-width: calc(8 * var(--col) + 7 * var(--gutter));
}
/* Subline inherits .brand-subline styles already defined */
.contact-subline {
  font-family: var(--f-body);
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1.6;
  color: var(--ink-mid);
  margin-top: 24px;
  max-width: calc(8 * var(--col) + 7 * var(--gutter));
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 56px;
  max-width: calc(8 * var(--col) + 7 * var(--gutter));
}
#contact-success-wrap,
#contact-error {
  margin-top: 8px;
  max-width: calc(8 * var(--col) + 7 * var(--gutter));
}

@media (max-width: 900px) {
  .contact-title,
  .contact-subline,
  .contact-form,
  #contact-success-wrap,
  #contact-error { max-width: 100%; }
}
@media (max-width: 768px) {
  .contact-inner { padding-bottom: 60px; }
  .contact-breadcrumb { padding-top: 16px; padding-bottom: 32px; }
  .contact-form { margin-top: 40px; }
}

/* ── News page ── */
.news-inner {
  padding: 0 var(--margin) 80px;
}
.news-title {
  max-width: calc(10 * var(--col) + 9 * var(--gutter));
}
.news-subline {
  font-family: var(--f-body);
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1.6;
  color: var(--ink-mid);
  margin-top: 24px;
  max-width: calc(8 * var(--col) + 7 * var(--gutter));
}

/* Pill tabs — identical to sd2-tabs/sd2-tab */
.news-tabs {
  display: flex;
  gap: 0;
  margin-top: 32px;
  margin-bottom: 0;
  position: relative;
}
.news-tab {
  background: #aaa9a9;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Ubuntu Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
  padding: 9px 22px;
  margin-right: 10px;
  transition: background 0.15s, color 0.15s;
}
.news-tab:hover { color: #ffffff; background: #888; }
.news-tab.active {
  background: var(--accent);
  color: #ffffff;
}

/* Content area */
.news-articles {
  margin-top: 56px;
}

/* Featured article card — two-column (text left, image right) */
.news-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.news-featured-eyebrow {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.news-featured-title {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: clamp(24px, 2.5vw, 44px);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 16px;
}
.news-featured-desc {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.65;
  margin: 0 0 24px;
  font-weight: 400;
}
.news-featured-img {
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  user-select: none;
}

@media (max-width: 900px) {
  .news-title { max-width: 100%; }
  .news-subline { max-width: 100%; }
  .news-featured {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  /* Image always first when stacked */
  .news-featured-img-wrap { order: 1; }
  .news-featured-text { order: 2; }
}
@media (max-width: 768px) {
  .news-inner { padding-bottom: 60px; }
  .news-articles { margin-top: 40px; }
  .news-tabs { margin-top: 24px; }

  /* ── News tabs → dropdown on mobile ── */
  .news-tabs {
    position: relative;
    display: block; /* override flex */
  }
  /* Hide individual tab pills */
  .news-tab {
    display: none;
  }
  /* Show only the active tab as a bsb-btn-style dropdown trigger */
  .news-tab.active {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #bbb;
    border-radius: 8px;
    color: #333;
    font-family: var(--f-body);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    padding: 10px 18px;
    margin-right: 0;
    text-transform: none;
    cursor: pointer;
    transition: border-color 0.15s;
    width: auto;
  }
  .news-tab.active::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 3.5L5 6.5L8 3.5' stroke='%23444' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
  }
  .news-tab.active:hover { border-color: #5F3781; color: #5F3781; }
}

/* News tabs dropdown — matches .sort-panel / .brand-switcher-panel exactly */
.news-tabs-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  min-width: 200px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: none;
}
.news-tabs-dropdown.open { display: block; }

.news-tabs-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 400;
  color: #444;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 9px 12px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
}
.news-tabs-dropdown-item:hover { background: #f0ecf5; color: #5F3781; }
.news-tabs-dropdown-item.active { color: var(--accent); font-weight: 600; }

/* ── News featured card — image is clickable, button is clickable ──────────── */
.news-featured--clickable {
  cursor: default;
}
.news-featured--clickable .news-featured-img-wrap {
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
}
.news-featured--clickable .news-featured-img {
  transition: transform 0.3s ease;
  border-radius: 0;
}
.news-featured--clickable .news-featured-img-wrap:hover .news-featured-img {
  transform: scale(1.03);
}

/* ── ARTICLE PAGE ─────────────────────────────────────────────────────────── */
.article-inner {
  padding: 0 var(--margin) 80px;
  max-width: 100%;
}

/* Hero */
.article-hero {
  padding-top: 0;
}
.article-eyebrow {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5F3781;
  margin: 0 0 20px;
}
/* Article title — same scale as .news-featured-title */
.article-title {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: clamp(24px, 2.5vw, 44px);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 40px;
  max-width: calc(10 * var(--col) + 9 * var(--gutter));
}
.article-hero-img-wrap {
  width: 100%;
  margin-bottom: 64px;
}
.article-hero-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  user-select: none;
}

/* Body */
.article-body {
  max-width: calc(8 * var(--col) + 7 * var(--gutter));
}

/* All <p> inside #article-content → white */
#article-content p {
  color: #2c2c2c;
}
/* Eyebrow inside article always accent yellow — overrides the p rule above */
#article-content .article-eyebrow,
.article-eyebrow {
  color: #5F3781 !important;
}
/* Callout text — all of it, including strong — #2c2c2cA6, overrides #article-content p */
#article-content .article-callout .article-callout-text,
#article-content .article-callout .article-callout-text strong,
.article-callout-text,
.article-callout-text strong {
  color: #555555 !important;
}

.article-lead p {
  font-family: var(--f-body);
  font-size: clamp(14px, 1.1vw, 18px);
  color: var(--ink-mid);
  line-height: 1.6;
  margin: 0 0 20px;
}
.article-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}
.article-section {
  margin-bottom: 0;
}
.article-section p {
  font-family: var(--f-body);
  font-size: clamp(14px, 1.1vw, 18px);
  color: #2c2c2c;
  line-height: 1.7;
  margin: 0 0 20px;
}
/* Section title — matches .sd2-section-title */
.article-section-title {
  font-family: var(--f-heading);
  font-size: 24px;
  line-height: 28px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-transform: uppercase;
  margin: 0 0 24px;
}

/* Callout block */
.article-callout {
  background: #ece9e9;
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.article-callout-text {
  font-family: var(--f-body);
  font-size: clamp(14px, 1.1vw, 17px);
  color: #555555;
  line-height: 1.65;
  margin: 0 !important;
}
.article-callout-text strong {
  color: #555555;
  font-weight: 600;
}

/* Spec grid — vertically stacked */
.article-spec-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0;
}
/* Each spec item — #333 fill, 24px padding, vertically stacked label + value */
.article-spec-item {
  background: #ece9e9;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Spec label — Ubuntu Mono Bold, accent yellow */
.article-spec-label {
  font-family: 'Ubuntu Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #5F3781;
  text-transform: uppercase;
}
.article-spec-value {
  font-family: var(--f-body);
  font-size: 14px;
  color: #2c2c2c;
  line-height: 1.55;
}

/* Recommendation cards */
.article-rec-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 28px;
  border-radius: 4px;
  overflow: hidden;
}
.article-rec-item {
  background: #ece9e9;
  padding: 24px 28px;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-rec-item:hover { background: #e0dada; }
.article-rec-name {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.article-rec-desc {
  font-family: var(--f-body);
  font-size: 14px;
  color: #2c2c2c;
  line-height: 1.55;
}
/* View shoe link — Noto Sans JP */
.article-rec-link {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .article-body { max-width: 100%; }
  .article-title { max-width: 100%; }
}
@media (max-width: 768px) {
  .article-inner { padding-bottom: 60px; }
  .article-hero-img { max-height: 320px; }
  .article-hero-img-wrap { margin-bottom: 40px; }
  .article-divider { margin: 36px 0; }
}

/* ── Page wrapper ── */
.rv-inner {
  padding: 0 var(--margin) 0;
}

/* ── Breadcrumb: reuse brand-breadcrumb, just needs page-level padding ── */
.rv-breadcrumb {
  padding: 16px 0 0;
  margin-bottom: 0;
}

.rv-page-sub {
  margin-top: 24px;
  max-width: calc(10 * var(--col) + 9 * var(--gutter));
}

/* ── Control bar: reuse brand-sort-bar exactly, just override top margin ── */
.rv-control-bar {
  margin-top: 56px;
  margin-bottom: 0; /* cards start 32px below via rv-list margin-top */
  /* padding already set by brand-sort-bar: padding: 0 var(--margin) */
  padding: 0; /* rv-inner already handles the margin */
}

/* ── Reviews list ── */
.rv-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 80px;
}

/* ── Empty / loading state ── */
.rv-empty {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink-muted);
  padding: 40px 0;
}

/* ── Review card ── */
.rv-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px;
  background: var(--bg-card);
  transition: border-color 0.15s;
}
.rv-card:hover { border-color: rgba(0,0,0,0.22); }

/* Top row: shoe meta left, VIEW SHOE right */
.rv-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.rv-card-meta { flex: 1; min-width: 0; }

/* Shoe brand + name: reuse exact shoe-card classes */
.rv-shoe-brand {
  /* .shoe-brand styles already apply */
  margin-bottom: 2px;
}
.rv-shoe-name {
  /* .shoe-name styles already apply */
  margin-bottom: 10px;
}

/* Tags row */
.rv-tags {
  margin-top: 8px;
}

/* VIEW SHOE link */
.rv-view-shoe {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding: 0;
  text-transform: uppercase;
  transition: opacity 0.15s;
  white-space: nowrap;
  align-self: flex-start;
}
.rv-view-shoe:hover { opacity: 0.7; }

/* ── Review body ── */
.rv-body {
  margin-bottom: 20px;
}

/* Stars */
.rv-stars {
  display: block;
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

/* Review title */
.rv-title {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: clamp(16px, 1.3vw, 20px);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 10px;
}

/* Review text */
.rv-text {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.65;
  margin: 0;
}

/* See more / less toggle */
.rv-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 0 0;
  display: block;
  transition: opacity 0.15s;
}
.rv-toggle:hover { opacity: 0.7; }

/* ── Byline row ── */
.rv-byline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rv-avatar {
  width: 32px;
  height: 30px;
  border-radius: 50%;
  background: #ECE7F3;
  color: var(--accent);
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rv-name {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.rv-dot {
  color: var(--ink-muted);
  font-size: 12px;
}

.rv-date {
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--ink-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .rv-inner {
    padding: 0 var(--margin);
  }
  .rv-card {
    padding: 24px;
  }
  .rv-control-bar {
    padding: 0;
  }
}

