/* ==========================================================================
   OFFCUT — Thread Theme · Collection page
   ========================================================================== */

:root { --tool-h: 64px; }

/* ==========================================================================
   01 · LINEUP HERO
   ========================================================================== */
.chero {
  position: relative;
  height: clamp(620px, 92vh, 980px);
  background: var(--sw-sand);
  overflow: hidden;
  isolation: isolate;                       /* keeps the multiply inside the hero */
}
.chero__word {
  position: absolute; left: 0; right: 0; top: 47%;
  transform: translateY(-50%);
  z-index: 0;
  display: flex; justify-content: center; gap: .14em;
  font-weight: 500;
  font-size: clamp(7rem, 31vw, 36rem);
  line-height: .8;
  letter-spacing: -.085em;
  white-space: nowrap;
  color: var(--ink);
  pointer-events: none;
}
.chero__w { display: block; overflow: hidden; padding: 0 .02em .04em; }
.chero__w > span { display: block; transform: translateY(102%); transition: transform 1.3s var(--ease); }
.chero__w + .chero__w > span { transition-delay: .08s; }
.is-ready .chero__w > span { transform: none; }

.chero__lineup {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 84%;
  /* no z-index/transform here: a stacking context would cut the images off from the sand + title below */
  display: flex; justify-content: center; align-items: flex-end;
}
.chero__lineup img {
  height: 100%; width: auto;
  aspect-ratio: 1 / 2;
  object-fit: cover;
  margin-inline: -1.6%;
  translate: var(--mx, 0px) 0;
  mix-blend-mode: multiply;                 /* white studio backdrop drops out */
  filter: contrast(1.1) brightness(1.1) grayscale(.2);
  opacity: 0;
  transform: translateY(8%);
  transition: opacity 1.1s var(--ease), transform 1.4s var(--ease), translate 1.2s var(--ease);
  transition-delay: calc(.25s + var(--k) * .09s), calc(.25s + var(--k) * .09s), 0s;
}
.is-ready .chero__lineup img { opacity: 1; transform: none; }
/* per-shot exposure so every studio backdrop reads as pure white under multiply */
.chero__lineup img:nth-child(3) { filter: contrast(1.14) brightness(1.16) grayscale(.2); }
.chero__lineup img:nth-child(4) { filter: contrast(1.3) brightness(1.34) grayscale(.25); }

