/* shop/shop.css — spike styles for the Shopify-powered PDP + cart drawer.
   Brand tokens come from global.css (--red, --black, --font-display, etc.).
   Sharp corners, no shadows, no gradients — per brand rules. */

/* ── <surefoot-nav> placeholder — reserves topbar height before JS runs ── */
/* The wrapper stays in flow and holds the bar's 66px so nothing shifts; the
   .sf-topbar inside is position:fixed (see below). It can't be sticky: a
   sticky child can never leave its parent (this wrapper is exactly bar
   height, which made the old `.sf-topbar{position:sticky}` a silent no-op),
   and sticky also disengages under the scroll lock's overflow:hidden —
   fixed is immune to both, and keeps the drawer's top:66px anchor true. */
surefoot-nav {
  display: block;
  min-height: 66px;
  background: var(--black);
}

/* Page scroll is locked while a nav drawer / mobile menu / cart drawer is
   open (class toggled by nav-component.js + cart.js). scrollbar-gutter keeps
   the page width from jumping when the scrollbar disappears. */
html.sf-scroll-lock { overflow: hidden; scrollbar-gutter: stable; }

/* The topbar is fixed, so give fragment jumps / scrollIntoView headroom. */
html { scroll-padding-top: 80px; }

/* ── Live-data badge (spike only — proves data is from Shopify) ─────── */
.sf-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 4px 10px;
  margin: 0 0 16px;
}

/* ── Generic option groups (Style, Size, Color … rendered from API) ── */
.opt-group { margin: 0 0 22px; }

.opt-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  display: flex;
  justify-content: space-between;
}
.opt-label span { font-weight: 400; color: var(--grey-30); }

.opt-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.opt-grid--wide { grid-template-columns: repeat(4, 1fr); }

.opt-btn {
  border: 1px solid var(--grey-300);
  background: var(--white);
  padding: 11px 4px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.opt-btn:hover:not(:disabled) { border-color: var(--black); }
.opt-btn.selected { border-color: var(--red); background: var(--red); color: #fff; }
.opt-btn:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

/* Sold-out option values: crossed out but STILL clickable — selecting one
   swaps the buy box into the notify-me (back in stock) panel. */
.opt-btn--soldout {
  color: var(--grey-30);
  background: #f6f6f6;
  text-decoration: line-through;
}
.opt-btn--soldout:hover:not(:disabled) { border-color: var(--grey-30); }
.opt-btn--soldout.selected {
  background: var(--white);
  color: var(--grey-30);
  border-color: var(--red);
}

/* ── "Notify me when it's back" (Klaviyo back-in-stock) panel ──
   Mounts under the ATC button on the PDP and under the size grid in /build/. */
.bis { margin: 12px 0 0; }
.bis__line { font-size: 14px; font-weight: 600; color: var(--black); margin: 0; }
.bis__form { display: flex; gap: 8px; margin: 10px 0 0; flex-wrap: wrap; }
.bis__form input {
  flex: 1;
  min-width: 180px;
  padding: 11px 12px;
  border: 1px solid var(--grey-300);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 14px;
}
.bis__form button {
  padding: 11px 16px;
  background: var(--black);
  color: #fff;
  border: 0;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.bis__form button:hover { background: var(--grey-90); }
.bis__form button:disabled { opacity: 0.6; cursor: wait; }
.bis__note { font-size: 12.5px; color: var(--grey-30); margin: 8px 0 0; }
.bis__opt {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 10px 0 0; font-size: 12.5px; color: var(--grey-30); cursor: pointer;
}
.bis__opt input { margin: 2px 0 0; accent-color: var(--red); }
.bis__err { font-size: 13px; font-weight: 600; color: var(--red); margin: 8px 0 0; }

/* ── Add to cart (reuses #add-to-cart styling from shoes/styles.css) ── */
.sf-atc {
  width: 100%;
  padding: 18px;
  font-size: 16px;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  background: var(--red);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}
.sf-atc:hover:not(:disabled) { background: var(--red-dark); }
.sf-atc:disabled { background: var(--grey-300); color: #fff; cursor: not-allowed; }

/* ── Nav cart icon button + count badge ────────────────────────────── */
.sf-cart-btn {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
.sf-cart-btn svg { width: 22px; height: 22px; display: block; }
.sf-cart-btn:hover { color: var(--red); }
.sf-cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.sf-cart-count[hidden] { display: none; }

/* ── Outlined Shop button (peer with red Book a Fitting) ───────────── */
.btn--outline {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn--outline:hover { background: #fff; color: var(--black); border-color: #fff; }

/* ── Cart drawer ───────────────────────────────────────────────────── */
.sf-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s;
  z-index: 1000;
}
.sf-drawer-overlay.open { opacity: 1; visibility: visible; }

.sf-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 420px;
  max-width: 90vw;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 1001;
  display: flex;
  flex-direction: column;
}
.sf-drawer.open { transform: translateX(0); }

.sf-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--grey-300);
}
.sf-drawer__title { font-family: var(--font-display); font-size: 24px; text-transform: uppercase; }
.sf-drawer__close { font-size: 24px; line-height: 1; padding: 4px; }

.sf-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px; }

.sf-empty { padding: 48px 0; text-align: center; color: var(--grey-30); font-size: 14px; }

.sf-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--grey-300); }
.sf-line__img { width: 64px; height: 64px; object-fit: contain; background: var(--light-grey); }
.sf-line__title { font-weight: 600; font-size: 14px; margin: 0 0 4px; }
.sf-line__opts { font-size: 12px; color: var(--grey-30); margin: 0 0 8px; }
.sf-qty { display: inline-flex; border: 1px solid var(--grey-300); }
.sf-qty button { width: 28px; height: 28px; font-size: 16px; line-height: 1; }
.sf-qty span { width: 32px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.sf-line__price { font-weight: 600; font-size: 14px; text-align: right; }
.sf-line__remove { display: block; margin-top: 8px; font-size: 11px; color: var(--grey-30); text-decoration: underline; text-align: right; }

.sf-drawer__foot { padding: 24px; border-top: 1px solid var(--grey-300); }
.sf-subtotal { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.sf-subtotal-note { font-size: 12px; color: var(--grey-30); margin-bottom: 16px; }
.sf-checkout {
  width: 100%;
  padding: 18px;
  background: var(--black);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s;
}
.sf-checkout:hover { background: var(--red); }

/* ── Size guide (shoe line): trigger link + right drawer ───────────── */
/* Trigger — sits inside .opt-label (PDP) / .by-opts__label (build). */
.sg-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  color: var(--black); text-decoration: underline; text-underline-offset: 3px;
  text-transform: none; letter-spacing: 0;
}
.sg-link:hover { color: var(--red); }
.sg-link--block { display: inline-block; margin: 0 0 14px; }  /* shoe-PDP buy box placement */
/* PDP label row keeps "SIZE + chosen" left, guide link pinned right. */
.opt-label--sg { justify-content: flex-start; gap: 10px; }
.opt-label--sg .sg-link { margin-left: auto; }

/* Drawer — same anatomy as the cart drawer above. */
.sg-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  opacity: 0; visibility: hidden; transition: opacity 0.25s; z-index: 1000;
}
.sg-root.open .sg-overlay { opacity: 1; visibility: visible; }
.sg-drawer {
  position: fixed; top: 0; right: 0; height: 100%;
  width: 440px; max-width: 92vw; background: #fff;
  transform: translateX(100%); transition: transform 0.25s ease;
  z-index: 1001; display: flex; flex-direction: column;
}
.sg-root.open .sg-drawer { transform: translateX(0); }
.sg-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px; border-bottom: 1px solid var(--grey-300);
}
.sg-title { font-family: var(--font-display); font-size: 24px; text-transform: uppercase; margin: 0; }
.sg-close { font-size: 24px; line-height: 1; padding: 4px; background: none; border: 0; cursor: pointer; }
.sg-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px 24px 28px; }
.sg-kind {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin: 0 0 18px;
}
.sg-sub {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red); margin: 0 0 8px;
}
.sg-steps { margin: 0 0 22px; padding-left: 18px; font-size: 14px; line-height: 1.55; color: var(--grey-90); list-style: decimal; }  /* global.css resets ol */
.sg-steps li { margin-bottom: 6px; }
.sg-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 18px; }
.sg-table th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--grey-30);
  border-bottom: 2px solid var(--black); padding: 8px 6px; white-space: nowrap;
}
.sg-table td { padding: 9px 6px; border-bottom: 1px solid var(--grey-300); white-space: nowrap; }
.sg-table .sg-row--on td { background: var(--light-grey); font-weight: 700; }
.sg-promise { font-size: 13px; color: var(--grey-30); line-height: 1.5; margin: 0; }

/* ── Loading skeleton ──────────────────────────────────────────────── */
.sf-loading { opacity: 0.4; pointer-events: none; }

/* ════════════════════════════════════════════════════════════════════
   PHASE 1 — shop directory, grids, gender toggle, more-styles
   ════════════════════════════════════════════════════════════════════ */

.sf-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 10px;
}

.opt-chosen { font-weight: 400; color: var(--grey-30); text-transform: none; letter-spacing: 0; }

/* ── Men's / Women's toggle ── */
.gender-toggle {
  display: inline-flex;
  border: 1px solid var(--grey-300);
  margin: 0 0 14px;
}
.gender-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 22px;
  background: var(--white);
  color: var(--black);
  transition: background 0.15s, color 0.15s;
}
.gender-btn.selected { background: var(--black); color: #fff; }

/* ── Shop page header ── */
.shop-head {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 24px;
}
.shop-head h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0 0 8px;
}
.shop-head p { color: var(--grey-30); font-size: 15px; margin: 0; }

/* ── Category tiles (directory) ── */
.shop-cats {
  max-width: var(--max-width);
  margin: 0 auto 64px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.shop-cat {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: var(--light-grey);
  overflow: hidden;
}
.shop-cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.shop-cat:hover img { transform: scale(1.04); }
.shop-cat__label {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  padding: 18px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: uppercase;
}

/* ── Product grid + cards ── */
.shop-grid {
  max-width: var(--max-width);
  margin: 0 auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px 20px;
}
.shop-card { display: block; color: inherit; }
.shop-card__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--light-grey);
  margin-bottom: 12px;
}
.shop-card:hover .shop-card__img { outline: 2px solid var(--red); outline-offset: -2px; }
.shop-card__title { font-weight: 600; font-size: 14px; margin: 0 0 2px; }
.shop-card__price { font-family: var(--font-display); font-size: 18px; }

/* ── PDP description ── */
.pdp-desc {
  border-top: 1px solid var(--grey-300);
  margin-top: 28px;
  padding-top: 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--grey-90);
}
.pdp-desc :is(h2,h3,h4) { font-family: var(--font-display); text-transform: uppercase; margin: 18px 0 8px; }
.pdp-desc ul { padding-left: 18px; list-style: disc; margin: 8px 0; }
.pdp-desc p { margin: 0 0 10px; }

/* ── More styles row ── */
.pdp-more { max-width: var(--max-width); margin: 56px auto 0; padding: 40px 24px 0; border-top: 1px solid var(--grey-300); }
.pdp-more__title { font-family: var(--font-display); font-size: 28px; text-transform: uppercase; margin: 0 0 20px; }
.pdp-more__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.pdp-more__card { display: block; color: inherit; font-size: 12px; }
.pdp-more__card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--light-grey); margin-bottom: 8px; }
.pdp-more__card:hover img { outline: 2px solid var(--red); outline-offset: -2px; }

