/* Scan Technology. One stylesheet, hand-written, no framework.
   Type: Archivo, using its width axis: condensed for headings and part
   numbers (like printed equipment labels), normal width for reading.
   Color: taken from the logo. Deep teal ink, the logo's blue for actions,
   its green for stock, its cyan as a thin accent. Laser red is kept for
   the one scan moment, because that's the color a scanner's beam is. */

:root {
  --paper: #f2f6f7;
  --surface: #ffffff;
  --ink: #0d2834;        /* logo blue, darkened to text weight */
  --ink-2: #1e4352;
  --steel: #4c6370;
  --rule: #d4dfe3;
  --rule-strong: #aebfc7;
  --brand: #0a6d96;      /* logo blue */
  --brand-deep: #08587a;
  --sky: #1ab4dc;        /* logo cyan */
  --leaf: #1c8a52;       /* logo green */
  --laser: #e3262d;
  --go: #177544;
  --hold: #8a5a00;
  --danger: #b42318;
  --focus: #0a6d96;
  --tint: #e5eef1;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --condensed: 78%;
  --semi: 88%;

  /* Major-third scale */
  --s-1: 0.8rem;
  --s0: 1rem;
  --s1: 1.25rem;
  --s2: 1.563rem;
  --s3: 1.953rem;
  --s4: 2.441rem;
  --s5: 3.052rem;
  --s6: 3.815rem;

  --radius: 6px;
  --radius-lg: 10px;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; font-stretch: var(--condensed); font-weight: 700; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
code { font-size: 0.92em; background: var(--tint); padding: 0.1em 0.35em; border-radius: 4px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.muted { color: var(--steel); }
.warn { color: var(--danger); font-weight: 600; }
.count { color: var(--steel); font-size: var(--s-1); font-weight: 500; }

/* Part numbers read like printed label text: semi-condensed, firm. */
.mpn {
  font-stretch: var(--semi);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums slashed-zero;
}

/* ------------------------------------------------------------ buttons */

.button, button[type="submit"]:not(.link-button) {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 650; font-stretch: var(--semi); font-size: 1rem;
  padding: 0.7rem 1.2rem; min-height: 44px;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  border-radius: var(--radius); cursor: pointer; text-decoration: none;
}
.button:hover, button[type="submit"]:not(.link-button):hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.button-quiet, button[type="submit"].button-quiet { background: var(--surface); color: var(--ink); border-color: var(--rule-strong); }
.button-quiet:hover, button[type="submit"].button-quiet:hover { background: var(--tint); }
.button-wide { width: 100%; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.link-button {
  font: inherit; background: none; border: 0; padding: 0; color: var(--steel);
  text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer;
}
.link-danger { color: var(--danger); }

input, select, textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  padding: 0.55rem 0.7rem; min-height: 44px; width: 100%;
}
textarea { min-height: auto; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 1.05rem; height: 1.05rem; min-height: 0; accent-color: var(--brand); }
label { display: block; font-weight: 600; font-size: 0.92rem; margin: 0 0 0.3rem; }

/* ------------------------------------------------------------ masthead */

.masthead { background: var(--surface); border-bottom: 1px solid var(--rule); border-top: 3px solid var(--sky); position: relative; z-index: 20; }
.masthead-main { display: flex; align-items: center; gap: 1.75rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }

.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); flex: none; }
.logo img { height: 54px; width: auto; }
.logo-word { font-size: 1.6rem; font-weight: 800; font-stretch: 70%; letter-spacing: 0.01em; line-height: 1; }

/* One navigation bar: Products opens a panel of categories; the company
   pages sit beside it as plain links. */
