:root {
  --ink: #14171a;
  --ink-2: #2a2f35;
  --steel: #5b646e;
  --line: #dcd8d0;
  --paper: #f5f3ef;
  --card: #ffffff;
  --accent: #ff6a13;
  --accent-ink: #b84400;
  --hazard: #ffc21a;
  --ok: #1f8a4c;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 23, 26, .06), 0 6px 18px rgba(20, 23, 26, .06);
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: .01em; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--hazard); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Top bar & header ---------- */
.topbar {
  background: var(--hazard);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 6px 12px;
}
.topbar-sep { margin: 0 10px; opacity: .5; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 2px 0 var(--accent);
}
.header-row { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { color: var(--accent); width: 40px; height: 40px; }
.brand-mark svg { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: .95; font-family: var(--display); text-transform: uppercase; }
.brand-text strong { font-size: 22px; font-weight: 800; letter-spacing: .02em; }
.brand-text em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .32em; }

.search { flex: 1; display: flex; background: #fff; border-radius: 8px; overflow: hidden; min-width: 0; }
.search input { flex: 1; border: 0; padding: 11px 14px; color: var(--ink); min-width: 0; outline: none; }
.search button { border: 0; background: var(--accent); color: #fff; padding: 0 16px; cursor: pointer; }
.search button:hover { background: var(--accent-ink); }

.quote-btn {
  display: flex; align-items: center; gap: 8px;
  background: transparent; border: 2px solid #3a4048; color: #fff;
  border-radius: 8px; padding: 8px 12px; cursor: pointer; flex-shrink: 0;
  font-weight: 600;
}
.quote-btn:hover { border-color: var(--accent); }
.quote-count {
  background: var(--accent); color: #fff; border-radius: 999px;
  min-width: 22px; height: 22px; padding: 0 6px; font-size: 13px;
  display: inline-grid; place-items: center; font-weight: 700;
}

.dept-nav { background: var(--ink-2); border-top: 1px solid #343a41; }
.dept-nav-row { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: thin; padding-top: 0; padding-bottom: 0; }
.dept-nav a {
  flex-shrink: 0; text-decoration: none; color: #cfd3d8; font-size: 14px; font-weight: 600;
  padding: 10px 12px; border-bottom: 3px solid transparent; white-space: nowrap;
}
.dept-nav a:hover, .dept-nav a.active { color: #fff; border-bottom-color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(20,23,26,.97) 0%, rgba(20,23,26,.92) 55%, rgba(20,23,26,.6) 100%),
    repeating-linear-gradient(45deg, #2a2f35 0 18px, #23282d 18px 36px);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
  background: repeating-linear-gradient(-45deg, var(--hazard) 0 16px, var(--ink) 16px 32px);
}
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 76px; }
.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: .18em; color: var(--accent); font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 800; text-transform: uppercase; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: 19px; color: #c9ced4; max-width: 560px; margin: 18px 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid transparent; border-radius: 8px; padding: 11px 20px;
  font-weight: 700; text-decoration: none; cursor: pointer; font-size: 15px;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { border-color: #4a525b; color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 14px; }
.btn-block { width: 100%; }

.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat {
  background: rgba(255,255,255,.04); border: 1px solid #3a4048; border-radius: var(--radius);
  padding: 18px;
}
.stat b { display: block; font-family: var(--display); font-size: 44px; line-height: 1; color: #fff; }
.stat span { color: #aeb5bc; font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: 38px; text-transform: uppercase; font-weight: 800; }
.section-head p { margin: 6px 0 0; color: var(--steel); }

.featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 260px; border-radius: 14px; overflow: hidden; color: #fff; text-decoration: none;
  padding: 24px; isolation: isolate;
}
.feature-card .art { position: absolute; inset: 0; z-index: -1; }
.feature-card .art svg { width: 100%; height: 100%; }
.feature-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgba(10,12,14,.85)); }
.feature-card h3 { font-size: 32px; text-transform: uppercase; font-weight: 800; }
.feature-card p { margin: 6px 0 14px; color: #dde1e5; max-width: 34ch; }
.feature-card .count { font-weight: 700; color: var(--hazard); font-size: 14px; }
.feature-card:hover .arrow { transform: translateX(4px); }
.arrow { display: inline-block; transition: transform .15s; }

.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.dept-tile {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.dept-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #c4bfb5; }
.dept-tile .art { height: 96px; }
.dept-tile .art svg { width: 100%; height: 100%; }
.dept-tile .body { padding: 14px 16px 16px; }
.dept-tile h3 { font-size: 21px; font-weight: 700; text-transform: uppercase; }
.dept-tile p { font-size: 14px; color: var(--steel); margin: 6px 0 10px; }
.dept-tile .meta { font-size: 13px; font-weight: 600; color: var(--accent-ink); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--display); font-weight: 800; font-size: 44px; color: var(--accent); line-height: 1; display: block; margin-bottom: 8px;
}
.step h3 { font-size: 22px; text-transform: uppercase; }
.step p { color: var(--steel); margin: 8px 0 0; }

.band { background: var(--ink); color: #fff; }
.band .section-head p { color: #aeb5bc; }

/* ---------- Catalog layout ---------- */
.crumbs { font-size: 14px; color: var(--steel); padding: 18px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--steel); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.catalog { display: grid; grid-template-columns: 270px 1fr; gap: 28px; padding: 16px 0 56px; align-items: start; }
.sidebar {
  position: sticky; top: 132px; max-height: calc(100vh - 150px); overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px;
}
.sidebar h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .12em; color: var(--steel); padding: 8px 10px 6px; }
.side-dept > a, .side-all {
  display: flex; justify-content: space-between; gap: 8px; text-decoration: none; padding: 7px 10px; border-radius: 6px; font-size: 14px; font-weight: 600;
}
.side-dept > a:hover, .side-all:hover { background: var(--paper); }
.side-dept > a.active, .side-all.active { background: var(--ink); color: #fff; }
.side-dept small, .side-all small { color: var(--steel); font-weight: 500; }
.side-dept > a.active small, .side-all.active small { color: #c9ced4; }
.side-subs { margin: 2px 0 8px 12px; padding-left: 10px; border-left: 2px solid var(--line); }
.side-subs a { display: block; text-decoration: none; font-size: 14px; padding: 4px 8px; border-radius: 5px; color: var(--ink-2); }
.side-subs a:hover { background: var(--paper); }
.side-subs a.active { color: var(--accent-ink); font-weight: 700; }
.side-toggle { display: none; }

.results-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.results-head h1 { font-size: 40px; text-transform: uppercase; font-weight: 800; }
.results-head p { margin: 4px 0 0; color: var(--steel); }
.results-tools { display: flex; gap: 10px; align-items: center; }
select, .field input, .field textarea {
  border: 1px solid #c9c4ba; border-radius: 7px; background: #fff; padding: 8px 10px; font-size: 15px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  border: 1px solid #c9c4ba; background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .15s, border-color .15s;
}
.card:hover { box-shadow: var(--shadow); border-color: #c4bfb5; }
.card-art { aspect-ratio: 16 / 10; cursor: pointer; border: 0; padding: 0; background: none; width: 100%; }
.card-art svg { width: 100%; height: 100%; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-dept { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--steel); font-weight: 600; }
.card h3 { font-family: var(--body); font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.card h3 button { all: unset; cursor: pointer; }
.card h3 button:hover { color: var(--accent-ink); text-decoration: underline; }
.card p { margin: 0; font-size: 14px; color: var(--steel); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; }
.price-tag { font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.sku-count { font-size: 12px; color: var(--steel); }
.load-more { display: flex; justify-content: center; margin-top: 24px; }
.empty { background: var(--card); border: 1px dashed #c9c4ba; border-radius: var(--radius); padding: 40px; text-align: center; color: var(--steel); }
mark { background: #ffe39a; color: inherit; padding: 0 1px; border-radius: 2px; }

/* ---------- Dialogs ---------- */
.overlay { position: fixed; inset: 0; background: rgba(10,12,14,.6); z-index: 50; display: grid; place-items: center; padding: 20px; }
.overlay[hidden] { display: none; }
.dialog { background: var(--card); border-radius: 14px; max-width: 920px; width: 100%; max-height: calc(100vh - 40px); overflow-y: auto; position: relative; }
.close-x {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9);
  font-size: 22px; cursor: pointer; line-height: 1; z-index: 2;
}
.close-x:hover { background: var(--hazard); }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; }
.pd-art svg { width: 100%; height: 100%; min-height: 320px; }
.pd-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.pd-body h2 { font-size: 32px; text-transform: uppercase; font-weight: 800; padding-right: 30px; }
.pd-body .desc { color: var(--ink-2); margin: 0; }
.pd-meta { font-size: 13px; color: var(--steel); display: flex; gap: 12px; flex-wrap: wrap; }
.pd-meta code { background: var(--paper); padding: 2px 6px; border-radius: 4px; font-size: 13px; color: var(--ink); }
.opt { display: flex; flex-direction: column; gap: 6px; }
.opt label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--steel); }
.opt-values { display: flex; gap: 6px; flex-wrap: wrap; }
.opt-values button {
  border: 1px solid #c9c4ba; background: #fff; border-radius: 6px; padding: 6px 10px; font-size: 14px; cursor: pointer;
}
.opt-values button:hover { border-color: var(--ink); }
.opt-values button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.qty-row { display: flex; gap: 10px; align-items: stretch; }
.qty { display: flex; border: 1px solid #c9c4ba; border-radius: 8px; overflow: hidden; }
.qty button { border: 0; background: var(--paper); width: 38px; cursor: pointer; font-size: 18px; }
.qty input { width: 64px; border: 0; text-align: center; outline: none; }
.pricing-note { background: #fff6ea; border: 1px solid #ffd5b0; border-radius: 8px; padding: 10px 12px; font-size: 14px; color: #7a3a07; }

.overlay-drawer { place-items: stretch end; padding: 0; }
.drawer { background: var(--card); width: min(480px, 100vw); height: 100%; display: flex; flex-direction: column; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 28px; text-transform: uppercase; font-weight: 800; }
.drawer-head .close-x { position: static; background: var(--paper); }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.q-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.q-item h4 { font-family: var(--body); font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.q-item .opts { font-size: 13px; color: var(--steel); margin-top: 2px; }
.q-item code { font-size: 12px; color: var(--steel); }
.q-item .actions { display: flex; flex-direction: column; align-items: end; gap: 6px; }
.linklike { border: 0; background: none; padding: 0; color: var(--accent-ink); cursor: pointer; font-size: 13px; text-decoration: underline; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-errors { background: #fdecec; border: 1px solid #f3b7b7; color: #8a1c1c; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
.form-errors ul { margin: 6px 0 0; padding-left: 18px; }
.sent-box { text-align: center; padding: 40px 10px; }
.sent-box h3 { font-size: 28px; text-transform: uppercase; margin: 14px 0 8px; }
.sent-box p { color: var(--steel); }
.sent-box code { background: var(--paper); padding: 2px 8px; border-radius: 4px; color: var(--ink); font-size: 15px; }
.sent-check { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--ok); color: #fff; font-size: 34px; display: grid; place-items: center; }
.btn[disabled] { opacity: .6; cursor: progress; }
.summary-box { width: 100%; min-height: 260px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--paper); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 8px; font-weight: 600; z-index: 60; transition: transform .25s; box-shadow: var(--shadow);
  border-left: 4px solid var(--accent); max-width: calc(100vw - 32px);
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9ced4; padding-top: 44px; border-top: 6px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 2fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: 18px; text-transform: uppercase; margin-bottom: 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
#footerDepts { columns: 2; column-gap: 20px; }
.footer-grid li { margin-bottom: 6px; font-size: 14px; break-inside: avoid; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-grid .linklike { color: inherit; font-size: 14px; text-decoration: none; }
.footer-grid .linklike:hover { color: #fff; text-decoration: underline; }
.brand-footer { margin-bottom: 10px; }
.footer-base { border-top: 1px solid #2e343a; margin-top: 32px; padding-top: 16px; padding-bottom: 20px; font-size: 13px; color: #8d959d; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 56px; }
  .featured, .steps { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; display: none; }
  .sidebar.open { display: block; }
  .side-toggle { display: inline-flex; }
  .pd-grid { grid-template-columns: 1fr; }
  .pd-art svg { min-height: 180px; max-height: 220px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .header-row { flex-wrap: wrap; gap: 12px; }
  .search { order: 3; flex-basis: 100%; }
  .quote-btn { margin-left: auto; }
  .quote-label { display: none; }
  .topbar span:not(:first-child) { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 34px; }
  .section { padding: 40px 0; }
  .section-head h2, .results-head h1 { font-size: 30px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .card-body { padding: 10px; }
  .card p { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .pd-body { padding: 20px; }
  .pd-body h2 { font-size: 26px; }
  .sidebar { top: auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