@media (max-width: 700px) {
  .shop-grid { gap: 20px 12px; }
  .opt-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ════════════════════════════════════════════════════════════════════
   SIDE-PANEL NAV — V1 styling (dark bar + slide-in panel, red accents)
   Hestra's side-panel structure rendered in Surefoot's bold language.
   ════════════════════════════════════════════════════════════════════ */
.sf-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 230;
  background: var(--black); border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sf-topbar__inner {
  max-width: var(--max-width); margin: 0 auto;
  height: 66px; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 0 28px; gap: 28px;
}
.sf-topbar__left { display: flex; align-items: center; gap: 36px; justify-self: start; }
.sf-topbar__center { display: flex; align-items: center; gap: 28px; justify-self: center; }
.sf-topbar__right { display: flex; align-items: center; gap: 18px; justify-self: end; }
/* Book a Fitting (.btn--red, big base padding) and Shop (.btn--outline, smaller
   padding) rendered different heights. Pin both topbar CTAs to one fixed height
   and center the label so they always match. Horizontal padding is left alone
   (widths can differ); only the height is unified. */
.sf-topbar__right .btn {
  height: 40px; padding-top: 0; padding-bottom: 0;
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; border-width: 1px;
}

/* ── Mobile hamburger + slide-down menu (hidden on desktop) ── */
.sf-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 0 9px; cursor: pointer;
  background: none; border: 0; box-sizing: border-box;
}
.sf-burger span {
  display: block; height: 2px; width: 100%; background: #fff;
  transition: transform .2s, opacity .2s;
}
.sf-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sf-burger.open span:nth-child(2) { opacity: 0; }
.sf-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sf-mobile-menu {
  display: none;
  position: fixed; top: 66px; left: 0; right: 0; z-index: 229;
  background: var(--black); border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 8px 24px 24px;
  max-height: calc(100vh - 66px); overflow-y: auto;
}
.sf-mobile-menu.open { display: block; animation: sf-fadein .2s ease; }
.sf-mobile-menu a {
  display: block; padding: 16px 0; color: #fff; text-decoration: none;
  font-family: var(--font-body); font-size: 16px; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.sf-mobile-menu a:hover { color: var(--red); }
/* CTA pair leads the menu (Book a Fitting + Shop at the very top) */
.sf-mobile-menu__cta { display: flex; flex-direction: column; gap: 12px; margin: 12px 0 8px; }
.sf-mobile-menu__cta a { border: 0; text-align: center; }
.sf-mobile-menu__cta .btn { width: 100%; box-sizing: border-box; }

/* Mobile-only Shop chip after the product tabs — 66% of traffic is mobile and
   the topbar otherwise loses its shop entry there (the right-side CTAs hide) */
.sf-shop-pill {
  display: none; align-self: center;
  background: var(--red); color: #fff; text-decoration: none;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 7px 11px; line-height: 1;
}

/* ── Mobile topbar: smaller logo + the three product tabs (they open the
   drawer panes — kept on mobile deliberately, Chance 7/6 phone review),
   cart + burger; center tabs and CTA buttons hide. Logo/tab sizing lives
   in the ≤860 block AFTER the base rules below — the base selectors come
   later in this file, so overrides here would lose the cascade. ── */
@media (max-width: 860px) {
  .sf-topbar__inner {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 14px; gap: 10px;
  }
  .sf-topbar__left { gap: 12px; }
  .sf-topbar__center { display: none; }
  .sf-topbar__right { gap: 6px; }
  .sf-topbar__right .btn { display: none; }
  .sf-burger { display: flex; }
  .sf-shop-pill { display: inline-block; }
}

/* Topbar dropdowns — same design family as the side drawer.
   Editorial uppercase typography, hairline rows, red accent on top + hover. */
.sf-tab-dropdown { position: relative; }
.sf-tab-dropdown > .sf-tab::after {
  content: " \25BE"; margin-left: 6px; font-size: 10px;
  opacity: 0.55; transition: opacity .15s, transform .15s;
}
.sf-tab-dropdown.open > .sf-tab {
  color: var(--red);
  border-bottom-color: var(--red);
}
.sf-tab-dropdown.open > .sf-tab::after {
  opacity: 1; color: var(--red); transform: rotate(180deg);
}

.sf-tab-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 230px;
  background: var(--black);
  border: 1px solid rgba(255,255,255,0.14);
  border-top: 2px solid var(--red);
  padding: 4px 0;
  z-index: 240;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.sf-tab-dropdown.open .sf-tab-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.sf-tab-dropdown__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color .15s, padding-left .15s, background .15s;
}
.sf-tab-dropdown__menu a:last-child { border-bottom: 0; }
.sf-tab-dropdown__menu a::after {
  content: "\203A";
  font-size: 20px;
  opacity: 0;
  transition: opacity .15s, transform .15s;
}
.sf-tab-dropdown__menu a:hover {
  color: var(--red);
  padding-left: 30px;
}
.sf-tab-dropdown__menu a:hover::after {
  opacity: 1;
  color: var(--red);
  transform: translateX(4px);
}
.sf-topbar__logo img { height: 26px; width: auto; display: block; }
.sf-topbar__tabs { display: flex; gap: 28px; flex: 1; }
.sf-tab {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: #fff;
  background: none; border: 0; cursor: pointer; padding: 8px 0;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.sf-tab:hover, .sf-tab.active { color: var(--red); border-bottom-color: var(--red); }
.sf-topbar__actions { display: flex; align-items: center; gap: 18px; }
.sf-topbar .sf-cart-btn { color: #fff; }

.sf-panel-overlay {
  position: fixed; top: 66px; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.55);
  opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 210;
}
.sf-panel-overlay.open { opacity: 1; visibility: visible; }
.sf-panel {
  position: fixed; top: 66px; left: 0; height: calc(100% - 66px); width: 1080px; max-width: 96vw;
  background: var(--black); color: #fff; transform: translateX(-100%); transition: transform .28s ease;
  z-index: 220; display: flex; flex-direction: column; padding: 22px 44px 44px;
  overflow-y: auto; overscroll-behavior: contain;
}
.sf-topbar__tabs--end { margin-left: auto; flex: 0; }
.sf-topbar__tabs--center { margin: 0 auto; flex: 0; }
.sf-panel.open { transform: translateX(0); }
.sf-panel__close { align-self: flex-end; font-size: 28px; line-height: 1; padding: 4px; color: #fff; }
.sf-panel__pane { display: none; }
.sf-panel__pane.active { display: block; }
.sf-panel__head { font-family: var(--font-display); font-size: 52px; text-transform: uppercase; margin: 0 0 22px; color: #fff; line-height: 1; }
.sf-panel__cols { display: grid; grid-template-columns: 210px 1fr; gap: 44px; align-items: start; }
/* "The Fitting Process" / equivalent — sits at TOP of subnav, in red */
.sf-panel__subnav .sf-panel__learn, .sf-panel__subnav a.sf-panel__learn {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid rgba(231, 0, 0, 0.4);
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  color: var(--red) !important;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: color .15s, padding-left .15s; margin: 0 0 6px 0;
}
.sf-panel__subnav a.sf-panel__learn::after { content: "\203A"; font-size: 22px; opacity: 0.95; color: var(--red); transition: transform .15s; }
.sf-panel__subnav a.sf-panel__learn:hover { padding-left: 4px; }
.sf-panel__subnav a.sf-panel__learn:hover::after { transform: translateX(4px); }
/* "Learn more" as the FIRST item in each subpane's nav (red) */
.sf-subpane__nav a.sf-subpane__learn { color: var(--red); }
.sf-subpane__nav a.sf-subpane__learn::after { color: var(--red); }
.sf-panel__right { display: flex; flex-direction: column; gap: 22px; }
.sf-panel__featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sf-panel__fcard { color: #fff; display: block; }
.sf-panel__fcard img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--grey-90); margin-bottom: 8px; }
.sf-panel__fcard:hover img { outline: 2px solid var(--red); outline-offset: -2px; }
.sf-panel__fcard b { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 600; }
.sf-panel__fcard span { font-family: var(--font-display); font-size: 16px; color: rgba(255,255,255,0.55); }
.sf-panel__feature { display: block; position: relative; }
.sf-panel__feature img { width: 100%; aspect-ratio: 21/9; object-fit: cover; background: var(--grey-90); }
.sf-panel__feature > span {
  position: absolute; left: 20px; bottom: 18px; color: #fff;
  font-family: var(--font-display); font-size: 30px; text-transform: uppercase;
}
@media (max-width: 760px) {
  .sf-panel__cols { grid-template-columns: 1fr; gap: 24px; }
  .sf-panel__featured { grid-template-columns: repeat(3, 1fr); }
}

/* ════ Two-level drawer (sub-nav on left, content panel that swaps) ════ */
.sf-panel__layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.sf-panel__subnav { display: flex; flex-direction: column; }
.sf-sub-btn {
  display: block; text-align: left; padding: 14px 0;
  font-family: var(--font-body); font-size: 16px; font-weight: 500; color: #fff;
  background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,0.12);
  cursor: pointer; transition: color .15s; width: 100%;
}
.sf-sub-btn:hover, .sf-sub-btn.active { color: var(--red); }
.sf-panel__content { min-height: 360px; }
.sf-panel__subpane { display: none; max-width: 640px; }
.sf-panel__subpane.active { display: block; animation: sf-fadein .25s ease; }
@keyframes sf-fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.sf-subpane__title { font-family: var(--font-display); font-size: 42px; text-transform: uppercase; margin: 0 0 14px; color: #fff; line-height: 1; letter-spacing: -0.005em; }
.sf-subpane__desc { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.78); margin: 0 0 26px; max-width: 580px; font-weight: 300; }
.sf-subpane__nav { display: flex; flex-direction: column; max-width: 580px; }
.sf-subpane__nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.18);
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: #fff;
  transition: color .15s, padding-left .15s;
}
.sf-subpane__nav a::after { content: "→"; font-size: 20px; opacity: 0.55; transition: transform .18s, opacity .18s; }
.sf-subpane__nav a:hover { color: var(--red); }
.sf-subpane__nav a:hover::after { opacity: 1; transform: translateX(6px); color: var(--red); }
@media (max-width: 820px) {
  .sf-panel__layout { grid-template-columns: 1fr; gap: 24px; }
}

/* ════ V3 drawer: visual card grid (Hestra-faithful) ════ */
/* Subnav now uses <a> tags (no drill-down). Click to navigate. */
.sf-panel__subnav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.15);
  font-family: var(--font-body); font-size: 16px; font-weight: 500;
  color: #fff; transition: color .15s, padding-left .15s;
}
.sf-panel__subnav a::after { content: "›"; font-size: 22px; opacity: 0.55; transition: transform .15s, opacity .15s; }
.sf-panel__subnav a:hover { color: var(--red); padding-left: 4px; }
.sf-panel__subnav a:hover::after { opacity: 1; transform: translateX(4px); }
.sf-panel__subnav a.sf-panel__learn::after { content: "→"; opacity: 1; color: var(--red); }

/* ════ V4 drawer: drill-down with V1 content (text-led, side thumb) ════ */
.sf-panel__subnav .sf-sub-btn {
  display: flex; justify-content: space-between; align-items: center;
  text-align: left; padding: 14px 0;
  font-family: var(--font-body); font-size: 16px; font-weight: 500;
  color: #fff; background: none; border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  cursor: pointer; transition: color .15s, padding-left .15s; width: 100%;
}
.sf-sub-btn::after { content: "›"; font-size: 22px; opacity: 0.55; transition: transform .15s, opacity .15s; }
.sf-sub-btn:hover, .sf-sub-btn.active { color: var(--red); padding-left: 4px; }
.sf-sub-btn:hover::after, .sf-sub-btn.active::after { opacity: 1; transform: translateX(4px); color: var(--red); }

