/* Hi Vis Direct
   Palette taken from the job site: concrete, asphalt, fluorescent yellow,
   reflective silver, safety orange (alerts only).
   The one bold motif is the reflective band, used as the page divider. */
:root {
  --concrete: #ECEDE8;
  --concrete-deep: #DCDED8;
  --asphalt: #23282C;
  --asphalt-soft: #4A5157;
  --hivis: #DCF31E;
  --silver: #C4C9CD;
  --orange: #E4570C;
  --white: #FFFFFF;
  --radius: 4px;
  --wrap: 1180px;
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--asphalt);
  background: var(--concrete);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--asphalt); outline-offset: 2px; box-shadow: 0 0 0 6px var(--hivis); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 10; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Type ---------- */
h1, h2, h3 { font-stretch: 112%; line-height: 1.1; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 750; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 1.2rem; color: var(--asphalt-soft); }
.hint { font-size: .9rem; color: var(--asphalt-soft); margin: 0 0 .75rem; }

/* ---------- Reflective band ---------- */
.band {
  height: 18px;
  background: linear-gradient(to bottom,
    var(--hivis) 0 28%, var(--silver) 28% 44%, var(--hivis) 44% 56%,
    var(--silver) 56% 72%, var(--hivis) 72% 100%);
}

/* ---------- Header / footer ---------- */
.site-header { background: var(--asphalt); color: var(--white); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; flex-wrap: wrap; }
.brand { font-weight: 800; font-stretch: 125%; font-size: 1.2rem; text-decoration: none; margin: 0; }
.nav { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a:hover { text-decoration: underline; }
.cart-link { margin-left: auto; text-decoration: none; font-weight: 600; }
.cart-count { display: inline-block; min-width: 1.6em; padding: 0 .4em; border-radius: 1em; background: var(--hivis); color: var(--asphalt); text-align: center; font-size: .85rem; }
main { padding: 2rem 0 4rem; flex: 1; }
.site-footer { background: var(--asphalt); color: var(--silver); }
.footer-row { padding: 2rem 1.25rem 3rem; }
.footer-row .brand { color: var(--white); margin-bottom: .5rem; }
.footer-links { list-style: none; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-legal { font-size: .9rem; margin-top: -.25rem; }
.footer-trade { font-weight: 600; color: var(--white); margin-bottom: .4rem; }
.footer-contact { font-size: .9rem; margin: 1rem 0 .5rem; }
.footer-contact p { margin: .25rem 0; }
.footer-contact a { color: var(--white); }
.footer-secure { opacity: .85; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; max-width: none; }
.contact-page { max-width: 1000px; }
.contact-form { margin-top: 1rem; }
.contact-form textarea { width: 100%; font: inherit; padding: .6rem; border: 2px solid var(--concrete-deep); border-radius: var(--radius); }
.contact-aside h2 { font-size: 1.1rem; margin-top: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.footer-company { font-size: .8rem; max-width: 80ch; opacity: .85; }
.terms-note { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block; font: inherit; font-weight: 700; font-stretch: 110%;
  padding: .85rem 1.4rem; border: 2px solid var(--asphalt); border-radius: var(--radius);
  background: var(--hivis); color: var(--asphalt); text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--asphalt); color: var(--hivis); }
.button:disabled { opacity: .6; cursor: progress; }
.button-quiet { background: var(--white); padding: .55rem 1rem; font-size: .95rem; }
.button-quiet:hover { background: var(--asphalt); color: var(--white); }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; color: var(--asphalt-soft); }

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; padding-bottom: 3rem; }
.hero h1 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 3.9rem); }
.hero-price { font-size: .95rem; color: var(--asphalt-soft); }
.hero-vest { position: relative; width: 100%; max-width: 380px; justify-self: center; }
.hero-vest svg, .card-img svg { width: 100%; height: auto; }
.hero-logo {
  position: absolute; left: 58%; top: 31%; width: 16%; font-size: .6rem; font-weight: 800;
  font-stretch: 125%; line-height: 1.1; text-align: center; color: var(--asphalt);
}
.steps { padding: 2.5rem 1.25rem; border-top: 2px solid var(--asphalt); }
.step-list { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step-list li { counter-increment: step; }
.step-list li::before {
  content: counter(step); display: block; font-weight: 800; font-stretch: 125%;
  font-size: 2.2rem; line-height: 1; margin-bottom: .5rem;
}
.step-list p { font-size: .95rem; color: var(--asphalt-soft); }
.cat-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.cat-list a { display: block; padding: 1.25rem; background: var(--white); border: 2px solid var(--asphalt); border-radius: var(--radius); text-decoration: none; }
.cat-list a:hover { background: var(--hivis); }
.cat-list strong { display: block; font-stretch: 112%; font-size: 1.2rem; margin-bottom: .3rem; }
.cat-list span { font-size: .95rem; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .9rem; color: var(--asphalt-soft); margin-bottom: 1.25rem; }

/* ---------- Category ---------- */
.product-grid { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.product-card a { display: block; text-decoration: none; }
.card-img { background: var(--white); padding: 1.5rem; border-radius: var(--radius); margin-bottom: .75rem; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-img svg { max-height: 100%; }
.product-card h2 { font-size: 1.1rem; margin-bottom: .3rem; }
.product-card a:hover h2 { text-decoration: underline; }
.as-low { margin: 0 0 .2rem; }
.as-low strong { font-size: 1.25rem; font-stretch: 112%; }
.as-low span, .card-meta { font-size: .9rem; color: var(--asphalt-soft); }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.stage-col { position: sticky; top: 1rem; }
.view-tabs { display: flex; gap: .5rem; margin-bottom: .75rem; }
.view-tab { font: inherit; font-weight: 600; padding: .45rem 1rem; border: 2px solid var(--asphalt); border-radius: var(--radius); background: var(--white); cursor: pointer; }
.view-tab[aria-selected="true"] { background: var(--asphalt); color: var(--white); }
.stage { position: relative; background: var(--white); border-radius: var(--radius); padding: 0; aspect-ratio: 400 / 480; }
.stage > svg { width: 100%; height: 100%; }
.photo-stage { aspect-ratio: auto; }
.photo-stage > img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: .4rem; margin-top: .6rem; }
.thumb { padding: 0; border: 2px solid var(--concrete-deep); border-radius: var(--radius); background: var(--white); cursor: pointer; }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.thumb[aria-pressed="true"] { border-color: var(--asphalt); }
.print-area {
  position: absolute; display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--asphalt); border-radius: 2px;
}
.print-area.has-logo { border: 1px dotted rgba(35, 40, 44, .45); }
.print-area img { object-fit: contain; }
.area-label { font-size: clamp(.55rem, 1.2vw, .75rem); font-weight: 600; text-align: center; padding: 0 .2rem; line-height: 1.15; }
.stage-note { font-size: .85rem; color: var(--asphalt-soft); margin-top: .6rem; }

.options-col h1 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); }
.from-price { font-size: 1.05rem; }
.from-price strong { font-size: 1.4rem; font-stretch: 112%; }
.inc-vat { display: block; font-size: .9rem; color: var(--asphalt-soft); font-weight: 400; }
.vat-note { font-size: .85rem; color: var(--asphalt-soft); margin: -.5rem 0 1rem; }
.opt { border: 0; border-top: 2px solid var(--asphalt); margin: 0; padding: 1.1rem 0 1.25rem; }
.opt legend { font-weight: 750; font-stretch: 112%; font-size: 1.1rem; padding: 0; float: left; width: 100%; margin-bottom: .35rem; }
.opt legend + * { clear: both; }