.chero__ui {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(var(--bar-h) + var(--head-h) + 18px);
  padding-bottom: clamp(20px, 3vw, 36px);
  pointer-events: none;
}
.chero__ui > * { pointer-events: auto; }
.crumbs { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.crumbs a { opacity: .6; transition: opacity .3s; }
.crumbs a:hover { opacity: 1; }
.crumbs span[aria-hidden] { opacity: .35; }

.chero__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.chero__copy {
  display: grid; gap: 14px; justify-items: start;
  max-width: 360px;
  padding: 18px;
  border-radius: var(--r-m);
  background: rgba(244, 242, 238, .42);
  border: 1px solid rgba(255, 255, 255, .55);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.chero__copy .eyebrow { color: var(--ink-3); }
.chero__lede { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.chero__lede b { font-weight: 600; }

/* department segmented control */
.dept { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; border-radius: 999px; background: rgba(13, 13, 12, .07); width: 100%; }
.dept label { position: relative; z-index: 1; cursor: pointer; }
.dept input { position: absolute; opacity: 0; pointer-events: none; }
.dept span { display: grid; place-items: center; height: 36px; font-size: 13px; font-weight: 500; color: var(--ink-3); transition: color .4s; }
.dept input:checked + span { color: var(--paper); }
.dept input:focus-visible + span { outline: 1.5px solid var(--ink); border-radius: 999px; }
.dept i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 999px; background: var(--ink); transition: transform .55s var(--ease); }
.dept:has(label:nth-child(2) input:checked) i { transform: translateX(100%); }
.dept:has(label:nth-child(3) input:checked) i { transform: translateX(200%); }

.chero__drop {
  display: grid; gap: 10px;
  width: 300px;
  padding: 16px 18px;
  border-radius: var(--r-m);
  color: #fff;
  background: rgba(13, 13, 12, .62);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  transition: transform .5s var(--ease), background-color .4s;
}
.chero__drop:hover { transform: translateY(-3px); background: rgba(13, 13, 12, .78); }
.chero__drop-top { display: flex; justify-content: space-between; align-items: center; }
.chero__drop-top .eyebrow { font-size: 10px; }
.chero__count { display: flex; align-items: baseline; gap: 2px; }
.chero__count b { font-weight: 400; font-size: 42px; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.chero__count small { font-family: var(--f-mono); font-size: 11px; opacity: .55; margin-right: 12px; }
.chero__drop-foot { font-size: 12px; color: rgba(255, 255, 255, .6); }


/* ==========================================================================
   02 · CATEGORY TILES
   ========================================================================== */
.ccats { border-bottom: 1px solid var(--line); }
.ccats__rail {
  display: flex; gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 18px max(var(--gutter), calc((100% - 1560px) / 2));
  scroll-padding-inline: var(--gutter);
}
.ccats__rail::-webkit-scrollbar { display: none; }
.ccat {
  flex: 0 0 auto;
  display: grid; grid-template-columns: 52px auto; align-items: center; gap: 12px;
  padding: 6px 18px 6px 6px;
  border-radius: var(--r-s);
  border: 1px solid transparent;
  text-align: left;
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.ccat:hover { background: var(--paper-2); }
.ccat.is-on { border-color: var(--ink); background: var(--white); }
.ccat__img { width: 52px; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--bg); isolation: isolate; }
.ccat__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; filter: contrast(1.06) brightness(1.06); transition: transform .8s var(--ease); }
.ccat:hover .ccat__img img { transform: scale(1.1); }
.ccat__t { display: grid; line-height: 1.2; }
.ccat__t b { font-size: 14px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.ccat__t small { font-family: var(--f-mono); font-size: 10px; color: var(--mute); letter-spacing: .06em; }

/* ==========================================================================
   03 · TOOLBAR
   ========================================================================== */
.toolbar {
  position: sticky; z-index: 40;
  top: calc(var(--bar-h) + var(--head-h));
  height: var(--tool-h);
  background: rgba(244, 242, 238, .78);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--line);
  transition: top .6s var(--ease);
}
.bar-hidden .toolbar { top: var(--head-h); }
.toolbar__in { height: 100%; display: flex; align-items: center; gap: 18px; }
.tbtn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500;
  flex: none;
  transition: background-color .3s, color .3s, border-color .3s;
}
.tbtn:hover { border-color: var(--ink); }
.tbtn .i { width: 18px; height: 18px; }
.tbtn__n, .mfab b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 600; }
.tbtn__n[hidden], .mfab b[hidden] { display: none; }
.qpills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; mask-image: linear-gradient(to right, #000 92%, transparent); -webkit-mask-image: linear-gradient(to right, #000 92%, transparent); }
.qpills::-webkit-scrollbar { display: none; }
.qpill {
  flex: none;
  height: 34px; padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-3);
  background: rgba(13, 13, 12, .05);
  transition: background-color .3s, color .3s;
}
.qpill:hover { background: rgba(13, 13, 12, .1); }
.qpill[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.toolbar__r { display: flex; align-items: center; gap: 16px; flex: none; }
.toolbar__count { color: var(--mute); white-space: nowrap; }
.view { display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.view button { width: 34px; height: 30px; border-radius: 999px; display: grid; place-items: center; color: var(--mute-2); transition: background-color .3s, color .3s; }
.view button svg { width: 15px; height: 15px; fill: currentColor; }
.view button:hover { color: var(--ink); }
.view button.is-on { background: var(--ink); color: var(--paper); }

.sort { position: relative; }
.sort__btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; white-space: nowrap; }
.sort__btn span { color: var(--mute); }
.sort__btn b { font-weight: 500; }
.sort__btn .i { transition: transform .4s var(--ease); }
.sort.is-open .sort__btn .i { transform: rotate(180deg); }
.sort__menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 220px;
  padding: 6px;
  border-radius: var(--r-m);
  background: rgba(244, 242, 238, .9);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.sort.is-open .sort__menu { opacity: 1; transform: none; pointer-events: auto; }
.sort__menu li { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: var(--r-s); font-size: 14px; cursor: pointer; outline: none; }
.sort__menu li:hover, .sort__menu li:focus-visible { background: rgba(13, 13, 12, .06); }
.sort__menu li[aria-selected="true"] { font-weight: 500; }
.sort__menu li[aria-selected="true"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

/* ==========================================================================
   04 · FILTERS + GRID
   ========================================================================== */
.shop {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 0 clamp(24px, 3vw, 48px);
  align-items: start;
  padding-block: 28px clamp(64px, 7vw, 110px);
  transition: grid-template-columns .7s var(--ease-io), column-gap .7s var(--ease-io);
}
.shop.is-collapsed { grid-template-columns: 0 minmax(0, 1fr); column-gap: 0; }

.filters {
  position: sticky;
  top: calc(var(--bar-h) + var(--head-h) + var(--tool-h) + 20px);
  max-height: calc(100vh - var(--bar-h) - var(--head-h) - var(--tool-h) - 40px);
  display: flex; flex-direction: column;
  min-width: 0;
  transition: top .6s var(--ease), opacity .5s var(--ease), visibility 0s;
}
.bar-hidden .filters { top: calc(var(--head-h) + var(--tool-h) + 20px); max-height: calc(100vh - var(--head-h) - var(--tool-h) - 40px); }
.shop.is-collapsed .filters { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .7s; }
.filters__head, .filters__foot, .fgroup--sort { display: none; }
.filters__body { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 6px; width: 264px; }
.filters__body::-webkit-scrollbar { width: 3px; }
.filters__body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.switch { display: flex; align-items: center; gap: 12px; padding: 4px 0 18px; font-size: 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__ui { position: relative; width: 38px; height: 22px; border-radius: 999px; background: rgba(13, 13, 12, .14); transition: background-color .35s var(--ease); flex: none; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .45s var(--ease); }
.switch input:checked + .switch__ui { background: var(--ink); }
.switch input:checked + .switch__ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__ui { outline: 1.5px solid var(--ink); outline-offset: 3px; }

.fgroup { border-bottom: 1px solid var(--line); }
.fgroup summary {
  display: flex; align-items: center; gap: 8px;
  padding: 18px 0;
  font-size: 14px; font-weight: 500;
  list-style: none; cursor: pointer;
}
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary .i { margin-left: auto; transition: transform .45s var(--ease); }
.fgroup[open] summary .i { transform: rotate(45deg); }
.fgroup__n { font-family: var(--f-mono); font-size: 10px; color: var(--mute); }
.fgroup[open] > :not(summary) { animation: fIn .5s var(--ease) both; }
@keyframes fIn { from { opacity: 0; transform: translateY(-6px); } }
.fgroup > :last-child { margin-bottom: 20px; }
.fgroup__t { font-size: 14px; font-weight: 500; padding: 18px 0 12px; }
.fgroup__sub { color: var(--mute); font-size: 10px; margin: 2px 0 8px; }
.fgroup__link { font-size: 13px; margin-top: 14px; }

.fopts { display: grid; gap: 2px; }
.fopt { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: center; padding: 6px 0; font-size: 14px; cursor: pointer; color: var(--ink-3); transition: color .2s; }
.fopt:hover { color: var(--ink); }
.fopt input { position: absolute; opacity: 0; pointer-events: none; }
.fopt__box { width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(13, 13, 12, .3); display: grid; place-items: center; transition: background-color .25s, border-color .25s; }
.fopt__box .i { width: 12px; height: 12px; color: var(--paper); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease); stroke-width: 2; }
.fopt input:checked + .fopt__box { background: var(--ink); border-color: var(--ink); }
.fopt input:checked + .fopt__box .i { opacity: 1; transform: none; }
.fopt input:checked ~ span { color: var(--ink); font-weight: 500; }
.fopt input:focus-visible + .fopt__box { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.fopt small { font-family: var(--f-mono); font-size: 10.5px; color: var(--mute-2); }
.fopt.is-zero { opacity: .38; }

.fsizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.fsize { cursor: pointer; }
.fsize input { position: absolute; opacity: 0; pointer-events: none; }
.fsize span { display: grid; place-items: center; height: 38px; border-radius: var(--r-s); border: 1px solid var(--line); font-size: 13px; transition: background-color .25s, color .25s, border-color .25s; }
.fsize:hover span { border-color: var(--ink); }
.fsize input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fsize input:focus-visible + span { outline: 1.5px solid var(--ink); outline-offset: 2px; }

.fcolors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 6px; }
.fcolor { display: grid; justify-items: center; gap: 6px; cursor: pointer; font-size: 11px; color: var(--mute); }
.fcolor input { position: absolute; opacity: 0; pointer-events: none; }
.fcolor i { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: transform .35s var(--ease); }
.fcolor i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--ink); opacity: 0; transform: scale(.85); transition: opacity .25s, transform .35s var(--ease); }
.fcolor:hover i { transform: scale(1.08); }
.fcolor input:checked + i::after { opacity: 1; transform: none; }
.fcolor input:checked ~ span { color: var(--ink); font-weight: 500; }
.fcolor input:focus-visible + i { outline: 1.5px solid var(--ink); outline-offset: 5px; }