.sf-panel__subpane { display: none; }
.sf-panel__subpane.active {
  display: flex; flex-direction: column; gap: 32px;
  animation: sf-fadein .22s ease;
}
.sf-panel__subpane .sf-subpane__hero { display: none; }   /* hide V2/V3 top hero */
/* Top row: text column on the left, square thumbnail on the right. */
.sf-subpane__top {
  display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: stretch;
}
.sf-subpane__main { min-width: 0; display: flex; flex-direction: column; }
/* Mini hero — fills ONLY the leftover space under Learn more, bottom-aligning
   with the thumbnail+buttons column so the two columns end on the same line
   (puzzle fit). flex:1 1 0 + min-height:0 means it never expands the row. */
.sf-subpane__mini {
  margin-top: 18px; width: 100%;
  flex: 1 1 0; min-height: 0;
  object-fit: cover; object-position: center; display: block; background: var(--grey-90);
}
/* ── Per-lane mini-photo framing — object-position Y tuned so the window
   centers on the product in each shot (lower % = content sits lower / "down"). ── */
.sf-panel__subpane[data-sub="sneakers"] .sf-subpane__mini        { object-position: center bottom; }
.sf-panel__subpane[data-sub="custom-ski-boots"] .sf-subpane__mini { object-position: center bottom; }
.sf-panel__subpane[data-sub="custom-orthotics"] .sf-subpane__mini { object-position: center bottom; }
.sf-panel__subpane[data-sub="clogs"] .sf-subpane__mini           { object-position: center 72%; }
.sf-panel__subpane[data-sub="sandals"] .sf-subpane__mini         { object-position: center 90%; }
/* Conforma mini is a transparent product cut-out → float it whole on the panel
   (no box), zoomed to fill. */
.sf-panel__subpane[data-sub="conforma"] .sf-subpane__mini        { object-fit: contain; object-position: center; padding: 4px; background: transparent; }
.sf-panel__subpane[data-sub="liners"] .sf-subpane__mini          { object-position: center 87%; }
/* Pro Day Pack — nudge up slightly. */
.sf-panel__subpane[data-sub="boot-bag"] .sf-subpane__mini        { object-position: center 82%; }
/* Winterheat mini — re-cropped with headroom above the heater; centered. */
.sf-panel__subpane[data-sub="winter-heat"] .sf-subpane__mini     { object-position: center 40%; }
/* Winterheat band — framed so the heater/battery sits centered. */
.sf-panel__subpane[data-sub="winter-heat"] .sf-subpane__widehero { object-position: center 23%; }
.sf-subpane__desc + .sf-subpane__desc { margin-top: -6px; }
/* Right column — thumbnail with the action button(s) stacked beneath it. */
.sf-subpane__aside {
  display: flex; flex-direction: column; gap: 14px;
}
.sf-subpane__thumb {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  background: var(--grey-90); display: block;
}
/* Insole thumbs are transparent product cut-outs → no box, product sits right
   on the drawer's black and fills the frame (contain + minimal padding). */
.sf-panel__subpane[data-sub="conforma"] .sf-subpane__thumb,
.sf-panel__subpane[data-sub="custom-orthotics"] .sf-subpane__thumb {
  object-fit: contain; padding: 8px; background: transparent;
}
/* Full-width hero carousel — only the .active image shows; prev/next cycle. */
.sf-subpane__carousel {
  position: relative; width: 100%; line-height: 0;
}
.sf-subpane__widehero {
  display: none; width: 100%;
  aspect-ratio: 16 / 9; object-fit: cover;
  background: var(--grey-90);
}
.sf-subpane__widehero.active { display: block; }

/* Discrete carousel chevrons — thin SVG, transparent by default, subtle
   tinted circle on hover. Premium / restrained, not a chunky chip. */
.sf-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; padding: 0;
  background: transparent; border: none; cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.55));
  transition: background 0.15s, color 0.15s;
}
.sf-carousel-btn:hover {
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
}
.sf-carousel-btn--prev { left: 18px; }
.sf-carousel-btn--next { right: 18px; }
/* Learn more — a small red-outlined transparent box (Chance 7/8 — replaces
   the full-column red rule), consistent across every subpane. */
.sf-subpane__learnmore {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 2px 0 0; padding: 9px 14px;
  border: 1px solid var(--red); background: transparent;
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red); text-decoration: none;
  transition: background .15s, color .15s;
}
.sf-subpane__learnmore:hover { background: var(--red); color: #fff; }
/* Mobile topbar sizing (must sit after the base .sf-topbar__logo/.sf-tab
   rules above — same specificity, cascade decides). Breakpoint matches the
   mobile layout block so the whole treatment switches at once. */
@media (max-width: 860px) {
  .sf-topbar__logo img { height: 19px; }
  .sf-topbar__tabs { gap: 13px; }
  .sf-tab { font-size: 11px; letter-spacing: 0.07em; }
}

/* ════════════════════════════════════════════════════════════════════
   V7 — Drill-down refresh.
   - Lane head + subpane title sit on the same top line.
   - No "Fitting Process" red link inside the drawer (moved to topbar).
   - Each subpane = title · description · primary CTA · learn more.
   - Bottom subnav row = "Shop All [lane]" (visually distinct).
   ════════════════════════════════════════════════════════════════════ */

/* Align the subpane title with the lane head. Both have line-height: 1 and
   start at the top of their column — that does the work. Bump the title to
   the same display scale so they read as peers, not parent/child. */
.sf-subpane__title {
  font-family: var(--font-display); font-size: 52px;
  text-transform: uppercase; letter-spacing: -0.005em;
  line-height: 1; margin: 0 0 18px; color: #fff;
}
/* The title doubles as the link to that section's page (info page where one
   exists, otherwise the shop page). Inherit the heading look; reveal a red
   underline on hover/focus so it reads as clickable. */
.sf-subpane__titlelink {
  color: inherit; text-decoration: none;
  text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.sf-subpane__titlelink:hover,
.sf-subpane__titlelink:focus-visible {
  text-decoration: underline; text-decoration-color: var(--red);
}

/* Lane head: only render the lane name; the red top-link rule that lived
   here for V4–V6 no longer applies. */
.sf-panel__subnav .sf-panel__head {
  display: block; margin: 0 0 22px;
  font-family: var(--font-display); font-size: 52px;
  line-height: 1; text-transform: uppercase; color: #fff;
}

/* Subnav row separator above "Shop All [lane]" */
.sf-sub-btn.sf-sub-btn--shopall {
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 18px;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}

/* Primary CTA — full width beneath the thumbnail in the right column. */
.sf-subpane__cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0; padding: 14px 24px;
  background: var(--red); color: #fff;
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 0.15s;
}
.sf-subpane__cta:hover { background: var(--red-dark); color: #fff; }
.sf-subpane__cta::after { content: "→"; font-size: 16px; }

/* Secondary CTA (e.g. "Browse Inventory") — outlined, full width below primary. */
.sf-subpane__cta2 {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0; padding: 13px 24px;
  background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: border-color 0.15s, color 0.15s;
}
.sf-subpane__cta2::after { content: "→"; font-size: 16px; }
.sf-subpane__cta2:hover { border-color: var(--red); color: var(--red); }

/* ── Drawer subpane on mobile — stack the 2-col top into one column so the
   title/description aren't crushed and the buttons don't overlap. ── */
@media (max-width: 700px) {
  .sf-panel { padding: 16px 20px 36px; }
  .sf-subpane__top { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .sf-subpane__title { font-size: 34px; }
  .sf-subpane__mini { display: none; }          /* fill-element — pointless single-col */
  .sf-subpane__aside { gap: 12px; }
  .sf-subpane__thumb { max-width: 320px; }       /* don't blow up full-bleed on phones */
  .sf-subpane__carousel { margin-top: 4px; }
}

/* ════════════════════════════════════════════════════════════════════
   V8 — Collapsed-by-default drawer.
   Open = rail only (nothing selected). Desktop: hovering a rail item
   expands the panel to the right and keeps the last panel shown; clicking
   a rail item navigates to its shop page. Mobile (≤820px): rail rows are
   an accordion — label toggles an inline education block, the red "Shop"
   chip navigates. nav-component.js drives the classes.
   ════════════════════════════════════════════════════════════════════ */
.sf-panel { transition: transform .28s ease, width .2s ease; overflow-x: hidden; }
.sf-panel.collapsed { width: 328px; }  /* 44px pad + 240px rail + 44px pad */
.sf-panel.collapsed .sf-panel__content { display: none; }
.sf-panel__layout { grid-template-columns: 240px minmax(0, 1fr); }
/* Lock the revealed panel's width so text doesn't reflow mid expand/collapse
   animation — the growing drawer just unclips it (overflow-x hidden above). */
.sf-panel__subpane.active { width: min(640px, calc(96vw - 376px)); }
/* Rail rows: border lives on the item, not the label anchor. */
.sf-panel__subnav .sf-sub-item { border-bottom: 1px solid rgba(255,255,255,0.15); }
.sf-sub-item .sf-sub-row { display: flex; align-items: center; gap: 10px; }
.sf-panel__subnav .sf-sub-item .sf-sub-btn { border-bottom: 0; flex: 1; }
@media (max-width: 820px) {
  .sf-panel.collapsed { width: 1080px; }   /* no collapse concept — max-width:96vw rules */
  .sf-panel__layout { grid-template-columns: 1fr; }  /* re-assert (base rule above is later in file than the old 820 override) */
  .sf-panel__content { display: none; }    /* subpanes relocate into rail items (JS) */
  .sf-sub-item .sf-panel__subpane { display: none; }
  .sf-sub-item.open .sf-panel__subpane {
    display: flex; flex-direction: column; gap: 24px;
    padding: 4px 0 22px; animation: sf-fadein .22s ease;
  }
  .sf-sub-item.open .sf-sub-btn { color: var(--red); }
  .sf-sub-item.open .sf-sub-btn::after { transform: rotate(90deg); opacity: 1; color: var(--red); }
  /* Subpanes sit inside .sf-panel__subnav on mobile — undo the rail-anchor
     styling that leaks onto their inner links (learn-more, CTAs). */
  .sf-panel__subnav .sf-panel__subpane a { border-bottom: 0; padding: 0; }
  .sf-panel__subnav .sf-panel__subpane a::after { content: none; }
  .sf-panel__subnav .sf-panel__subpane a:hover { padding-left: 0; }
  .sf-panel__subnav .sf-panel__subpane .sf-subpane__learnmore {
    display: inline-flex; border: 1px solid var(--red); padding: 9px 14px;
  }
  .sf-panel__subnav .sf-panel__subpane .sf-subpane__learnmore:hover { background: var(--red); color: #fff; }
  .sf-panel__subnav .sf-panel__subpane .sf-subpane__cta,
  .sf-panel__subnav .sf-panel__subpane .sf-subpane__cta2 {
    display: flex; justify-content: center; padding: 14px 24px;
  }
  /* the generic anchor reset above zeroes border-bottom — put the outlined
     CTA's full box back (Browse Inventory's bottom edge was invisible) */
  .sf-panel__subnav .sf-panel__subpane .sf-subpane__cta2 { border: 1px solid rgba(255, 255, 255, 0.35); }
  .sf-panel__subnav .sf-panel__subpane .sf-subpane__cta:hover { color: #fff; }
  .sf-panel__subnav .sf-panel__subpane .sf-subpane__cta::after,
  .sf-panel__subnav .sf-panel__subpane .sf-subpane__cta2::after { content: "→"; font-size: 16px; }
}

/* ════════════════════════════════════════════════════════════════════
   V9 — Single-column subpane.
   Markup is flat (no __top/__main/__aside wrappers): title · product
   picture (thumb) · CTA(s) · description · learn more. Spacing comes from
   the column gap, so the old per-element margins are zeroed here. Panel
   expanded width narrows to hug the single column.
   ════════════════════════════════════════════════════════════════════ */
.sf-panel { width: 760px; }   /* 44 pad + 240 rail + 48 gap + ~384 content + 44 pad */
.sf-panel__subpane.active {
  width: min(380px, calc(96vw - 376px));
  gap: 12px;
}
.sf-subpane__title { margin: 0; }
.sf-subpane__desc { margin: 0; }
/* Learn more — small red-outlined box, right-aligned in the column (7/8 —
   replaces the full-column red rule). Box treatment comes from the base rule. */
.sf-subpane__learnmore { margin: 0; align-self: flex-end; }
/* Product picture — natural aspect ratio at full column width. Forcing a
   uniform crop (cover) cut products off; sources are square-to-landscape.
   No grey box: most thumbs are transparent cut-outs that sit directly on
   the panel's black (opaque photos fill their box, so this is a no-op). */
.sf-subpane__thumb { aspect-ratio: auto; height: auto; background: transparent; }
/* Smaller product cut-outs — shrink within the column, centered. */
.sf-panel__subpane[data-sub="socks"] .sf-subpane__thumb,
.sf-panel__subpane[data-sub="custom-orthotics"] .sf-subpane__thumb {
  width: 72%; align-self: center;
}
/* Portrait cut-outs (files trimmed to content) — cap width so the column
   height stays in one view; centered. */
.sf-panel__subpane[data-sub="winter-heat"] .sf-subpane__thumb { width: 38%; align-self: center; }
.sf-panel__subpane[data-sub="liners"] .sf-subpane__thumb { width: 62%; align-self: center; }
@media (max-width: 820px) {
  /* Match the desktop learn-more box inside the mobile accordion
     (the V8 mobile block above re-asserts its own display at equal
     specificity — this block wins by source order). */
  .sf-panel__subnav .sf-panel__subpane .sf-subpane__learnmore {
    display: inline-flex; align-self: flex-end; padding: 9px 14px;
  }
}

/* ════════════════════════════════════════════════════════════════════
   CATEGORY PAGE TEMPLATE (V2)
   Replaces .shop-head / .shop-grid / .shop-card.
   Layout: breadcrumbs → editorial hero → controls bar (filters + sort)
           → bleed-image product grid.
   ════════════════════════════════════════════════════════════════════ */

.cat-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Breadcrumbs ── */
.cat-crumbs {
  padding: 28px 0 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-30);
}
.cat-crumbs a { color: var(--grey-30); transition: color .15s; }
.cat-crumbs a:hover { color: var(--red); }
.cat-crumbs span.sep { margin: 0 10px; opacity: 0.4; }
.cat-crumbs span.here { color: var(--black); }

/* ── Compact hero band — Nike-style: title + count inline, optional lede ── */
.cat-hero {
  padding: 24px 0 20px;
}
.cat-hero__eyebrow { display: none; }   /* legacy — kept hidden for back-compat */
.cat-hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin: 0 0 10px;
  color: var(--black);
}
.cat-hero__count {
  font-family: var(--font-body);
  font-size: 0.42em;
  font-weight: 500;
  vertical-align: 0.3em;
  color: var(--grey-30);
  letter-spacing: 0;
  margin-left: 6px;
}
.cat-hero__lede {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--grey-90);
  max-width: 580px;
  margin: 0;
}

/* ── Top controls bar (count + sort), above the layout split ── */
.cat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--grey-300);
  border-bottom: 1px solid var(--grey-300);
  margin-bottom: 40px;
}
.cat-count {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-30);
}
.cat-count strong { color: var(--black); font-weight: 700; }