.swatches { display: flex; gap: 1rem; flex-wrap: wrap; }
.swatch { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; font-weight: 500; }
.swatch input { position: absolute; opacity: 0; }
.chip { width: 34px; height: 34px; border-radius: 50%; background: var(--chip); border: 2px solid var(--concrete-deep); }
.swatch input:checked + .chip { border-color: var(--asphalt); box-shadow: 0 0 0 3px var(--concrete), 0 0 0 5px var(--asphalt); }
.swatch input:focus-visible + .chip { outline: 3px solid var(--asphalt); outline-offset: 4px; }

.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .5rem; }
.size-cell { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; font-size: .9rem; text-align: center; }
.size-cell input {
  width: 100%; font: inherit; font-size: 1.05rem; text-align: center; padding: .5rem .25rem;
  border: 2px solid var(--concrete-deep); border-radius: var(--radius); background: var(--white);
}
.size-cell input:focus { border-color: var(--asphalt); }
.size-cell.unavailable { color: var(--asphalt-soft); }
.size-contact, .size-na { display: flex; align-items: center; justify-content: center; min-height: 2.6rem; font-size: .75rem; font-weight: 600; line-height: 1.15;
  border: 2px dashed var(--concrete-deep); border-radius: var(--radius); padding: .2rem; text-align: center; }
