:root {
  --bg: #f5f2ed;
  --bg-2: #ffffff;
  --bg-3: #efeae3;
  --ink: #1c1917;
  --muted: #5e5852;
  --quiet: #8a847c;
  --line: #e4ddd4;
  --gold: #6b3e2e;
  --gold-2: #8d4b2b;
  --leather: #6b3e2e;
  --oxblood: #6a2430;
  --danger: #b42318;
  --shadow: 0 10px 30px rgba(28, 25, 23, 0.06);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", sans-serif;
  --header: 68px;
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.page { display: none; position: relative; z-index: 1; }
.page.active { display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 40px;
  background: rgba(245, 242, 237, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  cursor: pointer;
}
.brand-mark {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.2em;
}
.brand-sub {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.nav button {
  background: transparent;
  border: 0;
  color: var(--quiet);
  padding: 8px 12px;
  cursor: pointer;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
}
.nav button.active,
.nav button:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ghost, .gold, .icon-btn {
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
}
.gold {
  background: var(--ink);
  color: #f5f2ed;
  border-color: var(--ink);
  font-weight: 600;
}
.ghost:hover, .icon-btn:hover { border-color: var(--ink); }
.icon-btn { padding: 10px 12px; min-width: 42px; }

.user-chip {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  background: var(--bg-2);
}
.user-chip img, .user-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.user-fallback {
  display: grid;
  place-items: center;
  background: var(--leather);
  color: #fff;
  font-size: 12px;
}
.user-chip span { font-size: 13px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 40px 24px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
}
.eyebrow {
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 14px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
h1 em { font-style: italic; color: var(--gold); }
.lede {
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 46ch;
}
.hero-actions, .row { display: flex; gap: 10px; flex-wrap: wrap; }
.secondary-actions { margin-top: 12px; }

/* The build flow is the main path through the site, so its button carries the
   label and the price on two lines rather than sitting in a row of equals. */
.cta-big {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 16px 24px;
  border-radius: 10px;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-big span {
  font-size: 14px;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.cta-big small {
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.72;
  font-weight: 400;
}
.cta-big:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(28, 25, 23, 0.18);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.stats b { display: block; font-family: var(--serif); font-size: 24px; }
.stats span { color: var(--quiet); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

.hero-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 460px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 460px;
}
.hero-frame figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: end;
  background: linear-gradient(transparent, rgba(28, 25, 23, 0.72));
  color: #f5f2ed;
  margin: 0;
  padding: 64px 24px 20px;
}
.price-tag {
  font-family: var(--serif);
  font-size: 28px;
}
.badge {
  border: 1px solid rgba(245, 242, 237, 0.45);
  padding: 5px 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section {
  padding: 48px 40px 72px;
  max-width: 1280px;
  margin: 0 auto;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}
.section-head p { color: var(--muted); max-width: 46ch; line-height: 1.5; margin: 0; }
/* Side by side, a heading and its blurb squeeze each other into a narrow
   two-column sandwich on a phone. Stack them instead. */
@media (max-width: 720px) {
  .section-head { flex-wrap: wrap; align-items: start; gap: 10px; }
  .section-head p { max-width: none; }
}
h2 { font-size: clamp(28px, 3.4vw, 40px); }

.catalog-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
}
.catalog-bar input[type="search"] {
  flex: 1;
  min-width: 200px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.catalog-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.catalog-filters button {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--muted);
}
.catalog-filters button.on {
  background: var(--ink);
  color: #f5f2ed;
  border-color: var(--ink);
}
.catalog-count {
  margin-left: auto;
  color: var(--quiet);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The "from order to jacket" panels that replaced the cut list on the home
   page. Three across on a desktop, stacked on a phone. The numeral is a
   decorative index, so it is hidden from screen readers in the markup. */
.process-section { margin-top: 8px; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.process-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.process-step {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.5;
}
.process-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0;
}
.process-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}
.process-meta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--quiet);
  line-height: 1.5;
}
.process-link {
  margin-top: auto;
  padding: 8px 14px;
  font-size: 12px;
}
.process-foot {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}
.link-inline {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-inline:hover { color: var(--gold-2); }

/* Keyboard focus must be visible on the panel buttons and wide link. */
.process-card .ghost:focus-visible,
.link-inline:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; }
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--ink); }
.card-media {
  position: relative;
  height: 220px;
  background: var(--bg-3);
}
.card-photo {
  height: 220px;
  width: 100%;
  object-fit: cover;
  background: var(--bg-3);
}
.product-flat {
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.product-flat[hidden], .card-photo[hidden], #productImage[hidden] { display: none; }
.flat-svg { width: auto; height: 92%; max-width: 100%; }
.view-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.view-tabs button {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 8px 2px 6px;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--quiet);
  min-width: 0;
  overflow: hidden;
}
.view-tabs button:last-child { border-right: 0; }
.view-tabs button.on { color: var(--ink); font-weight: 600; background: var(--bg); }
.view-tabs button img {
  display: block;
  width: 100%;
  height: 46px;
  object-fit: cover;
  background: var(--bg-3);
}
.view-tabs button .flat-svg { height: 46px; width: auto; max-width: 100%; }
.view-tabs button span {
  display: block;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#productThumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#productThumbs button img { height: 64px; }
#productThumbs button .flat-svg { height: 64px; }
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.card-body h3 { font-size: 22px; }
.card-body p { display: none; }
.card-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; }
.tag { color: var(--quiet); letter-spacing: 0.12em; text-transform: uppercase; font-size: 10px; }

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.studio {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.player {
  position: relative;
  background: #1c1917;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.player-ui {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #f5f2ed;
}
.progress {
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 99px;
  cursor: pointer;
}
.progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: #f5f2ed;
  border-radius: 99px;
}
.caption {
  margin-top: 14px;
  color: var(--muted);
  min-height: 3.2em;
  line-height: 1.5;
}
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.steps button {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--quiet);
}
.steps button.on { color: #f5f2ed; background: var(--ink); border-color: var(--ink); }

.measure-form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.measure-form h2 { font-size: 32px; margin-bottom: 6px; }
.unit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0 18px;
  color: var(--quiet);
}
.seg {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.seg button {
  background: transparent;
  border: 0;
  padding: 7px 12px;
  cursor: pointer;
  color: var(--muted);
}
.seg button.on { background: var(--ink); color: #f5f2ed; font-weight: 600; }

.field { margin-bottom: 12px; }
.field.live {
  padding: 8px 10px;
  margin-left: -10px;
  margin-right: -10px;
  border-radius: 10px;
  background: rgba(107, 62, 46, 0.08);
  outline: 1px solid rgba(107, 62, 46, 0.35);
}
.field.live input { border-color: var(--gold); }
.field label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}
.field label small { color: var(--quiet); font-size: 11px; }
.field-msg {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.4;
  min-height: 0;
  color: var(--quiet);
}
.field-msg:empty { display: none; }
.field-msg.error { color: #a3352b; }
.field-msg.warn { color: #8a6520; }
.field.has-error input {
  border-color: #a3352b;
  box-shadow: inset 0 0 0 1px rgba(163, 53, 43, 0.35);
}
.field.has-warn input { border-color: #b98b34; }
.field.has-error label { color: #a3352b; }

.field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
}
.field input:focus { outline: 1px solid var(--ink); }
.form-note { color: var(--quiet); font-size: 12px; margin: 8px 0 16px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Virtual try-on ---------------------------------------------------- */
.tryon-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: 24px;
  align-items: start;
}
/* The canvas bitmap is 3:4, so the box has to be 3:4 too or the photo and
   the garment are both distorted. `max-height` alone does not do that: with
   `width: 100%` also set, the aspect ratio is ignored and the box ends up
   landscape. Clamp the width to what the height implies instead. */
.stage {
  position: relative;
  background: #e9e2d8;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: calc(78vh * 0.75);
  margin-inline: auto;
}
#tryonVideo {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
#tryonCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}
#tryonCanvas.dragging { cursor: grabbing; }
#tryonCanvas:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.stage.dropping { outline: 2px dashed var(--gold); outline-offset: -8px; }

/* Empty state sits over the canvas and disappears on first photo. */
.stage-empty {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px;
  text-align: center;
  background: linear-gradient(180deg, #efeae3, #e3dbcf);
  color: var(--ink);
}
.stage-empty[hidden] { display: none; }
.stage-empty b { font-size: 17px; }
.stage-empty span { max-width: 34ch; color: var(--muted); font-size: 13px; line-height: 1.55; }
.stage-empty em { color: var(--quiet); font-size: 12px; font-style: normal; }
.stage-empty-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.stage-empty-mark {
  width: 74px;
  height: 118px;
  border: 1.5px dashed rgba(28, 25, 23, 0.34);
  border-radius: 50% 50% 44% 44% / 34% 34% 66% 66%;
  margin-bottom: 6px;
}

.stage-status {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(28, 25, 23, 0.72);
  color: #f5f2ed;
  font-size: 12.5px;
  line-height: 1.45;
  pointer-events: none;
}
.stage-status:empty { display: none; }

.tryon-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tryon-side h3 { font-size: 21px; margin: 6px 0 14px; }
.tryon-tools { margin-bottom: 6px; }
.tryon-tools .ghost { flex: 1 1 auto; }
#cutoutBtn[aria-pressed="true"] {
  background: var(--ink);
  color: #f5f2ed;
  border-color: var(--ink);
}

.control { margin: 14px 0; }
.control label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
input[type="range"] { width: 100%; accent-color: var(--ink); }

.tryon-picker { display: flex; flex-direction: column; min-height: 0; }
.tryon-picker-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tryon-picker-head b { font-size: 12px; color: var(--muted); font-weight: 600; }
.tryon-search {
  width: 100%;
  margin: 10px 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font-size: 13px;
}
.tryon-search:focus { outline: 1px solid var(--ink); }
.tryon-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tryon-chip {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.tryon-chip.on { background: var(--ink); border-color: var(--ink); color: #f5f2ed; }

.tryon-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}
.tryon-card {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
}
.tryon-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: var(--bg-3);
}
.tryon-card-body {
  display: block;
  padding: 5px 6px 7px;
  line-height: 1.25;
}
.tryon-card-body b { display: block; font-size: 11px; font-weight: 600; }
.tryon-card-body em { display: block; font-size: 10px; font-style: normal; color: var(--quiet); }
.tryon-card.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.tryon-card.on::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f5f2ed;
  box-shadow: 0 0 0 2px var(--ink);
}
.hidden-file { display: none; }

.product-view {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  padding: 36px 40px 72px;
  max-width: 1280px;
  margin: 0 auto;
}
.product-gallery { display: flex; flex-direction: column; gap: 12px; }
.product-stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
  min-height: 62vh;
}
.product-stage img {
  width: 100%;
  height: 62vh;
  object-fit: cover;
  background: var(--bg-3);
}
.product-flat { min-height: 62vh; }
.product-flat .flat-svg { height: 58vh; }
#productThumbs.view-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px 10px !important;
}
.thumb img, .thumb .flat-svg {
  height: 64px;
  width: 48px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--bg);
}
.thumb .flat-svg { width: 40px; height: 56px; }
.angle-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.angle-row b { color: var(--ink); font-weight: 600; }
.product-copy h1 { font-size: clamp(36px, 4.5vw, 56px); }
.product-copy .lede { margin-top: 16px; }
.specs { margin: 24px 0; display: grid; gap: 10px; }
.specs div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  color: var(--muted);
}
.specs b { color: var(--ink); }