.cat-sort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cat-sort label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-30);
}
.cat-sort select {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 32px 9px 14px;
  border: 1px solid var(--grey-300);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23111' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 14px center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  color: var(--black);
}
.cat-sort select:hover { border-color: var(--black); }

/* ── Two-column layout: filter rail + product grid ── */
.cat-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  margin: 0 0 96px;
}

/* ── Filter rail (left, sticky) ── */
.cat-rail {
  position: sticky;
  top: 86px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.cat-rail__group {
  border-top: 1px solid var(--grey-300);
  padding: 20px 0;
}
.cat-rail__group:first-child { border-top: 0; padding-top: 0; }
.cat-rail__heading {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  margin: 0 0 12px;
}
/* Rail option — works for both <button> (filter) and <a> (navigate). Identical look. */
.cat-rail__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 0;
  background: none;
  border: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-90);
  text-align: left;
  cursor: pointer;
  transition: color .15s;
  text-decoration: none;
}
.cat-rail__opt:hover { color: var(--red); }
.cat-rail__opt.active { color: var(--black); font-weight: 700; }
.cat-rail__opt.active::before {
  content: "—";
  margin-right: 8px;
  color: var(--red);
}
.cat-rail__opt__count {
  font-size: 12px;
  font-weight: 400;
  color: var(--grey-30);
  flex-shrink: 0;
}
.cat-rail__opt.active .cat-rail__opt__count { color: var(--grey-30); }

/* ── Product grid (right column) ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 32px;
}
@media (min-width: 1440px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
}

/* ── Mobile: rail becomes a top toggle / drawer ── */
.cat-filter-toggle {
  display: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid var(--grey-300);
  background: transparent;
  cursor: pointer;
}
@media (max-width: 900px) {
  .cat-layout { grid-template-columns: 1fr; gap: 0; }
  .cat-rail {
    position: fixed; top: 0; left: 0; height: 100vh; width: 320px; max-width: 86vw;
    background: #fff; padding: 88px 24px 24px; z-index: 250;
    transform: translateX(-100%);
    transition: transform .28s ease;
    max-height: none; overflow-y: auto;
    box-shadow: 0 0 0 100vmax rgba(0,0,0,0); pointer-events: none;
  }
  .cat-rail.open { transform: translateX(0); box-shadow: 0 0 0 100vmax rgba(0,0,0,0.5); pointer-events: auto; }
  .cat-filter-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .cat-topbar { gap: 12px; }
}
@media (max-width: 540px) {
  .cat-wrap { padding: 0 20px; }
  .cat-grid { grid-template-columns: 1fr; }
}

/* ── Product card (bleed image, hover swap, clean type) ── */
.cat-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
.cat-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--light-grey);
  overflow: hidden;
  margin-bottom: 18px;
}
.cat-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;   /* show the WHOLE product image, scaled to fit the uniform
                            box — never stretched or cropped (Shopify uploads vary
                            in shape). Matches the .pdp-more__card / drawer thumbs. */
  transition: opacity .35s ease, transform .8s ease;
}
.cat-card__media .cat-card__img--hover {
  opacity: 0;
}
/* Image-swap fade only on cards that actually have a second photo —
   single-image cards keep their photo (no fade to the grey placeholder). */
.cat-card--has-hover:hover .cat-card__media .cat-card__img--main { opacity: 0; }
.cat-card--has-hover:hover .cat-card__media .cat-card__img--hover { opacity: 1; }
.cat-card:hover .cat-card__media img { transform: scale(1.02); }

.cat-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--black);
  color: #fff;
  padding: 6px 10px;
}
.cat-card__badge--new { background: var(--red); }

/* Sold-out card: small badge over a dimmed photo. Card stays a link — the PDP
   carries the back-in-stock notify capture. Sharp corners + League Gothic
   uppercase, per brand. */
.cat-card__soldout {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  background: var(--black);
  color: #fff;
  padding: 6px 10px;
}
.cat-card--soldout .cat-card__media img { opacity: 0.45; }

.cat-card__type {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-30);
  margin: 0 0 6px;
}
.cat-card__title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  margin: 0 0 6px;
  line-height: 1.3;
}
/* At-a-glance arch line on insole cards ("Low arch", "Medium arch · most
   common", …) — from INSOLE_PROFILE_LINES; Shopify titles stay untouched. */
.cat-card__arch {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-90);
  margin: -2px 0 6px;
}
.cat-card__price {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-90);
  margin: 0;
}
.cat-card:hover .cat-card__title { color: var(--red); }

/* ── Empty state ── */
.cat-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--grey-30);
}

/* ── In-place transition between shop pages ── */
.cat-grid { transition: opacity .25s ease; }
.cat-hero__title, .cat-hero__lede { transition: opacity .25s ease; }
.cat-wrap--transitioning .cat-grid,
.cat-wrap--transitioning .cat-hero__title,
.cat-wrap--transitioning .cat-hero__lede {
  opacity: 0.25;
  pointer-events: none;
}
.cat-wrap--transitioning .cat-rail__opt {
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════════════
   INSOLE SELECTOR (shoes) — Conforma vs Custom orthotic
   ════════════════════════════════════════════════════════════════════════ */
/* the selector is a textured panel that pops off the flat-gray product page */
#pdp-insole {
  margin: 0 0 22px; padding: 16px;
  background-color: #ececed;
  background-image: url("/images/texture-dot.svg");
  background-size: 16px;
  border: 1px solid var(--grey-300);
}
.ins-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 12px; }
.ins-req { font-weight: 400; color: var(--red); font-size: 11px; letter-spacing: 0.02em; text-transform: none; margin-left: 6px; }

/* two cards side by side; the chosen one's options open full-width below */
.ins-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ins-row--single { grid-template-columns: 1fr; }   /* prod: Conforma only (Custom Orthotic is dev-gated) */
/* Both cards are white until chosen; the SELECTED one flips to a black fill —
   the same "filled = selected" convention as the gender tabs above. (Custom
   used to be permanently black as a "premium tier" treatment, which made it
   look pre-selected; its tier identity now lives in the PREMIUM badge.) */
.ins-card {
  display: flex; flex-direction: column; gap: 6px;
  text-align: left; padding: 14px; cursor: pointer;
  border: 1px solid var(--grey-300); background: var(--white);
  font-family: var(--font-body); transition: border-color 0.12s, opacity 0.15s, background-color 0.15s;
}
.ins-card:hover { border-color: var(--black); }
.ins-card.selected { background: var(--black); border-color: var(--black); }
/* pick-one affordance: a button strip at the card's foot — "SELECT" on the
   unchosen card(s), red "✓ SELECTED" on the chosen one */
.ins-card__cta {
  margin-top: auto; display: block; text-align: center; padding: 9px 8px;
  border: 1px solid var(--grey-300); background: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--black); transition: border-color 0.12s, background-color 0.15s;
}
.ins-card:hover .ins-card__cta { border-color: var(--black); }
.ins-card.selected .ins-card__cta { background: var(--red); border-color: var(--red); color: #fff; }
.ins-card.selected .ins-card__cta::before { content: "\2713\00a0\00a0"; }
/* once a choice is made, mute the other card so the active one stands out */
.ins-row--chosen .ins-card:not(.selected) { opacity: 0.5; }
.ins-row--chosen .ins-card:not(.selected):hover { opacity: 0.82; }
.ins-card__name { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; letter-spacing: var(--heading-ls); line-height: 1; }
.ins-card__badge { font-family: var(--font-body); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); border: 1px solid var(--red); padding: 2px 5px; margin-left: 6px; vertical-align: middle; }
.ins-card__price { font-weight: 700; font-size: 12px; color: var(--red); }
.ins-card__desc { font-size: 12px; line-height: 1.45; color: var(--grey-30); }
.ins-card.selected .ins-card__name { color: #fff; }
.ins-card.selected .ins-card__desc { color: rgba(255,255,255,0.65); }

/* the chosen option's sub-options open full-width beneath the two cards */
.ins-detail:not(:empty) { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--grey-300); }
.ins-sub { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 8px; }

