/* Cloke lo-fi wireframe. Deliberately unbranded: greys and borders, with yellow reserved for review notes. */
:root {
  --ink: #111;
  --mid: #666;
  --soft: #999;
  --line: #222;
  --hair: #cfcfcf;
  --fill: #f2f2f2;
  --fill-2: #e6e6e6;
  --paper: #fff;
  --note: #fff6bf;
  --note-ink: #6b5a00;
  /* Greyscale only: states are carried by words, weight and borders, never colour. */
  --focus: var(--ink);
  --ok: var(--ink);
  --warn: var(--ink);
  --err: var(--ink);
  --radius: 4px;
  --wrap: 1240px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: 64px; /* review bar */
}
@media (max-width: 640px) { body { padding-bottom: 104px; } }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 29px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
h4 { font-size: 14px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
.mono, .code { font-family: var(--mono); }
.code { font-size: 11.5px; border: 1px solid var(--line); padding: 0 4px; border-radius: 2px; }
.muted { color: var(--mid); }
.small { font-size: 12px; }
.tiny { font-size: 11.5px; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding-top: 40px; padding-bottom: 40px; }
.section + .section { border-top: 1px dashed var(--hair); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .g4, .g5, .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  h1 { font-size: 24px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .g4, .g5, .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Boxes & placeholders ---------- */
.box { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--paper); }
.box.soft { border-color: var(--hair); }
.box.fill { background: var(--fill); }
.box.dashed { border-style: dashed; }
.img {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(to top right, transparent calc(50% - .75px), var(--hair) calc(50% - .75px), var(--hair) calc(50% + .75px), transparent calc(50% + .75px)),
    linear-gradient(to bottom right, transparent calc(50% - .75px), var(--hair) calc(50% - .75px), var(--hair) calc(50% + .75px), transparent calc(50% + .75px)),
    var(--fill);
  aspect-ratio: 4 / 5;
  display: flex; align-items: center; justify-content: center;
  color: var(--mid); font-size: 11.5px; text-align: center; overflow: hidden;
}
.img > span { background: var(--fill); padding: 2px 6px; border-radius: 2px; position: relative; }
.img.wide { aspect-ratio: 16 / 9; }
.img.hero { aspect-ratio: auto; min-height: 460px; align-items: flex-start; justify-content: flex-end; padding: 16px; }
/* Hero stops ~70px short of the fold so the next section peeks in (the extra 52px clears the wireframe review bar). */
.hero-full { position: relative; min-height: max(480px, calc(100svh - 110px - 52px - 70px)); display: flex; }
@media (max-width: 1060px) { .hero-full { min-height: max(420px, calc(100svh - 175px - 52px - 70px)); } }
@media (max-width: 640px) { .hero-full { min-height: max(420px, calc(100svh - 175px - 90px - 60px)); } }
.hero-full > .img { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; border-width: 0 0 1.5px; align-items: flex-end; justify-content: flex-start; padding: 20px; }
.hero-full .hero-copy { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 20px; gap: 18px; }
.hero-full h1 { font-size: clamp(40px, 6.8vw, 92px); line-height: .95; letter-spacing: -.035em; max-width: 12ch; margin: 0; }
.hero-full p { font-size: 17px; max-width: 46ch; margin: 0; background: var(--fill); padding: 2px 6px; }
.img.square { aspect-ratio: 1; }
.img.short { aspect-ratio: 3 / 1; }
.img.video::after { content: "▶"; position: absolute; font-size: 32px; color: var(--mid); }
.map {
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: repeating-linear-gradient(0deg, var(--fill) 0 23px, var(--fill-2) 23px 24px), var(--fill);
  position: relative; min-height: 420px;
}
.pin { position: absolute; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 11px; cursor: pointer; border: 0; }
.pin > span { transform: rotate(45deg); }
.pin.active { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--ink); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: #333; }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.ghost:hover { background: var(--fill); }
.btn.link { background: none; border: 0; color: var(--ink); text-decoration: underline; padding: 0; min-height: 0; font-weight: 500; }
.btn.sm { min-height: 32px; padding: 4px 12px; font-size: 12px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
label { display: block; font-weight: 600; font-size: 12px; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.field .hint { font-weight: 400; color: var(--mid); font-size: 11.5px; margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=password], input[type=number], select, textarea {
  width: 100%; min-height: 44px; padding: 8px 10px; font: inherit; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
textarea { min-height: 96px; resize: vertical; }
input[type=number] { appearance: textfield; -moz-appearance: textfield; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; margin-bottom: 8px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.seg button { border: 0; background: var(--paper); padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; }
.seg button + button { border-left: 1.5px solid var(--line); }
.seg button[aria-pressed=true] { background: var(--ink); color: #fff; }
.choice { display: grid; gap: 10px; }
.choice label { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; font-weight: 400; cursor: pointer; margin: 0; }
.choice label strong { display: block; }
.choice input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.choice label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); background: var(--fill); }
.upload { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 18px; text-align: center; color: var(--mid); font-size: 12px; }
.captcha { border: 1.5px solid var(--hair); border-radius: var(--radius); padding: 10px 14px; display: inline-flex; gap: 10px; align-items: center; font-size: 12px; color: var(--mid); }

/* ---------- Tags, badges, messages ---------- */
.badge { display: inline-block; font-size: 11.5px; font-weight: 600; border: 1.5px solid var(--line); padding: 1px 7px; border-radius: 2px; background: var(--paper); }
.badge.solid { background: var(--ink); color: #fff; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 12px; background: var(--paper); text-decoration: none; cursor: pointer; }
.chip button { border: 0; background: none; cursor: pointer; font-size: 13px; padding: 0; }
.msg { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--paper); }
.msg.warn, .msg.err { background: var(--fill); }
.msg.err { border-width: 2px; }
.msg strong:first-child { display: block; }
.steps { display: flex; gap: 0; counter-reset: step; list-style: none; padding: 0; margin: 0 0 20px; }
.steps li { flex: 1; border-bottom: 3px solid var(--hair); padding: 6px 4px; font-size: 12px; color: var(--mid); counter-increment: step; }
.steps li::before { content: counter(step) ". "; font-weight: 700; }
.steps li.done { border-color: var(--soft); }
.steps li.now { border-color: var(--ink); color: var(--ink); font-weight: 600; }

/* ---------- Notes (review annotations) ---------- */
.note {
  display: none; position: relative;
  background: var(--note); color: var(--note-ink); border: 1.5px dashed var(--note-ink);
  border-radius: var(--radius); padding: 8px 10px 8px 34px; font-size: 12px; line-height: 1.4; margin: 10px 0;
}
.note::before { content: "✎"; position: absolute; left: 10px; top: 7px; font-weight: 700; }
.note.q::before { content: "?"; }
.note.q { border-style: solid; }
.note b { color: #3d3300; }
body.notes-on .note { display: block; }
body.notes-on .note.inline { display: inline-block; }

/* ---------- Role visibility ---------- */
body[data-role=guest] .only-dist { display: none !important; }
body[data-role=distributor] .only-guest { display: none !important; }

/* ---------- Header ---------- */
.utility { border-bottom: 1px solid var(--hair); font-size: 12px; background: var(--fill); }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; }
.utility a { text-decoration: none; }
.utility a:hover { text-decoration: underline; }
.utility .row { gap: 18px; }
.trade-strip { background: var(--ink); color: #fff; font-size: 12px; }
.trade-strip .wrap { display: flex; gap: 20px; align-items: center; min-height: 40px; flex-wrap: wrap; }
.trade-strip a { color: #fff; text-decoration: none; font-weight: 600; }
.trade-strip a:hover { text-decoration: underline; }
.trade-strip .sep { opacity: .4; }
.site-header { border-bottom: 1.5px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { font-weight: 900; font-size: 24px; letter-spacing: -.02em; text-decoration: none; flex: none; }
.mainnav { display: flex; gap: 4px; flex: 1; }
.mainnav > .ni { position: static; }
.mainnav > .ni > a, .mainnav > .ni > button {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border: 0; background: none;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: var(--radius); color: var(--ink);
}
.mainnav > .ni > *:hover, .mainnav > .ni.open > button { background: var(--fill); }
.mainnav > .ni > a[aria-current=page] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.mainnav > .ni > button::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 6px; transition: transform .15s ease; }
.mainnav > .ni.open > button::after { transform: translateY(2px) rotate(-135deg); }
.mega {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1.5px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); padding: 24px 0 28px;
}
.site-header .mega .wrap { display: block; min-height: 0; }
.ni.open .mega { display: block; }
.mega .cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.mega h4 { font-size: 12px; color: var(--mid); font-weight: 600; margin-bottom: 10px; }
.mega ul { list-style: none; padding: 0; margin: 0; }
.mega li a { display: block; padding: 4px 0; text-decoration: none; }
.mega li a:hover { text-decoration: underline; }
.mega .promo .img { aspect-ratio: 4 / 3; }
.header-search { flex: 0 1 300px; position: relative; }
.header-search input { min-height: 40px; padding-left: 34px; }
.header-search::before { content: "⌕"; position: absolute; left: 11px; top: 7px; font-size: 17px; color: var(--mid); }
.header-icons { display: flex; gap: 6px; align-items: center; }
.icon-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 0; min-width: 44px; min-height: 44px; justify-content: center; padding: 2px 6px; border: 0; background: none; font: inherit; font-size: 11px; text-decoration: none; cursor: pointer; border-radius: var(--radius); position: relative; }
.icon-btn:hover { background: var(--fill); }
.icon-btn .ico { font-size: 17px; line-height: 1.1; }
.icon-btn .count { position: absolute; top: 2px; right: 4px; background: var(--ink); color: #fff; border-radius: 999px; font-size: 10px; min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 4px; }
.burger { display: none; }
@media (max-width: 1060px) {
  .header-search { display: none; }
}
@media (max-width: 860px) {
  .mainnav { display: none; }
  .burger { display: inline-flex; }
  .site-header .wrap { gap: 12px; justify-content: space-between; }
  .utility .hide-sm { display: none; }
  body.menu-open .mainnav {
    display: flex; flex-direction: column; position: fixed; inset: 0 0 0 0; top: var(--hdr, 110px);
    background: var(--paper); padding: 12px 20px 100px; overflow: auto; z-index: 60; gap: 0;
  }
  body.menu-open .mainnav > .ni { border-bottom: 1px solid var(--hair); }
  body.menu-open .mainnav > .ni > a, body.menu-open .mainnav > .ni > button { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 16px; }
  .mega { position: static; box-shadow: none; border: 0; padding: 0 4px 16px; }
  .mega .cols { grid-template-columns: 1fr 1fr; gap: 16px; }
  .mega .promo { display: none; }
}
.site-header .mobile-search { display: none; padding: 10px 20px 12px; }
@media (max-width: 1060px) { .site-header .mobile-search { display: block; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1.5px solid var(--line); margin-top: 48px; background: var(--paper); }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr repeat(5, minmax(0, 1fr)); min-height: 360px; }
.site-footer .col { display: flex; flex-direction: column; padding: 28px 18px 22px; border-left: 1px solid var(--hair); }
.site-footer .col:first-child { border-left: 0; padding-left: 24px; }
.site-footer .col .foot { margin-top: auto; padding-top: 28px; font-size: 12px; }
.site-footer .col .foot select { min-height: 32px; padding: 2px 6px; font-size: 12px; border: 0; padding-left: 0; }
.site-footer .flogo { font-weight: 900; font-size: 40px; letter-spacing: -.03em; text-decoration: none; line-height: 1; }
.site-footer h4 { font-size: 12px; font-weight: 500; color: var(--mid); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.site-footer li { padding: 3px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
@media (max-width: 960px) {
  .site-footer .cols { grid-template-columns: 1fr 1fr; min-height: 0; }
  .site-footer .col { border-top: 1px solid var(--hair); min-height: 220px; }
  .site-footer .col:nth-child(2n) { border-left: 0; padding-left: 20px; }
  .site-footer .col:nth-child(2n + 1) { border-left: 1px solid var(--hair); }
  .site-footer .col:first-child { grid-column: 1 / -1; border-top: 0; border-left: 0; min-height: 0; }
}

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 12px; color: var(--mid); padding: 14px 0; }
.crumbs a { color: var(--mid); }
.crumbs span + span::before, .crumbs a + span::before, .crumbs a + a::before, .crumbs span + a::before { content: " / "; }

/* ---------- Cards ---------- */
.card { display: block; text-decoration: none; position: relative; }
.card .img { margin-bottom: 10px; }
.card .badges { position: absolute; top: 10px; left: 10px; z-index: 1; }
.card h3 { font-size: 14px; margin: 0 0 2px; }
.card .facts { font-size: 11.5px; color: var(--mid); margin: 2px 0 4px; }
.card .price { font-weight: 700; font-size: 13px; }
.card .price small { font-weight: 400; color: var(--mid); }
.card:hover h3 { text-decoration: underline; }
.tile { display: block; text-decoration: none; }
.tile .img { aspect-ratio: 1; margin-bottom: 8px; }
.tile strong { display: block; }
.tile:hover strong { text-decoration: underline; }

/* ---------- Tabs & accordions ---------- */
.tabs [role=tablist] { display: flex; border-bottom: 1.5px solid var(--line); }
.tabs [role=tab] { flex: 1; border: 1.5px solid var(--line); border-bottom: 0; background: var(--fill); font: inherit; font-weight: 700; padding: 12px; cursor: pointer; margin-bottom: -1.5px; border-radius: var(--radius) var(--radius) 0 0; text-align: left; }
.tabs [role=tab] small { display: block; font-weight: 400; color: var(--mid); font-size: 11.5px; }
.tabs [role=tab] + [role=tab] { margin-left: 6px; }
.tabs [role=tab][aria-selected=true] { background: var(--paper); border-bottom: 1.5px solid var(--paper); }
.tabs [role=tabpanel] { border: 1.5px solid var(--line); border-top: 0; padding: 18px; border-radius: 0 0 var(--radius) var(--radius); }
details.acc { border-top: 1.5px solid var(--line); }
details.acc:last-of-type { border-bottom: 1.5px solid var(--line); }
details.acc summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-size: 18px; line-height: 1; }
details.acc[open] summary::after { content: "–"; }
details.acc > div { padding: 0 0 18px; }

/* ---------- Tables ---------- */
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { border: 1px solid var(--hair); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--fill); font-size: 12px; }

/* ---------- Order grid (trade + sample) ---------- */
.gridwrap { overflow: auto; border: 1.5px solid var(--line); border-radius: var(--radius); max-height: 70vh; position: relative; }
.ogrid { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; }
.ogrid th, .ogrid td { border: 0; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 6px; }
.ogrid thead th { position: sticky; top: 0; z-index: 2; background: var(--fill); text-align: center; min-width: 86px; }
.ogrid tbody th { position: sticky; left: 0; z-index: 1; background: var(--paper); font-size: 12px; min-width: 170px; text-align: left; }
.ogrid thead th:first-child { left: 0; z-index: 3; text-align: left; }
.ogrid td { text-align: center; }
.ogrid .sw { display: inline-block; width: 14px; height: 14px; border: 1.5px solid var(--line); border-radius: 50%; vertical-align: -2px; margin-right: 6px; }
.cell input { width: 64px; min-height: 34px; text-align: center; padding: 4px; font-family: var(--mono); }
.cell input:not(:placeholder-shown) { background: var(--fill-2); font-weight: 700; }
@media (max-width: 640px) {
  .ogrid tbody th, .ogrid thead th:first-child { min-width: 104px; max-width: 104px; font-size: 11.5px; }
  .ogrid thead th { min-width: 72px; }
  .cell input { width: 54px; }
}
.cell .st { display: block; font-size: 11px; color: var(--mid); margin-top: 3px; white-space: nowrap; }
.cell .st.low, .cell .st.due { color: var(--ink); font-weight: 600; }
.cell.off { background: repeating-linear-gradient(45deg, var(--paper) 0 6px, var(--fill) 6px 8px); }
.cell.off .st { color: var(--soft); }
.cell.over input { border-width: 2.5px; border-style: dashed; }
.cell .pr { display: block; font-size: 11px; font-family: var(--mono); }
.sticky-bar { position: sticky; bottom: 56px; z-index: 20; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 14px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: 0 -6px 18px rgba(0,0,0,.06); margin-top: 12px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11.5px; color: var(--mid); margin: 8px 0; }
.legend .k { display: inline-block; width: 14px; height: 14px; border: 1px solid var(--hair); vertical-align: -3px; margin-right: 4px; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.gallery { display: grid; grid-template-columns: 72px 1fr; gap: 12px; }
.gallery .thumbs { display: grid; gap: 8px; align-content: start; }
.gallery .thumbs .img { aspect-ratio: 1; font-size: 10px; cursor: pointer; }
.gallery .thumbs .img.on { box-shadow: 0 0 0 2px var(--ink); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); cursor: pointer; padding: 0; }
.swatch[aria-pressed=true] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.facts-list { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--mid); margin: 0 0 14px; padding: 0; list-style: none; }
.price-big { font-size: 20px; font-weight: 800; }
.sizerow { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.sizerow .sz { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 6px; text-align: center; }
.sizerow .sz label { margin: 0 0 4px; font-size: 12px; }
.sizerow .sz input { min-height: 36px; text-align: center; padding: 4px; font-family: var(--mono); }
.sizerow .sz .st { font-size: 11px; color: var(--mid); display: block; margin-top: 3px; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 24px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .thumbs { grid-template-columns: repeat(5, 1fr); order: 2; }
}

/* ---------- Category ---------- */
.catlayout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters { position: sticky; top: 96px; max-height: calc(100vh - 170px); overflow: auto; padding-right: 4px; }
.filters details { border-top: 1px solid var(--hair); padding: 10px 0; }
.filters summary { font-weight: 700; cursor: pointer; font-size: 13px; }
.filters .check { font-size: 12px; margin: 6px 0; }
.filters-toggle { display: none; }
@media (max-width: 860px) {
  .catlayout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filters-toggle { display: inline-flex; }
  body.filters-open .filters { display: block; position: fixed; inset: 0; z-index: 80; background: var(--paper); max-height: none; padding: 20px 20px 120px; }
}

/* ---------- Drawers & modals ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 240; display: none; }
.scrim.on { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--paper); z-index: 250;
  border-left: 1.5px solid var(--line); transform: translateX(100%); transition: transform .2s ease; display: flex; flex-direction: column;
}
.drawer.on { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1.5px solid var(--line); gap: 12px; }
.drawer-head h2 { font-size: 18px; margin: 0; }
.drawer-body { padding: 20px; overflow: auto; flex: 1; }
.drawer-foot { padding: 14px 20px; border-top: 1.5px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.close { width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: 18px; cursor: pointer; flex: none; }
.modal {
  position: fixed; z-index: 250; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--radius); display: none; flex-direction: column;
}
.modal.on { display: flex; }
.modal.narrow { width: min(520px, calc(100vw - 32px)); }
.modal .drawer-body { overflow: auto; }

/* ---------- Finder ---------- */
.finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; }
.finder-controls { display: grid; grid-template-columns: 1fr 140px auto; gap: 10px; align-items: end; margin-bottom: 16px; }
.finder-list { display: grid; gap: 10px; max-height: 460px; overflow: auto; padding-right: 4px; }
.listing { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.listing.active { box-shadow: inset 0 0 0 2px var(--ink); background: var(--fill); }
.listing h4 { margin: 0 0 2px; }
.listing .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 860px) {
  .finder { grid-template-columns: 1fr; }
  .finder .map { min-height: 240px; order: -1; }
  .finder-controls { grid-template-columns: 1fr 1fr; }
  .finder-controls .btn { grid-column: 1 / -1; }
}

/* ---------- Autocomplete ---------- */
.ac { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 2px); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); z-index: 5; max-height: 240px; overflow: auto; display: none; }
.ac-list.on { display: block; }
.ac-list button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--hair); background: none; padding: 10px 12px; font: inherit; cursor: pointer; }
.ac-list button:hover, .ac-list button:focus { background: var(--fill); }
.ac-list button small { display: block; color: var(--mid); }