.price { padding: 4px 2px 0; }
.price__track { position: relative; height: 24px; }
.price__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--line); border-radius: 2px; }
.price__track i { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: var(--ink); left: var(--a, 0%); right: var(--b, 0%); }
.price input[type="range"] {
  position: absolute; inset: 0; width: 100%; margin: 0;
  -webkit-appearance: none; appearance: none;
  background: none; pointer-events: none;
}
.price input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.12); cursor: grab; }
.price input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--ink); cursor: grab; }
.price input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--ink); outline-offset: 2px; }
.price__out { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.price__out span { padding: 6px 10px; border-radius: var(--r-xs); background: var(--paper-2); }

.fhelp { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; margin: 22px 0 6px; padding: 10px; border-radius: var(--r-m); background: var(--sw-mist); font-size: 13px; line-height: 1.4; transition: background-color .4s; }
.fhelp:hover { background: #d3d8db; }
.fhelp__img { width: 56px; aspect-ratio: 1; border-radius: var(--r-s); overflow: hidden; }
.fhelp__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.fhelp b { display: block; font-weight: 500; }
.fhelp small { color: var(--ink-3); font-size: 12.5px; }

/* active chips */
.active { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 0; margin-bottom: 0; transition: margin .4s var(--ease); }
.active:not(:empty) { margin-bottom: 22px; }
.achip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 13px; animation: lkIn2 .45s var(--ease) both; }
@keyframes lkIn2 { from { opacity: 0; transform: scale(.9); } }
.achip .i { width: 13px; height: 13px; }
.achip button { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; transition: background-color .25s; }
.achip button:hover { background: var(--paper-2); }
.active__clear { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: var(--mute); margin-left: 6px; }
.active__clear:hover { color: var(--ink); }

/* grid */
.cgrid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 40px 14px;
  grid-auto-flow: dense;
}
.cgrid[data-cols="2"] { gap: 56px 18px; }
.cgrid[data-cols="2"] .card__info { font-size: 15px; }
.card--soldout .card__img { opacity: .55; }
.card--soldout .qa__sizes button { text-decoration: none; }