/* arch sub-selector */
.arch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.arch-chip {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 6px 10px; cursor: pointer; background: var(--white);
  border: 1px solid var(--grey-300); font-family: var(--font-body); transition: border-color 0.12s;
}
.arch-chip:hover { border-color: var(--black); }
.arch-chip.selected { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.arch-chip__thumb { width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; margin-bottom: 2px; }
.arch-chip__thumb img { max-width: 100%; max-height: 52px; object-fit: contain; }
.arch-chip__label { font-weight: 700; font-size: 12px; }
.arch-chip__sub { font-size: 9px; color: var(--grey-30); text-transform: uppercase; letter-spacing: 0.03em; text-align: center; }
.arch-chip.selected .arch-chip__sub { color: var(--red); }
/* hover popover — MOUSE ONLY (on touch, :hover fires on tap and sticks open
   over neighboring chips). Just a bigger look at the product + an optional
   tag ("Most common") — NO instructions; unsure buyers take the arch test. */
.arch-chip__pop { display: none; }
@media (hover: hover) and (pointer: fine) {
  .arch-chip__pop {
    display: block;
    position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px);
    width: 300px; max-width: 82vw; background: var(--white); border: 2px solid var(--black); padding: 12px;
    z-index: 6; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.14s, transform 0.14s;
  }
  .arch-chip:hover .arch-chip__pop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
}
.arch-chip__pop img { display: block; width: 100%; height: 190px; object-fit: contain; }
.arch-chip__pop-tag {
  display: block; margin-top: 8px; text-align: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--red);
}
/* "not sure?" escape hatch — a real button, not buried underlined text */
.arch-test-link {
  display: block; width: 100%; margin-top: 10px; padding: 11px 14px;
  background: var(--white); border: 1px solid var(--black); cursor: pointer;
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--black);
  transition: background-color 0.12s, color 0.12s;
}
.arch-test-link:hover { background: var(--black); color: #fff; }
/* On Conforma PDPs the link sits between the size grid and Add-to-Cart —
   give it breathing room from the ATC button below. */
#pdp-options .arch-test-link { margin: 14px 0 16px; }

/* custom-orthotic — "two ways" explainer + answer-by-email scan check.
   Same copy and look as the build flow's insole step (shop/build.css .by-way /
   .by-scancheck) so custom reads identically everywhere it's bought. */
.custom-ways { display: grid; gap: 8px; }
.custom-way {
  display: flex; gap: 10px; align-items: flex-start; background: var(--light-grey);
  border: 1px solid var(--grey-300); padding: 12px 14px;
  font-family: var(--font-body); font-size: 13.5px; line-height: 1.5; color: var(--grey-90);
}
.custom-way strong { color: var(--black); }
.custom-way a { color: var(--red); font-weight: 700; text-decoration: none; }
.custom-way a:hover { text-decoration: underline; }
.custom-way__num { font-family: var(--font-display); font-size: 20px; color: var(--red); flex: 0 0 auto; line-height: 1.2; }
.custom-scancheck { margin: 10px 0 0; }
.custom-scancheck__toggle {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--red);
}
.custom-scancheck__toggle:hover { text-decoration: underline; }
.custom-scancheck__form { display: flex; gap: 8px; margin: 10px 0 0; flex-wrap: wrap; }
.custom-scancheck__form input {
  flex: 1 1 200px; padding: 12px; border: 1px solid var(--grey-300); border-radius: 0;
  font-family: var(--font-body); font-size: 14px;
}
.custom-scancheck__form button {
  padding: 12px 18px; background: var(--black); color: var(--white); border: 0; border-radius: 0;
  font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; cursor: pointer;
}
.custom-scancheck__form button:hover { background: var(--grey-90); }
.custom-scancheck__done { font-size: 13.5px; color: var(--grey-90); margin: 10px 0 0; }
.custom-scancheck__err { font-size: 13px; font-weight: 600; color: var(--red); margin: 8px 0 0; }
.custom-scancheck__fine { font-size: 12.5px; color: var(--grey-30); margin: 8px 0 0; }
.custom-note { font-size: 12px; font-weight: 600; color: var(--black); margin: 14px 0 0; }

/* ── modal / overlay (arch test + find-your-scan) ── */
.sf-modal-overlay {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(17,17,17,0.5); padding: 20px; opacity: 0; transition: opacity 0.2s;
}
.sf-modal-overlay.open { opacity: 1; }
.sf-modal {
  position: relative; background: var(--white); width: 100%; max-width: 420px;
  padding: 28px; max-height: 90vh; overflow-y: auto;
}
.sf-modal__close {
  position: absolute; top: 10px; right: 14px; background: none; border: none;
  font-size: 26px; line-height: 1; cursor: pointer; color: var(--grey-90);
}
.sf-modal__title { font-family: var(--font-display); text-transform: uppercase; font-size: 28px; letter-spacing: var(--heading-ls); margin: 0 0 10px; }
.sf-modal__lede { font-size: 13px; line-height: 1.5; color: var(--grey-90); margin: 0 0 14px; }
.sf-modal__fine { font-size: 11px; color: var(--grey-30); margin: 10px 0 0; line-height: 1.4; }
.sf-input {
  width: 100%; padding: 12px; border: 1px solid var(--grey-300); font-family: var(--font-body);
  font-size: 15px; margin: 0 0 10px; background: var(--white);
}
.sf-input:focus { outline: none; border-color: var(--red); }
.sf-modal__btn {
  width: 100%; padding: 13px; background: var(--red); color: #fff; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.03em;
}
.sf-modal__btn:hover { background: var(--red-dark); }

/* ── Acuity booking modal (shop/booking.js) ── */
.sf-modal--booking { max-width: 720px; padding: 24px; }
.sf-book__title { margin-bottom: 14px; }
.sf-book__frame { width: 100%; }
.sf-book__iframe {
  width: 100%; height: 760px; max-height: 72vh; border: 0; display: block; background: var(--white);
}
.sf-book__back {
  background: none; border: none; cursor: pointer; padding: 0; margin: 0 0 12px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--grey-30);
}
.sf-book__back:hover { color: var(--red); }
.sf-book__regions { display: flex; flex-direction: column; }
.sf-book__region { border-top: 1px solid var(--grey-300); }
.sf-book__region:last-child { border-bottom: 1px solid var(--grey-300); }
.sf-book__region-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: var(--grey); border: none; border-left: 3px solid transparent; cursor: pointer;
  padding: 14px 16px; font-family: var(--font-body); font-size: 15px; color: var(--black); text-align: left;
}
.sf-book__region[data-open="1"] .sf-book__region-toggle { border-left-color: var(--red); }
.sf-book__region-ind { font-size: 20px; line-height: 1; color: var(--grey-30); }
.sf-book__region[data-open="0"] .sf-book__list { display: none; }
.sf-book__list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; padding: 14px 16px 18px;
}
.sf-book__loc {
  background: none; border: none; cursor: pointer; padding: 7px 0; text-align: left;
  font-family: var(--font-body); font-size: 14px; color: var(--grey-90);
}
.sf-book__loc:hover { color: var(--red); }
@media (max-width: 620px) {
  .sf-book__list { grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .sf-book__iframe { height: 70vh; }
}
@media (max-width: 420px) {
  .sf-book__list { grid-template-columns: 1fr; }
}

/* arch test overlay */
.arch-test__steps { margin: 0 0 14px 18px; font-size: 13px; line-height: 1.7; }
.arch-test__picks { display: flex; flex-direction: column; gap: 8px; }
.arch-test__pick {
  text-align: left; padding: 12px; cursor: pointer; background: var(--white);
  border: 1px solid var(--grey-300); font-family: var(--font-body); transition: border-color 0.12s;
}
.arch-test__pick:hover { border-color: var(--red); }
.arch-test__pick strong { display: block; font-size: 14px; margin-bottom: 2px; }
.arch-test__pick span { font-size: 12px; color: var(--grey-30); }

/* ── cart bundle: nested insole rows ── */
.sf-line__main { min-width: 0; }
.sf-addon {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: baseline;
  margin-top: 8px; padding: 8px 0 0; border-top: 1px dashed var(--grey-300); font-size: 12px;
}
.sf-addon__name { font-weight: 600; }
.sf-addon__meta { grid-column: 1; font-size: 11px; color: var(--grey-30); }
.sf-addon__price { grid-row: 1; grid-column: 2; font-weight: 600; }
.sf-addon--mock .sf-addon__name::after {
  content: "MOCK"; margin-left: 6px; font-size: 9px; font-weight: 700; letter-spacing: 0.05em;
  color: var(--grey-30); border: 1px solid var(--grey-300); padding: 1px 4px; vertical-align: middle;
}
.sf-subtotal-note--mock { color: var(--red); }
.sf-clear {
  display: block; width: 100%; margin-top: 8px; background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 12px; color: var(--grey-30); text-decoration: underline;
}
.sf-clear:hover { color: var(--black); }

@media (max-width: 560px) {
  .ins-row { grid-template-columns: 1fr; gap: 8px; }
  .ins-card__name { font-size: 20px; }
}

/* ── "Keep shopping" back link (PDP, injected by pdp.js) ── */
.pdp-back { max-width: 1200px; margin: 0 auto; padding: 0 24px 6px; }
.pdp-back__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--grey-90);
  text-transform: uppercase; letter-spacing: 0.03em; text-decoration: none;
}
.pdp-back__link:hover { color: var(--red); }