.account-wrap, .pay-note {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 72ch;
}
.pay-note strong { color: var(--ink); }

.cart-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.account-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.account-card.wide { grid-column: 1 / -1; }
.account-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0 0 6px;
}
.tape-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.tape-table th, .tape-table td {
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.tape-table td { text-align: right; color: var(--ink); }
.fields-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
}
.field textarea { min-height: 88px; resize: vertical; }
.field select:focus, .field textarea:focus { outline: 1px solid var(--ink); }
.orders { display: grid; gap: 10px; margin-top: 16px; }
.order, .cart-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.order-full { align-items: flex-start; }
.order-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.status-pill {
  display: inline-block;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 20px;
}
.modal-back.open { display: flex; }
.modal {
  width: min(440px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.modal h2 { font-size: 32px; margin-bottom: 8px; }
.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  margin: 18px 0 10px;
}
.google-btn svg { width: 18px; height: 18px; }
#googleButton { min-height: 44px; display: flex; justify-content: center; margin: 8px 0 12px; }
.or {
  text-align: center;
  color: var(--quiet);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 12px 0;
}
.config-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin: 8px 0 14px;
}
.auth-code {
  font-size: 28px;
  letter-spacing: 0.4em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.modal .gold { margin-top: 8px; }

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #f5f2ed;
  padding: 12px 18px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 90;
  font-weight: 600;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

footer {
  border-top: 1px solid var(--line);
  padding: 24px 40px 36px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--quiet);
  position: relative;
  z-index: 1;
  font-size: 13px;
  max-width: 1280px;
  margin: 0 auto;
}