.size-na { font-weight: 400; }
.stock-note { color: var(--asphalt); }

.positions { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.position { background: var(--white); border-radius: var(--radius); padding: .75rem .9rem; }
.pos-toggle { display: flex; align-items: baseline; gap: .6rem; cursor: pointer; font-weight: 600; flex-wrap: wrap; }
.pos-toggle input { width: 1.1rem; height: 1.1rem; accent-color: var(--asphalt); transform: translateY(2px); }
.pos-toggle small { font-weight: 400; color: var(--asphalt-soft); }
.pos-detail { padding: .75rem 0 .1rem 1.7rem; display: grid; gap: .6rem; }
.upload { cursor: pointer; justify-self: start; }
.upload:focus-within .button { outline: 3px solid var(--asphalt); outline-offset: 2px; }
.upload-status { font-size: .9rem; margin: 0; color: var(--asphalt-soft); }
.upload-status:empty { display: none; }
.logo-opt .upload { display: inline-block; margin-bottom: .5rem; }
.remove-logo { margin-bottom: .75rem; }
.positions-wrap { margin-top: .5rem; }
.positions-title { font-weight: 600; margin-bottom: .5rem; }
.res-warning { font-size: .9rem; color: var(--orange); margin: 0; font-weight: 500; }
.res-warning:empty { display: none; }
.multi-logo { margin-top: .9rem; margin-bottom: 0; }
.scale { display: flex; align-items: center; gap: .75rem; font-size: .95rem; }
.scale input { flex: 1; max-width: 220px; accent-color: var(--asphalt); }
.scale output { min-width: 3ch; font-variant-numeric: tabular-nums; }

.price-box { border-top: 2px solid var(--asphalt); padding-top: 1.1rem; }
.tiers { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-bottom: 1rem; }
.tiers caption { text-align: left; font-weight: 750; font-stretch: 112%; font-size: 1.1rem; margin-bottom: .5rem; }
.tiers th { text-align: left; font-size: .85rem; color: var(--asphalt-soft); font-weight: 500; padding: .3rem .6rem; }
.tiers td { padding: .45rem .6rem; border-top: 1px solid var(--concrete-deep); }
.tiers td:last-child, .tiers th:last-child { text-align: right; }
.tiers tr.active td { background: var(--hivis); font-weight: 700; border-top-color: var(--hivis); }
.total-row { display: flex; flex-direction: column; gap: .15rem; margin-bottom: .5rem; }
.total-label { font-weight: 600; }
.total { font-size: 1.9rem; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.unit-line { font-size: .95rem; color: var(--asphalt-soft); }
.nudge { font-weight: 600; min-height: 1.5em; }
.notes { display: grid; gap: .3rem; font-size: .95rem; margin-bottom: 1rem; }
.notes textarea { font: inherit; font-size: .95rem; padding: .5rem; border: 2px solid var(--concrete-deep); border-radius: var(--radius); resize: vertical; }
.add-btn { width: 100%; font-size: 1.15rem; }
.form-error { color: var(--orange); font-weight: 600; margin: .6rem 0 0; }
.form-error:empty { display: none; }
.lead-time { font-size: .85rem; color: var(--asphalt-soft); margin-top: .8rem; }
.product-desc { margin-top: 3rem; border-top: 2px solid var(--asphalt); padding-top: 1.5rem; }

/* ---------- Cart ---------- */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; align-items: start; }
.cart-lines { list-style: none; padding: 0; margin: 0; }
.cart-line { display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; padding: 1.25rem 0; border-top: 2px solid var(--asphalt); }
.cart-thumbs { display: flex; gap: .4rem; }
.thumb-fallback { width: 96px; background: var(--white); border-radius: var(--radius); padding: .4rem; }
.cart-thumbs img { width: 96px; height: auto; background: var(--white); border-radius: var(--radius); }
.cart-info h2 { font-size: 1.1rem; margin-bottom: .4rem; }
.cart-info p { margin: 0 0 .3rem; font-size: .95rem; }
.cart-price { text-align: right; font-variant-numeric: tabular-nums; }
.cart-price p { margin: 0; font-size: .95rem; }
.cart-line-total { font-weight: 700; font-size: 1.15rem !important; }
.cart-summary { background: var(--white); padding: 1.25rem; border-radius: var(--radius); position: sticky; top: 1rem; }
.cart-summary dl { margin: 0 0 1rem; }
.cart-summary dl div { display: flex; justify-content: space-between; padding: .35rem 0; font-variant-numeric: tabular-nums; }
.cart-summary dd { margin: 0; }
.cart-summary .grand { border-top: 2px solid var(--asphalt); margin-top: .4rem; padding-top: .6rem; font-weight: 800; font-size: 1.15rem; }
.cart-summary .button { width: 100%; text-align: center; margin-bottom: .75rem; }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; align-items: start; }
.checkout-form { max-width: 560px; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.optional { font-weight: 400; color: var(--asphalt-soft); }
.label-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.label-row label { margin-bottom: 0; }
.help-tip { position: relative; }
.help-tip summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 1.4rem; height: 1.4rem;
  border-radius: 50%; border: 2px solid var(--asphalt); font-weight: 800; font-size: .8rem; cursor: pointer; background: var(--white); }