/* in-grid editorial tiles */
.tile { position: relative; overflow: hidden; border-radius: var(--r-xs); display: block; isolation: isolate; }
.tile--edit { grid-column: span 2; grid-row: span 2; min-height: 100%; background: var(--sw-stone); }
.tile--edit img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.tile--edit:hover img { transform: scale(1.04); }
.tile--edit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.4), transparent 45%); }
.tile__glass {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r-m);
  color: #fff;
  background: rgba(20, 20, 18, .26);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.tile__glass .mono { font-size: 10px; opacity: .75; }
.tile__glass b { display: block; font-weight: 500; font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -.05em; line-height: 1; margin-top: 6px; }
.tile__glass .btn { flex: none; }

.tile--promo { background: var(--sw-mist); aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; transition: background-color .6s var(--ease); }
.tile--promo:hover { background: #d3d8db; }
.tile--promo .tile__word {
  position: absolute; left: 6%; right: 6%; top: 50%; transform: translateY(-50%); z-index: 0;
  font-weight: 500; font-size: clamp(3rem, 6vw, 6.4rem); line-height: .82; letter-spacing: -.07em;
  text-align: center; color: var(--ink);
}
.tile--promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; mix-blend-mode: multiply; filter: contrast(1.05) brightness(1.06); transition: transform 1.2s var(--ease); }
.tile--promo:hover img { transform: scale(1.05); }
.tile--promo > span { position: relative; z-index: 2; }
.tile__top { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.tile__bot { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 500; }
.tile__bot .i { width: 36px; height: 36px; padding: 9px; border-radius: 50%; background: var(--ink); color: var(--paper); transition: transform .5s var(--ease); }
.tile--promo:hover .tile__bot .i { transform: rotate(-45deg); }

.empty { display: grid; gap: 16px; justify-items: center; text-align: center; padding: 80px 20px; border: 1px dashed var(--line); border-radius: var(--r-m); }
.cgrid:not(:empty) + .empty { margin-top: 40px; }

.more { display: grid; gap: 14px; justify-items: center; margin-top: 64px; }
.more .mono { color: var(--mute); }
.more .mono b { color: var(--ink); font-weight: 500; }
.more__bar { width: 200px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.more__bar i { display: block; height: 100%; background: var(--ink); width: 0; transition: width .8s var(--ease); }
.more[hidden] { display: none; }

/* ==========================================================================
   05 · FIT FINDER
   ========================================================================== */
.fitband { background: var(--ink); color: #fff; padding-block: clamp(72px, 8vw, 120px); overflow: hidden; }
.fitband__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 90px); align-items: center; }
.fitband .eyebrow { color: rgba(255, 255, 255, .6); }
.fitband h2 { margin: 18px 0 22px; }
.fitband .lede { color: rgba(255, 255, 255, .62); }
.fitform {
  display: grid; gap: 22px;
  padding: clamp(20px, 2.6vw, 34px);
  border-radius: var(--r-l);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
}
.fitform fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fitform legend { color: rgba(255, 255, 255, .55); font-size: 10.5px; margin-bottom: 10px; padding: 0; }
.segs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.segs--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.segs label { cursor: pointer; }
.segs input { position: absolute; opacity: 0; pointer-events: none; }
.segs span { display: grid; place-items: center; height: 46px; padding: 0 8px; border-radius: var(--r-s); border: 1px solid rgba(255, 255, 255, .16); font-size: 13.5px; text-align: center; transition: background-color .3s, color .3s, border-color .3s; }
.segs label:hover span { border-color: rgba(255, 255, 255, .5); }
.segs input:checked + span { background: #fff; color: var(--ink); border-color: #fff; font-weight: 500; }
.segs input:focus-visible + span { outline: 1.5px solid #fff; outline-offset: 2px; }
.fitform__out { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; align-items: center; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }
.fitform__size { grid-row: span 2; display: grid; }
.fitform__size .mono { font-size: 10px; color: rgba(255, 255, 255, .55); }
.fitform__size b { font-weight: 400; font-size: clamp(4.5rem, 7vw, 6.5rem); line-height: .9; letter-spacing: -.06em; }
.fitform__size b.pop { animation: pop .6s var(--ease); }
@keyframes pop { 0% { opacity: 0; transform: translateY(14px); } }
.fitform__out p { color: rgba(255, 255, 255, .72); font-size: 14px; }
.fitform__out .btn { justify-self: start; background: #fff; color: var(--ink); }
.fitform__out .btn::after { background: var(--paper); }

/* ==========================================================================
   06 · ABOUT + FAQ
   ========================================================================== */
.cinfo__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.cinfo__about { display: grid; gap: 22px; justify-items: start; }
.cinfo__about .eyebrow { color: var(--mute); }
.cinfo__text { position: relative; max-height: 7.8em; overflow: hidden; color: var(--ink-3); line-height: 1.6; transition: max-height .8s var(--ease); }
.cinfo__text p + p { margin-top: 1em; }
.cinfo__text::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(transparent, var(--paper)); transition: opacity .4s; }
.cinfo__text.is-open { max-height: 30em; }
.cinfo__text.is-open::after { opacity: 0; }
#aboutMore .i { transition: transform .4s var(--ease); }
#aboutMore[aria-expanded="true"] .i { transform: rotate(45deg); }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 17px; font-weight: 500; letter-spacing: -.02em; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .i { transition: transform .45s var(--ease); flex: none; }
.faq__item[open] summary .i { transform: rotate(45deg); }
.faq__item > div { padding: 0 40px 24px 0; color: var(--ink-3); line-height: 1.6; }
.faq__item[open] > div { animation: fIn .5s var(--ease) both; }

/* mobile filter fab */
.mfab {
  position: fixed; left: 50%; bottom: 18px; z-index: 45;
  display: none; align-items: center; gap: 10px;
  height: 50px; padding: 0 22px;
  border-radius: 999px;
  color: #fff; font-size: 14px; font-weight: 500;
  background: rgba(13, 13, 12, .82);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .5);
  transform: translate(-50%, 140%);
  transition: transform .6s var(--ease);
}
.mfab .i { width: 18px; height: 18px; }
.mfab b { background: #fff; color: var(--ink); }
.mfab.is-on { transform: translate(-50%, 0); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .view button[data-cols="4"] { display: none; }
}
@media (max-width: 1024px) {
  :root { --tool-h: 58px; }
  .shop, .shop.is-collapsed { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .toolbar__count, .view { display: none; }
  .tbtn .tbtn__label { font-size: 0; }
  .tbtn .tbtn__label::after { content: "Filter"; font-size: 13.5px; }
  /* filters become a drawer */
  .filters, .bar-hidden .filters {
    position: fixed; inset: 0 auto 0 0; z-index: 90;
    top: 0; max-height: none;
    width: min(420px, 100%);
    background: var(--paper);
    transform: translateX(-102%);
    transition: transform .7s var(--ease-io);
    visibility: visible; opacity: 1;
  }
  .shop.is-collapsed .filters { opacity: 1; visibility: visible; }
  .filters.is-open { transform: none; }
  .filters__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
  .filters__head h3 { font-size: 20px; font-weight: 500; letter-spacing: -.03em; }
  .filters__body { flex: 1; width: auto; padding: 4px 20px 20px; }
  .fgroup--sort { display: block; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 18px; }
  .fchips { display: flex; flex-wrap: wrap; gap: 6px; }
  .filters__foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .mfab { display: inline-flex; }
  .fitband__in, .cinfo__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .chero { height: clamp(560px, 86svh, 760px); }
  .chero__word { font-size: 29vw; top: 36%; }
  .chero__lineup { height: 66%; }
  .chero__lineup img:nth-child(1), .chero__lineup img:nth-child(4) { display: none; }
  .chero__lineup img { margin-inline: -5%; }
  .chero__bottom { flex-direction: column; align-items: stretch; }
  .chero__copy { max-width: none; padding: 14px; }
  .chero__lede { display: none; }
  .chero__drop { display: none; }
  .cgrid, .cgrid[data-cols] { gap: 30px 10px; }
  .tile--edit { grid-column: span 2; grid-row: span 1; aspect-ratio: 4 / 5; }
  .tile__glass { flex-direction: column; align-items: flex-start; padding: 14px; left: 10px; right: 10px; bottom: 10px; }
  .tile--promo .tile__word { font-size: 13vw; }
  .sort__btn span { display: none; }
  .toolbar__in { gap: 10px; }
  .sort { display: none; }
  .toolbar__r { display: none; }
  .fitform__out { grid-template-columns: minmax(0, 1fr); }
  .fitform__size { grid-row: auto; }
  .segs span { font-size: 12.5px; height: 44px; }
}