.empty { color: var(--quiet); padding: 24px 0; }

@media (max-width: 1100px) {
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero, .split, .tryon-layout, .product-view, .account-grid, .fields-2 {
    grid-template-columns: 1fr;
  }
  .stage { max-height: none; }
  .tryon-rail { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); max-height: none; }
  .tryon-side { width: 100%; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header { flex-wrap: wrap; padding: 12px 16px; }
  .nav { order: 3; width: 100%; justify-content: flex-start; }
  .hero, .section, .product-view, .account-wrap, .cart-wrap { padding-left: 16px; padding-right: 16px; }
  .hero-frame, .hero-frame img { min-height: 320px; }
  .catalog-count { margin-left: 0; width: 100%; }
}

/* ---- Policy pages (privacy / terms / shipping / contact) ---- */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(28, 25, 23, 0.08);
}

.site-head .brand-mark {
  font-family: Georgia, serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}

.site-head nav a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-head nav a:hover {
  color: var(--ink);
  border-bottom-color: currentColor;
}

.policy {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 28px 84px;
  line-height: 1.72;
}

.policy h1 {
  font-family: Georgia, serif;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  margin: 10px 0 26px;
  color: var(--ink);
}

.policy h2 {
  font-family: Georgia, serif;
  font-size: 19px;
  margin: 34px 0 10px;
  color: var(--ink);
}