.help-tip summary::-webkit-details-marker { display: none; }
.help-tip[open] summary { background: var(--asphalt); color: var(--white); }
.help-pop { position: absolute; z-index: 5; top: calc(100% + .4rem); left: 0; width: min(320px, 80vw); background: var(--asphalt); color: var(--white);
  padding: .75rem .9rem; border-radius: var(--radius); font-size: .9rem; line-height: 1.45; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%; font: inherit; padding: .65rem .75rem; background: var(--white);
  border: 2px solid var(--concrete-deep); border-radius: var(--radius);
}
.field input:focus { border-color: var(--asphalt); }
.field-hint { font-size: .9rem; color: var(--asphalt-soft); margin: 0 0 .35rem; }
.field-error { font-size: .95rem; color: var(--orange); font-weight: 600; margin: 0 0 .35rem; }
.has-error input[type="text"], .has-error input[type="email"], .has-error input[type="tel"] { border-color: var(--orange); }
.has-error { border-left: 4px solid var(--orange); padding-left: .75rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--asphalt); flex: none; }
.pay-btn { width: 100%; font-size: 1.15rem; margin-top: .5rem; }
.notice { border: 2px solid var(--orange); background: var(--white); padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.notice ul { margin: .25rem 0 0; padding-left: 1.2rem; }
.notice p { margin: 0; }
.cart-summary h2 { font-size: 1.2rem; }
.mini-lines { list-style: none; padding: 0; margin: 0 0 1rem; }
.mini-lines li { display: grid; grid-template-columns: 1fr auto; gap: .1rem .75rem; padding: .6rem 0; border-bottom: 1px solid var(--concrete-deep); }
.mini-lines li span:not(.mini-price) { grid-column: 1; font-size: .9rem; color: var(--asphalt-soft); }
.mini-price { grid-column: 2; grid-row: 1; font-variant-numeric: tabular-nums; font-weight: 600; }
.test-banner { display: inline-block; background: var(--orange); color: var(--white); font-weight: 700; padding: .2rem .6rem; border-radius: var(--radius); }
.test-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }

