/* =====================================================================
   OSKAR South Africa — design system "The Drawing Sheet"
   The site is treated as an engineering document: white sheet, black
   line, a title block that identifies every page, drawings given equal
   weight to photographs. Chivo for text, Chivo Mono for codes and
   dimensions. OSKAR blue (sampled from the logo) for action; the pink
   revision tag from the real drawings for versions/variants only.
   ===================================================================== */

:root {
  --paper: #F6F7F6;        /* page ground */
  --sheet: #FFFFFF;        /* drawing sheet surfaces */
  --ink: #15181C;          /* text, strong rules */
  --ink-2: #3C434A;        /* secondary text */
  --mute: #5D656D;         /* captions, labels */
  --hair: #DDE2E6;         /* hairlines */
  --grid: #E9EDF0;         /* sheet grid */
  --blue: #01509F;         /* OSKAR blue — actions, links */
  --blue-dark: #013B75;
  --blue-tint: #E4EDF6;
  --rev: #F1B4CE;          /* drawing revision pink */
  --rev-ink: #6B2244;
  --ok: #1E6B3A;           /* in stock */
  --ok-tint: #E6F2EA;
  --warn: #8A5A00;         /* available to order */
  --warn-tint: #FBF1DC;
  --err: #A32424;
  --err-tint: #FBE7E7;
  --focus: #01509F;

  --font: "Chivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Chivo Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max: 1280px;
  --gutter: clamp(16px, 3vw, 40px);
  --r: 2px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.2vw, 52px); }