/* ── 10-second arch test (compact, in-modal — port of /scan/) ── */
.sf-modal--wide { max-width: 680px; transition: max-width 0.25s ease; }
/* the result step widens the modal so the three profile cards compare side by side */
.sf-modal--wide.sf-modal--answer { max-width: 1060px; }
.at-progress { height: 3px; background: var(--grey-300); margin: 4px 0 20px; }
.at-progress__bar { display: block; height: 100%; width: 25%; background: var(--red); transition: width 0.3s ease; }
.at-step { display: none; }
.at-step--active { display: block; animation: atIn 0.25s ease; }
@keyframes atIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.at-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin: 0 0 8px; }
.at-h { font-family: var(--font-display); text-transform: uppercase; font-size: 30px; line-height: 1.05; letter-spacing: var(--heading-ls); margin: 0 0 12px; }
.at-lede { font-size: 16px; line-height: 1.55; color: var(--grey-90); margin: 0 0 16px; }
.at-lede strong { color: var(--black); font-weight: 700; }
.at-needs { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--grey-30); margin: 0 0 20px; }
.at-img { display: block; width: 100%; max-height: 300px; object-fit: contain; margin: 0 auto 18px; }
.at-btn { padding: 13px 22px; background: var(--red); color: #fff; border: none; cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.03em; }
.at-btn:hover { background: var(--red-dark); }
.at-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.at-back { background: none; border: none; cursor: pointer; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--grey-30); text-decoration: underline; padding: 0; }
.at-back:hover { color: var(--black); }
/* step-3 finger-slide animation: hand layer slides under the opaque foot layer */
.at-anim { position: relative; max-width: 336px; aspect-ratio: 824 / 650; margin: 4px auto 18px; }
.at-anim img { position: absolute; inset: 0; width: 100%; height: 100%; }
.at-anim__hand { animation: atSlide 2.6s ease-in-out infinite; }
@keyframes atSlide { 0%, 100% { transform: translateX(0); } 45%, 62% { transform: translateX(12%); } }
@media (prefers-reduced-motion: reduce) { .at-anim__hand { animation: none; } }
/* result cards: real-HTML label + criterion above a big, clean illustration */
.at-tiers { display: grid; gap: 12px; margin: 0 0 16px; }
.at-tier { display: flex; flex-direction: column; width: 100%; padding: 0; background: var(--white); border: 1px solid var(--grey-300); cursor: pointer; overflow: hidden; text-align: left; transition: border-color 0.12s; }
.at-tier:hover { border-color: var(--red); }
.at-tier__top { display: block; padding: 14px 16px 8px; }
.at-tier__head { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.at-tier__name { font-family: var(--font-display); text-transform: uppercase; font-size: 26px; line-height: 1; letter-spacing: var(--heading-ls); color: var(--black); }
.at-tier__chip { font-family: var(--font-body); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; padding: 3px 8px; }
.at-tier__chip--low { background: #C29A2B; }
.at-tier__chip--medium { background: #3FA9D5; }
.at-tier__chip--high { background: var(--red); }
.at-tier__line { display: block; font-family: var(--font-body); font-size: 15px; line-height: 1.45; color: var(--grey-90); }
.at-tier__line strong { color: var(--black); }
.at-tier img { display: block; width: 100%; height: auto; max-width: 520px; margin: auto auto 0; padding: 0 12px 6px; box-sizing: border-box; }
.at-tier__pick { display: block; padding: 10px; text-align: center; font-family: var(--font-body); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--black); background: var(--light-grey); border-top: 1px solid var(--grey-300); transition: background 0.12s, color 0.12s; }
.at-tier:hover .at-tier__pick { background: var(--red); color: #fff; }
.at-hint { font-size: 13px; color: var(--grey-30); margin: 0 0 12px; }
@media (min-width: 900px) {
  .at-tiers { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .at-tier__name { font-size: 24px; }
}
@media (max-width: 560px) {
  .at-h { font-size: 24px; }
  .sf-modal--wide { padding: 24px 18px; }
}

/* ════════════════════════════════════════════════════════════════════════
   PDP REDESIGN — editorial sections below the buy column
   Tracksmith-inspired structure: editorial · lifestyle · specs · conforma
   story · lifestyle · fit · faq. All static HTML for SEO/AI crawlers.
   ════════════════════════════════════════════════════════════════════════ */

/* The PDP shop bar (.pdp-shopbar, injected by pdp.js) is a slim category rail that
   STICKS under the topbar as you scroll, so the shopping nav is always reachable on
   a product page. No back link — the browser back / back-swipe handles "go back". */
main.product-page { padding-top: 16px; margin-top: 0; }
.pdp-back { display: none; }

/* Slim category rail on PDPs — mirrors the grid .cat-switcher; current category
   is marked with a red underline so you can hop laterally (shoe → socks → gifts).
   Sticky just below the 66px fixed topbar; sits under the drawer/overlay (z < 210). */
.pdp-shopbar {
  position: sticky; top: 66px; z-index: 100;
  background: var(--grey-50);
  border-bottom: 1px solid var(--grey-300);
}
.pdp-shopbar__inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 12px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
}
.pdp-shopbar__link {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--grey-30); text-decoration: none;
  white-space: nowrap;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.pdp-shopbar__link:hover { color: var(--black); }
.pdp-shopbar__link--active { color: var(--black); font-weight: 700; border-bottom-color: var(--red); }

/* Every PDP opens straight at the gallery + buy column (the full-bleed
   lifestyle hero was removed 2026-06-11 — buyers landed on brand art instead
   of the product). Grey-50 backdrop so no white bar shows under the nav. */
.product-layout { margin-top: 40px; }
body:has(.product-page) { background: var(--grey-50); }

/* Shared section heading used across editorial blocks */
.pdp-section-head {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 36px; line-height: 1.05; letter-spacing: var(--heading-ls);
  margin: 0 0 18px; color: var(--black);
}

/* ── Editorial blocks — shared 2-col grid (copy + square image).
      Sections alternate which side the image is on via --image-left / --image-right.
      Used by .pdp-story, .pdp-features, .pdp-specs, .pdp-conforma. ── */
.pdp-block {
  max-width: var(--max-width); margin: 112px auto 0;
  padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.pdp-block--image-right .pdp-block__copy { order: 1; }
.pdp-block--image-right .pdp-block__media { order: 2; }
.pdp-block--image-left .pdp-block__media { order: 1; }
.pdp-block--image-left .pdp-block__copy { order: 2; }

.pdp-block__eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--red); margin: 0 0 16px;
}
.pdp-block__head {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(28px, 3vw, 40px); line-height: 1.05;
  letter-spacing: var(--heading-ls); color: var(--black);
  margin: 0 0 22px; max-width: 22ch;
}
.pdp-block__body {
  font-size: 16px; line-height: 1.65; color: var(--grey-90);
}
.pdp-block__body p { margin: 0 0 14px; max-width: 56ch; }
.pdp-block__body p:last-child { margin-bottom: 0; }

.pdp-block__media img {
  display: block; width: 100%; aspect-ratio: 1; object-fit: cover;
  object-position: center 82%;
}

/* Conforma block — inherits .pdp-block layout; just owns the "How the Conforma works →" link. */
.pdp-conforma__link {
  display: inline-block; margin-top: 8px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--red); text-decoration: none;
  border-bottom: 1px solid var(--red); padding-bottom: 2px;
}
.pdp-conforma__link:hover { color: var(--red-dark); border-color: var(--red-dark); }

/* Features list — verbatim brand bullets, lives inside the .pdp-block copy column. */
.pdp-features__list {
  list-style: none; margin: 0; padding: 0;
}
.pdp-features__list li {
  padding: 16px 0; border-bottom: 1px solid var(--grey-300);
  font-size: 15px; line-height: 1.55; color: var(--grey-90);
}
.pdp-features__list li:first-child { border-top: 1px solid var(--grey-300); }
.pdp-features__list strong { color: var(--black); font-weight: 700; }

/* Specs dl — 2-col grid inside the half-column. */
.pdp-specs__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; border-top: 1px solid var(--grey-300); margin: 0;
}
.pdp-specs__grid > div {
  padding: 18px 0; border-bottom: 1px solid var(--grey-300);
  padding-right: 16px;
}
.pdp-specs__grid dt {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--grey-30); margin: 0 0 4px;
}
.pdp-specs__grid dd {
  font-size: 14px; line-height: 1.45; color: var(--black); margin: 0;
}

/* Fit notes — clean list */
.pdp-fit {
  max-width: var(--max-width); margin: 80px auto 0;
  padding: 0 24px;
}
.pdp-fit__list {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--grey-300);
}
.pdp-fit__list li {
  padding: 22px 0; border-bottom: 1px solid var(--grey-300);
  font-size: 16px; line-height: 1.6; color: var(--grey-90);
}
.pdp-fit__list strong { color: var(--black); font-weight: 700; }

/* FAQ — native details/summary, no JS */
.pdp-faq {
  max-width: var(--max-width); margin: 80px auto 80px;
  padding: 0 24px;
}
.pdp-faq__q {
  border-top: 1px solid var(--grey-300); padding: 0;
}
.pdp-faq__q:last-child { border-bottom: 1px solid var(--grey-300); }
.pdp-faq__q summary {
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--font-body); font-weight: 600; font-size: 17px;
  color: var(--black); position: relative; padding-right: 40px;
}
.pdp-faq__q summary::-webkit-details-marker { display: none; }
.pdp-faq__q summary::after {
  content: "+"; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%); font-size: 22px; font-weight: 300;
  color: var(--grey-30); transition: transform 0.15s, color 0.15s;
}
.pdp-faq__q[open] summary::after { content: "−"; color: var(--red); }
.pdp-faq__q p {
  margin: 0 0 22px; font-size: 15px; line-height: 1.65; color: var(--grey-90);
  max-width: 60ch;
}

/* Mobile collapse for the PDP redesign */
@media (max-width: 800px) {
  .pdp-section-head { font-size: 28px; }
  /* Editorial blocks collapse to single-column, image first */
  .pdp-block { margin-top: 64px; grid-template-columns: 1fr; gap: 32px; padding: 0 24px; }
  .pdp-block--image-right .pdp-block__copy,
  .pdp-block--image-left .pdp-block__copy { order: 2; }
  .pdp-block--image-right .pdp-block__media,
  .pdp-block--image-left .pdp-block__media { order: 1; }
  .pdp-block__head { font-size: 28px; max-width: none; }
  .pdp-block__body { font-size: 15px; }
  .pdp-features__list li { font-size: 14px; padding: 14px 0; }
  .pdp-specs__grid { grid-template-columns: 1fr 1fr; }
  .pdp-fit { margin-top: 64px; }
  .pdp-faq { margin-top: 64px; margin-bottom: 64px; }
  .pdp-faq__q summary { font-size: 15px; }
}
@media (max-width: 480px) {
  .pdp-specs__grid { grid-template-columns: 1fr; }
}

/* ── Browse-only PDP (ski boots) — sizes-carried chips + Book a Fitting ── */
.bo-note {
  font-size: 13px; line-height: 1.6; color: var(--grey-90);
  background: var(--light-grey); padding: 14px 16px; margin: 0 0 20px;
  border-left: 2px solid var(--red);
}
.bo-sizes { margin: 0 0 22px; }
.bo-size-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.bo-size {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; padding: 8px 12px;
  border: 1px solid var(--grey-300); background: var(--white);
  font-size: 13px; color: var(--black);
  cursor: pointer; font-family: inherit;
  transition: border-color .12s, background .12s, color .12s;
}
.bo-size:hover { border-color: var(--black); }
.bo-size--active { border-color: var(--black); background: var(--black); color: var(--white); }
.bo-size--out { opacity: 0.4; text-decoration: line-through; }

