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

/* ==========================================================================
   01 · GALLERY + BUY BOX
   ========================================================================== */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, .82fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
  padding-top: calc(var(--bar-h) + var(--head-h) + 16px);
  padding-bottom: clamp(64px, 7vw, 110px);
}

/* editorial gallery: every 3rd frame goes full width */
.gallery__track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  transition: opacity .35s var(--ease);
}
.gallery__track.is-swapping { opacity: 0; }
.g-item {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--r-xs);
  background: var(--bg, var(--paper-2));
  isolation: isolate;
  cursor: zoom-in;
  animation: gIn .9s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes gIn { from { opacity: 0; transform: translateY(16px); } }
.g-item:nth-child(3n + 1) { grid-column: span 2; aspect-ratio: 1 / 1.08; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.g-item:hover img { transform: scale(1.035); }
.g-item--blend img { mix-blend-mode: multiply; filter: contrast(1.08) brightness(1.08); }
.g-item__tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 12px;
  border-radius: 999px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(244, 242, 238, .6);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, .5);
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.g-item:hover .g-item__tag, .g-item:focus-visible .g-item__tag { opacity: 1; transform: none; }
.g-item__zoom {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(244, 242, 238, .6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.g-item:hover .g-item__zoom { opacity: 1; }
.g-item__zoom .i { width: 17px; height: 17px; }
.gallery__ui { display: none; }

/* buy box — sticks, and can scroll when taller than the viewport (top set in JS) */
.info { min-width: 0; align-self: stretch; }   /* full gallery height so the buy box has room to stick */
.info__in { position: sticky; top: var(--info-top, calc(var(--bar-h) + var(--head-h) + 16px)); display: grid; gap: 20px; transition: top .4s var(--ease); }
.info .crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.info .crumbs a:hover { color: var(--ink); }
.info .crumbs span { opacity: .5; }
.info__badges { display: flex; gap: 6px; margin-bottom: -8px; }
.info__badges .badge { background: var(--white); }
.info__badges .badge--ink { background: var(--ink); }
.info__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.info__title { font-weight: 500; font-size: clamp(2.2rem, 3.4vw, 3.5rem); line-height: .92; letter-spacing: -.055em; }
.info__price { font-size: 22px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; padding-top: 6px; white-space: nowrap; }
.info__rating { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; margin-top: -8px; justify-self: start; }
.info__rating b { font-weight: 600; }
.info__rating span:last-child { color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.info__lede { color: var(--ink-3); line-height: 1.6; font-size: 14.5px; }

.opt { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.opt__head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.opt__head b { font-weight: 500; }
.opt__head .mono { color: var(--mute); font-size: 10px; }
.opt__head .link-u { font-size: 13px; }

.colors { display: flex; gap: 8px; }
.color {
  position: relative;
  width: 68px; aspect-ratio: 4 / 5;
  border-radius: var(--r-s);
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
  outline: 1px solid transparent; outline-offset: 3px;
  transition: outline-color .3s var(--ease), transform .4s var(--ease);
}
.color img { width: 100%; height: 100%; object-fit: cover; }
.color--blend img { mix-blend-mode: multiply; }
.color::after { content: ""; position: absolute; left: 6px; bottom: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px #fff; }
.color:hover { transform: translateY(-2px); }
.color[aria-checked="true"] { outline-color: var(--ink); }

.sizes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.size {
  position: relative;
  height: 50px;
  border-radius: var(--r-s);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 14px; font-weight: 500;
  transition: background-color .25s, color .25s, border-color .25s;
}
.size:hover { border-color: var(--ink); }
.size[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.size small { position: absolute; left: 0; right: 0; bottom: 4px; font-family: var(--f-mono); font-size: 8.5px; font-weight: 400; letter-spacing: .04em; color: var(--signal); }
.size[aria-checked="true"] small { color: #ffb08f; }
.size.is-low { padding-bottom: 8px; }
.size.is-out { color: var(--mute-2); background: transparent; background-image: linear-gradient(to top right, transparent calc(50% - .5px), var(--line) calc(50% - .5px), var(--line) calc(50% + .5px), transparent calc(50% + .5px)); }
.size.is-out[aria-checked="true"] { color: var(--paper); background-color: var(--ink-3); }
.sizes.is-shake { animation: shake .5s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.fitline { margin-top: 4px; }
.fitline__track { position: relative; height: 2px; background: var(--line); border-radius: 2px; }
.fitline__track i { position: absolute; top: 50%; left: var(--x); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--paper); }
.fitline__labels { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11.5px; color: var(--mute); }
.fitline__labels b { font-weight: 500; color: var(--ink); }
.info__model { color: var(--mute); font-size: 10px; }

.stockmsg { font-size: 13px; min-height: 1.2em; display: flex; align-items: center; gap: 8px; margin: -6px 0 -8px; }
.stockmsg.is-low { color: var(--signal); }
.stockmsg.is-low::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: live 1.8s infinite; }
.stockmsg.is-ok { color: var(--ok); }
.stockmsg.is-ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stockmsg.is-err { color: #b23a12; }

.notify { padding: 16px; border-radius: var(--r-m); background: var(--white); border: 1px solid var(--line); display: grid; gap: 12px; font-size: 13.5px; animation: gIn .5s var(--ease) both; }
.notify b { font-weight: 500; }
.notify p { color: var(--ink-3); }
.notify__row { display: flex; gap: 6px; }
.notify__row input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); outline: none; }
.notify__row input:focus { border-color: var(--ink); }
.notify__msg { font-size: 12.5px; }
.notify__msg.is-ok { color: var(--ok); }
.notify__msg.is-err { color: #b23a12; }

.buy { display: flex; gap: 8px; }
.atc { --bh: 58px; flex: 1; font-size: 15px; }
.atc.is-added { background: var(--ok); }
.wish { width: 58px; height: 58px; flex: none; }
.wish.is-on .i { fill: var(--ink); }
#buyNow { --bh: 50px; margin-top: -10px; }
.paysplit { font-size: 12.5px; color: var(--mute); text-align: center; margin-top: -6px; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.paysplit b { color: var(--ink); font-weight: 500; }

.assure { display: grid; border-radius: var(--r-m); background: var(--white); border: 1px solid var(--line-2); }
.assure li { display: flex; gap: 12px; align-items: center; padding: 13px 16px; font-size: 13px; color: var(--ink-3); }
.assure li + li { border-top: 1px solid var(--line-2); }
.assure b { color: var(--ink); font-weight: 500; }
.assure .i { width: 19px; height: 19px; color: var(--ink); }

.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { display: flex; justify-content: space-between; align-items: center; padding: 17px 0; font-size: 14.5px; font-weight: 500; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .i { transition: transform .45s var(--ease); }
.acc details[open] summary .i { transform: rotate(45deg); }
.acc details > div { padding-bottom: 18px; font-size: 14px; color: var(--ink-3); line-height: 1.6; animation: gIn .5s var(--ease) both; }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.specs li:last-child { border: 0; }
.specs span { color: var(--mute); }
.specs b { font-weight: 500; color: var(--ink); text-align: right; }
.trace { counter-reset: tr; display: grid; gap: 0; position: relative; }
.trace li { position: relative; display: grid; gap: 2px; padding: 0 0 14px 26px; }
.trace li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.trace li::after { content: ""; position: absolute; left: 7.5px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.trace li:last-child::after { display: none; }
.trace b { font-weight: 500; color: var(--ink); }
.trace span { font-size: 13px; }

.pairs { display: grid; gap: 10px; }
.pairs .mono { color: var(--mute); }
.pairs__list { display: grid; gap: 8px; }
.pair { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r-m); background: var(--white); font-size: 13.5px; transition: background-color .3s; }
.pair:hover { background: var(--paper-2); }
.pair__img { width: 56px; aspect-ratio: 4 / 5; border-radius: var(--r-xs); overflow: hidden; background: var(--bg); }
.pair__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.pair b { font-weight: 500; display: block; }
.pair small { color: var(--mute); font-size: 12.5px; }
.pair .icon-btn { background: var(--ink); color: var(--paper); width: 36px; height: 36px; }
.pair .icon-btn .i { width: 16px; height: 16px; }
.pair .icon-btn.is-done { background: var(--ok); }

/* ==========================================================================
   02 · FEATURE TILES
   ========================================================================== */
.feat { border-top: 1px solid var(--line); }
.feat__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ftile { display: grid; grid-template-rows: auto auto; gap: 18px; isolation: isolate; }
.ftile::before { content: ""; grid-area: 1 / 1; border-radius: var(--r-s); background: var(--sw); transition: background-color .6s var(--ease); }
.ftile--a { --sw: var(--sw-sand); --swh: #d9cdb7; }
.ftile--b { --sw: var(--sw-mist); --swh: #cfd4d7; }
.ftile--c { --sw: var(--sw-clay); --swh: #dcc2ad; }
.ftile--d { --sw: var(--sw-sage); --swh: #c3c8b4; }
.ftile:hover::before { background: var(--swh); }
.ftile__num {
  grid-area: 1 / 1; align-self: end; justify-self: start;
  font-weight: 500; font-size: clamp(5rem, 10vw, 11rem); line-height: .78; letter-spacing: -.08em;
  margin: 0 0 .1em .08em;                  /* keep the glyphs inside the photo edge */
  color: var(--ink);
  pointer-events: none;
}
.ftile img {
  grid-area: 1 / 1;
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--r-s);
  mix-blend-mode: multiply;                 /* light backgrounds drop out, the number shows through */
  filter: contrast(1.08) brightness(1.1) grayscale(.25);
  /* the tile can't clip (that would isolate the blend), so the image clips itself:
     on hover the inset grows by exactly what the scale adds, keeping the visible box fixed */
  clip-path: inset(0 round var(--r-s));
  transition: transform 1.4s var(--ease), clip-path 1.4s var(--ease);
}
.ftile:hover img { transform: scale(1.04); clip-path: inset(1.923% round calc(var(--r-s) / 1.04)); }
.ftile__txt { display: grid; gap: 8px; }
.ftile__txt .mono { color: var(--mute); font-size: 10px; }
.ftile__txt h3 { font-size: 19px; font-weight: 500; letter-spacing: -.03em; }
.ftile__txt p { color: var(--ink-3); font-size: 14px; line-height: 1.55; }

/* ==========================================================================
   03 · COMPLETE THE FIT
   ========================================================================== */
.cfit { background: var(--white); }
.cfit__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); align-items: center; }
.cfit__img { position: relative; aspect-ratio: 6 / 7; border-radius: var(--r-s); overflow: hidden; background: var(--sw-stone); }
.cfit__img img { width: 100%; height: 100%; object-fit: cover; }
.cfit__img figcaption { position: absolute; left: 14px; bottom: 14px; color: #fff; font-size: 10px; padding: 7px 12px; border-radius: 999px; background: rgba(0, 0, 0, .28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cfit__panel { display: grid; gap: 18px; }
.cfit__panel .eyebrow { color: var(--mute); }
.cfit__list { margin-top: 10px; border-top: 1px solid var(--line); }
.ci { display: grid; grid-template-columns: 22px 76px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); transition: opacity .3s; }
.ci.is-off { opacity: .45; }
.ci__check { position: relative; width: 22px; height: 22px; }
.ci__check input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.ci__check span { position: absolute; inset: 0; border: 1px solid var(--ink); border-radius: 6px; display: grid; place-items: center; transition: background-color .25s; }
.ci__check .i { width: 13px; height: 13px; color: var(--paper); opacity: 0; transition: opacity .2s; stroke-width: 2; }
.ci__check input:checked + span { background: var(--ink); }
.ci__check input:checked + span .i { opacity: 1; }
.ci__check input:focus-visible + span { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.ci__img { width: 76px; aspect-ratio: 4 / 5; border-radius: var(--r-xs); overflow: hidden; background: var(--bg); }
.ci__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.ci__info { display: grid; gap: 4px; font-size: 14px; min-width: 0; }
.ci__info b { font-weight: 500; }
.ci__info small { color: var(--mute); font-size: 12.5px; }
.ci__tag { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.ci .select { margin-top: 2px; }
.ci__price { font-weight: 500; font-variant-numeric: tabular-nums; }
.cfit__total { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 6px; }
.cfit__total .mono { color: var(--mute); }
.cfit__total p { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.cfit__total s { color: var(--mute-2); font-size: 15px; }
.cfit__total b { font-size: 30px; font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.save { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--sw-sage); }

/* ==========================================================================
   04 · REVIEWS
   ========================================================================== */
.prev__in { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.prev__sum { position: sticky; top: calc(var(--head-h) + 30px); display: grid; gap: 18px; }
.prev__sum .eyebrow { color: var(--mute); }
.prev__score { display: flex; align-items: center; gap: 14px; }
.prev__score b { font-size: 72px; font-weight: 400; letter-spacing: -.07em; line-height: .85; }
.prev__score .i { width: 18px; height: 18px; }
.prev__bars { display: grid; gap: 7px; }
.prev__bars li { display: grid; grid-template-columns: 10px 1fr 36px; gap: 12px; align-items: center; font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.prev__bars i { position: relative; height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.prev__bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ink); }
.prev__meters { display: grid; gap: 16px; padding: 18px 0; border-block: 1px solid var(--line); margin: 0; }
.prev__meters div { display: grid; grid-template-columns: 70px 1fr; gap: 6px 14px; align-items: center; }
.prev__meters dt { font-size: 13px; font-weight: 500; }
.prev__meters dd { margin: 0; position: relative; height: 2px; background: var(--line); }
.prev__meters dd i { position: absolute; top: 50%; left: var(--x); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink); }
.prev__meters span { grid-column: 2; display: flex; justify-content: space-between; font-size: 10.5px; color: var(--mute); }
.prev__rec { font-size: 14px; color: var(--mute); }
.prev__rec b { color: var(--ink); font-weight: 600; }

.prev__main { display: grid; gap: 22px; min-width: 0; justify-items: start; }
.prev__photos { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; width: 100%; }
.prev__photos::-webkit-scrollbar { display: none; }
.prev__photos button { flex: 0 0 auto; width: 92px; aspect-ratio: 1; border-radius: var(--r-s); overflow: hidden; background: var(--sw-stone); }
.prev__photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.prev__photos button:hover img { transform: scale(1.08); }
.prev__filters { display: flex; flex-wrap: wrap; gap: 6px; }
.prev__list { width: 100%; border-top: 1px solid var(--line); }
.rv { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); animation: gIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
.rv__who { display: grid; gap: 6px; align-content: start; font-size: 13px; }
.rv__who b { font-weight: 500; font-size: 14px; }
.rv__who .ver { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-size: 12px; }
.rv__who .ver .i { width: 12px; height: 12px; }
.rv__who dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 8px 0 0; color: var(--mute); font-size: 12px; }
.rv__who dd { margin: 0; color: var(--ink); }
.rv__body { display: grid; gap: 10px; }
.rv__top { display: flex; justify-content: space-between; align-items: center; }
.rv__top .mono { color: var(--mute); font-size: 10px; }
.rv__body h3 { font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.rv__body p { color: var(--ink-3); line-height: 1.6; }
.rv__pics { display: flex; gap: 8px; }
.rv__pics img { width: 84px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-s); }
.rv__foot { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--mute); }
.rv__foot button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); transition: background-color .25s, color .25s; }
.rv__foot button:hover { border-color: var(--ink); }
.rv__foot button.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rv__reply { margin-top: 4px; padding: 12px 14px; border-left: 2px solid var(--ink); background: var(--paper-2); border-radius: 0 var(--r-s) var(--r-s) 0; font-size: 13px; color: var(--ink-3); }
.rv__reply b { color: var(--ink); font-weight: 500; }
.prev__empty { padding: 40px 0; color: var(--mute); }

/* ==========================================================================
   STICKY ADD-TO-BAG
   ========================================================================== */
.satc {
  position: fixed; left: 0; right: 0; bottom: 14px; z-index: 48;
  pointer-events: none;
  transform: translateY(calc(100% + 20px));
  transition: transform .6s var(--ease);
}
.satc.is-on { transform: none; }
.satc__in {
  pointer-events: auto;
  display: flex; align-items: center; gap: 16px;
  max-width: 980px;
  padding: 8px 8px 8px 8px;
  border-radius: 999px;
  background: rgba(244, 242, 238, .74);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .4);
}
.satc__img { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--sw-stone); flex: none; }
.satc__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.satc__txt { display: grid; line-height: 1.25; font-size: 14px; min-width: 0; }
.satc__txt b { font-weight: 500; }
.satc__txt small { color: var(--mute); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.satc__sizes { display: flex; gap: 4px; margin-left: auto; }
.satc__sizes button { min-width: 38px; height: 38px; padding: 0 8px; border-radius: 999px; font-size: 12.5px; font-weight: 500; border: 1px solid var(--line); transition: background-color .25s, color .25s; }
.satc__sizes button:hover { border-color: var(--ink); }
.satc__sizes button[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.satc__sizes button.is-out { color: var(--mute-2); text-decoration: line-through; }
.satc__price { font-weight: 500; font-variant-numeric: tabular-nums; padding-inline: 4px; }
.satc .btn { --bh: 46px; flex: none; }

/* ==========================================================================
   SIZE GUIDE
   ========================================================================== */
.guide { width: min(560px, 100%); }
.guide__body { padding: 20px 24px 32px; display: grid; gap: 22px; align-content: start; }
.guide__top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; font-size: 14px; color: var(--ink-3); }
.unit { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 999px; border: 1px solid var(--line); flex: none; }
.unit label { cursor: pointer; }
.unit input { position: absolute; opacity: 0; pointer-events: none; }
.unit span { display: grid; place-items: center; width: 46px; height: 30px; border-radius: 999px; font-size: 13px; font-weight: 500; transition: background-color .3s, color .3s; }
.unit input:checked + span { background: var(--ink); color: var(--paper); }
.unit input:focus-visible + span { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.gtable { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.gtable th { text-align: left; font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 10px 8px; border-bottom: 1px solid var(--ink); }
.gtable td { padding: 13px 8px; border-bottom: 1px solid var(--line); }
.gtable td:first-child { font-weight: 600; }
.gtable tr.is-sel td { background: var(--sw-sand); }
.guide__fig { display: grid; gap: 10px; padding: 18px; border-radius: var(--r-m); background: var(--white); }
.guide__fig svg { width: 100%; max-width: 340px; margin: 0 auto; }
.guide__fig figcaption { color: var(--mute); font-size: 10px; text-align: center; }
.guide__tip { display: grid; gap: 8px; justify-items: start; padding: 18px; border-radius: var(--r-m); background: var(--sw-mist); font-size: 14px; }
.guide__tip b { font-weight: 500; }
.guide__tip p { color: var(--ink-3); }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lb {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(13, 13, 12, .96);
  color: #fff;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s .5s;
}
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.lb__stage { position: absolute; inset: 70px 80px 120px; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-xs); transition: transform .5s var(--ease), opacity .35s var(--ease); }
.lb__stage.is-zoom { cursor: zoom-out; }
.lb__stage.is-zoom img { transform: scale(2.2); transition: transform .5s var(--ease), transform-origin .1s linear; }
.lb__stage.is-fading img { opacity: 0; }
.lb__top { position: absolute; top: 0; left: 0; right: 0; height: 70px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px 0 28px; }
.lb__top .mono { font-size: 11px; color: rgba(255, 255, 255, .7); }
.lb__hint { position: absolute; left: 50%; transform: translateX(-50%); }
.lb__top .icon-btn { color: #fff; }
.lb__nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background-color .3s; }
.lb__nav:hover { background: rgba(255, 255, 255, .18); }
.lb__nav--prev { left: 16px; }
.lb__nav--next { right: 16px; }
.lb__thumbs { position: absolute; left: 0; right: 0; bottom: 24px; display: flex; justify-content: center; gap: 8px; padding-inline: 16px; overflow-x: auto; scrollbar-width: none; }
.lb__thumbs button { flex: none; width: 56px; aspect-ratio: 4 / 5; border-radius: var(--r-xs); overflow: hidden; opacity: .45; outline: 1px solid transparent; outline-offset: 3px; transition: opacity .3s, outline-color .3s; background: var(--sw-stone); }
.lb__thumbs button.is-on { opacity: 1; outline-color: #fff; }
.lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .pdp { grid-template-columns: minmax(0, 1.2fr) minmax(340px, 1fr); }
  .feat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .satc__sizes { display: none; }
}
@media (max-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: calc(var(--bar-h) + var(--head-h)); }
  .info__in { position: static; }
  /* swipe gallery, full bleed */
  .gallery { margin-inline: calc(var(--gutter) * -1); position: relative; }
  .gallery__track { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .gallery__track::-webkit-scrollbar { display: none; }
  .g-item, .g-item:nth-child(3n + 1) { flex: 0 0 86%; aspect-ratio: 4 / 5; scroll-snap-align: start; }
  .g-item__tag { opacity: 1; transform: none; }
  .g-item__zoom { opacity: 1; }
  .gallery__ui { display: flex; align-items: center; gap: 14px; padding: 14px var(--gutter) 0; }
  .gallery__count { color: var(--mute); font-size: 10.5px; }
  .gallery__bar { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
  .gallery__bar i { display: block; height: 100%; background: var(--ink); width: 16%; transition: transform .3s var(--ease), width .3s; }
  .cfit__in, .prev__in { grid-template-columns: minmax(0, 1fr); }
  .prev__sum { position: static; }
  .rv { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .rv__who { grid-template-columns: auto auto 1fr; align-items: center; gap: 4px 12px; }
  .rv__who dl { grid-column: 1 / -1; grid-template-columns: repeat(3, auto); margin: 0; justify-content: start; gap: 2px 8px; }
  .related__ctrl .rail-arrows { display: none; }
  .lb__stage { inset: 64px 0 110px; }
  .lb__nav { display: none; }
  .lb__hint { display: none; }
}
@media (max-width: 640px) {
  .info__title { font-size: 2.4rem; }
  .sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .color { width: 60px; }
  .feat__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 10px; }
  .ftile__txt h3 { font-size: 16px; }
  .ftile__txt p { font-size: 13px; }
  .ci { grid-template-columns: 22px 60px minmax(0, 1fr); gap: 12px; }
  .ci__img { width: 60px; }
  .ci__price { grid-column: 3; }
  .cfit__total .btn { width: 100%; }
  .satc { bottom: 10px; }
  .satc__in { margin-inline: 10px; width: auto; gap: 10px; }
  .satc__txt b { font-size: 13px; }
  .satc__price { display: none; }
  .satc .btn { --bh: 44px; padding: 0 18px; }
  .related__ctrl { width: 100%; }
  .prail .card { flex-basis: 62vw; }
  .guide__body { padding: 16px 18px 28px; }
}

/* social-proof toast sits above the sticky add-to-bag bar */
.page-pdp .proof { bottom: 92px; }
@media (max-width: 640px) {
  .page-pdp .proof { bottom: 80px; }
  .page-pdp .to-top { bottom: 76px; }
}