/* ---------- Review bar ---------- */
.review {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: #222; color: #eee; font-size: 12px;
  display: flex; gap: 16px; align-items: center; padding: 8px 16px; flex-wrap: wrap; min-height: 52px;
}
.review strong { color: #fff; font-size: 12px; }
.review .seg { border-color: #777; }
.review .seg button { background: #222; color: #ddd; min-height: 34px; padding: 4px 12px; font-size: 12px; }
.review .seg button + button { border-color: #777; }
.review .seg button[aria-pressed=true] { background: #fff; color: #111; }
.review label { display: inline-flex; gap: 6px; align-items: center; color: #ddd; font-weight: 400; font-size: 12px; margin: 0; cursor: pointer; }
.review a { color: #fff; }
.review .grow { flex: 1; }
@media (max-width: 640px) { .review { gap: 10px; padding: 6px 10px; } .review .hide-sm { display: none; } }

/* ---------- Misc blocks ---------- */
.hero { position: relative; }
.hero .over { position: absolute; left: 32px; bottom: 32px; right: 32px; max-width: 560px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (max-width: 640px) { .hero .img.hero { min-height: 300px; } .hero .over { position: static; margin-top: -40px; margin-left: 12px; margin-right: 12px; } }
.band { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.band.dark { background: var(--ink); color: #fff; }
.band.dark .btn { background: #fff; color: var(--ink); }
.band.dark .btn.ghost { background: transparent; color: #fff; border-color: #fff; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }
.numbered { counter-reset: n; list-style: none; padding: 0; display: grid; gap: 14px; }
.numbered > li { counter-increment: n; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px 16px 16px 60px; position: relative; }
.numbered > li::before { content: counter(n); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border: 1.5px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.quote-block { font-size: 20px; line-height: 1.35; font-weight: 600; margin: 0 0 8px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13px; }
.kv dt { color: var(--mid); }
.kv dd { margin: 0; }
.side-nav { list-style: none; padding: 0; margin: 0; border: 1.5px solid var(--line); border-radius: var(--radius); }
.side-nav li + li { border-top: 1px solid var(--hair); }
.side-nav a, .side-nav span { display: block; padding: 10px 14px; text-decoration: none; }
.side-nav a[aria-current=page] { background: var(--ink); color: #fff; font-weight: 700; }
.side-nav span { color: var(--soft); font-size: 12px; }
.two-col { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.summary { position: sticky; top: 96px; }
@media (max-width: 860px) { .two-col, .checkout-layout { grid-template-columns: 1fr; } .summary { position: static; } }
.progress { height: 10px; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--ink); }
.toast { position: fixed; right: 20px; bottom: 76px; z-index: 300; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius); font-size: 13px; display: none; max-width: 360px; }
.toast.on { display: block; }