/* ---------- Admin ---------- */
.admin-tag { font-size: .7rem; font-stretch: 100%; background: var(--hivis); color: var(--asphalt); padding: .1rem .45rem; border-radius: var(--radius); vertical-align: middle; margin-left: .35rem; }
.logout { color: var(--silver); }
.admin-who { color: var(--silver); font-size: .9rem; margin-right: .75rem; }
.admin-login { max-width: 420px; }
.admin-login .field input { width: 100%; font: inherit; padding: .65rem .75rem; border: 2px solid var(--concrete-deep); border-radius: var(--radius); }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.tabs a { text-decoration: none; padding: .4rem .8rem; border: 2px solid var(--asphalt); border-radius: var(--radius); background: var(--white); font-weight: 600; font-size: .95rem; }
.tabs a span { font-weight: 400; color: var(--asphalt-soft); margin-left: .2rem; }
.tabs a[aria-current="page"] { background: var(--asphalt); color: var(--white); }
.tabs a[aria-current="page"] span { color: var(--silver); }
.admin-search { display: flex; gap: .5rem; margin-bottom: 1.25rem; max-width: 640px; }
.admin-search input { flex: 1; font: inherit; padding: .55rem .75rem; border: 2px solid var(--concrete-deep); border-radius: var(--radius); }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: .95rem; }
.admin-table th { text-align: left; font-size: .85rem; color: var(--asphalt-soft); font-weight: 600; padding: .6rem .75rem; border-bottom: 2px solid var(--asphalt); }
.admin-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--concrete-deep); vertical-align: top; }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table small { color: var(--asphalt-soft); }
.status { display: inline-block; font-size: .8rem; font-weight: 700; padding: .15rem .55rem; border-radius: 1em; background: var(--concrete-deep); white-space: nowrap; vertical-align: middle; font-stretch: 100%; letter-spacing: 0; }
.status-paid { background: var(--hivis); }
.status-proof_sent, .status-approved { background: #D6E6F5; }
.status-printing { background: #FFE2C8; }
.status-dispatched { background: var(--asphalt); color: var(--white); }
.status-pending_payment, .status-payment_failed, .status-cancelled { background: var(--white); border: 1px solid var(--silver); color: var(--asphalt-soft); }
.notice-ok { border-color: var(--asphalt); background: var(--hivis); }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.order-head h1 { margin-bottom: .3rem; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
.order-line { border-top: 2px solid var(--asphalt); padding: 1rem 0 1.25rem; }
.order-line h2 { font-size: 1.2rem; margin-bottom: .2rem; }
.line-body { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.line-mockups { display: flex; gap: .5rem; }
.line-mockups img { background: var(--white); border-radius: var(--radius); }
.size-table { border-collapse: collapse; margin: .25rem 0 1rem; background: var(--white); font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { border: 1px solid var(--concrete-deep); padding: .35rem .7rem; text-align: center; }
.plain-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.plain-list li { padding: .15rem 0; }
.customer-note { background: var(--hivis); padding: .5rem .75rem; border-radius: var(--radius); }
.panel { background: var(--white); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.panel h2 { font-size: 1.1rem; }
.advanced { margin: .5rem 0 1rem; }
.advanced summary { cursor: pointer; font-weight: 600; margin-bottom: .6rem; }
.btc-run .check { margin-bottom: .8rem; }
.panel h3 { font-size: 1rem; margin-top: 1rem; }
.panel p { font-size: .95rem; }
.panel select, .panel input[type="text"] { width: 100%; font: inherit; padding: .5rem .6rem; border: 2px solid var(--concrete-deep); border-radius: var(--radius); background: var(--white); }
.dispatch-box { border: 1px solid var(--concrete-deep); border-radius: var(--radius); padding: .75rem; margin: 0 0 1rem; }
.dispatch-box legend { font-weight: 600; font-size: .9rem; padding: 0 .3rem; }
.address { font-family: inherit; font-size: .95rem; margin: 0 0 .4rem; white-space: pre-wrap; }
.totals { margin: 0; }
.totals div { display: flex; justify-content: space-between; padding: .25rem 0; font-variant-numeric: tabular-nums; }
.totals dd { margin: 0; }
.totals .grand { font-weight: 800; border-top: 2px solid var(--asphalt); margin-top: .3rem; padding-top: .45rem; }
@media (max-width: 900px) { .order-grid { grid-template-columns: 1fr; } }

.risk { display: inline-block; font-size: .78rem; font-weight: 700; padding: .1rem .5rem; border-radius: 1em; margin-top: .2rem; }
.risk-normal { background: #D9F2C4; }
.risk-elevated, .risk-highest { background: var(--orange); color: var(--white); }
.risk-not_assessed, .risk-unknown { background: var(--concrete-deep); }
.health-group { margin-bottom: 1rem; }
.health-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.health-table th, .health-table td { text-align: left; padding: .45rem .5rem; border-top: 1px solid var(--concrete-deep); vertical-align: top; }
.health-table th { font-weight: 600; width: 32%; }
.health-icon { width: 2rem; font-weight: 800; text-align: center; }
.health-ok .health-icon { color: #3A8A2E; }
.health-warn .health-icon { color: #B26A00; }
.health-fail .health-icon { color: var(--orange); }
.health-fail td, .health-fail th { background: #FDEDE4; }
.status-changes_requested { background: var(--orange); color: var(--white); }
.proof-list li { padding: .6rem 0; border-bottom: 1px solid var(--concrete-deep); }
.proof-thumbs { display: flex; gap: .4rem; margin-top: .4rem; }
.proof-thumbs img { border: 1px solid var(--concrete-deep); border-radius: 2px; }
.proof-form { margin-top: 1rem; border-top: 2px solid var(--asphalt); padding-top: 1rem; }
.panel textarea { width: 100%; font: inherit; font-size: .95rem; padding: .5rem .6rem; border: 2px solid var(--concrete-deep); border-radius: var(--radius); }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; align-items: start; }
.settings .panel input[type="password"] { width: 100%; font: inherit; padding: .5rem .6rem; border: 2px solid var(--concrete-deep); border-radius: var(--radius); }

.product-filters { max-width: none; flex-wrap: wrap; align-items: center; }
.product-filters select { font: inherit; padding: .5rem .6rem; border: 2px solid var(--concrete-deep); border-radius: var(--radius); background: var(--white); }
.inline-check { align-items: center; font-size: .95rem; }
.bulk-bar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; position: sticky; top: 0; background: var(--concrete); padding: .5rem 0; z-index: 2; }
.bulk-count { font-weight: 700; min-width: 7ch; }
.bulk-shape { display: inline-flex; gap: .4rem; align-items: center; }
.bulk-shape select { font: inherit; padding: .45rem .5rem; border: 2px solid var(--concrete-deep); border-radius: var(--radius); background: var(--white); }
.product-table td { vertical-align: middle; }
.thumb-cell img { width: 48px; height: 48px; object-fit: contain; background: var(--white); border: 1px solid var(--concrete-deep); border-radius: 2px; }
.warn-list { margin: 0; padding-left: 1rem; font-size: .85rem; color: var(--orange); }
.ok-tick { font-weight: 700; font-size: .9rem; }
.ok-tick::before { content: "✓ "; }

.mapper { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 1fr); gap: 2rem; align-items: start; }
.colour-pick { margin-left: auto; display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; }
.colour-pick select { font: inherit; padding: .35rem .5rem; border: 2px solid var(--concrete-deep); border-radius: var(--radius); }
.custom-colour { background: var(--white); padding: .6rem .75rem; border-radius: var(--radius); margin-bottom: .6rem; font-size: .95rem; }
.map-stage { position: relative; background: var(--white); border-radius: var(--radius); touch-action: none; user-select: none; min-height: 200px; }
.map-stage img { width: 100%; height: auto; display: block; }
.map-empty { padding: 3rem 1.5rem; text-align: center; color: var(--asphalt-soft); }
.map-box { position: absolute; border: 2px solid var(--orange); background: rgba(228, 87, 12, .14); cursor: move; display: flex; align-items: flex-start; }
.map-box span { background: var(--orange); color: var(--white); font-size: .7rem; font-weight: 700; padding: .1rem .3rem; white-space: nowrap; }
.map-box .handle { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; background: var(--white); border: 2px solid var(--orange); cursor: nwse-resize; }
.photo-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: .4rem; margin-bottom: .5rem; }
.pick { padding: 0; border: 2px solid var(--concrete-deep); border-radius: var(--radius); background: var(--white); cursor: pointer; }
.pick img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pick.picked { border-color: var(--asphalt); box-shadow: 0 0 0 3px var(--hivis); }
.map-positions li.muted { opacity: .5; }
.copy-row { display: flex; gap: .5rem; }
.copy-row select { flex: 1; min-width: 0; font: inherit; padding: .45rem .5rem; border: 2px solid var(--concrete-deep); border-radius: var(--radius); }
.map-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
@media (max-width: 900px) { .mapper { grid-template-columns: 1fr; } }

/* ---------- Customer proof page ---------- */
.proof-page { max-width: 980px; }
.proof-message { margin: 1rem 0; }
.proof-images { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; }
.proof-images figure { margin: 0; background: var(--white); padding: .75rem; border-radius: var(--radius); }
.proof-images img { width: 320px; max-width: 100%; }
.proof-images figcaption { font-size: .9rem; color: var(--asphalt-soft); margin-top: .4rem; }
.proof-spec h2 { font-size: 1.15rem; margin-top: 1.5rem; }
.spec-table { border-collapse: collapse; background: var(--white); min-width: 320px; }
.spec-table th, .spec-table td { text-align: left; padding: .5rem .8rem; border-bottom: 1px solid var(--concrete-deep); }
.spec-table td:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.proof-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.proof-actions h2 { font-size: 1.2rem; }
.proof-actions textarea, .proof-actions input[type="text"] { width: 100%; font: inherit; padding: .55rem .7rem; border: 2px solid var(--concrete-deep); border-radius: var(--radius); }
.proof-history { margin-top: 2rem; }
@media (max-width: 760px) { .proof-actions { grid-template-columns: 1fr; } }

/* ---------- Category guide text (below products) ---------- */
.category-guide { max-width: 75ch; margin: 3rem 0 1rem; padding-top: 2rem; border-top: 2px solid var(--asphalt); }
.category-guide h2 { font-size: 1.4rem; margin-top: 1.6rem; }
.category-guide h2:first-child { margin-top: 0; }
.category-guide h3 { font-size: 1.1rem; margin: 1.3rem 0 .4rem; }
.faqs h3 { font-size: 1.02rem; }

/* ---------- Size guide ---------- */
.size-tolerance { font-size: .82rem; margin-top: .6rem; }
.size-guide-link { margin-left: .4rem; font-weight: 700; }
.size-dialog { border: 0; border-radius: var(--radius); padding: 1.25rem 1.5rem; max-width: min(760px, 94vw); width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.size-dialog::backdrop { background: rgba(35,40,44,.55); }
.size-dialog-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.size-dialog h2 { font-size: 1.3rem; margin: 0; }
.unit-switch { display: flex; gap: .4rem; align-items: center; font-size: .95rem; }
.chip-button { font: inherit; padding: .25rem .8rem; border: 2px solid var(--asphalt); border-radius: 1em; background: var(--white); cursor: pointer; }
.chip-button[aria-pressed="true"] { background: var(--asphalt); color: var(--white); }
.size-table-scroll { overflow-x: auto; margin: .75rem 0; }
.size-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .95rem; }
.size-table th, .size-table td { padding: .5rem .6rem; border-bottom: 1px solid var(--concrete-deep); text-align: left; white-space: nowrap; }
.size-table thead th { border-bottom: 2px solid var(--asphalt); }
.size-table .unit { font-weight: 400; color: var(--asphalt-soft); }
.size-notes { font-size: .9rem; color: var(--asphalt-soft); padding-left: 1.1rem; margin: 0; }
.size-notes li { margin: .25rem 0; }

/* ---------- Customer order page ---------- */
.order-meta { margin-bottom: .4rem; }
.progress { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; gap: 0; counter-reset: step; }
.progress li { flex: 1; position: relative; text-align: center; font-size: .9rem; color: var(--asphalt-soft); padding-top: 2.1rem; counter-increment: step; }
.progress li::before { content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 1.8rem; height: 1.8rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; background: var(--white); border: 2px solid var(--concrete-deep); z-index: 1; }
.progress li::after { content: ""; position: absolute; top: .85rem; left: -50%; width: 100%; height: 2px; background: var(--concrete-deep); }
.progress li:first-child::after { display: none; }
.progress li.done::before { content: "✓"; background: var(--asphalt); color: var(--white); border-color: var(--asphalt); }
.progress li.done::after, .progress li.current::after { background: var(--asphalt); }
.progress li.current { color: var(--asphalt); font-weight: 700; }
.progress li.current::before { background: var(--hivis); border-color: var(--asphalt); }
.order-next { margin-bottom: 2rem; }
.order-next p { margin: 0 0 .5rem; }
.order-next p:last-child { margin-bottom: 0; }
.order-summary-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.order-item { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; padding: 1rem 0; border-top: 2px solid var(--asphalt); }
.order-item-img { display: flex; gap: .4rem; }
.order-item-img img { background: var(--white); border-radius: var(--radius); }
.order-item-info h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.order-item-info p { margin: 0 0 .25rem; font-size: .95rem; }
.order-item-price { text-align: right; display: flex; flex-direction: column; gap: .2rem; font-variant-numeric: tabular-nums; }
.order-item-price span { font-size: .9rem; color: var(--asphalt-soft); }
.order-actions p { margin: .75rem 0 0; font-size: .95rem; }
@media (max-width: 900px) { .order-summary-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .order-item { grid-template-columns: 1fr; } .order-item-price { text-align: left; } .progress li { font-size: .75rem; } }
@media print {
  .site-header, .site-footer, .band, .order-actions, .skip { display: none !important; }
  body { background: #fff; }
  .panel { border: 1px solid #ccc; }
}

/* ---------- Prose pages ---------- */
.prose h2 { margin-top: 1.75em; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero, .pdp, .cart { grid-template-columns: 1fr; }
  .hero-vest { max-width: 260px; }
  .stage-col, .cart-summary { position: static; }
  .stage-col { max-width: 440px; margin: 0 auto; width: 100%; }
  .step-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .header-row { padding-top: .75rem; padding-bottom: .75rem; }
  .step-list { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 1fr; }
  .cart-price { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
.nowrap { white-space: nowrap; }