/* In-store pickup availability (browse-only ski boots) */
.bo-availability { margin: 0 0 22px; }
.bo-avail__loading, .bo-avail__none { font-size: 13px; color: var(--grey-90); margin: 0; }
.bo-avail__head { font-size: 14px; font-weight: 600; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.bo-avail__head::before { content: ""; width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.bo-avail__head--in::before { background: #1a7f37; }
.bo-avail__head--out::before { background: var(--grey-300); }
.bo-store-list { list-style: none; margin: 0 0 10px; padding: 0; }
.bo-store { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--grey-300); font-size: 13px; }
.bo-store span { color: var(--grey-90); }
.bo-store--in span { color: #1a7f37; font-weight: 600; }
.bo-store--out { opacity: 0.5; }
.bo-avail__more { background: none; border: 0; padding: 6px 0; font-family: inherit; font-size: 13px; color: var(--black); text-decoration: underline; cursor: pointer; }
.bo-store-list--all { margin-top: 8px; }

/* Gift-card "send as a gift" recipient widget */
.gc-gift { margin: 0 0 16px; }
.gc-gift__toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.gc-gift__fields { display: grid; gap: 10px; margin-top: 14px; }
.gc-gift__fields[hidden] { display: none; }   /* keep recipient fields hidden until "Send as a gift" is checked */
.gc-gift__sub { font-size: 12px; color: var(--grey-90); margin: 2px 0 -4px; }
.gc-gift__input {
  width: 100%; box-sizing: border-box; padding: 11px 12px;
  border: 1px solid var(--grey-300); background: var(--white);
  font-family: var(--font-body); font-size: 14px; color: var(--black);
}
.gc-gift__input:focus { outline: none; border-color: var(--black); }
textarea.gc-gift__input { resize: vertical; }

.sf-atc--book {
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}

/* ── Conforma women's theme — purple accents when the women's product is active.
   Surefoot women's Conforma is purple; recolor the selected states to match. ── */
body.conforma-womens {
  --conforma-purple: #6E4D9E;
}
body.conforma-womens .opt-btn.selected {
  border-color: var(--conforma-purple); background: var(--conforma-purple); color: #fff;
}
body.conforma-womens .gender-btn.selected {
  border-color: var(--conforma-purple); background: var(--conforma-purple); color: #fff;
}
body.conforma-womens .sf-atc:not(:disabled) { background: var(--conforma-purple); }
body.conforma-womens .sf-atc:not(:disabled):hover { background: #5b3f84; }
/* Price + "Insoles" eyebrow stay standard (black / red) like the men's view —
   the purple accent lives on the selection highlights only. */

/* Standalone Custom Orthotic PDP — scan walkthrough panel above the ATC. */
.pdp-custom-scan { margin: 4px 0 20px; }

/* ════════════════════════════════════════════════════════════════════════
   SHOP LANDING (/shop/) — the catalog tour.
   Replaced the one-screen door triptych 2026-07-08: the page is now a
   stack of full-width horizontal CATEGORY BANDS (Gift strip → Ski →
   Shoes → Accessories), each carrying its own products + education —
   navigation that teaches the catalog as you scroll.
   ════════════════════════════════════════════════════════════════════════ */

/* The whole landing runs dark — intro band and doors are one continuous
   black canvas straight into the (dark) footer. */
.shop-landing { display: flex; flex-direction: column; background: var(--black); }

/* ── Intro band — one line above the doors (tight: the doors own the fold) ── */
.shop-intro {
  max-width: var(--max-width); margin: 28px auto 22px;
  padding: 0 24px; text-align: center;
}
.shop-intro__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--red); margin: 0 0 14px;
}
.shop-intro__head {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(40px, 5vw, 64px); line-height: 1.0;
  letter-spacing: var(--heading-ls); color: #fff;
  margin: 0;
}

/* ── Gift Cards — the #1 seller: a slim red strip right under the intro,
   ahead of the category bands (promoted from the page bottom 2026-07-08) ── */
.shop-gift { display: block; background: var(--red); color: #fff; text-decoration: none; }
.shop-gift__inner { max-width: 1200px; margin: 0 auto; padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.shop-gift__eyebrow { font-family: var(--font-body); font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; font-size: 12px; margin: 0 0 6px; }
.shop-gift__head { font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(22px, 3vw, 30px); line-height: .95; margin: 0; }
.shop-gift__cta { font-family: var(--font-display); text-transform: uppercase; font-size: 18px;
  border: 2px solid #fff; padding: 11px 22px; white-space: nowrap; transition: background .15s, color .15s; }
.shop-gift:hover .shop-gift__cta { background: #fff; color: var(--red); }

/* ── Category bands — one full-width horizontal band per category, each
   carrying its own products + education. Continuous black canvas. ── */
.shop-band__inner {
  max-width: var(--max-width); margin: 0 auto; width: 100%;
  padding: 64px 24px 72px;
}
.shop-band + .shop-band .shop-band__inner { border-top: 1px solid rgba(255,255,255,0.14); }
.shop-band__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 30px;
}
.shop-band__title {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(38px, 4.4vw, 58px); line-height: 0.98;
  letter-spacing: var(--heading-ls); color: #fff; margin: 0;
}
.shop-band__sub { font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,0.72);
  margin: 10px 0 0; max-width: 60ch; }
.shop-band__all {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 10px 16px; border: 1px solid rgba(255,255,255,0.55);
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: #fff; text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.shop-band__all:hover { background: #fff; border-color: #fff; color: var(--black); }
.shop-band__nav { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ── Ski tiles — a mini-triptych: photo cards with the door scrim treatment
   (photo scrims are an approved brand pattern). Whole tile is the link. ── */
.shop-band__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.shop-tile {
  position: relative; overflow: hidden; display: block;
  aspect-ratio: 4 / 4.6; background: var(--black); text-decoration: none;
}
.shop-tile > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.5s ease;
}
.shop-tile:hover > img { transform: scale(1.03); }
.shop-tile__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.22) 0%, rgba(0,0,0,0) 28%,
    rgba(0,0,0,0) 48%, rgba(0,0,0,0.82) 90%);
}
.shop-tile__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 7px;
}
.shop-tile__name {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(26px, 2.6vw, 36px); line-height: 0.98;
  letter-spacing: var(--heading-ls); color: #fff;
}
.shop-tile__line { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.85); max-width: 34ch; }
.shop-tile__go {
  display: inline-flex; align-items: center; gap: 8px; width: max-content;
  margin-top: 8px; padding: 10px 15px;
  border: 1px solid rgba(255,255,255,0.55); background: rgba(17,17,17,0.35);
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: #fff;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.shop-tile:hover .shop-tile__go { background: #fff; border-color: #fff; color: var(--black); }
/* the action tile — Book a Fitting reads as a doing-button, not a browse link */
.shop-tile--book .shop-tile__go { background: var(--red); border-color: var(--red); }
.shop-tile--book:hover .shop-tile__go { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
/* accessories tiles — "Shop X" buttons run red */
.shop-band--acc .shop-tile__go { background: var(--red); border-color: var(--red); }
.shop-band--acc .shop-tile:hover .shop-tile__go { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
/* cut-out tile — a transparent product shot staged on the card, not a photo */
.shop-tile--cut { background: #1a1a1a; }
.shop-tile--cut > img { object-fit: contain; padding: 10% 16% 34%; }

/* ── The Surefoot Shoe full-line carousel — the same live engine as /shoes/
   ("Meet the Lineup": lineup-carousel.js fills .sh-carousel__track from the
   catalog with bundle prices). Homepage-lineup tile treatment (Chance 7/8):
   the whole tile is the studio grey the photos are baked on, so the shoes
   float on it; name/price overlay the bottom on a dark scrim. ── */
.shop-shoes { position: relative; }
.shop-shoes .sh-carousel__track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 60px) / 4);
  gap: 20px; overflow-x: auto;
  scroll-behavior: smooth; scroll-snap-type: x mandatory;
  padding: 2px; scrollbar-width: none;
}
.shop-shoes .sh-carousel__track::-webkit-scrollbar { display: none; }
.shop-shoes .sh-card {
  position: relative; scroll-snap-align: start; aspect-ratio: 1 / 1;
  overflow: hidden; background: var(--light-grey);   /* = the photos' baked bg */
  display: block; text-decoration: none;
}
.shop-shoes .sh-card__media { position: absolute; inset: 0; }
.shop-shoes .sh-card__media img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.5s ease;
}
.shop-shoes .sh-card:hover .sh-card__media img { transform: scale(1.05); }
.shop-shoes .sh-card__info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.68), rgba(0,0,0,0));
}
.shop-shoes .sh-card__name {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 20px; line-height: 1; letter-spacing: var(--heading-ls);
  color: #fff; margin: 0 0 5px;
}
.shop-shoes .sh-card__price { font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,0.85); margin: 0; }
.shop-shoes .sh-card__meta {
  font-size: 10px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.6); margin: 6px 0 0;
}
.shop-shoes__nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.shop-shoes__btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.45); background: transparent; color: #fff;
  font-size: 16px; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.shop-shoes__btn:hover { background: #fff; border-color: #fff; color: var(--black); }
.shop-shoes__btn:active { transform: scale(0.94); }

/* ── The build story — choose style / choose insole / build your shoe.
   Compact 1-2-3 pills living INSIDE the band header, to the right of the
   title + descriptor (Chance 7/8) — the carousel follows immediately.
   CTAs sit AFTER the catalog (last layer). ── */
.shop-band__head--build { align-items: flex-end; gap: 40px; }
.shop-build { flex: 0 1 440px; }
.shop-build__eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--red); margin: 0 0 10px;
}
.shop-build__steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
/* each step is a slim square red pill */
.shop-build__step { border: 2px solid var(--red); padding: 10px 12px 12px; }
.shop-build__num {
  display: block; font-family: var(--font-display);
  font-size: 16px; line-height: 1; color: var(--red);
  margin-bottom: 5px;
}
.shop-build__steptitle {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 16px; line-height: 1.05; letter-spacing: var(--heading-ls);
  color: #fff; margin: 0;
}
.shop-build__ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.shop-build__cta {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  padding: 14px 26px; background: var(--red); color: #fff;
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  transition: background 0.15s;
}
.shop-build__cta:hover { background: var(--red-dark); }
.shop-build__cta span { transition: transform 0.18s; }
.shop-build__cta:hover span { transform: translateX(4px); }
.shop-build__alt {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border: 1px solid rgba(255,255,255,0.55);
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: #fff; text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.shop-build__alt:hover { background: #fff; border-color: #fff; color: var(--black); }

/* ── Insoles two-path story — Custom Orthotic (looping mill video) and
   Conforma (product photo), side by side as media tiles ── */
.shop-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.shop-path { background: #1a1a1a; border-top: 3px solid var(--red); display: flex; flex-direction: column; }
.shop-path__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.shop-path__media video, .shop-path__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.shop-path__text {
  padding: 24px 26px 22px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.shop-path__foot {
  padding: 20px 26px 26px; flex: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.shop-path__name {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 26px; line-height: 1; letter-spacing: var(--heading-ls);
  color: #fff; margin: 0;
}
.shop-path__body { font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,0.75); margin: 0; }
/* the already-scanned promise — its own standout line */
.shop-path__note {
  margin: 0; padding: 10px 14px;
  border-left: 3px solid var(--red); background: rgba(231,0,0,0.08);
  font-size: 14px; font-weight: 600; line-height: 1.5; color: #fff;
}
.shop-path__link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto;
  padding: 10px 15px; border: 1px solid var(--red); background: var(--red);
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: #fff; text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.shop-path__link:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* ── "Other Accessories" band — the catch-all door under the three tiles.
   Enlarged with a helmet/goggles/gloves cut-out trio so the catalog reads
   shoppable at a glance (team sheet 7/20). ── */
.shop-more {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; margin-top: 2px;
  background: #1a1a1a; padding: 44px 48px; text-decoration: none;
}
.shop-more__head {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 34px; line-height: 1; letter-spacing: var(--heading-ls);
  color: #fff; margin: 0 0 8px;
}
.shop-more__sub { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.72); margin: 0 0 22px; }
.shop-more__trio {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 40px; flex: 1; min-width: 0;
}
.shop-more__trio img { height: 140px; width: auto; }
.shop-more__cta {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 12px 18px; border: 1px solid rgba(255,255,255,0.55);
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: #fff;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.shop-more:hover .shop-more__cta { background: #fff; border-color: #fff; color: var(--black); }

/* ── /shop/accessories/ — text-led page header above the 3-card grid ── */
.shop-acc-page__head {
  max-width: var(--max-width); margin: 64px auto 48px;
  padding: 0 24px; text-align: center;
}

/* ════════════════════════════════════════════════════════════════════════
   CATEGORY PAGES v2 — Tracksmith-inspired
   Centered editorial header + subcategory pills + top filter bar + 3-col grid.
   Replaces the older cat-hero + left-rail layout.
   ════════════════════════════════════════════════════════════════════════ */

.cat-header {
  max-width: var(--max-width); margin: 56px auto 40px;
  padding: 0 24px; text-align: center;
}

/* Section switcher — current section is the big title; the other shop sections
   sit beside it as smaller grey links so you can hop between catalogs. */
.cat-switcher {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 12px 28px; margin: 0 0 22px;
}
.cat-switcher__active {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(44px, 5.5vw, 80px); line-height: 1.0;
  letter-spacing: var(--heading-ls); color: var(--black); margin: 0;
}
.cat-switcher__link {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(16px, 1.9vw, 22px); letter-spacing: var(--heading-ls);
  color: var(--grey-30); text-decoration: none; transition: color 0.15s;
}
.cat-switcher__link:hover { color: var(--black); }
@media (max-width: 700px) {
  .cat-switcher { gap: 8px 18px; }
  .cat-switcher__active { font-size: clamp(34px, 9vw, 52px); }
  .cat-switcher__link { font-size: 14px; }
}
.cat-header__eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--red); margin: 0 0 16px;
}
.cat-header__title {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(48px, 6vw, 84px); line-height: 1.0;
  letter-spacing: var(--heading-ls); color: var(--black);
  margin: 0 0 20px;
}
.cat-header__sub {
  font-size: 16px; line-height: 1.6; color: var(--grey-90);
  max-width: 56ch; margin: 0 auto;
}
/* Smaller follow-up line under the sub (e.g. "Looking for a specific model?") */
.cat-header__note {
  font-size: 14px; line-height: 1.6; color: var(--grey-90);
  max-width: 56ch; margin: 10px auto 0;
}
.cat-header__note a { color: var(--red); font-weight: 600; text-decoration: none; }
.cat-header__note a:hover { text-decoration: underline; }
/* Optional header CTA (e.g. "Book a Fitting" on the browse-only ski boots page) */
.cat-header__cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 26px auto 0;
  padding: 14px 26px; background: var(--red); color: #fff;
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  transition: background 0.15s;
}
.cat-header__cta span { transition: transform 0.18s; }
.cat-header__cta:hover { background: var(--red-dark); }
.cat-header__cta:hover span { transform: translateX(4px); }