.policy p,
.policy li {
  font-size: 15px;
  color: var(--muted);
}

.policy ul {
  padding-left: 20px;
  margin: 10px 0 18px;
}

.policy li {
  margin-bottom: 8px;
}

.policy a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(28, 25, 23, 0.3);
}

.policy a:hover {
  border-bottom-color: var(--ink);
}

.policy-note {
  margin-top: 44px;
  padding: 16px 18px;
  background: var(--bg-3);
  border-radius: 10px;
  font-size: 13px !important;
  line-height: 1.6;
}

footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(28, 25, 23, 0.25);
}

footer a:hover {
  border-bottom-color: currentColor;
}

/* ---- Measure diagram (replaces the film player) ---- */
.diagram-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.diagram-wrap {
  position: relative;
  display: inline-block;
  background: radial-gradient(115% 85% at 50% 4%, #ffffff 0%, #f8f5f0 55%, #efebe4 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 4px 2px;
}
.diagram-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(107, 62, 46, 0.05);
}

.mdiag {
  display: block;
  height: 540px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}
.mdiag-floor { fill: none; stroke: var(--line); stroke-width: 1.3; stroke-linecap: round; }

/* Opaque paper fill + a single line weight: overlapping parts occlude cleanly,
   the way an arm in front of the torso should, instead of stacking washes. */
