/* Try-on page */
.fit { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.fit-form { display: grid; gap: 22px; }
.field { display: grid; gap: 10px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.field > span { display: flex; justify-content: space-between; }
.field b { color: var(--ink); }
.field input[type="range"] { width: 100%; accent-color: #0a0a0a; height: 28px; }
.foot-row { display: flex; align-items: center; gap: 10px; }
.foot-row input { width: 140px; min-height: 48px; border-radius: 12px; border: 2px solid var(--line); padding: 10px 14px; font: inherit; font-size: 16px; }
.foot-row input:focus { border-color: var(--ink); outline: none; }
.foot-row .unit { font-weight: 600; color: var(--ink-2); }
.howto { font-weight: 500; }
.howto summary { cursor: pointer; font-size: 13px; text-decoration: underline; color: var(--ink-2); min-height: 32px; display: flex; align-items: center; }
.howto p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); max-width: 52ch; }
.result { border-radius: 20px; background: var(--ink); color: #fff; padding: 24px 26px; }
.result .eyebrow { color: rgba(255,255,255,.6); margin-bottom: 6px; }
.result-size { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.result-size span { font-family: var(--head); font-weight: 900; font-size: 56px; line-height: 1; }
.result-size small { font-size: 14px; color: rgba(255,255,255,.7); }
.result-note { margin: 10px 0 0; color: rgba(255,255,255,.8); font-size: 15px; }
.result.pop { animation: pop .45s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { 40% { transform: scale(1.02); } }
.tryon-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.fineprint { font-size: 12px; color: var(--ink-3); margin: 0; }

.fit-view { position: sticky; top: 96px; }
.foot-svg { display: block; width: 100%; height: auto; aspect-ratio: 6 / 7; border-radius: 24px; background: var(--bg-2); }
.foot-svg text { font-family: var(--body); }

@media (max-width: 900px) {
  .fit { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 40px; }
  .fit-view { position: relative; top: 0; order: -1; }
}

/* Camera mode */
.cam { position: fixed; inset: 0; z-index: 120; background: #000; color: #fff; touch-action: none; overflow: hidden; }
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#cam-shoe { position: absolute; left: 50%; top: 60%; width: 46vw; max-width: 420px; transform-origin: center; cursor: grab; user-select: none; -webkit-user-select: none; filter: drop-shadow(0 18px 18px rgba(0,0,0,.4)); }
.cam-top { position: absolute; top: 0; left: 0; right: 0; display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 18px; background: linear-gradient(rgba(0,0,0,.6), transparent); }
.cam-top p { margin: 0; font-size: 14px; max-width: 46ch; }
.cam .icon-btn { background: #fff; color: #000; flex: none; }
.cam-controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: center; padding: 18px 18px 28px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.cam-controls label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.cam-controls input[type="range"] { width: 130px; accent-color: #fff; }
.cam .btn { border-color: #fff; color: #fff; }
.cam .btn-primary { background: #fff; color: #000; }
.cam-shot { position: absolute; inset: 0; background: #000; display: grid; place-items: center; padding: 20px; z-index: 2; }
.cam-shot img { max-width: 100%; max-height: 75vh; border-radius: 16px; }
.cam-shot-actions { display: flex; gap: 12px; margin-top: 16px; justify-content: center; }
.cam-msg { position: absolute; top: 45%; left: 0; right: 0; text-align: center; padding: 0 24px; font-size: 16px; }

.maths summary { cursor: pointer; font-weight: 700; font-size: 14px; min-height: 36px; display: flex; align-items: center; text-decoration: underline; }
.maths dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 8px 0 0; font-size: 13px; }
.maths dt { font-weight: 700; color: var(--ink); }
.maths dd { margin: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .maths dl { grid-template-columns: 1fr; } .maths dd { margin-bottom: 6px; } }
/* product page section */
.fit-section { padding: 30px 0 110px; border-top: 1px solid var(--line); }
.fit-section .section-head { margin-bottom: 30px; }

/* how-to-measure illustration */
.howto-art { display: block; width: 100%; max-width: 520px; height: auto; margin: 12px 0 8px; }
.howto-art text { font-family: var(--body); }
.howto-steps { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }

/* 3D model (try-on page) */
.walker-section { padding: 10px 0 70px; scroll-margin-top: 90px; }
.walker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(24px, 3vw, 44px); align-items: start; }
.walker > * { min-width: 0; }
.walker-stage { position: relative; border-radius: 24px; background: #e9e8e5; aspect-ratio: 5 / 6; max-height: calc(100vh - 130px); width: 100%; overflow: hidden; touch-action: none; }
.walker-stage canvas { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; cursor: grab; }
.walker-stage canvas:active { cursor: grabbing; }
.walker-status { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-weight: 600; color: var(--ink-2); z-index: 1; }
.walker-status[hidden] { display: none; }
.walker-cam { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 1; }
.walker-cam .chip { background: rgba(255,255,255,.9); backdrop-filter: blur(6px); min-height: 40px; padding: 7px 16px; }
.walker-cam .chip:hover { background: #fff; }
.walker-ui { display: grid; gap: 22px; position: sticky; top: 104px; min-width: 0; }
.walker-ui > *, .walker-row > * { min-width: 0; }
.walker-row { display: grid; gap: 10px; }
.walker-label { font-weight: 700; font-size: 14px; color: var(--ink-2); }
.walker-seg { display: flex; flex-wrap: wrap; background: var(--bg-2); border-radius: 22px; padding: 4px; gap: 2px; width: fit-content; max-width: 100%; }
.walker-seg button { border: 0; background: none; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; min-height: 40px; white-space: nowrap; }
.walker-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.walker-field input[type="range"] { width: 100%; }
.walker-shoes { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.walker-shoe { position: relative; flex: none; width: 76px; height: 76px; border-radius: 16px; border: 2px solid var(--line); background: var(--bg-2); padding: 6px; cursor: pointer; font-weight: 700; font-size: 12px; line-height: 1.15; }
.walker-shoe img { width: 100%; height: 100%; object-fit: contain; }
.walker-shoe[aria-pressed="true"] { border-color: var(--ink); }
.walker-shoe.is-pending img { opacity: .55; filter: grayscale(.4); }
.walker-shoe-badge { position: absolute; left: 4px; right: 4px; bottom: 4px; border-radius: 6px; background: rgba(255,255,255,.92); font-size: 9.5px; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); padding: 2px 0; }
.walker-shoe-studio { background: #fff; }
.walker-shoenote { max-width: 44ch; display: grid; gap: 10px; }
.walker-shoenote p { margin: 0; }
.walker-pending { font-size: 14px; color: var(--ink-2); margin: 0; }
.walker-pending-link { justify-self: start; min-height: 40px; padding: 8px 16px; font-size: 14px; }
.walker-size { justify-self: start; min-height: 44px; border-radius: 12px; border: 2px solid var(--line); padding: 8px 14px; font: inherit; font-weight: 700; background: #fff; }
.walker-shoetag { position: absolute; left: 14px; top: 14px; margin: 0; z-index: 1; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.88); backdrop-filter: blur(6px); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.walker-shoetag[hidden] { display: none; }
@media (max-width: 900px) {
  .walker { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .walker-stage { aspect-ratio: 4 / 5; max-height: 78vh; }
  .walker-ui { position: static; }
  .walker-cam { left: 10px; right: 10px; bottom: 10px; flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .walker-cam .chip { min-height: 34px; padding: 5px 12px; font-size: 12px; flex: none; border-width: 1.5px; }
}

/* "Shop this hoodie" hover tag on the 3D model */
.walker-shop { position: absolute; left: 0; top: 0; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #111; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: transform .08s linear; }
.walker-shop[hidden] { display: none; }
.walker-shop-arrow { display: inline-block; transition: transform .2s ease; }
.walker-shop:hover .walker-shop-arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: no-preference) { .walker-shop-arrow { animation: walker-nudge 1.2s ease-in-out infinite; } }
@keyframes walker-nudge { 50% { transform: translateX(4px); } }