/* Arch subtitle under the H1 on Conforma PDPs (from INSOLE_PROFILE_LINES) */
.pdp-archline {
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  color: var(--grey-90); margin: 4px 0 0;
}

/* Subcategory pills — text-only, dividers between, centered. */
.cat-pills {
  max-width: var(--max-width); margin: 0 auto 48px;
  padding: 0 24px;
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 0;
}
.cat-pill {
  background: transparent; border: none; cursor: pointer;
  padding: 14px 32px;
  font-family: var(--font-body); font-weight: 400; font-size: 17px;
  color: var(--grey-30);
  border-right: 1px solid var(--grey-300);
  transition: color 0.15s;
}
.cat-pill:last-child { border-right: none; }
.cat-pill:hover { color: var(--black); }
.cat-pill.active { color: var(--black); font-weight: 600; }

/* Top filter + sort bar. */
/* Top results + sort bar — minimal Tracksmith pattern. No filter chips. */
.cat-controls {
  max-width: var(--max-width); margin: 0 auto 36px;
  padding: 16px 24px;
  border-top: 1px solid var(--grey-300);
  border-bottom: 1px solid var(--grey-300);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px 24px;
}
/* Result count — "13 RESULTS" small caps */
.cat-controls .cat-count {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-30);
  margin: 0;
}
.cat-controls .cat-count strong { color: var(--black); font-weight: 700; }
/* Premium minimal sort — no chunky select chrome, just label + value + chevron */
.cat-controls .cat-sort {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-30);
}
.cat-controls .cat-sort label { color: var(--grey-30); }
.cat-controls .cat-sort select {
  background: transparent; border: none; padding: 0 16px 0 0;
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--black);
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none' stroke='%23111' stroke-width='1.2'><polyline points='1 1 5 5 9 1'/></svg>");
  background-repeat: no-repeat; background-position: right center;
}
/* Brand filter — the second, independent filter dimension. Mirrors the Sort
   control exactly; margin-left:auto anchors Brand + Sort together on the right
   while the result count stays on the left. */
.cat-controls .cat-brand {
  display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-30);
}
.cat-controls .cat-brand label { color: var(--grey-30); }
.cat-controls .cat-brand select {
  background: transparent; border: none; padding: 0 16px 0 0;
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--black);
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none' stroke='%23111' stroke-width='1.2'><polyline points='1 1 5 5 9 1'/></svg>");
  background-repeat: no-repeat; background-position: right center;
}

/* Search — third filter dimension, injected after the count. Minimal underline
   input that matches the band's small-caps register. */
.cat-controls .cat-search {
  display: inline-flex; align-items: center; gap: 9px;
  flex: 0 1 300px; min-width: 170px;
  color: var(--grey-30);
}
.cat-controls .cat-search svg { flex: none; }
.cat-controls .cat-search input {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid var(--grey-300);
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: var(--black); padding: 5px 0;
  border-radius: 0; appearance: none; -webkit-appearance: none;
}
.cat-controls .cat-search input:focus { outline: none; border-bottom-color: var(--black); }
.cat-controls .cat-search input::placeholder {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--grey-30);
}
.cat-controls .cat-search input::-webkit-search-decoration { display: none; }

/* Cross-section search hint — "Also in Ski Boots (3) · Shoes (1)" */
.cat-search-hint {
  max-width: var(--max-width); margin: -20px auto 28px; padding: 0 24px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; color: var(--grey-30);
}
.cat-search-hint a { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }
.cat-search-hint a:hover { color: var(--red); }

/* Magnifier at the right edge of the section switcher — toggles the global bar. */
.cat-switcher__search {
  background: transparent; border: none; cursor: pointer;
  padding: 8px; color: var(--grey-30); line-height: 0;
  transition: color 0.15s;
}
.cat-switcher__search:hover { color: var(--black); }
.cat-switcher__search svg { width: 17px; height: 17px; }

/* Global search — the bar under the directory. Searches EVERY section. */
.cat-global {
  display: none;
  max-width: 640px; margin: 28px auto 10px; padding: 0 24px;
  align-items: center; gap: 12px; color: var(--grey-30);
}
.cat-global.open { display: flex; }
.cat-global svg { flex: none; }
.cat-global input {
  flex: 1; min-width: 0; background: transparent; border: none;
  border-bottom: 1px solid var(--grey-300);
  font-family: var(--font-body); font-size: 16px; font-weight: 500;
  color: var(--black); padding: 8px 0;
  border-radius: 0; appearance: none; -webkit-appearance: none;
}
.cat-global input:focus { outline: none; border-bottom-color: var(--black); }
.cat-global input::placeholder {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--grey-30);
}
.cat-global input::-webkit-search-decoration { display: none; }
.cat-global__count {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-30);
  white-space: nowrap;
}
.cat-global__close {
  background: transparent; border: none; cursor: pointer;
  font-size: 15px; line-height: 1; padding: 6px; color: var(--grey-30);
  transition: color 0.15s;
}
.cat-global__close:hover { color: var(--black); }

/* While a global query is live the section machinery steps aside — pills,
   controls band, and the band's cross-section hint don't apply across sections. */
.cat-wrap--global .cat-pills,
.cat-wrap--global .cat-controls,
.cat-wrap--global .cat-search-hint { display: none; }

/* Mobile: the result count drops to its own line so the input keeps room
   (nowrap count + flex input = the input crushed to 0 while typing), and the
   placeholder tightens so "SEARCH EVERYTHING" doesn't clip. */
@media (max-width: 640px) {
  .cat-global { flex-wrap: wrap; }
  .cat-global__count { flex-basis: 100%; order: 4; padding-left: 26px; }
  .cat-global input::placeholder { font-size: 11px; letter-spacing: 0.08em; }
}

/* Mobile controls band — three tidy rows sharing one left edge:
   count / search / brand+sort. Kills the ragged wrap. */
@media (max-width: 640px) {
  .cat-controls { display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; }
  .cat-controls .cat-count  { grid-column: 1 / -1; }
  .cat-controls .cat-search { grid-column: 1 / -1; flex-basis: auto; max-width: none; min-width: 0; }
  .cat-controls .cat-brand  { margin-left: 0; justify-self: start; min-width: 0; }
  .cat-controls .cat-sort   { justify-self: end; min-width: 0; }
  /* The select values ("ALL BRANDS", "RECOMMENDED") speak for themselves —
     dropping the labels keeps Brand + Sort on one line at 390px. */
  .cat-controls .cat-brand label, .cat-controls .cat-sort label { display: none; }
}

/* Mobile pills — one swipeable line instead of a 3-row wrap. */
@media (max-width: 700px) {
  .cat-pills {
    justify-content: flex-start; flex-wrap: nowrap;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 36px;
  }
  .cat-pills::-webkit-scrollbar { display: none; }
  .cat-pill { padding: 12px 20px; font-size: 15px; white-space: nowrap; flex: none; }
}

/* Page background on the new category pages — same #F7F7F7 the PDP gallery uses.
   Photo backdrop → tile bg → page bg are all #F7F7F7 so products visually float. */
body:has(.cat-wrap .cat-header) { background: var(--grey-50); }

/* 3-column product grid — square tiles share the page bg so there's no edge. */
.cat-grid--3col {
  max-width: var(--max-width); margin: 0 auto 80px;
  padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 56px 32px;
}
.cat-grid--3col .cat-card__media {
  aspect-ratio: 1/1;
  background: var(--grey-50);
}
.cat-grid--3col .cat-card__title {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 22px; letter-spacing: var(--heading-ls);
  margin: 20px 0 6px; color: var(--black); font-weight: 400;
}
.cat-grid--3col .cat-card__price {
  font-size: 14px; color: var(--black); margin: 0;
}
.cat-grid--3col .cat-card__type {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--grey-30); margin: 0 0 4px;
}

/* Hide the legacy chrome on pages that adopt the new layout. */
.cat-wrap:has(.cat-header) .cat-crumbs,
.cat-wrap:has(.cat-header) .cat-hero,
.cat-wrap:has(.cat-header) .cat-topbar,
.cat-wrap:has(.cat-header) .cat-rail,
.cat-wrap:has(.cat-header) .cat-layout > .cat-rail { display: none; }

@media (max-width: 900px) {
  .cat-grid--3col { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
}
@media (max-width: 560px) {
  .cat-header__title { font-size: clamp(36px, 9vw, 56px); }
  .cat-grid--3col { grid-template-columns: 1fr; }
  .cat-pill { padding: 12px 18px; font-size: 15px; }
}

/* ── Mobile — every band's product row becomes an edge-bled sideways swipe
   (the horizontal experience travels down to touch) ── */
@media (max-width: 800px) {
  .shop-intro { margin: 40px auto 28px; }
  .shop-intro__head { font-size: 36px; }
  .shop-band__inner { padding: 48px 24px 56px; }
  .shop-band__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .shop-band__tiles {
    display: flex; gap: 2px; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin: 0 -24px; padding: 0 24px;
  }
  .shop-band__tiles::-webkit-scrollbar { display: none; }
  .shop-tile { flex: 0 0 78%; scroll-snap-align: start; aspect-ratio: 4 / 4.8; }
  .shop-shoes .sh-carousel__track { grid-auto-columns: calc((100% - 14px) / 1.75); }
  .shop-shoes__nav { display: none; }   /* touch scroll does the driving */
  .shop-build { flex-basis: auto; width: 100%; }
  .shop-build__steps { gap: 8px; }      /* pills are label-only now — 3-across fits a phone */
  .shop-paths { grid-template-columns: 1fr; }
  .shop-more { padding: 28px 24px 32px; }
  .shop-more__head { font-size: 28px; }
  .shop-more__trio { justify-content: flex-start; gap: 24px; }
  .shop-more__trio img { height: 92px; }
}