.mdiag-body > use,
.mdiag-body > path,
.mdiag-body > .mdiag-head {
  fill: #f7f2ec;
  stroke: rgba(107, 62, 46, 0.42);
  stroke-width: 1.15;
  stroke-linejoin: round;
}
.mdiag-body > .mdiag-head { fill: #f4eee7; }

/* The arms hang behind the torso, so only their outer contour is visible. A
   half-step deeper tone separates that plane from the body without reading as
   shading, which is what keeps the arms from looking like plates bolted on. */
.mdiag-body > .mdiag-arm {
  fill: #f0e8df;
}

.mdiag-guides .guide { cursor: pointer; }
.mdiag-guides .guide > path,
.mdiag-guides .guide > ellipse,
.mdiag-guides .guide > use {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  stroke-dasharray: 5 5;
  opacity: 0.34;
  transition: opacity 0.22s ease, stroke-width 0.22s ease;
}
.mdiag-guides .guide:hover > path,
.mdiag-guides .guide:hover > ellipse,
.mdiag-guides .guide:hover > use { opacity: 0.8; }
.mdiag-guides .guide.on > path,
.mdiag-guides .guide.on > ellipse,
.mdiag-guides .guide.on > use {
  opacity: 1;
  stroke-width: 2.6;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 5px rgba(107, 62, 46, 0.5));
}