.sitenav { display: flex; align-items: center; gap: 1rem; }
.sitenav-list { display: flex; align-items: center; gap: 0.25rem; }
.sitenav-list > li > a, .products > summary {
  display: block; padding: 0.55rem 0.75rem; border-radius: var(--radius);
  font-weight: 650; font-stretch: var(--semi); text-decoration: none; color: var(--ink-2); cursor: pointer;
}
.sitenav-list > li > a:hover, .products > summary:hover, .products[open] > summary { background: var(--tint); color: var(--ink); }
.sitenav-list a[aria-current], .products > summary[aria-current] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); border-radius: var(--radius) var(--radius) 0 0; }
.products > summary { list-style: none; display: flex; align-items: center; gap: 0.4rem; }
.products > summary::-webkit-details-marker { display: none; }
.products > summary::after { content: ""; width: 0.45rem; height: 0.45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.15s; }
.products[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.sitenav-phone { display: none; }

.panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 3px solid var(--brand);
  box-shadow: 0 14px 30px rgba(13, 40, 52, 0.12);
}
.panel-cats { max-width: var(--wrap); margin: 0 auto; padding: 1.5rem 1.5rem 1rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.panel-head { display: block; font-weight: 750; font-stretch: var(--semi); color: var(--ink); text-decoration: none; padding-bottom: 0.3rem; border-bottom: 2px solid var(--leaf); margin-bottom: 0.4rem; }
.panel-head:hover { color: var(--brand); }
.panel-group li a { display: block; padding: 0.2rem 0; color: var(--steel); text-decoration: none; font-size: 0.95rem; }
.panel-group li a:hover { color: var(--brand); text-decoration: underline; }
.panel-foot { max-width: var(--wrap); margin: 0 auto; padding: 0.8rem 1.5rem 1.2rem; display: flex; gap: 1.75rem; flex-wrap: wrap; border-top: 1px solid var(--rule); }
.panel-foot a { font-weight: 700; color: var(--brand); }

.masthead-tools { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.masthead-phone { font-weight: 650; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.masthead-phone:hover { color: var(--brand); text-decoration: underline; }

.search { display: flex; gap: 0; flex: 1; max-width: 640px; }
.search input { border-radius: var(--radius) 0 0 var(--radius); border-right: 0; }
.search button[type="submit"] { border-radius: 0 var(--radius) var(--radius) 0; }
.search-compact { width: 260px; flex: none; margin-left: auto; }
.search-compact + .masthead-tools { margin-left: 0; }
.search-compact input { min-height: 40px; padding: 0.4rem 0.7rem; font-size: 0.95rem; }
.search-compact button[type="submit"] { min-height: 40px; padding: 0 0.8rem; }
/* Cart: an icon with the item count on a badge. */
.cart-link {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 999px; color: var(--ink); text-decoration: none; flex: none;
}
.cart-link:hover, .cart-link[aria-current] { background: var(--tint); color: var(--brand); }
.cart-count {
  position: absolute; top: 2px; right: 0; display: inline-grid; place-items: center;
  min-width: 1.2rem; height: 1.2rem; padding: 0 0.3rem; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 0.72rem; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 2px var(--surface);
}
.menu-toggle { display: none; }
.test-banner { margin: 0; padding: 0.45rem 1rem; text-align: center; background: #fff4d6; color: #5c4300; font-size: 0.9rem; font-weight: 600; border-top: 1px solid #f0d99a; }

/* ---------------------------------------------------------------- hero */

.hero { background: var(--surface); border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 4rem; padding-top: 4.5rem; padding-bottom: 4rem; align-items: end; }
.hero-title {
  font-size: clamp(2.4rem, 5.4vw, var(--s6));
  font-stretch: 68%;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.01em;
  max-width: 19ch;
  margin-bottom: 1.25rem;
}
.hero-sub { font-size: var(--s1); color: var(--steel); max-width: 52ch; margin-bottom: 2rem; line-height: 1.45; }

.search-hero { max-width: none; }
.search-window { position: relative; flex: 1; }
.search-hero input {
  height: 68px; font-size: var(--s1); padding: 0 1.25rem;
  border: 2px solid var(--brand); border-right: 0; border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  font-stretch: var(--semi); font-weight: 500;
}
.search-hero input::placeholder { color: #8a94a5; }
.search-hero input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.search-hero button[type="submit"] { height: 68px; padding: 0 2rem; font-size: var(--s1); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; border-width: 2px; }

/* The one moment of motion: a scanner's red line fires across the
   search field once when the page opens. */
.laser {
  position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; margin-top: -1px;
  background: var(--laser); border-radius: 2px; pointer-events: none;
  box-shadow: 0 0 6px 1px rgba(227, 38, 45, 0.55), 0 0 18px 2px rgba(227, 38, 45, 0.25);
  transform: scaleX(0); opacity: 0;
  animation: laser 1.1s cubic-bezier(.2,.7,.2,1) 0.35s 1 forwards;
}
@keyframes laser {
  0%   { transform: scaleX(0); opacity: 0; }
  12%  { opacity: 1; }
  45%  { transform: scaleX(1); opacity: 1; }
  60%  { opacity: 0.35; }
  70%  { opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .laser { animation: none; display: none; } }

.hero-try { margin-top: 1rem; color: var(--steel); font-size: 0.95rem; }
.hero-try a { margin-left: 0.85rem; font-weight: 600; color: var(--brand); font-stretch: var(--semi); }

.hero-aside { border-left: 3px solid var(--leaf); padding-left: 1.5rem; }
.hero-aside h2 { font-size: var(--s1); }
.hero-aside p { color: var(--steel); }
.hero-aside-phone { margin-top: 0.75rem; font-size: 0.95rem; }

/* ------------------------------------------------------------ sections */

.section { padding-top: 3.5rem; padding-bottom: 0.5rem; }
.section:last-child { padding-bottom: 4rem; }
.section-title { font-size: var(--s3); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.section-head a { font-weight: 600; }

/* Category directory: an index, not a card grid. */
.directory { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem 2rem; margin-top: 0.75rem; }
.dir-group { border-top: 2px solid var(--ink); padding-top: 0.85rem; }
.dir-group h3 { font-size: var(--s1); display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.dir-group h3 a { text-decoration: none; }
.dir-group h3 a:hover { text-decoration: underline; }
.dir-group li { padding: 0.18rem 0; }
.dir-group li a { color: var(--steel); text-decoration: none; }
.dir-group li a:hover { color: var(--ink); text-decoration: underline; }

/* Brand wall: logos where we have them, names set in type where not. */
.brand-wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; margin-top: 0.75rem; }
.brand-wall a { display: grid; place-items: center; height: 88px; padding: 1rem 1.25rem; background: var(--surface); text-decoration: none; }
.brand-wall a:hover { background: var(--tint); }
.brand-wall img { max-height: 40px; max-width: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.brand-wall span { font-weight: 800; font-stretch: 75%; font-size: 1.2rem; color: var(--ink-2); text-align: center; line-height: 1.1; }

.company-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--leaf); border-radius: var(--radius-lg); padding: 2rem 2.25rem; }
.company-band p { color: var(--ink-2); max-width: 60ch; margin: 0; }
.company-links li { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: 0.1rem; }
.company-links li:first-child { padding-top: 0; }
.company-links li:last-child { border-bottom: 0; }
.company-links a { font-weight: 700; color: var(--brand); }
.company-links span { color: var(--steel); font-size: 0.92rem; }

.brand-strip { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }
.brand-strip a {
  display: block; padding: 0.55rem 1rem; background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); text-decoration: none; font-weight: 650; font-stretch: var(--semi);
}
.brand-strip a:hover { border-color: var(--ink); }

/* --------------------------------------------------------------- tiles */

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden;
}
.tile:hover { border-color: var(--rule-strong); }
.tile-link { display: block; text-decoration: none; flex: 1; }
.tile-link:hover .tile-name { text-decoration: underline; }
.tile-media { position: relative; aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; padding: 1rem; border-bottom: 1px solid var(--rule); }
/* Photos come in every shape; pin them inside the frame so tiles line up. */
.tile-media img { position: absolute; inset: 1rem; width: calc(100% - 2rem); height: calc(100% - 2rem); object-fit: contain; }
.tile-body { padding: 0.9rem 1rem 0.25rem; }
.tile-brand { font-size: var(--s-1); color: var(--steel); font-weight: 600; margin: 0 0 0.15rem; }
.tile-name { font-size: 1rem; font-stretch: 100%; font-weight: 600; line-height: 1.3; margin: 0 0 0.35rem; overflow-wrap: anywhere; }
.tile-body .mpn, .pdp-title, .idents dd { overflow-wrap: anywhere; }
.tile-body .mpn { font-size: 0.85rem; color: var(--steel); margin: 0; }
.tile-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; padding: 0.6rem 1rem 0.9rem; flex-wrap: wrap; }

.price { font-weight: 750; font-size: var(--s1); font-stretch: var(--semi); letter-spacing: -0.01em; }
.price-lg { font-size: var(--s4); font-stretch: var(--condensed); }
.msrp { color: var(--steel); text-decoration: line-through; margin-left: 0.6rem; }

.stock { font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem; }
.stock::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.stock-in { color: var(--go); }
.stock-out { color: var(--hold); }

/* Stand-in product art: a thermal label with a part number and bars. */
.label-art {
  width: 78%; max-width: 280px; aspect-ratio: 3 / 2; background: #fff;
  border: 1px solid var(--rule-strong); border-radius: 4px; padding: 8% 9% 7%;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 1px 0 var(--rule);
}
.label-brand { font-size: 0.7rem; font-weight: 700; color: var(--steel); }
.label-art-logo { gap: 0.3rem; }
.label-logo { display: block; height: 22%; min-height: 14px; max-width: 70%; width: auto; object-fit: contain; object-position: left center; mix-blend-mode: multiply; flex: none; }
.label-art .label-mpn { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pdp-media .label-logo { max-height: 34%; }
.label-mpn { font-weight: 800; font-stretch: 70%; font-size: clamp(0.85rem, 1.6vw, 1.15rem); line-height: 1.1; word-break: break-all; text-wrap: balance; }
.label-bars {
  height: 26%; min-height: 18px;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px,
    var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px);
}
.pdp-media .label-art { width: 70%; max-width: 420px; padding: 7% 8%; }
.pdp-media .label-mpn { font-size: clamp(1.25rem, 3vw, 2rem); }
.pdp-media .label-brand { font-size: 0.9rem; }

/* ---------------------------------------------------------- pages */

.page { padding-top: 1.5rem; padding-bottom: 4rem; }
.page-narrow { max-width: 860px; }
.page-head { margin: 0.5rem 0 1.75rem; }
.page-head h1 { font-size: var(--s5); font-stretch: 70%; font-weight: 800; }
.lede { font-size: var(--s1); color: var(--steel); max-width: 60ch; line-height: 1.45; }

.crumbs { font-size: 0.88rem; color: var(--steel); display: flex; flex-wrap: wrap; gap: 0.4rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs a:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--rule-strong); }

.flash { background: var(--surface); border: 1px solid var(--rule-strong); border-left: 4px solid var(--ink); padding: 0.75rem 1rem; border-radius: var(--radius); }
.flash-error { border-left-color: var(--danger); }
.notice { background: #fff8e6; border: 1px solid #f0d99a; padding: 0.75rem 1rem; border-radius: var(--radius); }

/* Company pages */
.prose h2 { font-size: var(--s2); margin: 2.25rem 0 0.6rem; }
.prose > h2:first-child { margin-top: 0; }
.prose ul.ticks, .ticks { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.ticks li { position: relative; padding: 0.3rem 0 0.3rem 1.4rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 0.6rem; height: 2px; background: var(--leaf); }
.defs { margin: 0 0 1.5rem; }
.defs div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: 0.85rem 0; border-top: 1px solid var(--rule); }
.defs div:last-child { border-bottom: 1px solid var(--rule); }
.defs dt { font-weight: 750; font-stretch: var(--semi); }
.defs dd { margin: 0; }
.faq section { padding: 1.25rem 0; border-top: 1px solid var(--rule); max-width: 68ch; }
.faq section:last-child { border-bottom: 1px solid var(--rule); }
.faq h2 { font-size: var(--s1); font-stretch: var(--semi); margin-bottom: 0.4rem; }
.faq p { margin: 0; }
.talk { margin-top: 3rem; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--brand); border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; }
.talk h2 { font-size: var(--s2); }
.talk p { color: var(--ink-2); max-width: 60ch; }
.talk-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 0; }

/* Photo placeholders, staff and trust marks */
.photo-slot { margin: 0 0 2rem; }
.photo-slot figcaption { color: var(--steel); font-size: 0.9rem; margin-top: 0.5rem; }
.photo-placeholder {
  display: grid; place-content: center; gap: 0.25rem; text-align: center; color: var(--steel);
  aspect-ratio: 16 / 7; border-radius: var(--radius-lg); border: 1px dashed var(--rule-strong);
  background: repeating-linear-gradient(135deg, var(--tint) 0 12px, #edf3f5 12px 24px);
}
.photo-placeholder span { font-weight: 700; color: var(--ink-2); }
.photo-band { aspect-ratio: 16 / 6; margin-bottom: 1.25rem; }
.staff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0.5rem 0 2.5rem; }
.staff-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 1rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 1rem; }
.staff-card .staff-photo { grid-row: 1 / 4; }
.staff-photo { aspect-ratio: 1 / 1; border-radius: var(--radius); border: 1px dashed var(--rule-strong); background: repeating-linear-gradient(135deg, var(--tint) 0 10px, #edf3f5 10px 20px); }
.staff-name { font-weight: 750; margin: 0; }
.staff-role { color: var(--brand); font-weight: 600; margin: 0 0 0.4rem; font-size: 0.92rem; }
.staff-note { color: var(--steel); font-size: 0.9rem; margin: 0; }
.trust { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin: 1rem 0; }
.trust p { margin: 0; max-width: 50ch; color: var(--ink-2); }
.trust-inline { margin: 1.25rem 0 0; }
.bbb { display: inline-block; flex: none; line-height: 0; }
.bbb img { width: 200px; height: auto; }

/* Forms on the storefront */
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; }
.form-card fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; background: none; }
.form-card legend { font-size: var(--s1); margin-bottom: 0.75rem; padding: 0; margin-left: 0; }
.form-card input, .form-card textarea { margin-bottom: 1rem; }
.form-card .row > div { min-width: 0; }
.row-3 { grid-template-columns: 2fr 1fr 1fr; }
.opt { color: var(--steel); font-weight: 400; font-size: 0.85rem; margin-left: 0.25rem; }
.contact-card h2 { font-size: var(--s1); margin-top: 1.75rem; }
.contact-card h2:first-child { margin-top: 0; }
.contact-card address { font-style: normal; line-height: 1.6; }
.steps { margin: 0 0 1.25rem; padding-left: 1.3rem; }
.steps li { padding: 0.25rem 0; }
.steps li::marker { font-weight: 800; color: var(--brand); }
.order-lines { margin: 0 0 1rem; }
.order-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
.order-lines .mpn { display: block; font-size: 0.85rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Listing */
.listing { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 2.5rem; }
.filters-toggle { display: none; }
.filters section { padding: 0 0 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }
.filters h2 { font-size: 1rem; font-stretch: var(--semi); margin-bottom: 0.6rem; }
.filters li { padding: 0.2rem 0; display: flex; justify-content: space-between; gap: 0.5rem; }
.filters a { text-decoration: none; color: var(--ink-2); }
.filters a:hover { text-decoration: underline; }
.filters a.on { font-weight: 700; color: var(--ink); text-decoration: underline; }
.toggle { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.toggle::before {
  content: ""; width: 2.1rem; height: 1.2rem; border-radius: 999px; background: var(--rule-strong);
  box-shadow: inset 0 0 0 2px var(--rule-strong);
  background-image: radial-gradient(circle at 0.6rem 50%, #fff 0.45rem, transparent 0.5rem);
}
.toggle.on::before { background-color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); background-image: radial-gradient(circle at 1.5rem 50%, #fff 0.45rem, transparent 0.5rem); }

.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--rule); }
.results-bar p { margin: 0; color: var(--steel); }
.sort { display: flex; align-items: center; gap: 0.6rem; }
.sort label { margin: 0; color: var(--steel); font-weight: 500; }
.sort select { width: auto; }

.pager { display: flex; gap: 0.35rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.pager a, .pager span { min-width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.pager a { background: var(--surface); border: 1px solid var(--rule); }
.pager a:hover { border-color: var(--ink); }
.pager [aria-current] { background: var(--brand); color: #fff; }
.pager .gap { color: var(--steel); }

.empty { padding: 3rem 0; max-width: 56ch; }
.empty h1, .empty h2 { font-size: var(--s3); }
.empty .search { margin-top: 1.5rem; }

/* Product detail */
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; margin-top: 1rem; }
.pdp-gallery { position: sticky; top: 1rem; align-self: start; }
.pdp-media { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-lg); aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 2rem; overflow: hidden; }
.pdp-media img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.pdp-thumbs { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.5rem; }
.pdp-thumbs a { display: grid; place-items: center; aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.3rem; }
.pdp-thumbs a:hover { border-color: var(--steel); }
.pdp-thumbs a[aria-current="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pdp-thumbs img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pdp-brand { font-weight: 700; text-decoration: none; color: var(--brand); }
.pdp-brand:hover { color: var(--ink); text-decoration: underline; }
.pdp-title { font-size: var(--s4); font-stretch: 72%; font-weight: 800; margin-top: 0.3rem; }
.idents { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 0 0 1.5rem; }
.idents div { display: flex; gap: 0.5rem; align-items: baseline; }
.idents dt { color: var(--steel); font-size: 0.85rem; }
.idents dd { margin: 0; }
.buybox { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.buybox-price { display: flex; align-items: baseline; flex-wrap: wrap; margin-bottom: 0.25rem; }
.buy { display: grid; grid-template-columns: 6rem 1fr; gap: 0.3rem 0.75rem; align-items: end; margin-top: 1rem; }
.buy label { grid-column: 1 / -1; }
.buybox-quote { margin: 1rem 0 0; font-size: 0.92rem; color: var(--steel); }
.pdp-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; margin-top: 3.5rem; }
.pdp-details h2 { font-size: var(--s2); }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 0.9rem; }
.prose h3 { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.01em; margin: 1.5rem 0 0.4rem; }
.prose h3:first-child { margin-top: 0; }
.highlights h2 { font-size: var(--s1); margin-bottom: 0.5rem; }
.highlights ul { margin: 0; padding-left: 1.1rem; max-width: 60ch; list-style: disc; }
.highlights li { padding: 0.15rem 0; }
.highlights li::marker { color: var(--steel); }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.specs th { font-weight: 500; color: var(--steel); width: 42%; padding-right: 1rem; }
.specs + .specs { margin-top: 1.75rem; }
.specs caption { text-align: left; font-weight: 700; padding-bottom: 0.35rem; border-bottom: 2px solid var(--ink); }
.thumbs { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.thumbs img { width: 72px; height: 72px; object-fit: contain; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.25rem; }

/* Cart */
.cart-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.cart-table th, .cart-table td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.cart-table th { font-size: 0.85rem; color: var(--steel); font-weight: 600; }
.cart-table tr:last-child td { border-bottom: 0; }
.cart-name { font-weight: 650; display: block; margin-bottom: 0.15rem; }
.cart-table .mpn { display: block; color: var(--steel); font-size: 0.85rem; margin-bottom: 0.25rem; }
.num { text-align: right !important; white-space: nowrap; }
.qty { width: 5.5rem; text-align: right; }
.cart-actions { display: flex; justify-content: flex-end; margin-top: 0.75rem; }
.summary { margin: 2rem 0 0 auto; max-width: 380px; }
.summary dl, .kv { margin: 0 0 1rem; }
.summary dl div, .kv div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; }
.summary dt, .kv dt { color: var(--steel); }
.summary dd, .kv dd { margin: 0; font-weight: 600; }
.summary .total, .kv .total { border-top: 2px solid var(--ink); margin-top: 0.4rem; padding-top: 0.7rem; font-size: var(--s1); }

/* Brands A–Z */
.az { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 2rem; }
.az a { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; text-decoration: none; font-weight: 700; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.az a:hover { border-color: var(--ink); }
.brand-index { columns: 4 220px; column-gap: 2rem; }
.brand-index section { break-inside: avoid; margin-bottom: 1.75rem; }
.brand-index h2 { font-size: var(--s3); border-bottom: 2px solid var(--ink); padding-bottom: 0.25rem; }
.brand-index li { padding: 0.2rem 0; display: flex; justify-content: space-between; }

/* Footer */
.footer { background: var(--surface); color: var(--ink-2); margin-top: 3rem; border-top: 3px solid var(--brand); }
.footer a { color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-top: 3rem; padding-bottom: 2.5rem; }
.footer-logo { height: 50px; width: auto; margin-bottom: 1rem; }
.footer-about p { max-width: 42ch; color: var(--steel); }
.footer address { font-style: normal; line-height: 1.7; }
.footer h2 { font-size: 1rem; font-stretch: var(--semi); }
.footer li { padding: 0.2rem 0; }
.footer li a { text-decoration: none; color: var(--ink-2); }
.footer li a:hover { color: var(--brand); text-decoration: underline; }
.footer-legal { border-top: 1px solid var(--rule); padding-top: 1.25rem; padding-bottom: 1.5rem; font-size: var(--s-1); color: var(--steel); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-legal .bbb img { width: 180px; }

/* ======================================================== admin */

body.admin { background: var(--paper); font-size: 0.95rem; }
.admin-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--ink); color: #c4d4db; padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 0; height: 100vh; }
.admin-side .logo { color: #fff; padding: 0 0.5rem; }
.admin-side nav { display: flex; flex-direction: column; gap: 2px; }
.admin-side nav a { padding: 0.55rem 0.75rem; border-radius: var(--radius); text-decoration: none; color: #c9d1de; font-weight: 600; }
.admin-side nav a:hover { background: #17404f; color: #fff; }
.admin-side nav a[aria-current] { background: #fff; color: var(--ink); }
.admin-side-foot { margin-top: auto; font-size: var(--s-1); display: flex; flex-direction: column; gap: 0.5rem; padding: 0 0.5rem; }
.admin-side-foot a, .admin-side-foot .link-button { color: #c9d1de; text-align: left; }
.admin-main { padding: 2rem 2.5rem 4rem; max-width: 1400px; min-width: 0; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.admin-head h1 { font-size: var(--s4); font-stretch: 72%; font-weight: 800; margin: 0; }
.admin-main h2 { font-size: var(--s1); margin-top: 2rem; }
.admin-main section > h2:first-child { margin-top: 0; }
.back { font-size: 0.88rem; color: var(--steel); text-decoration: none; }
.back::before { content: "‹ "; }
.back:hover { color: var(--ink); text-decoration: underline; }
.lede-admin { color: var(--steel); max-width: 80ch; margin-bottom: 1.75rem; }
.hint { color: var(--steel); font-size: 0.85rem; margin: 0.35rem 0 1rem; }
.admin-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; margin: 2rem 0; }
.admin-cols-wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 1.5rem; }
.figures div { background: var(--surface); padding: 1.1rem 1.25rem; }
.figures dt { color: var(--steel); font-size: 0.85rem; font-weight: 600; }
.figures dd { margin: 0.15rem 0 0; font-size: var(--s3); font-weight: 800; font-stretch: 72%; }
.figures dd a { text-decoration: none; }
.figures dd a:hover { text-decoration: underline; }
.figures dd.sub { font-size: 0.85rem; font-weight: 500; font-stretch: 100%; color: var(--steel); }

.data { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; }
.data th, .data td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.data th { background: #f8f9fb; font-size: 0.8rem; color: var(--steel); font-weight: 650; white-space: nowrap; }
.data tbody tr:last-child td { border-bottom: 0; }
.data tbody tr:hover { background: #fafbfc; }
.data tr.off td { color: var(--steel); }
.data .check { width: 2rem; }
.data .actions { white-space: nowrap; text-align: right; }
.data .actions > * { display: inline; margin-left: 0.75rem; }
.data-compact th, .data-compact td { padding: 0.4rem 0.6rem; font-size: 0.88rem; }
.scroll-x { overflow-x: auto; }

.pill { display: inline-block; padding: 0.05rem 0.5rem; border-radius: 999px; font-size: 0.78rem; font-weight: 650; background: var(--tint); color: var(--ink-2); }
.pill-test { background: #fff1cc; color: #6b4800; }
.pill-active, .pill-paid, .pill-succeeded { background: #dff3e7; color: #0f5530; }
.pill-draft, .pill-pending, .pill-queued, .pill-running { background: #fff1cc; color: #6b4800; }
.pill-archived, .pill-cancelled { background: var(--tint); color: var(--steel); }
.pill-failed, .pill-refunded { background: #fde4e1; color: #8f1d13; }
.pill-fulfilled { background: #dde7fb; color: #1d3f91; }
.req { color: var(--danger); font-size: 0.78rem; font-weight: 600; }

.toolbar, .bulkbar { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 0.9rem; flex-wrap: wrap; }
.toolbar input[type="search"] { flex: 1 1 280px; width: auto; }
.toolbar select { width: auto; }
.bulkbar { font-size: 0.9rem; }
.bulkbar > span { margin-right: auto; color: var(--steel); }
.bulkbar label { margin: 0; font-weight: 500; color: var(--steel); }
.bulkbar select { width: auto; min-height: 38px; padding: 0.35rem 0.6rem; }
.bulkbar .button, .bulkbar button { min-height: 38px; padding: 0.35rem 0.9rem; }

.tabs { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--rule); margin-bottom: 1rem; }
.tabs a { padding: 0.5rem 0; text-decoration: none; font-weight: 600; color: var(--steel); border-bottom: 2px solid transparent; margin-bottom: -1px; text-transform: capitalize; }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }

.form { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
.form-side { position: sticky; top: 1rem; }
fieldset { border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); padding: 1.1rem 1.25rem 0.5rem; margin: 0 0 1.25rem; }
legend { font-weight: 800; font-stretch: var(--condensed); font-size: var(--s1); padding: 0 0.4rem; margin-left: -0.4rem; }
fieldset input, fieldset select, fieldset textarea { margin-bottom: 0.9rem; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.row-4, .row-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.row-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.row-4 > *, .row-5 > * { margin-bottom: 0.9rem; }
.check-label { display: flex; gap: 0.55rem; align-items: center; font-weight: 500; margin: 0.25rem 0 0.9rem; }
.form-panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin: 1.5rem 0 2rem; }
.form-panel h2 { margin-top: 0; }
.form-panel h3 { font-size: 1rem; font-stretch: var(--semi); margin: 0.5rem 0 0.75rem; color: var(--steel); }
.form-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.form-actions label { margin: 0; }
.form-actions select { width: auto; }
.form-inline { display: flex; align-items: flex-end; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.form-inline > div { flex: 1 1 160px; }
.form-stack { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 1.25rem; }
.form-stack input, .form-stack select, .form-stack textarea { margin-bottom: 0.9rem; }
.mapping select { min-width: 220px; }
.kv-totals { max-width: 360px; margin: 1rem 0 0 auto; }

.tree ul { margin-left: 1.25rem; border-left: 1px solid var(--rule); padding-left: 0.75rem; }
.tree-row { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.35rem 0; }
.tree-row > a { font-weight: 650; }
.tree-row form { margin-left: auto; }

.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 2rem; }
.login-card h1 { font-size: var(--s2); margin: 1.5rem 0 1rem; }
.login-card input { margin-bottom: 1rem; }

/* Icecat usage */
.usage { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; margin-bottom: 1.5rem; }
.usage h2 { margin-top: 0; }
.usage-line { margin-bottom: 0.6rem; }
.usage-line strong { font-size: var(--s2); font-stretch: 75%; }
.meter { appearance: none; width: 100%; height: 10px; border: 0; border-radius: 999px; background: var(--tint); overflow: hidden; display: block; }
.meter::-webkit-progress-bar { background: var(--tint); border-radius: 999px; }
.meter::-webkit-progress-value { background: var(--brand); border-radius: 999px; }
.meter::-moz-progress-bar { background: var(--brand); border-radius: 999px; }
.usage-days { margin-top: 0.75rem; }
.usage-days summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.usage-days table { margin-top: 0.5rem; max-width: 360px; }

/* Requests inbox */
.inquiries { display: grid; gap: 1rem; }
.inquiry { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--brand); border-radius: var(--radius-lg); padding: 1rem 1.25rem; }
.inquiry.done { border-left-color: var(--rule-strong); opacity: 0.8; }
.inquiry header { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.inquiry h2 { font-size: var(--s1); margin: 0; }
.inquiry time { margin-left: auto; color: var(--steel); font-size: 0.88rem; }
.inquiry-contact { display: flex; gap: 1.25rem; margin: 0.35rem 0 0.6rem; }
.inquiry-message { white-space: pre-wrap; max-width: 80ch; }
.kv-inline { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0 0 0.6rem; }
.kv-inline div { padding: 0; gap: 0.4rem; }
.pill-repair { background: #dde7fb; color: #1d3f91; }
.pill-quote { background: #dff3e7; color: #0f5530; }
.nav-count { display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem; padding: 0 0.35rem; border-radius: 999px; background: var(--sky); color: var(--ink); font-size: 0.75rem; margin-left: 0.35rem; }
.admin-logo img { width: 32px; height: 32px; }
.admin-logo .logo-word { font-size: 1.25rem; }
.logo-thumb { max-height: 32px; max-width: 120px; background: #fff; padding: 2px; border-radius: 4px; }
.logo-form { display: flex; gap: 0.5rem; align-items: center; }
.logo-form input[type="file"] { min-height: 38px; padding: 0.3rem; max-width: 260px; }

.strong-link { font-weight: 700; color: var(--brand); }
.button-small, button[type="submit"].button-small { min-height: 34px; padding: 0.3rem 0.8rem; font-size: 0.9rem; }

/* Feed category picker */
.picker-tools { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
.picker-tools input[type="search"] { max-width: 320px; }
.picker-tools .check-label { margin: 0; }
.picker { border: 1px solid var(--rule); border-radius: var(--radius-lg); max-height: 70vh; overflow: auto; background: var(--surface); }
.pick-section { border-bottom: 1px solid var(--rule); }
.pick-section:last-child { border-bottom: 0; }
.pick-section summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.7rem 1rem; cursor: pointer; background: #f8fafb; font-weight: 650; }
.pick-section summary:hover { background: var(--tint); }
.pick-parent { display: inline-flex; gap: 0.55rem; align-items: center; margin: 0; font-size: 0.95rem; }
.pick-count { color: var(--steel); font-weight: 500; font-size: 0.88rem; }
.pick-section .data { border: 0; border-radius: 0; }
.pick-section td label { font-weight: 500; margin: 0; font-size: inherit; }
.fetch-status { padding: 0.7rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--rule-strong); }
.fetch-ok { border-left-color: var(--go); }
.fetch-failed { border-left-color: var(--danger); }
.span-2 { grid-column: span 2; }

/* ===================================================== responsive */

@media (max-width: 1240px) {
  .masthead-phone { display: none; }
  .search-compact { width: 200px; }
}
/* Phones and small tablets: logo, menu button and cart on one row; the
   menu opens below as a full-width list. */
@media (max-width: 960px) {
  .masthead-main { flex-wrap: wrap; gap: 0.5rem 0.75rem; }
  .logo img { height: 44px; }
  .masthead-tools { gap: 0.5rem; }
  /* Menu button: icon only, left of the logo. */
  .menu-toggle {
    display: inline-grid; place-items: center; order: -1; width: 44px; height: 44px; margin-left: -10px;
    padding: 0; background: none; border: 0; border-radius: 999px; color: var(--ink); cursor: pointer;
  }
  .menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: var(--tint); }
  .menu-toggle[hidden] { display: none; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform 0.2s, top 0.2s, background-color 0.2s; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; width: 14px; }
  .menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; width: 20px; transform: rotate(-45deg); }
  @media (prefers-reduced-motion: reduce) { .menu-icon, .menu-icon::before, .menu-icon::after { transition: none; } }
  .masthead-tools, .search-compact + .masthead-tools { order: 3; margin-left: auto; margin-right: -6px; }
  /* iOS zooms into fields with text under 16px; keep them at 16px. */
  input, select, textarea, .search-compact input { font-size: 16px; }
  .search-compact { order: 5; flex-basis: 100%; width: auto; max-width: none; margin-left: 0; }
  .sitenav { order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--rule); padding-top: 0.25rem; }
  .js-menu .sitenav:not(.open) { display: none; }
  .sitenav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .sitenav-list > li { border-bottom: 1px solid var(--rule); }
  .sitenav-list > li > a, .products > summary { padding: 0.85rem 0.25rem; font-size: 1.05rem; border-radius: 0; }
  .sitenav-list a[aria-current], .products > summary[aria-current] { box-shadow: inset 3px 0 0 var(--brand); padding-left: 0.75rem; }
  .products > summary { justify-content: space-between; }
  .panel { position: static; box-shadow: none; border: 0; background: #f8fafb; }
  .panel-cats { grid-template-columns: 1fr 1fr; padding: 0.75rem 0.5rem; gap: 1rem; }
  .panel-foot { padding: 0.75rem 0.5rem 1rem; flex-direction: column; gap: 0.6rem; }
  .sitenav-phone { display: block; padding: 0.9rem 0.25rem; font-weight: 700; color: var(--brand); text-decoration: none; }
}
@media (max-width: 1080px) {
  .directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .company-band { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-aside { max-width: 52ch; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form { grid-template-columns: 1fr; }
  .form-side { position: static; }
  .row-4, .row-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {

  .listing { grid-template-columns: 1fr; gap: 0.75rem; }
  .filters-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem; list-style: none; cursor: pointer;
    font-weight: 700; padding: 0.55rem 0.9rem; min-height: 44px;
    background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius);
  }
  .filters-toggle::-webkit-details-marker { display: none; }
  .filters-toggle::before { content: ""; width: 16px; height: 12px; background: linear-gradient(currentColor 0 0) top/100% 2px no-repeat, linear-gradient(currentColor 0 0) center/70% 2px no-repeat, linear-gradient(currentColor 0 0) bottom/40% 2px no-repeat; }
  .filters-count { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; border-radius: 999px; background: var(--brand); color: #fff; font-size: 0.8rem; }
  .filters-wrap[open] .filters-toggle { border-color: var(--brand); }
  .filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 1.5rem; margin-top: 0.75rem; padding: 1rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
  .page-head { margin-bottom: 1rem; }
  .page-head .lede { font-size: 1rem; }
  .pdp, .pdp-details { grid-template-columns: 1fr; gap: 1.5rem; }
  .split { grid-template-columns: 1fr; }
  .staff { grid-template-columns: 1fr; }
  .photo-placeholder { aspect-ratio: 4 / 3; }
  .defs div { grid-template-columns: 1fr; gap: 0.2rem; }
  .pdp-gallery { position: static; }
  .pdp-media { aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-side nav { flex-direction: row; flex-wrap: wrap; }
  .admin-side-foot { margin-top: 0; flex-direction: row; }
  .admin-main { padding: 1.25rem; }
  .admin-cols, .admin-cols-wide { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 1rem; }
  .directory { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .grid, .grid-3 { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .brand-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-band { padding: 1.5rem 1.25rem; }
  .logo img { height: 40px; }
  .panel-cats { grid-template-columns: 1fr; }
  .tile-body { padding: 0.7rem 0.75rem 0.2rem; }
  .tile-foot { padding: 0.5rem 0.75rem 0.75rem; }
  .price { font-size: 1.05rem; }
  .hero-grid { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .search-hero input, .search-hero button[type="submit"] { height: 56px; font-size: 1rem; }
  .search-hero button[type="submit"] { padding: 0 1.1rem; }
  .page-head h1 { font-size: var(--s4); }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
  .cart-table td { border: 0; padding: 0.2rem 1rem; }
  .cart-table td:first-child { grid-column: 1 / -1; }
  .figures { grid-template-columns: 1fr 1fr; }
  .row, .row-4, .row-5 { grid-template-columns: 1fr; }
}