h2 { font-size: clamp(24px, 2.8vw, 34px); }
h3 { font-size: 20px; letter-spacing: -.01em; }
h4 { font-size: 16px; letter-spacing: 0; font-weight: 700; }
p { margin: 0; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[x-cloak] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.code { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }
.mute { color: var(--mute); }
.small { font-size: 13px; }
.lead { font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.prose { max-width: 66ch; }
.prose p + p { margin-top: 12px; }
.rule { border: 0; border-top: 1px solid var(--ink); margin: 0; }
.hairline { border: 0; border-top: 1px solid var(--hair); margin: 0; }

.skip { position: absolute; left: 8px; top: -100px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { top: 8px; }

/* ---------- label / title block ---------- */
.lbl { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.tblock { display: grid; border: 1px solid var(--ink); background: var(--sheet); font-size: 13px; }
.tblock > div { padding: 8px 12px; border-right: 1px solid var(--ink); min-width: 0; }
.tblock > div:last-child { border-right: 0; }
.tblock .lbl { display: block; margin-bottom: 2px; }
.tblock .v { display: block; overflow-wrap: anywhere; }

/* ---------- header ---------- */
.top { background: var(--sheet); border-bottom: 1px solid var(--ink); position: sticky; top: 0; z-index: 40; }
.top-row { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { height: 40px; width: auto; }
.brand .who { font-size: 11.5px; line-height: 1.3; color: var(--mute); border-left: 1px solid var(--hair); padding-left: 14px; }
.search { flex: 1; max-width: 560px; position: relative; }
.search form { display: flex; border: 1px solid var(--ink); background: var(--sheet); height: 42px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; font-size: 14px; }
.search input::placeholder { color: var(--mute); }
.search button { border: 0; background: var(--ink); color: #fff; padding: 0 16px; font-weight: 700; font-size: 13px; cursor: pointer; }
.search button:hover { background: var(--blue); }
.suggest { position: absolute; left: 0; right: 0; top: 100%; background: var(--sheet); border: 1px solid var(--ink); border-top: 0; z-index: 50; max-height: 70vh; overflow: auto; }
.suggest a { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hair); font-size: 13.5px; }
.suggest a:hover, .suggest a:focus { background: var(--blue-tint); }
.suggest img { width: 44px; height: 44px; object-fit: contain; border: 1px solid var(--hair); background: #fff; }
.suggest .all { display: block; padding: 10px 12px; font-size: 13px; }
.acts { margin-left: auto; display: flex; align-items: center; gap: 4px; flex: none; }
.acts a, .acts button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 500; border: 0; background: none; cursor: pointer; border-radius: var(--r); }
.acts a:hover { background: var(--paper); }
.acts .n { background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.acts .n.zero { background: var(--hair); color: var(--mute); }
.nav { position: relative; display: flex; align-items: stretch; border-top: 1px solid var(--hair); font-size: 13px; }
.nav > a, .hw-btn { color: var(--ink); text-decoration: none; padding: 10px 0; margin-right: 26px; white-space: nowrap; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; cursor: pointer; display: inline-flex; align-items: center; }
.hw-btn { font-weight: 700; }
.hw-btn small, .nav > a small { color: var(--mute); margin-left: 5px; font-size: 11.5px; font-weight: 400; font-variant-numeric: tabular-nums; }
.hw-btn .chev { width: 7px; height: 7px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.hw-btn[aria-expanded="true"] .chev { transform: translateY(1px) rotate(-135deg); }
.nav > a:hover, .hw-btn:hover, .hw-btn[aria-expanded="true"] { border-bottom-color: var(--ink); }
.nav > a[aria-current="page"], .hw-btn[aria-current="page"] { border-bottom-color: var(--ink); font-weight: 700; }
.nav .sec { color: var(--blue); }
.nav .fam { margin-right: 16px; }
.hw-btn { display: none; }
.nav .sec { margin-right: 0; margin-left: 16px; }
.nav .sep { margin-left: auto; }
@media (max-width: 1239px) { .nav .fam { display: none; } .hw-btn { display: inline-flex; } }
.hw-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: var(--sheet); border: 1px solid var(--ink); box-shadow: 0 8px 0 -4px var(--paper); }
.hw-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hw-panel li { border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.hw-panel li:nth-child(4n) { border-right: 0; }
.hw-panel li:nth-last-child(-n+4) { border-bottom: 0; }
.hw-panel a { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 16px; color: var(--ink); text-decoration: none; min-height: 76px; }
.hw-panel a:hover, .hw-panel a:focus-visible { background: var(--blue-tint); }
.hw-panel a[aria-current="page"] b { text-decoration: underline; text-underline-offset: 3px; }
.hw-panel .pic { width: 48px; height: 48px; display: grid; place-items: center; }
.hw-panel .pic img { max-width: 48px; max-height: 48px; object-fit: contain; }
.hw-panel b { display: block; font-size: 14px; }
.hw-panel small { display: block; color: var(--mute); font-size: 12px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.hw-panel .all a { grid-template-columns: minmax(0, 1fr); background: var(--paper); }
.hw-panel .all b { color: var(--blue); }
.hw-panel .all a:hover { background: var(--blue-tint); }
.burger { display: none; border: 1px solid var(--ink); background: none; width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.drawer { position: fixed; inset: 0 auto 0 0; width: min(88vw, 360px); background: var(--sheet); z-index: 60; overflow: auto; border-right: 1px solid var(--ink); padding: 16px; display: grid; gap: 4px; align-content: start; }
.drawer a { display: flex; justify-content: space-between; padding: 12px 6px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hair); font-weight: 500; }
.drawer .lbl { padding: 14px 6px 4px; }
.scrim { position: fixed; inset: 0; background: rgba(21,24,28,.45); z-index: 55; }

/* ---------- messages ---------- */
.flash { border: 1px solid var(--ink); background: var(--sheet); padding: 10px 14px; font-size: 13.5px; display: flex; gap: 10px; align-items: center; }
.flash.ok { border-color: var(--ok); background: var(--ok-tint); }
.flash.err { border-color: var(--err); background: var(--err-tint); }
.flashes { display: grid; gap: 8px; padding-top: 16px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--ink); background: var(--sheet); color: var(--ink); font-weight: 700; font-size: 13.5px; text-decoration: none; cursor: pointer; border-radius: var(--r); white-space: nowrap; transition: background .12s, color .12s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn.pri { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.pri:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.ghost { border-color: var(--hair); }
.btn.ghost:hover { border-color: var(--ink); background: var(--sheet); color: var(--ink); }
.btn.sm { min-height: 32px; padding: 0 10px; font-size: 12.5px; }
.btn.lg { min-height: 48px; padding: 0 22px; font-size: 15px; }
.btn[disabled], .btn.disabled { opacity: .45; cursor: not-allowed; }
.btn.block { width: 100%; }
.qty { width: 68px; height: 40px; border: 1px solid var(--ink); text-align: center; font-family: var(--mono); background: var(--sheet); }
.qty.sm { width: 56px; height: 32px; font-size: 13px; }

/* ---------- tags ---------- */
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border: 1px solid currentColor; line-height: 1.4; white-space: nowrap; }
.tag.ok { color: var(--ok); background: var(--ok-tint); border-color: transparent; }
.tag.warn { color: var(--warn); background: var(--warn-tint); border-color: transparent; }
.tag.enq { color: var(--mute); background: var(--paper); border-color: transparent; }
.tag.rev { color: var(--rev-ink); background: var(--rev); border-color: transparent; font-family: var(--mono); font-weight: 500; }
.tag.new { color: var(--blue-dark); background: var(--blue-tint); border-color: transparent; }

/* ---------- hero (home) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); border: 1px solid var(--ink); border-top: 0; background: var(--sheet); }
.hero-txt { padding: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px) clamp(24px, 3vw, 36px); border-right: 1px solid var(--ink); display: flex; flex-direction: column; gap: 22px; }
.hero-txt h1 { max-width: 14ch; font-size: clamp(36px, 4.6vw, 62px); }
.hero-txt .lead { max-width: 46ch; }
.hero-search form { display: flex; border: 1px solid var(--ink); height: 52px; background: var(--sheet); }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 0 16px; font-size: 16px; background: transparent; }
.hero-search button { border: 0; background: var(--blue); color: #fff; padding: 0 22px; font-weight: 700; cursor: pointer; }
.hero-search button:hover { background: var(--blue-dark); }
.hero-search .hint { font-size: 12.5px; color: var(--mute); margin-top: 6px; }
.journeys { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); margin-top: auto; }
.journeys a { padding: 14px 14px 16px; border-right: 1px solid var(--ink); text-decoration: none; color: var(--ink); display: grid; gap: 4px; align-content: start; transition: background .12s; }
.journeys a:last-child { border-right: 0; }
.journeys a:hover { background: var(--blue-tint); }
.journeys b { font-size: 14.5px; }
.journeys span { font-size: 12.5px; color: var(--mute); line-height: 1.4; }
.journeys em { font-style: normal; color: var(--blue); font-weight: 700; font-size: 12.5px; margin-top: 4px; }
.sheet { position: relative; background: var(--sheet); display: grid; grid-template-rows: 1fr auto; min-height: 480px; overflow: hidden; }
.sheet-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.sheet-dwg { position: relative; margin: 26px; min-height: 340px; }
.sheet-dwg img.dwg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sheet-dwg .photo { position: absolute; right: 0; top: 0; width: clamp(110px, 22%, 170px); aspect-ratio: 1; border: 1px solid var(--ink); background: #fff; object-fit: cover; }
.sheet-dwg .callout { position: absolute; left: 0; bottom: 0; }
.sheet .tblock { position: relative; border-left: 0; border-right: 0; border-bottom: 0; grid-template-columns: 2fr 1fr 1fr 1fr; }
/* plotter reveal: one orchestrated moment on load */
@keyframes plot { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pen { from { left: 0; opacity: 1; } 95% { opacity: 1; } to { left: 100%; opacity: 0; } }
.sheet-dwg img.dwg { animation: plot 1.6s cubic-bezier(.4,0,.2,1) .2s both; }
.sheet-dwg::after { content: ""; position: absolute; top: -10px; bottom: -10px; width: 1px; background: var(--blue); animation: pen 1.6s cubic-bezier(.4,0,.2,1) .2s both; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .sheet-dwg img.dwg { animation: none; } .sheet-dwg::after { display: none; } }

/* ---------- section scaffolding ---------- */
.section { padding-block: clamp(32px, 4.5vw, 64px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head p { color: var(--mute); max-width: 60ch; }
.frame { border: 1px solid var(--ink); background: var(--sheet); }
.frame > .row { border-bottom: 1px solid var(--ink); }
.frame > .row:last-child { border-bottom: 0; }

/* families (home) */
.families { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--ink); background: var(--sheet); }
.families a { display: grid; grid-template-rows: auto 1fr auto; border-right: 1px solid var(--ink); color: var(--ink); text-decoration: none; min-height: 250px; }
.families a:last-child { border-right: 0; }
.families .pic { aspect-ratio: 1; display: grid; place-items: center; padding: 14%; border-bottom: 1px solid var(--hair); }
.families img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.families a:hover img { transform: scale(1.06); }
.families .t { padding: 10px 12px 0; font-weight: 700; font-size: 14px; line-height: 1.2; }
.families .c { padding: 4px 12px 12px; font-size: 12px; color: var(--mute); }
.families .c b { color: var(--ok); font-weight: 600; }

/* process (home) */
.process { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); background: var(--sheet); }
.process > div { padding: 20px 18px 22px; border-right: 1px solid var(--ink); }
.process > div:last-child { border-right: 0; }
.process .lbl { margin-bottom: 8px; }
.process h4 { margin-bottom: 6px; font-size: 18px; }
.process p { color: var(--ink-2); font-size: 14px; }

/* applications (home + index) */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--ink); background: var(--sheet); }
.apps a { padding: 20px 18px 22px; border-right: 1px solid var(--ink); text-decoration: none; color: var(--ink); display: grid; gap: 8px; align-content: start; transition: background .12s; }
.apps a:last-child { border-right: 0; }
.apps a:hover { background: var(--blue-tint); }
.apps .pic { display: block; margin: -20px -18px 6px; border-bottom: 1px solid var(--hair); background: var(--sheet); }
.apps .pic img { display: block; width: 100%; height: auto; aspect-ratio: 320 / 200; }
.apps a:hover .pic { background: var(--sheet); }
.apps h3 { font-size: 20px; }
.apps p { color: var(--mute); font-size: 13.5px; }
.apps .fam { font-size: 12px; color: var(--blue); font-weight: 600; margin-top: auto; }

/* ---------- product tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tile { border: 1px solid var(--ink); background: var(--sheet); display: grid; grid-template-rows: auto auto 1fr; position: relative; }
.tile .views { display: grid; grid-template-columns: 1fr 1fr; }
.tile .views > a, .tile .views > div { aspect-ratio: 1; display: grid; place-items: center; padding: 8%; border-bottom: 1px solid var(--ink); }
.tile .views > :first-child { border-right: 1px solid var(--hair); }
.tile .views img { width: 100%; height: 100%; object-fit: contain; }
.tile .views .none { color: var(--mute); font-size: 11.5px; text-align: center; border: 1px dashed var(--hair); width: 100%; height: 100%; display: grid; place-items: center; padding: 8px; }
.tile .tags { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; }
.tile .meta { padding: 12px 14px 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 14px; }
.tile .meta h3 { grid-column: 1; grid-row: 1; font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.tile .meta h3 a { color: var(--ink); text-decoration: none; }
.tile .meta h3 a:hover { text-decoration: underline; }
.tile .meta .codes { font-size: 12px; color: var(--mute); grid-column: 1; grid-row: 2; }
.tile .meta .price { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-weight: 700; font-size: 16px; align-self: start; white-space: nowrap; }
.tile .meta .price small { display: block; font-weight: 400; font-size: 11px; color: var(--mute); }
.tile .buy { padding: 8px 14px 14px; display: grid; grid-template-columns: auto 1fr 1fr; gap: 6px; align-items: center; border-top: 1px solid var(--hair); margin-top: auto; }
.tile .buy .stock { grid-column: 1 / -1; font-size: 12.5px; }
.tile .buy form { display: contents; }

/* ---------- product table ---------- */
.ptable { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--ink); font-size: 13.5px; }
.ptable th { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--ink); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 500; white-space: nowrap; }
.ptable td { padding: 8px 10px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable tbody tr:hover { background: #FAFBFB; }
.ptable .th { width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--hair); background: #fff; }
.ptable .name a { color: var(--ink); text-decoration: none; font-weight: 600; }
.ptable .name a:hover { text-decoration: underline; }
.ptable .codes { font-size: 12px; color: var(--mute); }
.ptable .pr { font-weight: 700; white-space: nowrap; text-align: right; }
.ptable .pr small { display: block; font-weight: 400; font-size: 11px; color: var(--mute); }
.ptable .r { text-align: right; }
.ptable .dwg-link { font-size: 12px; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.bulk-bar { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding: 10px 12px; border: 1px solid var(--ink); border-top: 0; background: var(--sheet); font-size: 13px; flex-wrap: wrap; }

/* ---------- listing layout ---------- */
.listing { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { border: 1px solid var(--ink); background: var(--sheet); font-size: 13.5px; position: sticky; top: 118px; max-height: calc(100vh - 130px); overflow: auto; }
.filters .head { padding: 10px 14px; border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.filters details { border-bottom: 1px solid var(--hair); }
.filters details:last-child { border-bottom: 0; }
.filters summary { cursor: pointer; padding: 10px 14px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: "+"; color: var(--mute); font-family: var(--mono); }
.filters details[open] summary::after { content: "–"; }
.filters ul { list-style: none; margin: 0; padding: 0 8px 10px; display: grid; gap: 2px; }
.filters li a { display: flex; align-items: flex-start; gap: 8px; padding: 5px 6px; color: var(--ink); text-decoration: none; border-radius: var(--r); }
.filters li a:hover { background: var(--paper); }
.filters li a.on { background: var(--ink); color: #fff; }
.filters li a > span:first-of-type { flex: 1; }
.filters li a .c { color: var(--mute); font-variant-numeric: tabular-nums; font-size: 12px; }
.filters li a.on .c { color: #fff; opacity: .7; }
.filters li a::before { content: ""; width: 12px; height: 12px; border: 1px solid var(--ink); flex: none; margin-top: 5px; }
.filters li a.on::before { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 0 14px; font-size: 13.5px; }
.toolbar .count { font-weight: 700; }
.toolbar .grow { flex: 1; }
.toolbar select { border: 1px solid var(--ink); background: var(--sheet); height: 34px; padding: 0 8px; }
.seg { display: inline-flex; border: 1px solid var(--ink); }
.seg a { padding: 6px 10px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.seg a[aria-current="true"] { background: var(--ink); color: #fff; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ink); padding: 3px 8px; font-size: 12.5px; text-decoration: none; color: var(--ink); background: var(--sheet); }
.chip:hover { background: var(--paper); }
.chip .x { font-family: var(--mono); color: var(--mute); }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; padding-top: 24px; font-size: 13.5px; }
.pager a, .pager span { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--hair); color: var(--ink); text-decoration: none; padding: 0 8px; }
.pager [aria-current="page"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.empty { border: 1px dashed var(--ink); padding: 32px 24px; text-align: left; background: var(--sheet); display: grid; gap: 10px; max-width: 640px; }
.empty h3 { font-size: 22px; }
.filters-toggle { display: none; }
.htmx-request .results { opacity: .5; transition: opacity .15s; }
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline; }

/* category head */
.cat-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border: 1px solid var(--ink); border-top: 0; background: var(--sheet); }
.cat-head .txt { padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 36px); border-right: 1px solid var(--ink); display: grid; gap: 14px; align-content: start; }
.cat-head .txt .lead { font-size: 15.5px; }
.cat-head .sel { padding: clamp(20px, 3vw, 32px); display: grid; gap: 10px; align-content: start; font-size: 14px; }
.cat-head .sel h4 { margin-bottom: 4px; }
.cat-head .sel li { margin-bottom: 6px; color: var(--ink-2); }
.cat-head .sel ul { margin: 0; padding-left: 18px; }
.series-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.series-strip a { border: 1px solid var(--ink); padding: 6px 10px; font-size: 12.5px; text-decoration: none; color: var(--ink); background: var(--sheet); }
.series-strip a:hover { background: var(--blue-tint); }
.crumbs { font-size: 12.5px; color: var(--mute); padding: 12px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--mute); }
.crumbs a:hover { color: var(--ink); }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border: 1px solid var(--ink); background: var(--sheet); }
.pdp-views { border-right: 1px solid var(--ink); padding: clamp(16px, 2.5vw, 28px); display: grid; gap: 14px; align-content: start; position: sticky; top: 118px; align-self: start; }
.pdp-main { position: relative; border: 1px solid var(--ink); aspect-ratio: 1; display: grid; place-items: center; padding: 4%; background: #fff; overflow: hidden; }
.pdp-main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; transition: transform .25s; transform-origin: var(--ox, 50%) var(--oy, 50%); }
.pdp-main.zoomed img { transform: scale(2.2); cursor: zoom-out; }
.pdp-main .cap { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; align-items: center; }
.pdp-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.pdp-thumbs button { width: 72px; height: 72px; border: 1px solid var(--hair); background: #fff; padding: 6px; cursor: pointer; display: grid; place-items: center; }
.pdp-thumbs button[aria-current="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumbs .lbl2 { font-size: 10px; color: var(--mute); text-align: center; margin-top: 3px; }
.pdp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pdp-pair figure { margin: 0; }
.pdp-pair .box { border: 1px solid var(--ink); aspect-ratio: 1; display: grid; place-items: center; padding: 6%; background: #fff; }
.pdp-pair img { width: 100%; height: 100%; object-fit: contain; }
.pdp-pair figcaption { font-size: 12px; color: var(--mute); margin-top: 6px; display: flex; justify-content: space-between; gap: 8px; }
.pdp-buy { padding: clamp(16px, 2.5vw, 28px); display: grid; gap: 16px; align-content: start; }
.pdp-buy h1 { font-size: clamp(24px, 2.6vw, 32px); }
.pdp-buy .codes { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--mute); }
.pdp-buy .codes b { color: var(--ink); font-weight: 500; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pdp-price b { font-size: 30px; font-weight: 900; letter-spacing: -.02em; }
.pdp-price span { font-size: 13px; color: var(--mute); }
.pdp-ctas { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; }
.pdp-ctas .btn { min-height: 46px; }
.pdp-links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.axes { display: grid; gap: 12px; border-top: 1px solid var(--ink); padding-top: 14px; }
.axis .lbl { margin-bottom: 6px; display: block; }
.axis .opts { display: flex; gap: 6px; flex-wrap: wrap; }
.axis .opts a, .axis .opts span { border: 1px solid var(--ink); padding: 6px 10px; font-size: 12.5px; color: var(--ink); text-decoration: none; background: var(--sheet); }
.axis .opts a:hover { background: var(--blue-tint); }
.axis .opts .on { background: var(--ink); color: #fff; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; }
.spec-note { font-size: 12.5px; color: var(--mute); border-left: 2px solid var(--rev); padding-left: 10px; }
.pdp-tabs { border-top: 1px solid var(--ink); }
.pdp-tabs details { border-bottom: 1px solid var(--hair); }
.pdp-tabs summary { padding: 14px 0; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.pdp-tabs summary::-webkit-details-marker { display: none; }
.pdp-tabs summary::after { content: "+"; font-family: var(--mono); color: var(--mute); }
.pdp-tabs details[open] summary::after { content: "–"; }
.pdp-tabs .body { padding: 0 0 16px; font-size: 14px; color: var(--ink-2); }
.pdp-strip { border-top: 1px solid var(--ink); }
.pdp-title-block { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; border-top: 0; border-left: 0; border-right: 0; }
.mobile-buy { display: none; }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 5px; }
.field label { font-size: 13px; font-weight: 600; }
.field .help { font-size: 12px; color: var(--mute); }
.field input, .field select, .field textarea { border: 1px solid var(--ink); background: var(--sheet); min-height: 42px; padding: 8px 12px; width: 100%; border-radius: var(--r); }
.field textarea { min-height: 96px; resize: vertical; }
.field input[type=file] { padding: 8px; }
.field.err input, .field.err select, .field.err textarea { border-color: var(--err); }
.field .error { color: var(--err); font-size: 12.5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.optional { border: 1px solid var(--hair); }
.optional summary { padding: 12px 14px; cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; }
.optional summary::-webkit-details-marker { display: none; }
.optional summary::after { content: "+"; font-family: var(--mono); color: var(--mute); }
.optional summary .count { margin-left: auto; margin-right: 18px; font-weight: 400; font-variant-numeric: tabular-nums; }
.optional[open] summary::after { content: "–"; }
.optional .inner { padding: 4px 14px 14px; }
.radios { display: grid; gap: 8px; }
.radios label { display: flex; gap: 10px; align-items: center; border: 1px solid var(--hair); padding: 10px 12px; cursor: pointer; }
.radios input { width: 16px; height: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.form-error { border: 1px solid var(--err); background: var(--err-tint); padding: 10px 14px; font-size: 13.5px; color: var(--err); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; align-items: start; }
.two-col > *, .listing > *, .about-grid > *, .stack > *, .hero > *, .pdp > *, .cat-head > *, .app-hero > * { min-width: 0; }
.aside { border: 1px solid var(--ink); background: var(--sheet); }
.aside .head { padding: 10px 14px; border-bottom: 1px solid var(--ink); font-weight: 700; display: flex; justify-content: space-between; }
.aside .body { padding: 14px; font-size: 13.5px; display: grid; gap: 8px; }
.line-list { list-style: none; margin: 0; padding: 0; }
.line-list li { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: 13px; }
.line-list img { width: 40px; height: 40px; object-fit: contain; border: 1px solid var(--hair); }
.line-list li:last-child { border-bottom: 0; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 14px; }
.totals .grand { font-weight: 800; font-size: 18px; border-top: 1px solid var(--ink); padding-top: 8px; }

/* cart table */
.cart-table { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--ink); font-size: 13.5px; }
.cart-table th { text-align: left; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 500; padding: 9px 10px; border-bottom: 1px solid var(--ink); }
.cart-table td { padding: 10px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.cart-table img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--hair); }
.cart-table .r { text-align: right; white-space: nowrap; }
.linkbtn { border: 0; background: none; color: var(--blue); text-decoration: underline; cursor: pointer; padding: 0; font-size: inherit; }

/* ---------- application page ---------- */
.app-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); border: 1px solid var(--ink); border-top: 0; background: var(--sheet); }
.app-hero .txt { padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 40px); border-right: 1px solid var(--ink); display: grid; gap: 18px; align-content: start; }
.app-hero .pic { display: grid; place-items: center; padding: 10%; background: #fff; position: relative; }
.app-hero .pic img { width: 100%; height: 100%; object-fit: contain; max-height: 460px; }
.factors { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); border: 1px solid var(--ink); background: var(--sheet); }
.factors > div { padding: 18px 18px 20px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.factors h4 { margin-bottom: 6px; }
.factors p { font-size: 14px; color: var(--ink-2); }
.fam-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: 1px solid var(--ink); background: var(--sheet); }
.fam-list a { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-right: 1px solid var(--hair); text-decoration: none; color: var(--ink); }
.fam-list a:hover { background: var(--blue-tint); }
.fam-list img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--hair); background: #fff; }
.fam-list b { display: block; font-size: 14px; }
.fam-list span { font-size: 12px; color: var(--mute); }

/* ---------- resources ---------- */
.dwg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.dwg-grid a { border: 1px solid var(--ink); background: #fff; text-decoration: none; color: var(--ink); display: grid; }
.dwg-grid .box { aspect-ratio: 1; display: grid; place-items: center; padding: 8%; border-bottom: 1px solid var(--hair); }
.dwg-grid img { width: 100%; height: 100%; object-fit: contain; }
.dwg-grid .t { padding: 8px 10px; font-size: 12px; line-height: 1.3; }
.dwg-grid .t b { display: block; font-family: var(--mono); font-weight: 500; }
.glossary { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; font-size: 14px; margin: 0; }
.glossary dt { font-weight: 700; }
.glossary dd { margin: 0; color: var(--ink-2); }

/* ---------- footer ---------- */
.foot { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--ink); background: var(--sheet); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-block: 36px; font-size: 13.5px; }
.foot h4 { margin-bottom: 10px; font-size: 13px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .addr { color: var(--ink-2); white-space: pre-line; }
.foot-tb { border-top: 1px solid var(--ink); }
.foot-tb .tblock { border: 0; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; font-size: 12px; }
.foot-tb .tblock > div { padding: 10px 0 10px 12px; }
.foot-tb .tblock > div:first-child { padding-left: 0; }

/* ---------- account / misc ---------- */
.stack { display: grid; gap: 18px; }
.cards2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.datalist { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--sheet); border: 1px solid var(--ink); }
.datalist th, .datalist td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--hair); }
.datalist th { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 500; border-bottom-color: var(--ink); }
.datalist .r { text-align: right; white-space: nowrap; }
.confirm { border: 1px solid var(--ink); background: var(--sheet); padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; max-width: 760px; }
.confirm .ref { font-family: var(--mono); font-size: 28px; font-weight: 500; }
.page-head { padding-block: 28px 18px; display: grid; gap: 8px; }
.page-head .lead { max-width: 64ch; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; }
.fact-block { border: 1px solid var(--ink); background: var(--sheet); }
.fact-block > div { padding: 12px 14px; border-bottom: 1px solid var(--hair); font-size: 13.5px; }
.fact-block > div:last-child { border-bottom: 0; }
.fact-block .lbl { display: block; margin-bottom: 2px; }
.notice { border: 1px solid var(--ink); border-left: 4px solid var(--rev); background: var(--sheet); padding: 12px 16px; font-size: 13.5px; }
.textarea-mono { font-family: var(--mono); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .families { grid-template-columns: repeat(4, 1fr); }
  .families a:nth-child(4) { border-right: 0; }
  .families a:nth-child(-n+4) { border-bottom: 1px solid var(--ink); }
  .process, .apps { grid-template-columns: repeat(2, 1fr); }
  .process > div:nth-child(2), .apps a:nth-child(2) { border-right: 0; }
  .process > div:nth-child(-n+2), .apps a:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .brand .who { display: none; }
}
@media (max-width: 900px) {
  .hero, .cat-head, .pdp, .app-hero, .two-col, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-txt, .cat-head .txt, .pdp-views, .app-hero .txt { border-right: 0; border-bottom: 1px solid var(--ink); }
  .sheet { min-height: 380px; }
  .listing { grid-template-columns: minmax(0, 1fr); }
  .filters { position: fixed; inset: 0 0 0 auto; width: min(88vw, 360px); z-index: 60; max-height: none; border: 0; border-left: 1px solid var(--ink); top: 0; }
  .filters:not(.open) { display: none; }
  .filters-toggle { display: inline-flex; }
  .hw-panel ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hw-panel li:nth-child(4n) { border-right: 1px solid var(--hair); }
  .hw-panel li:nth-child(2n) { border-right: 0; }
  .hw-panel li:nth-last-child(-n+4) { border-bottom: 1px solid var(--hair); }
  .hw-panel li:nth-last-child(-n+2) { border-bottom: 0; }
  .nav > a, .hw-btn { margin-right: 18px; }
  .foot-tb .tblock { grid-template-columns: 1fr 1fr; }
  .foot-tb .tblock > div { border-right: 0; border-bottom: 1px solid var(--hair); padding-left: 0; }
  .pdp-title-block { grid-template-columns: 1fr 1fr; }
  .pdp-title-block > div { border-bottom: 1px solid var(--hair); }
  .hero-txt h1 { font-size: clamp(34px, 9vw, 52px); }
}
@media (max-width: 700px) {
  body { font-size: 14.5px; }
  .top { position: static; }
  .top-row { gap: 10px; min-height: 58px; flex-wrap: wrap; padding-block: 8px; }
  .brand img { height: 32px; }
  .burger { display: inline-flex; }
  .nav { display: none; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search form { height: 40px; }
  .acts a span.t { display: none; }
  .journeys { grid-template-columns: 1fr; }
  .journeys a { border-right: 0; border-bottom: 1px solid var(--ink); }
  .journeys a:last-child { border-bottom: 0; }
  .families { grid-template-columns: repeat(2, 1fr); }
  .families a { min-height: 0; border-bottom: 1px solid var(--ink); }
  .families a:nth-child(2n) { border-right: 0; }
  .families a:nth-child(2n+1) { border-right: 1px solid var(--ink); }
  .families a:nth-last-child(-n+1) { border-bottom: 0; }
  .process, .apps { grid-template-columns: 1fr; }
  .process > div, .apps a { border-right: 0; border-bottom: 1px solid var(--ink); }
  .process > div:last-child, .apps a:last-child { border-bottom: 0; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile .views { grid-template-columns: 1fr; }
  .tile .views > :last-child { display: none; }
  .tile .meta { grid-template-columns: 1fr; }
  .tile .meta .price { text-align: left; grid-row: auto; }
  .tile .buy { grid-template-columns: auto 1fr; }
  .tile .buy .btn.q { grid-column: 1 / -1; }
  .pdp-ctas { grid-template-columns: 1fr 1fr; }
  .pdp-ctas .qty { grid-column: 1 / -1; width: 100%; }
  .pdp-pair { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 20px; }
  .sheet .tblock { grid-template-columns: 1fr 1fr; }
  .sheet .tblock > div { border-bottom: 1px solid var(--hair); }
  .sheet-dwg .photo { width: 96px; }
  .sheet-dwg { margin: 16px; min-height: 260px; }
  .mobile-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--sheet); border-top: 1px solid var(--ink); padding: 10px var(--gutter); gap: 8px; align-items: center; }
  .mobile-buy b { font-size: 17px; margin-right: auto; }
  .has-mobile-buy { padding-bottom: 72px; }
  .cat-head .sel { display: none; }
  .ptable .hide-m { display: none; }
  .totals { font-size: 13.5px; }
}
@media (max-width: 420px) {
  .tiles { grid-template-columns: 1fr; }
}
@media print {
  .top, .foot, .mobile-buy, .btn, .filters, .toolbar { display: none !important; }
  body { background: #fff; }
}

/* ---------- mobile tile: horizontal row ---------- */
@media (max-width: 700px) {
  .pdp-views { position: static; }
  .tiles { grid-template-columns: 1fr; gap: 10px; }
  .tile { grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto auto; }
  .tile .views { grid-template-columns: 1fr; grid-row: 1; grid-column: 1; border-right: 1px solid var(--hair); }
  .tile .views > a, .tile .views > div { border-bottom: 0; padding: 10px; }
  .tile .views > :last-child { display: none; }
  .tile .tags { left: auto; right: 8px; top: 8px; }
  .tile .meta { grid-column: 2; grid-row: 1; grid-template-columns: minmax(0, 1fr); padding: 10px 12px 8px; align-content: start; }
  .tile .meta h3 { font-size: 14px; }
  .tile .meta .price { grid-column: 1; grid-row: auto; text-align: left; font-size: 15px; margin-top: 4px; }
  .tile .meta .price small { display: inline; margin-left: 4px; }
  .tile .buy { grid-column: 1 / -1; grid-row: 2; grid-template-columns: auto 1fr 1fr; padding: 8px 10px 10px; }
  .tile .buy .stock { grid-column: 1 / -1; }
  .tile .buy .btn.q { grid-column: auto; }
}