/* Numbered points */
.mdiag-badges .badge { cursor: pointer; outline: none; }
.mdiag-badges .dot {
  fill: var(--bg-2);
  stroke: var(--gold);
  stroke-width: 1.2;
  transition: fill 0.2s ease, stroke-width 0.2s ease, r 0.2s ease;
}
.mdiag-badges text {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  fill: var(--gold);
  text-anchor: middle;
  pointer-events: none;
  transition: fill 0.2s ease;
}
.mdiag-badges .ring {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.1;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.mdiag-badges .badge:hover .dot { fill: rgba(107, 62, 46, 0.16); }
.mdiag-badges .badge:focus-visible .dot { stroke: var(--ink); }
.mdiag-badges .badge:focus-visible .ring { opacity: 0.9; }
.mdiag-badges .badge.on .dot { fill: var(--gold); stroke: var(--gold); stroke-width: 1.2; }
.mdiag-badges .badge.on text { fill: #f8f5f0; }
.mdiag-badges .badge.on .ring { opacity: 0.4; }
.mdiag-badges .badge.pulse .ring { opacity: 0.45; animation: badgePulse 0.7s ease-out; }
@keyframes badgePulse {
  from { transform: scale(0.75); opacity: 0.55; }
  to { transform: scale(1.65); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mdiag-badges .badge.pulse .ring { animation: none; }
}

/* Legend beside the figure */
.diagram-read { padding-top: 2px; }
.diagram-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  min-height: 2.9em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.diagram-legend {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
}
.diagram-legend li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.diagram-legend li:hover { background: rgba(107, 62, 46, 0.05); }
.diagram-legend li.on {
  background: rgba(107, 62, 46, 0.08);
  border-color: rgba(107, 62, 46, 0.28);
}
.diagram-legend .num {
  width: 20px;
  height: 20px;
  border-radius: 99px;
  border: 1px solid rgba(107, 62, 46, 0.4);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 1px;
  transition: background 0.18s ease, color 0.18s ease;
}
.diagram-legend li.on .num { background: var(--gold); color: #f8f5f0; border-color: var(--gold); }
.diagram-legend b { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.diagram-legend small { display: block; color: var(--quiet); font-size: 11.5px; line-height: 1.4; }

@media (max-width: 1180px) {
  .diagram-body { gap: 16px; }
}
@media (max-width: 980px) {
  .diagram-body { grid-template-columns: 1fr; }
  .mdiag { height: 460px; }
  .diagram-wrap { padding-bottom: 6px; }
}
@media (max-width: 560px) {
  .mdiag { height: 380px; }
}

/* ---- Atelier chatbot ---- */
.kchat-fab {
  position: fixed;
  right: 18px !important;
  bottom: 22px;
  left: auto !important;
  z-index: 120;
  width: 56px;
  height: 56px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--ink);
  color: #f8f5f0;
  border-radius: 999px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  box-shadow: 0 16px 40px rgba(28, 25, 23, 0.18);
}
.kchat-fab:active { cursor: grabbing; }
.kchat-fab-mark {
  width: 40px;
  height: 40px;
  border-radius: 99px;
  background: var(--gold);
  color: #f8f5f0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.06em;
  pointer-events: none;
}
.kchat-fab-label { display: none; }
.kchat-panel {
  position: fixed;
  right: 16px !important;
  left: auto !important;
  bottom: 18px;
  z-index: 119;
  width: min(400px, calc(100vw - 24px));
  height: min(640px, calc(100vh - 36px));
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(28, 25, 23, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* `hidden` is a UA-level display:none, which any author `display` beats, so
   the panel had to have its closed state spelled out. */
.kchat-panel[hidden], .kchat-fab[hidden] { display: none; }
.kchat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.kchat-kicker {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--gold);
}
.kchat-head h2 {
  font-family: var(--serif);
  font-size: 28px;
  margin: 2px 0 0;
  font-weight: 500;
}
.kchat-x {
  background: transparent;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--quiet);
  cursor: pointer;
}
.kchat-log {
  flex: 1;
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f7f4ef;
}
.kchat-msg {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
}
.kchat-msg p { margin: 0; }
.kchat-msg.bot {
  background: #fff;
  border: 1px solid var(--line);
  align-self: flex-start;
}
.kchat-msg.you {
  background: var(--ink);
  color: #f8f5f0;
  align-self: flex-end;
}
.kchat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 10px;
}
.kchat-chip {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}
.kchat-chip:hover { border-color: var(--gold); color: var(--gold); }
.kchat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}
.kchat-form input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
}
.kchat-send {
  background: var(--gold);
  color: #f8f5f0;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  cursor: pointer;
}
@media (max-width: 560px) {
  .kchat-fab { width: 52px; height: 52px; }
}

.kchat-rate {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}
.kchat-rate-btn {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.kchat-rate-btn:hover { border-color: var(--gold); color: var(--gold); }
.kchat-rate-note { font-size: 11px; color: var(--quiet); }

/* ---- Custom jacket builder ---- */

.build-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.build-wrap h2 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  margin: 6px 0 10px;
  letter-spacing: -0.02em;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--quiet);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.steps li b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-3);
  font-size: 11px;
  font-weight: 600;
}
.steps li.on {
  border-color: var(--ink);
  background: var(--ink);
  color: #f5f2ed;
}
.steps li.on b { background: rgba(245, 242, 237, 0.2); color: #f5f2ed; }
.steps li.done { color: var(--ink); border-color: var(--gold); }
.steps li.done b { background: var(--gold); color: #f5f2ed; }

.build-step h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 6px;
}

.choice-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 20px;
  margin-top: 20px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 20px;
}
.panel h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 4px 0 8px;
}
.panel .row { margin-top: 14px; }

.upload-preview { margin-top: 16px; }
.upload-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--bg-3);
}
.upload-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--quiet);
}

/* A short scroll strip, not a full grid: the catalog is long and this is one
   choice in a wider step. */
.build-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.build-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  padding: 5px;
  cursor: pointer;
  text-align: left;
  display: grid;
  gap: 2px;
}
.build-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 5px;
  background: var(--bg-3);
}
.build-card span { font-size: 11px; font-weight: 600; }
.build-card small { font-size: 10px; color: var(--quiet); }
.build-card:hover { border-color: var(--gold); }
.build-card.on {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink);
}

.build-picked .picked-body { display: flex; flex-direction: column; gap: 2px; }
.picked-tryon {
  margin-top: 8px;
  padding: 7px 12px;
  font-size: 12px;
  letter-spacing: 0.02em;
  align-self: flex-start;
}

.build-picked {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.picked-thumb {
  width: 52px;
  height: 68px;
  border-radius: 6px;
  background: var(--bg-3) center / cover no-repeat;
  flex: 0 0 auto;
}
.picked-name { font-family: var(--serif); font-size: 20px; }
.picked-sub { font-size: 12px; color: var(--quiet); }

.build-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Eight tape fields read as a form, but a two-column one: eight full-width
   rows is a long scroll for eight short numbers. */
.build-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin-top: 18px;
}
/* The shared .field label puts the hint opposite the name, which works in the
   full-width measure studio but squeezes the input in a two-column grid. Stack
   them here instead, so each column stays readable. */
.build-fields .field label {
  display: block;
  margin-bottom: 5px;
}
.build-fields .field label small {
  display: block;
  margin-top: 2px;
}
.measure-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 12px;
  color: var(--quiet);
}

/* Colour picker: grouped by family, because that is how a dye is shopped.
   The swatch is the control; the name sits under it so the choice is never
   conveyed by colour alone. */
.colour-picker { margin-top: 20px; display: grid; gap: 18px; }
.colour-family-name {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--quiet);
  margin-bottom: 8px;
}
.colour-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.colour-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
}
.colour-swatch:hover { border-color: var(--line); }
.colour-swatch.on {
  border-color: var(--ink);
  background: rgba(28, 22, 20, 0.04);
}
.swatch-chip {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(28, 22, 20, 0.18);
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.18);
}
.colour-swatch.on .swatch-chip {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.swatch-name {
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  color: var(--ink);
}
.swatch-tag {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--quiet);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 3px;
  background: var(--bg);
}
.product-colour { margin: 18px 0 4px; }
.product-colour-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--quiet);
  margin-bottom: 10px;
}
.product-colour-head b {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-weight: 500;
}
.colour-picker.compact {
  margin-top: 0;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 4px;
}
.colour-picker.compact .colour-swatch { padding: 6px 3px 4px; }
.colour-picker.compact .swatch-chip { width: 30px; height: 30px; }
.colour-picker.compact .swatch-name { font-size: 10px; }
.colour-picker.compact .swatch-tag { font-size: 8px; padding: 0 2px; }
.product-colour { max-height: 210px; overflow-y: auto; padding-right: 4px; }

.colour-note { margin-top: 16px; min-height: 2.6em; }
.review-colour { display: flex; gap: 12px; align-items: flex-start; }
.review-colour .swatch-chip { width: 36px; height: 36px; flex: 0 0 auto; }

.leather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.leather-card {
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  cursor: pointer;
}
.leather-name { font-family: var(--serif); font-size: 22px; }
.leather-feel {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.leather-note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.leather-card:hover { border-color: var(--gold); }
.leather-card.on {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.review-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.review-card h4 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  margin: 2px 0 4px;
}
.review-thumb {
  width: 56px;
  height: 74px;
  border-radius: 6px;
  background: var(--bg-3) center / cover no-repeat;
  flex: 0 0 auto;
}
.review-tape { margin-top: 18px; }
.review-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 26px;
}

@media (max-width: 860px) {
  .choice-2 { grid-template-columns: 1fr; }
  .build-fields { grid-template-columns: 1fr; }
  .build-wrap { padding: 28px 16px 64px; }
  .build-wrap h2 { font-size: 32px; }
}
