@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap');
/* Shared brand tokens — themed by [data-brand] on <html>.
 * Canonical source for the four web properties. MUST stay in lock-step with
 * edge/src/brands.ts and docs/web-platform/design-system.md — change one, change all.
 * Set <html data-brand="forge|laser|welding|nextday"> and the brand custom
 * properties below switch; styles/base.css consumes them via var(--brand) etc. */

:root {
  /* layout */
  --maxw: 1140px;
  --pad: clamp(16px, 4vw, 28px);
  --gap: 24px;
  --radius: 16px;
  --radius-sm: 9px;
  --radius-pill: 999px;
  /* type scale */
  --fs-eyebrow: .8rem;
  --fs-h1: clamp(2.3rem, 5.5vw, 3.6rem);
  --fs-h2: clamp(1.55rem, 3.2vw, 2.2rem);
  --fs-h3: 1.15rem;
  --lh-tight: 1.08;
  --lh-body: 1.6;
  /* neutral surface palette (brand-agnostic) */
  --bg: #ffffff;
  --fg: #16181c;
  --muted: #5b6168;
  --line: #e7e9ee;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(16,18,28,.05), 0 12px 32px -12px rgba(16,18,28,.14);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font-body);
  /* WCAG AA: --brand-strong doubles as a button-hover *background* in places,
   * so it can't always be dark enough to read as *text* on white/tint. --brand-text
   * is the AA-safe colour for brand-coloured TEXT on light surfaces (links, eyebrows,
   * chips, price-on-request, etc.). Defaults to --brand-strong (already AA for the
   * dark brand palettes); the light amber welding brand overrides it below. */
  --brand-text: var(--brand-strong);
  /* AA-safe error/validation red on white. Brands may override (welding does). */
  --error: #C42A1A;
}

[data-brand="forge"] {
  --brand: #1E5A3C; --brand-strong: #16432D; --brand-bright: #3E8E63;
  --ink: #0E1210; --tint: #E4EAE2; --on: #ffffff;
  --font-display: "Fraunces", Georgia, serif;
}
[data-brand="laser"] {
  --brand: #F71D25; --brand-strong: #C50D14; --brand-bright: #FF5A54;
  --ink: #1A1210; --tint: #F6EBEA; --on: #ffffff;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}
[data-brand="welding"] {
  /* Wider site-wide content container to match the live welding store (~1400px).
   * .wrap keeps its inline padding and max-width:var(--maxw), so this stays fully
   * fluid below 1400px on tablet/mobile — only the desktop cap widens. */
  --maxw: 1400px;
  /* --brand-strong is the button-hover *background* (with the dark --on text on it),
   * so it's kept light enough for dark text to stay AA (#C07414 ⇒ 4.66:1). Brand-coloured
   * TEXT on white/tint instead uses the darker --brand-text (#8A530F ⇒ 6.3:1 on white,
   * 5.2:1 on tint). --deal/--error darkened from #E5341F (4.34 — failed) to #C42A1A (5.7). */
  --brand: #EAAE1E; --brand-strong: #C07414; --brand-bright: #F5BF44; --brand-text: #8A530F;
  --ink: #1C1C1E; --tint: #F8E8C9; --on: #1C1C1E; --deal: #C42A1A; --error: #C42A1A;
  /* HMT brand palette (promotions band + co-brand callouts). */
  --hmt-orange: #EC6408; --hmt-navy: #1F384B; --hmt-gold: #E9AD14;
  --font-display: "Archivo", system-ui, sans-serif;
}
[data-brand="nextday"] {
  --brand: #1F6FEB; --brand-strong: #10408F; --brand-bright: #38BDF8;
  --ink: #0C1220; --tint: #E7F0FE; --on: #ffffff;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  /* landing pages stay light for now; reserved for future dark surfaces */
}

/* Shared landing-page component library. Themed only via the custom properties
 * in tokens.css (var(--brand) …). Brand-neutral: works for any [data-brand]. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--fg); background: var(--bg);
  font-family: var(--font-body); font-size: 17px; line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); line-height: var(--lh-tight); color: var(--ink); margin: 0 0 .4em; }
h1 { font-size: var(--fs-h1); letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); letter-spacing: -.01em; }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
a { color: var(--brand-text); text-underline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.muted { color: var(--muted); }
.eyebrow { font-size: var(--fs-eyebrow); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); font-weight: 700; margin: 0 0 12px; }
section { padding: clamp(30px, 4.5vw, 50px) 0; }
section.alt { background: var(--tint); }
.section-head { max-width: 60ch; margin: 0 auto clamp(24px,4vw,36px); text-align: center; }

/* header */
header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--ink); text-decoration: none; }
.logo .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: var(--on); display: grid; place-items: center; flex: 0 0 auto; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--fg); text-decoration: none; font-weight: 600; font-size: .96rem; }
.nav-links a:hover { color: var(--brand-text); }
.navtoggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 8px; color: var(--ink); cursor: pointer; }
.i { width: 1.1em; height: 1.1em; vertical-align: -.18em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: .98rem; text-decoration: none; border-radius: var(--radius-pill); padding: 12px 22px; border: 1.5px solid transparent; cursor: pointer; transition: transform .08s, background .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand) 60%, transparent); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: transparent; color: var(--brand-text); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.btn-ghost:hover { background: var(--tint); }

/* hero */
.hero { background: linear-gradient(180deg, var(--tint), var(--bg)); padding: clamp(56px,9vw,104px) 0 clamp(40px,6vw,72px); }
.hero h1 { max-width: 17ch; }
.lede { font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 56ch; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
/* homepage hero with a right-column image. Text stays on the light background
 * (dark ink, fully legible); the .hero-media picture sits alongside it. */
.hero-cols { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px,5vw,56px); align-items: center; }
.hero-cols .hero-copy { min-width: 0; }
.hero-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 820px) { .hero-cols { grid-template-columns: 1fr; } .hero-media { order: -1; aspect-ratio: 16 / 9; } }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.chip { font-size: .82rem; font-weight: 600; color: var(--brand-text); background: color-mix(in srgb, var(--brand) 10%, var(--bg)); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); border-radius: var(--radius-pill); padding: 6px 13px; }
/* Homepage header banner — greyed-over image hero (same treatment as the top of the category pages). */
.hero-banner { display: flex; align-items: center; }
.hero-banner .hero-copy { max-width: 640px; }
.hero-banner .eyebrow { color: rgba(255,255,255,.72); }
.hero-banner .lede { color: rgba(255,255,255,.9); }
.hero-banner .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-banner a.chip { color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.4); text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.hero-banner a.chip:hover, .hero-banner a.chip:focus-visible { background: rgba(255,255,255,.18); border-color: #fff; }
.hero-banner .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }
.hero-banner .btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* layout helpers */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px,5vw,56px); align-items: center; }
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card .n { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--on); display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }
.card img { border-radius: var(--radius-sm); margin: -4px -4px 14px; width: calc(100% + 8px); aspect-ratio: 4/3; object-fit: cover; }
.tag { font-size: .8rem; font-weight: 600; color: var(--muted); }

/* cta / forms */
.cta { max-width: 640px; margin: 0 auto; text-align: center; }
.qform { display: grid; gap: 12px; margin-top: 22px; text-align: left; }
.qform .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qform input, .qform textarea { width: 100%; font: inherit; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--fg); }
.qform input:focus, .qform textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.qform button { background: var(--brand); color: var(--on); border: none; border-radius: var(--radius-pill); padding: 14px; font-weight: 700; font-size: 1rem; cursor: pointer; }
.qform button:hover { background: var(--brand-strong); }
.filewrap label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }

/* footer */
footer { background: var(--ink); color: color-mix(in srgb, #fff 78%, var(--ink)); padding: 44px 0; font-size: .92rem; }
.foot { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
footer a { color: color-mix(in srgb, #fff 70%, var(--ink)); }
footer .fname { color: #fff; font-family: var(--font-display); font-weight: 700; margin-bottom: 6px; }

@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; max-height: calc(100dvh - 64px); overflow: hidden; }
  .nav-links a { padding: 13px 12px; border-radius: 9px; }
  .nav-links a.btn { margin: 6px 4px; justify-content: center; }
  .navtoggle { display: inline-flex; }
  .split { grid-template-columns: 1fr; }
  .qform .row { grid-template-columns: 1fr; }
}

/* Commerce component library — product grid, product page, cart, checkout.
 * Themed entirely via tokens.css (var(--brand) …). Brand-neutral; works for any
 * [data-brand]. Loaded after base.css on shop/product/checkout pages. */

/* ── shop toolbar + category rail ─────────────────────────────────── */
.shop-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.shop-head h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.shop-layout { display: grid; grid-template-columns: 224px 1fr; gap: clamp(20px, 4vw, 38px); align-items: start; }
.cats { position: sticky; top: 80px; display: grid; gap: 2px; }
.cats a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 9px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: .94rem; }
.cats a:hover { background: var(--tint); }
.cats a.active { background: var(--brand); color: var(--on); }
.cats a .ct { opacity: .6; font-weight: 500; }
.shop-bar { display: flex; gap: 10px; align-items: center; }
.search { flex: 1; min-width: 0; }
.search input { width: 100%; font: inherit; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-pill); }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.select { font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }

/* ── shop discovery toolbar (sort / filters / count / pager) ──────── */
.shop-tools { margin-bottom: 16px; }
.shop-tools-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.result-count { font-size: .9rem; font-weight: 600; color: var(--muted); margin-right: auto; }
.sortctl { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.sortctl .select { padding: 9px 11px; }
.filterbtn { font: inherit; font-weight: 600; font-size: .9rem; padding: 9px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-pill); background: var(--bg); color: var(--fg); cursor: pointer; }
.filterbtn:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.filterbtn[aria-expanded="true"] { border-color: var(--brand); background: var(--tint); color: var(--brand-text); }
.filter-panel { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px; margin-top: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.filter-panel .fgroup { border: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.filter-panel legend { font-size: .82rem; font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 2px; }
.prange { display: flex; align-items: center; gap: 8px; }
.prange label { display: inline-flex; flex-direction: column; gap: 4px; font-size: .74rem; font-weight: 600; color: var(--muted); }
.prange input { width: 92px; font: inherit; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.prange input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.prange span { align-self: flex-end; padding-bottom: 9px; color: var(--muted); }
.favail { display: inline-flex; flex-wrap: wrap; gap: 7px; }
.favail button { font: inherit; font-size: .85rem; font-weight: 600; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-pill); background: var(--bg); color: var(--fg); cursor: pointer; }
.favail button:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.favail button.on { border-color: var(--brand); background: var(--brand); color: var(--on); }
.fclear { font: inherit; font-size: .85rem; font-weight: 600; color: var(--brand-text); background: none; border: none; cursor: pointer; padding: 9px 4px; align-self: flex-end; }
.fclear:hover { text-decoration: underline; }
.linklike { font: inherit; color: var(--brand-text); background: none; border: none; cursor: pointer; padding: 0; font-weight: 600; text-decoration: underline; }
.loadmore-wrap { display: flex; justify-content: center; margin-top: clamp(22px, 4vw, 34px); }
.loadmore-wrap .btn { min-width: 220px; justify-content: center; }

/* ── faceted filter rail (welding: injected by commerce.js) ───────────
 * A Shopify-style faceted sidebar (brand / price / availability / dynamic
 * option facets) that sits left of the grid on desktop and slides in as a
 * drawer on mobile. Welding-only — the markup is only emitted under
 * IS_WELDING, so these rules never touch the Forge grid. Reuses the dark
 * cart-drawer scrim pattern. */
.facet-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(20px, 3vw, 34px); align-items: start; }
.facet-main { min-width: 0; }   /* let the grid shrink inside the shell */
/* the sort/count/Filters row above the grid */
.facet-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.facet-bar .result-count { margin-right: auto; }
.facet-bar .sortctl { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.facet-bar .sortctl .select { padding: 9px 11px; }
.facet-open { display: none; align-items: center; gap: 8px; }   /* mobile-only trigger */
.facet-open .i { width: 1.05em; height: 1.05em; }
.facet-open .fcnt { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: var(--on); font-size: .68rem; font-weight: 800; }
/* the rail itself */
.facet-rail { position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 96px); overflow-y: auto; display: grid; gap: 4px; padding-right: 4px; }
.facet-rail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.facet-rail-head h2 { font-size: 1rem; margin: 0; }
.facet-close { display: none; background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; }
.facet-close .i { width: 1.4em; height: 1.4em; }
.facet-rail .fclear { align-self: start; padding: 4px 0 8px; }
.fgrp { border-top: 1px solid var(--line); padding: 4px 0; }
.fgrp:first-of-type { border-top: none; }
.fgrp-h { margin: 0; }
.fgrp-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; font: inherit; font-weight: 700; font-size: .92rem; color: var(--ink); background: none; border: none; cursor: pointer; padding: 9px 2px; text-align: left; }
.fgrp-chev { width: 1.05em; height: 1.05em; flex: none; transition: transform .15s; color: var(--muted); }
.fgrp-toggle[aria-expanded="false"] .fgrp-chev { transform: rotate(-90deg); }
.fgrp-body { padding: 2px 2px 10px; }
.fopts { display: grid; gap: 2px; }
.fopts-scroll { max-height: 240px; overflow-y: auto; padding-right: 4px; }
.fopt { display: flex; align-items: center; gap: 9px; padding: 6px 6px; border-radius: 8px; cursor: pointer; font-size: .9rem; color: var(--fg); }
.fopt:hover { background: var(--tint); }
.fopt input { width: 17px; height: 17px; flex: none; accent-color: var(--brand); cursor: pointer; }
.fopt input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.fopt-t { flex: 1; line-height: 1.3; }
.fopt-n { font-size: .78rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.fopt.off { opacity: .42; cursor: default; }
.fopt.off:hover { background: none; }
.facet-rail .prange { display: flex; align-items: center; gap: 8px; }
.facet-rail .prange label { display: inline-flex; flex-direction: column; gap: 4px; font-size: .74rem; font-weight: 600; color: var(--muted); flex: 1; }
.facet-rail .prange input { width: 100%; font: inherit; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.facet-rail .prange input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.facet-rail .prange span { align-self: flex-end; padding-bottom: 9px; color: var(--muted); }
/* active-filter chips */
.facet-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.facet-chips[hidden] { display: none; }
.fchip { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: .82rem; font-weight: 600; padding: 6px 8px 6px 12px; border: 1.5px solid color-mix(in srgb, var(--brand) 30%, var(--line)); border-radius: var(--radius-pill); background: color-mix(in srgb, var(--brand) 8%, var(--bg)); color: var(--brand-text); cursor: pointer; }
.fchip .i { width: 1.05em; height: 1.05em; }
.fchip:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 16%, var(--bg)); }
.fchip-clear { padding: 6px 12px; border-style: dashed; background: none; }
/* mobile drawer scrim (reuses .scrim visual language) */
.facet-scrim { position: fixed; inset: 0; background: rgba(8,10,16,.42); opacity: 0; pointer-events: none; transition: opacity .22s; z-index: 55; }
.facet-scrim.open { opacity: 1; pointer-events: auto; }
body.facet-lock { overflow: hidden; }

/* Facet rail → slide-in drawer on mobile/tablet. Single-column grid, the rail
 * is taken out of flow as a fixed left drawer, and the "Filters" button shows. */
@media (max-width: 880px) {
  .facet-shell { grid-template-columns: 1fr; }
  .facet-open { display: inline-flex; }
  .facet-close { display: inline-flex; }
  .facet-rail {
    position: fixed; inset: 0 auto 0 0; top: 0; z-index: 60;
    width: min(340px, 88vw); max-height: none; height: 100%;
    background: var(--bg); box-shadow: 16px 0 40px -16px rgba(0,0,0,.3);
    padding: 18px 18px 40px; border-radius: 0;
    transform: translateX(-100%); transition: transform .22s;
    overflow-y: auto;
  }
  .facet-rail.open { transform: none; }
  .facet-rail-head h2 { font-size: 1.15rem; }
}
@media (max-width: 560px) {
  .facet-bar .result-count { flex-basis: 100%; margin-right: 0; }
  .facet-bar .sortctl { flex: 1; }
  .facet-bar .sortctl .select { flex: 1; }
}

/* ── product grid + card ──────────────────────────────────────────── */
.prod-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); }
.pcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); text-decoration: none; color: inherit; transition: transform .1s, box-shadow .15s, border-color .15s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.pcard .pim { aspect-ratio: 1; background: var(--tint); display: grid; place-items: center; overflow: hidden; }
.pcard .pim picture { display: contents; }
.pcard .pim img { width: 100%; height: 100%; object-fit: contain; padding: 10px; mix-blend-mode: multiply; }
.pcard .pb { padding: 13px 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard h3 { font-size: 1rem; margin: 0; line-height: 1.25; }
.pcard .ppr { margin-top: auto; font-weight: 800; color: var(--ink); }
.pcard .ppr small { font-weight: 500; color: var(--muted); font-size: .76rem; }
/* Price-on-request label (made-to-order / not-yet-priced lines) — grid + PDP. */
.por { color: var(--brand-text); font-weight: 800; }
.pcard .ppr .por { font-size: .95rem; }
.pdp .price .por { font-size: 1.35rem; }
.badge { align-self: flex-start; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--on); background: var(--brand); border-radius: var(--radius-pill); padding: 3px 9px; }

/* ── card badges (New in / Made to order) ─────────────────────────── */
.pim { position: relative; }
.pbadge { position: absolute; top: 9px; left: 9px; z-index: 2; font-size: .64rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border-radius: var(--radius-pill); padding: 3px 9px; line-height: 1.5; }
.pbadge-new { background: var(--brand); color: var(--on); }
.pbadge-order { background: color-mix(in srgb, var(--bg) 88%, var(--ink)); color: var(--ink); border: 1px solid var(--line); }

/* ── favourite / wishlist heart toggle ────────────────────────────── */
.favtoggle { position: absolute; top: 7px; right: 7px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: color-mix(in srgb, var(--bg) 82%, transparent); color: var(--muted); cursor: pointer; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); transition: color .12s, border-color .12s, transform .1s; }
.favtoggle .i { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.favtoggle:hover { color: var(--brand-text); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.favtoggle:active { transform: scale(.92); }
.favtoggle.on { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.favtoggle.on .i { fill: currentColor; }
.favtoggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.favtoggle-lg { position: static; display: flex; align-items: center; width: auto; height: 44px; gap: 8px; padding: 0 16px; border-radius: var(--radius-pill); font: inherit; font-weight: 700; font-size: .92rem; color: var(--fg); background: var(--bg); }
.favtoggle-lg.on { color: var(--brand-text); background: var(--tint); }
.favtoggle-lg .favtoggle-t { line-height: 1; }
.favbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; color: var(--fg); text-decoration: none; }
.favbtn:hover { color: var(--brand-text); }
.favbtn .i { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.7; }
.favbtn .cnt { position: absolute; top: -7px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: var(--on); font-size: .68rem; font-weight: 800; display: grid; place-items: center; }

/* ── sub-page head + category landing pages ───────────────── */
/* Compact tinted banner shared by interior pages. */
.pagehead { background: var(--tint); border-bottom: 1px solid var(--line); padding: clamp(36px,6vw,60px) 0; }
.pagehead h1 { max-width: 22ch; margin-bottom: 10px; }
.pagehead .lede { margin-top: 0; }
/* Tinted category banner (sits above the locked product grid). Pairs with the
 * shared .pagehead but adds a count line + a "back to shop" crumb row. */
.cat-hero .kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-text); margin: 0 0 12px; }
.cat-hero .kicker a { color: var(--muted); text-decoration: none; }
.cat-hero .kicker a:hover { color: var(--brand-text); }
.cat-hero .kicker .sep { opacity: .5; }
.cat-hero .count { font-size: .9rem; font-weight: 600; color: var(--muted); margin-top: 4px; }
/* Centred call-to-action under a grid / strip ("Browse the full shop"). */
.shop-cta { text-align: center; margin-top: clamp(16px, 2.5vw, 24px); }
/* Homepage "Popular lines": the featured pstrip ships its OWN "Featured" <h2>
 * (redundant with the section head) plus a 36px top margin — that stacked to a
 * ~100px gap under the heading. Hide the duplicate heading + tighten to ~20%. */
#featured .pstrip { margin-top: 4px; }
#featured .pstrip h2 { display: none; }

/* ── horizontal product strip (featured / recently viewed) ──── */
.pstrip { margin-top: clamp(36px, 6vw, 56px); }
.pstrip h2 { font-size: 1.2rem; margin: 0 0 16px; }
.pstrip-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: var(--gap); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.pstrip-row .pcard { scroll-snap-align: start; }
/* "You may also like" vs "Recently viewed" — same card size (both use .pstrip-row
 * grid-auto-columns above), but styled as two clearly separate blocks. Related is
 * the plain section; recent gets a divider, a tinted band and a muted heading. */
.pstrip-related h2 { display: flex; align-items: center; gap: 10px; }
.pstrip-related h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pstrip-recent { margin-top: clamp(30px, 5vw, 44px); padding-top: clamp(24px, 4vw, 34px); border-top: 1px solid var(--line); }
.pstrip-recent h2 { font-size: 1rem; font-weight: 700; letter-spacing: .02em; color: var(--muted); text-transform: uppercase; }
.pstrip-recent .pstrip-row { background: color-mix(in srgb, var(--tint) 40%, #fff); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 10px; }

/* ── product page ─────────────────────────────────────────────────── */
/* Generous column gap between gallery + buy box, but a tighter ROW gap so the
 * full-width detail band (description) sits closer under the buy row rather than
 * leaving a big empty gap above the description. */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; column-gap: clamp(24px,5vw,52px); row-gap: clamp(16px,3vw,30px); align-items: start; }
.pdp .gallery { border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.pdp .gallery picture { display: contents; }
.pdp .gallery img { width: 100%; height: 100%; object-fit: contain; padding: 24px; mix-blend-mode: multiply; }
.pdp h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.pdp .price { font-size: 1.7rem; font-weight: 800; color: var(--ink); margin: 8px 0 2px; }
.pdp .price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
/* promo saving: struck standard price + saving badge (HMT Q3 promo) */
.wasline { color: var(--muted); font-weight: 600; font-size: .86em; margin-right: 7px; white-space: nowrap; }
.was { text-decoration: line-through; }
.save { display: inline-block; background: var(--hmt-orange, #EC6408); color: #fff; font-weight: 800; font-size: .74em; padding: 1px 8px; border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.pdp .price .wasline { font-size: 1.05rem; }
.pdp .saveline { margin: 8px 0 2px; font-size: .96rem; color: var(--ink); font-weight: 600; }
.pdp .saveline .save { font-size: .82rem; margin-right: 8px; }
.opt { margin: 18px 0; }
.opt label, .opt .opt-label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; position: relative; }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { padding: 9px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; background: var(--bg); }
.size[aria-pressed="true"] { border-color: var(--brand); background: var(--tint); color: var(--brand-text); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.qty button { width: 38px; height: 40px; border: none; background: var(--bg); font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty input { width: 44px; text-align: center; border: none; font: inherit; }
.pdp .buy { display: flex; gap: 12px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.pdp .meta { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; font-size: .92rem; color: var(--muted); display: grid; gap: 6px; }
.pdp .gallery { position: relative; }
.pdp .gallery .favtoggle { top: 12px; right: 12px; width: 42px; height: 42px; }
.pdp .gallery .favtoggle .i { width: 22px; height: 22px; }
.finish-note { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: .86rem; color: var(--muted); }
.finish-note .i { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: var(--brand); stroke-width: 1.7; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.share-lbl { font-size: .82rem; font-weight: 700; color: var(--muted); }
.sharebtn { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: .85rem; font-weight: 600; padding: 8px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-pill); background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer; }
.sharebtn:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); color: var(--brand-text); }
.sharebtn .i { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.sharebtn.ok { border-color: var(--brand); color: var(--brand-text); background: var(--tint); }
.sharebtn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.spec-list { margin: 0 0 16px; display: grid; gap: 0; max-width: 52ch; }
.spec-row { display: grid; grid-template-columns: 38% 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dotted var(--line); font-size: .92rem; }
.spec-row:last-child { border-bottom: none; }
.spec-row dt { font-weight: 700; color: var(--ink); margin: 0; }
.spec-row dd { margin: 0; color: var(--muted); }
/* Full-width detail band under the image/buy row (description, spec table,
 * delivery/returns, "more from range"). A direct .pdp child spanning both cols. */
/* Full page/content width — no reading-measure cap (user preference). */
.pdp-detail { grid-column: 1 / -1; margin-top: 18px; }
.pdp-detail .pdesc { margin-top: 0; margin-bottom: 0; }
/* Kill the trailing bottom margin of the description's last block so the next
 * section sits close (no big whitespace gap under the description). */
.pdp-detail .pdesc .pdesc-body > *:last-child { margin-bottom: 0; }
.pdp-detail .info-block { margin-top: 14px; display: grid; gap: 10px; }
.pdp-detail .spec-list { max-width: none; }
/* PDP accordions (Delivery / Specifications / Returns) — styled as full-width,
 * obviously-clickable bars rather than a bare arrow, with a chevron that rotates
 * open. Scoped to .pdp-detail so it doesn't touch the FAQ accordion. */
.pdp-detail details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.pdp-detail summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); background: color-mix(in srgb, var(--tint) 45%, #fff); }
.pdp-detail summary::-webkit-details-marker { display: none; }
.pdp-detail summary:hover { background: color-mix(in srgb, var(--tint) 70%, #fff); }
.pdp-detail summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.pdp-detail summary::after { content: ""; flex: 0 0 auto; width: 11px; height: 11px; margin-left: auto; border-right: 2px solid var(--brand-text); border-bottom: 2px solid var(--brand-text); transform: rotate(45deg); transition: transform .2s ease; }
.pdp-detail details[open] summary { border-bottom: 1px solid var(--line); }
.pdp-detail details[open] summary::after { transform: rotate(225deg); }
.pdp-detail details > :not(summary) { padding: 14px 18px; margin: 0; }
.pdp-detail details .spec-list { padding: 6px 18px 14px; }
.more-range { margin: 20px 0 0; }
.more-range a { font-weight: 700; color: var(--brand-text); text-decoration: none; }
.more-range a:hover { text-decoration: underline; }
.pdp-detail .meta { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; font-size: .92rem; color: var(--muted); display: grid; gap: 6px; }

/* ── PDP delivery callout (informational, under the buy/qty area) ──────────────
 * Deliberately low-profile: a slim single line (icon + one/two sentences), NOT a
 * big bordered box. The full per-profile bullets live in the "Delivery &
 * collection" accordion; the real per-order charge is computed elsewhere. */
.delivery-callout { margin: 12px 0 0; display: flex; align-items: baseline; gap: 7px; font-size: .82rem; line-height: 1.4; color: var(--muted); padding: 6px 0 0; border-top: 1px solid var(--line); }
.delivery-callout strong { color: var(--fg); font-weight: 700; }
.delivery-callout svg { width: 1.05em; height: 1.05em; flex: 0 0 auto; align-self: flex-start; margin-top: .12em; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Per-product bullets inside the "Delivery & collection" accordion. */
.dc-bullets { margin: 4px 0; padding: 2px 0 2px 1.8em; display: grid; gap: 6px; list-style: disc; }
.dc-bullets li { line-height: 1.5; color: var(--fg); }
.dc-bullets strong { color: var(--ink); font-weight: 700; }

/* ── cart drawer ──────────────────────────────────────────────────── */
.cartbtn { position: relative; }
.cartbtn .cnt { position: absolute; top: -7px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: var(--on); font-size: .68rem; font-weight: 800; display: grid; place-items: center; }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); background: var(--bg); box-shadow: -16px 0 40px -16px rgba(0,0,0,.3); transform: translateX(100%); transition: transform .22s; z-index: 60; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.scrim { position: fixed; inset: 0; background: rgba(8,10,16,.42); opacity: 0; pointer-events: none; transition: opacity .22s; z-index: 55; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer .items { flex: 1; overflow: auto; padding: 8px 20px; }
.sitems { margin-bottom: 6px; }
.sitem { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sitem picture { display: contents; }
.sitem img { width: 48px; height: 48px; object-fit: contain; background: var(--tint); border-radius: 8px; }
.sitem .sn { font-weight: 600; font-size: .9rem; line-height: 1.25; }
.sitem .tag { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.sitem .sp { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.citem { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.citem picture { display: contents; }
.citem img { width: 56px; height: 56px; object-fit: contain; background: var(--tint); border-radius: 8px; }
.citem .cn { font-weight: 600; font-size: .92rem; }
.citem .cx { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .85rem; }
.drawer footer { padding: 18px 20px; border-top: 1px solid var(--line); }
.subtotal { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; }

/* ── checkout ─────────────────────────────────────────────────────── */
.checkout { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px,5vw,48px); align-items: start; }
.formcard { display: grid; gap: 14px; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; }
.fieldset h2 { font-size: 1.1rem; margin: 0 0 4px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field input, .field select { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.field label { font-size: .82rem; font-weight: 600; color: var(--muted); display: block; margin-bottom: 5px; }
.field input.invalid { border-color: var(--error, var(--deal, #C42A1A)); }
.field input.invalid:focus { border-color: var(--error, var(--deal, #C42A1A)); }
.ferr { color: var(--error, var(--deal, #C42A1A)); font-size: .78rem; font-weight: 600; margin-top: 5px; }
.summary { position: sticky; top: 80px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--card); }
.sline { display: flex; justify-content: space-between; padding: 7px 0; font-size: .95rem; }
.sline.tot { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 800; font-size: 1.15rem; }

@media (max-width: 880px) {
  .shop-layout { grid-template-columns: 1fr; }
  .cats { position: static; grid-auto-flow: column; overflow-x: auto; padding-bottom: 6px; }
  .pdp, .checkout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .shop-tools-row { gap: 10px; }
  .result-count { flex-basis: 100%; margin-right: 0; }
  .sortctl { flex: 1; }
  .sortctl .select { flex: 1; }
  .filter-panel { gap: 16px; }
  .filter-panel .fgroup, .prange { width: 100%; }
  .prange input { flex: 1; width: auto; }
}

/* header search icon (links to /search/) */
.navsearch { display: inline-flex; align-items: center; justify-content: center; color: var(--fg); text-decoration: none; }
.navsearch:hover { color: var(--brand-text); }
.navsearch .i { width: 1.2em; height: 1.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* visible header search form (injected by commerce.js paintHeaderSearch, sits in
 * the nav before the magnifier icon). Light-theme base here; the dark welding
 * header overrides the colours further down. */
.hdr-search { display: inline-flex; align-items: center; max-width: 260px; border: 1.5px solid var(--line); border-radius: var(--radius-pill); background: var(--bg); overflow: hidden; }
.hdr-search input { flex: 1 1 auto; min-width: 0; width: 160px; font: inherit; font-size: .9rem; padding: 8px 6px 8px 14px; border: none; background: transparent; color: var(--fg); }
.hdr-search input::placeholder { color: var(--muted); }
.hdr-search input:focus { outline: none; }
.hdr-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.hdr-search button { flex: 0 0 auto; border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 8px 12px; line-height: 1; }
.hdr-search button:hover { color: var(--brand-text); }
@media (max-width: 1040px) { .hdr-search { max-width: 200px; } .hdr-search input { width: 120px; } }
@media (max-width: 760px) { .hdr-search { order: -1; max-width: none; width: 100%; margin-bottom: 6px; } .hdr-search input { width: auto; } }

/* newsletter signup (footer capture + homepage inline block) */
.newsletter { display: grid; gap: 8px; }
.newsletter h3 { margin: 0 0 2px; }
.newsletter p { margin: 0; font-size: .92rem; color: var(--muted); }
.nl-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.nl-form .nl-field { flex: 1; min-width: 200px; display: grid; gap: 4px; }
.nl-form label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.nl-form input[type=email] { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--fg); }
.nl-form input[type=email]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.nl-form input.invalid { border-color: var(--error, var(--deal, #C42A1A)); }
.nl-form button { font: inherit; font-weight: 700; background: var(--brand); color: var(--on); border: none; border-radius: var(--radius-pill); padding: 12px 20px; cursor: pointer; white-space: nowrap; }
.nl-form button:hover { background: var(--brand-strong); }
.nl-form button:disabled { opacity: .6; cursor: progress; }
.nl-err { color: var(--error, var(--deal, #C42A1A)); font-size: .78rem; font-weight: 600; flex-basis: 100%; }
.nl-ok { font-weight: 600; color: var(--brand-text); }
.nl-ok .tick { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 18%, var(--card)); color: var(--brand-text); font-size: .85rem; margin-right: 6px; vertical-align: -5px; }
.newsletter-inline { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 32px); max-width: 640px; margin: 0 auto; text-align: center; }
.newsletter-inline .nl-form { justify-content: center; text-align: left; }
footer .newsletter { max-width: 30ch; }
footer .newsletter h3 { color: #fff; font-family: var(--font-display); font-size: 1.02rem; }
footer .newsletter p { color: color-mix(in srgb, #fff 72%, var(--ink)); }
footer .newsletter label { color: color-mix(in srgb, #fff 60%, var(--ink)); }
footer .nl-form input[type=email] { background: color-mix(in srgb, #fff 92%, var(--ink)); border-color: transparent; color: var(--ink); }
footer .nl-ok { color: #fff; }

/* order confirmation (/order/) */
.order-done { text-align: center; max-width: 60ch; margin: 8px auto 0; }
.order-done h1 { margin: 14px 0 6px; }
.order-done .tick { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; background: color-mix(in srgb, var(--brand) 16%, var(--card)); color: var(--brand-text); }
.orderref { margin: 14px 0 0; font-size: .95rem; color: var(--muted); }
.orderref strong { color: var(--ink); letter-spacing: .02em; }

/* favourites / wishlist page (/favourites/) */
.fav-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 20px; }
.fav-head h1 { margin: 0; }
.fav-head .favcount { font-size: .92rem; font-weight: 600; color: var(--muted); }

/* ── content pages — faq / care / news ────────────────────────────── */
/* Accessible <details> accordion (FAQ). Keyboard + screen-reader native. */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 48px 18px 20px; font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); position: relative; border-radius: var(--radius-sm); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; line-height: 1; color: var(--brand-text); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .ans { padding: 4px 20px 18px; }
.faq .ans p { margin: 12px 0 0; color: var(--muted); font-size: .98rem; }
.faq .ans p:first-child { margin-top: 12px; }
.faq .ans a { font-weight: 600; }
.faq-group { margin: 0 auto clamp(28px,5vw,40px); max-width: 760px; }
.faq-group > h2 { font-size: 1.3rem; margin: 0 0 14px; }

/* Care / material guide — prose + tip callouts */
.prose { max-width: none; margin: 0; }
.prose h2 { margin-top: 0; }
.prose h3 { margin: 28px 0 6px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }

/* ── content pages: use the width + break up the text ─────────────────────── */
/* A wide banner image directly under the page hero (below .pagehead). */
.content-hero { max-width: var(--maxw); margin: 4px auto 14px; }
.content-hero img { width: 100%; height: clamp(150px, 15vw, 200px); object-fit: cover; object-position: center 42%; border-radius: var(--radius); display: block; }
.content-hero figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; text-align: center; }
/* Inline article figures — float beside the prose on wide screens, full-width on mobile. */
figure.prose-fig { margin: 6px 0 18px; }
.prose-fig img { width: 100%; height: auto; border-radius: var(--radius); display: block; box-shadow: var(--shadow); background: #fff; }
.prose-fig figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
@media (min-width: 760px) {
  .prose-fig.right { float: right; width: 320px; margin: 2px 0 18px 28px; }
  .prose-fig.left  { float: left;  width: 320px; margin: 2px 28px 18px 0; }
  .prose-fig.right + *, .prose-fig.left + * { margin-top: 0; }
}
/* Glossary as a multi-column reference: full-width letter dividers, terms flow in
 * columns beneath. Fills the page width and reads far lighter than one long list. */
.gloss-grid { column-width: 300px; column-gap: 34px; max-width: none; margin: 0; }
.gloss-letter { break-inside: avoid; column-span: all; margin: 30px 0 10px; padding-top: 8px; border-top: 2px solid var(--brand); font-family: var(--font-display); font-size: 1.4rem; }
.gloss-letter:first-child { margin-top: 0; }
.gloss-term { break-inside: avoid; margin: 0 0 16px; }
.gloss-term h3 { margin: 0 0 3px; font-size: 1.02rem; }
.gloss-term p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.callout { border-left: 4px solid var(--brand); background: var(--tint); border-radius: var(--radius-sm); padding: 16px 20px; margin: 22px 0; }
.callout strong { color: var(--ink); }
.callout p { margin: 0; color: var(--ink); }

/* News index cards + article body */
.news-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.news-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .1s, border-color .15s; }
.news-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.news-card time { font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-text); }
.news-card h3 { margin: 8px 0 6px; }
.news-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.news-card .more { margin-top: auto; padding-top: 14px; font-weight: 700; font-size: .9rem; color: var(--brand-text); }
.article { max-width: 68ch; margin: 0 auto; }
.article .byline { font-size: .88rem; color: var(--muted); margin: 0 0 6px; }
.article .byline time { font-weight: 700; color: var(--brand-text); }
.article h2 { font-size: 1.5rem; margin: 32px 0 8px; }
.article h3 { font-size: 1.2rem; margin: 24px 0 6px; }
.article p, .article li { color: var(--fg); }
.article ul, .article ol { padding-left: 1.2em; }
.article li { margin-bottom: 8px; }
.article .lead { font-size: 1.15rem; color: var(--muted); }
.article-foot { max-width: 68ch; margin: 36px auto 0; padding-top: 24px; border-top: 1px solid var(--line); }

/* ── testimonials / reviews (token-driven, themes per brand) ───────── */
.testimonials { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.tcard .stars { display: inline-flex; gap: 2px; color: var(--brand); margin-bottom: 12px; }
.tcard .stars svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.tcard blockquote { margin: 0 0 16px; font-size: 1.02rem; line-height: 1.55; color: var(--ink); }
.tcard blockquote::before { content: "\201C"; }
.tcard blockquote::after { content: "\201D"; }
.tcard .who { margin-top: auto; font-size: .9rem; }
.tcard .who strong { display: block; color: var(--ink); font-weight: 700; }
.tcard .who span { color: var(--muted); }
.rep-note { font-size: .82rem; color: var(--muted); text-align: center; margin: 22px auto 0; max-width: 60ch; }
/* Google rating strip shown under the reviews — real 5.0 rating + link out. */
.google-rating { text-align: center; margin: 26px auto 0; max-width: 60ch; }
.google-rating .gr-stars { display: inline-flex; gap: 3px; color: var(--brand); vertical-align: -3px; }
.google-rating .gr-stars svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.google-rating .gr-score { font-weight: 800; color: var(--ink); }
.google-rating a { font-weight: 700; color: var(--brand-text); }
.google-rating p { margin: 6px 0 0; }

/* ── why-choose-us USP rows + at-a-glance stats ────────────────────── */
.usp { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.usp .ic { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 12%, var(--bg)); color: var(--brand-text); display: grid; place-items: center; }
.usp .ic svg { width: 22px; height: 22px; }
.usp h3 { margin: 2px 0 6px; }
.usp p { margin: 0; color: var(--muted); }
.statrow { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); text-align: center; }
.statrow .stat .big { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--brand-text); line-height: 1; font-family: var(--font-display); }
.statrow .stat .lab { color: var(--muted); margin-top: 8px; font-size: .95rem; }


/* ── accessibility: skip link, focus-visible, reduced motion ───────── */
.skip-link { position: absolute; left: 8px; top: -48px; z-index: 100; background: var(--brand); color: var(--on); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; transition: top .15s ease; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ── trust bar: reusable conversion strip under hero / shop head (additive) ──
 * Brand-neutral; uses only tokens present in every bundle (--line, --tint,
 * --brand, --brand-strong, --maxw via .wrap). Pure presentational, no JS. */
/* As a full <section> the trustbar would inherit the giant global section
 * padding — collapse it to a tight band, spread the 4 items evenly, bump the
 * label size and enlarge the icons so the strip reads as tidy and balanced. */
.trustbar { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--tint) 45%, #fff); padding-block: 0; }
.trustbar .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 44px; padding-block: 13px; margin: 0 auto; list-style: none; }
.trustbar li { display: inline-flex; align-items: center; gap: 11px; font-size: 1.02rem; font-weight: 700; color: var(--brand-strong); }
.trustbar svg { width: 1.55em; height: 1.55em; flex: 0 0 auto; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trustbar--inshop { border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 22px; }
.trustbar--inshop .wrap { padding-inline: 0; }
@media (max-width: 760px) { .trustbar .wrap { justify-content: center; gap: 12px 26px; } .trustbar li { font-size: .95rem; } }
@media (max-width: 560px) { .trustbar li { font-size: .9rem; gap: 9px; } .trustbar svg { width: 1.4em; height: 1.4em; } .trustbar .wrap { gap: 10px 20px; padding-block: 16px; } }

/* ── footer reassurance line: delivery · returns · secure payment (additive) ── */
.footreassure { margin-top: 12px; font-size: .85rem; color: var(--muted); line-height: 1.7; }
.footreassure svg { width: 1em; height: 1em; vertical-align: -.12em; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footreassure a { color: var(--brand-strong); font-weight: 600; }
/* footer social links — Instagram / Facebook / LinkedIn (injected by commerce.js) */
.footsocial { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.footsocial-h { font-size: .82rem; font-weight: 700; color: color-mix(in srgb, #fff 72%, var(--ink)); margin-right: 2px; }
.footsocial a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid color-mix(in srgb, #fff 24%, transparent); border-radius: 50%; color: color-mix(in srgb, #fff 85%, var(--ink)); transition: background .12s ease, color .12s ease, border-color .12s ease; }
.footsocial a:hover { background: var(--brand); border-color: var(--brand); color: #12141a; }
.footsocial svg { width: 19px; height: 19px; }


/* ── category mega-menu (welding — built by commerce.js from the tree) ─────── */
.megamenu { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 64px; z-index: 25; }
.mm-row { display: flex; gap: 2px; align-items: stretch; overflow-x: auto; }
.mm-item { position: relative; }
.mm-top { display: inline-flex; align-items: center; height: 46px; padding: 0 14px; font-weight: 600; font-size: .93rem; color: var(--fg); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.mm-top:hover, .mm-item:focus-within > .mm-top { color: var(--brand-strong); border-bottom-color: var(--brand); background: var(--tint); }
.mm-all { font-weight: 700; }
.mm-panel { position: absolute; left: 0; top: 100%; min-width: 560px; max-width: 92vw; background: var(--bg); border: 1px solid var(--line); border-top: none; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); padding: 20px 22px; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .12s, transform .12s; z-index: 30; }
.mm-item.has-panel:hover .mm-panel, .mm-item.has-panel:focus-within .mm-panel { opacity: 1; visibility: visible; transform: none; }
.mm-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px 24px; }
.mm-col { display: grid; gap: 3px; align-content: start; }
.mm-col a { color: var(--muted); text-decoration: none; font-size: .87rem; padding: 1px 0; }
.mm-col a:hover { color: var(--brand-strong); }
.mm-col .mm-h { color: var(--ink); font-weight: 700; font-size: .92rem; margin-bottom: 3px; }
.mm-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.mm-foot a { color: var(--brand-strong); font-weight: 600; font-size: .9rem; text-decoration: none; }

/* ── sub-category chips (baked into a category landing page) ───────────────── */
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.subcats a { display: inline-flex; align-items: center; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-pill); font-size: .9rem; font-weight: 600; color: var(--fg); text-decoration: none; background: var(--bg); }
.subcats a:hover { border-color: var(--brand); color: var(--brand-strong); background: var(--tint); }

@media (max-width: 900px) {
  .megamenu { position: static; }
  .mm-row { gap: 0; }
  .mm-panel { display: none; }   /* top categories still tap through to their pages */
}

.logo{gap:0}
.brandlogo{height:47.5px;width:auto;display:block}
@media(max-width:520px){.brandlogo{height:40px}}


/* ── mega-menu CORRECTED: full-width hover dropdowns, no scroll box ────────── */
.megamenu { overflow: visible; }
.mm-row { display: flex; flex-wrap: nowrap; align-items: stretch; justify-content: center; overflow: visible; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); gap: 0; }
.mm-item { position: static; }                        /* panels span the full bar width */
.mm-top { height: 44px; padding: 0 12px; font-size: .9rem; }
/* hidden by default (opacity/visibility from the base rule); shown only on hover/focus */
.mm-panel { position: absolute; left: 0; right: 0; top: 100%; min-width: 0; max-width: none; width: auto; border: none; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: 0 14px 26px -14px rgba(0,0,0,.28); padding: 22px clamp(16px,4vw,40px); transform: translateY(-6px); }
.mm-panel .mm-cols, .mm-panel .mm-foot { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.mm-item.has-panel:hover > .mm-panel, .mm-item.has-panel:focus-within > .mm-panel { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 1040px) { .megamenu { display: none; } }  /* mobile uses the nav + shop rail */

/* ── product description (verbatim from the live store) ───────────────────── */
.pdesc { margin-top: 24px; }
.pdesc-h { font-size: 1.15rem; margin: 0 0 10px; }
.pdesc-body { color: var(--fg); line-height: 1.7; }
.pdesc-body > *:first-child { margin-top: 0; }
.pdesc-body p { margin: 0 0 1em; }
.pdesc-body ul, .pdesc-body ol { margin: 0 0 1em; padding-left: 1.3em; }
.pdesc-body li { margin: 4px 0; }
.pdesc-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 8px 0; }
.pdesc-body a { color: var(--brand-strong); }
/* Woo/Shopify spec tables ship with no width, so they render at their natural
 * (narrow) size and read as the description "cutting to half width" partway down.
 * Force them to fill the description column (label col shrinks, value col fills). */
.pdesc-body table { border-collapse: collapse; margin: 10px 0; font-size: .95rem; width: 100%; max-width: 100%; table-layout: auto; }
.pdesc-body th { text-align: left; vertical-align: top; }
.pdesc-body td, .pdesc-body th { border: 1px solid var(--line); padding: 6px 10px; }
.pdesc-body h2, .pdesc-body h3, .pdesc-body h4 { font-size: 1.02rem; margin: 1.2em 0 .4em; }

/* ── "What to look for" buying-guide block (category landing pages) ────────── */
.buying-guide { margin-top: 40px; padding: 22px clamp(18px, 3vw, 30px); background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); max-width: 78ch; }
.buying-guide .bg-h { display: flex; align-items: center; gap: 9px; font-size: 1.08rem; font-weight: 800; color: var(--ink); margin: 0 0 10px; letter-spacing: -.01em; }
.buying-guide .bg-h svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--brand-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.buying-guide p { margin: 0; color: var(--fg); line-height: 1.66; font-size: .98rem; }
.buying-guide p + p { margin-top: 10px; }

/* ── product-image gallery (PDP: primary + secondary thumbnails) ──────────── */
.gallery-wrap { display: grid; gap: 12px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { width: 62px; height: 62px; padding: 4px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: normal; }
.thumb.on, .thumb:hover { border-color: var(--brand); }

/* ── image tiles WHITE (no orange tint / multiply) ───────────────────────── */
.pcard .pim, .pdp .gallery, .pstrip .pim, .pim, .citem img, .sitem img, .thumb { background: #ffffff; }
.pcard .pim img, .pdp .gallery img, .pstrip .pim img, .pim img { mix-blend-mode: normal; }
/* HMT promo "PROMO" badge — crisp CSS gold circle, resolution-independent (so it
 * never pixelates with the product photo). Overlaid top-right of the image. */
.promobadge { position: absolute; top: 7px; right: 7px; z-index: 3; width: 38%; max-width: 86px; aspect-ratio: 1; border-radius: 50%; background: #E9AD14; color: #1F384B; display: grid; place-items: center; font-family: var(--font-display, sans-serif); font-weight: 800; font-size: clamp(.52rem, 1.7vw, .74rem); letter-spacing: .03em; box-shadow: 0 2px 7px rgba(0,0,0,.2); pointer-events: none; }
.pdp .gallery .promobadge { width: 26%; max-width: 128px; top: 14px; right: 14px; font-size: clamp(.9rem, 2.6vw, 1.3rem); }

/* ── DARK HEADER + mega-menu (the rest of the site stays light) ──────────── */
header { background: #15171c; border-bottom-color: #2a2f39; }
header .logo, header .nav-links a { color: #e4e7ec; }
header .nav-links a:hover { color: var(--brand-bright); }
header .navtoggle { color: #fff; border-color: #3a3f4a; }
header .navsearch, header .favbtn, header .cartbtn { color: #e4e7ec; }
/* header search box on the dark welding header */
header .hdr-search { background: rgba(255,255,255,.08); border-color: #3a3f4a; }
header .hdr-search input { color: #e4e7ec; }
header .hdr-search input::placeholder { color: #9aa1ad; }
header .hdr-search button { color: #b9bec8; }
header .hdr-search button:hover { color: var(--brand-bright); }
header .hdr-search:focus-within { border-color: var(--brand-bright); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-bright) 25%, transparent); }
@media (max-width:760px){ header .nav-links { background: #191c22; border-color: #2a2f39; } }
.megamenu { background: #15171c; border-bottom-color: #2a2f39; position: sticky; top: 64px; }
.mm-top { color: #e4e7ec; }
.mm-top:hover, .mm-item:focus-within > .mm-top { color: var(--brand-bright); background: rgba(255,255,255,.07); border-bottom-color: var(--brand); }
.mm-all { color: #fff; font-weight: 700; }
.mm-panel { background: #1b1e25; border-color: #2a2f39; box-shadow: 0 16px 30px -14px rgba(0,0,0,.6); }
.mm-col .mm-h { color: #fff; }
.mm-col a { color: #b9bec8; }
.mm-col a:hover, .mm-foot a { color: var(--brand-bright); }
.mm-foot { border-top-color: #2a2f39; }

/* ── card hover (secondary image + quick add-to-basket) + availability ────── */
.pcard .pim { position: relative; }
.pim-hover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; opacity: 0; transition: opacity .18s; pointer-events: none; background: #fff; }
.pcard:hover .pim-hover { opacity: 1; }
.card-actions { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 6px; opacity: 0; transform: translateY(6px); transition: opacity .16s, transform .16s; z-index: 3; }
.pcard:hover .card-actions, .pcard:focus-within .card-actions { opacity: 1; transform: none; }
.card-add { flex: 1; text-align: center; padding: 9px 12px; border-radius: var(--radius-pill); background: var(--brand); color: var(--on); font-weight: 700; font-size: .84rem; border: none; cursor: pointer; box-shadow: var(--shadow); }
.card-add:hover { background: var(--brand-strong); }
.card-add-ghost { background: var(--card); color: var(--brand-text); border: 1.5px solid var(--brand); box-shadow: var(--shadow); }
.stockbadge { font-size: .74rem; font-weight: 700; margin-top: 5px; display: inline-flex; align-items: center; gap: 5px; }
.stockbadge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.stockbadge.in { color: #1a8a4a; }
.stockbadge.in::before { background: #1a8a4a; }
.stockbadge.out { color: var(--muted); }
.stockbadge.out::before { background: #c3c7cf; }
/* "Next Day Dispatch" — bought-in welding stock that isn't flagged in-stock but
 * ships next day. Positive/neutral green, distinct from the plain grey .out. */
.stockbadge.next { color: #157a40; }
.stockbadge.next::before { background: #1a8a4a; }
@media (hover: none) { .card-actions { display: none; } }

/* ── category title banner (background image + in-banner buying guide) ────── */
.cat-hero-img, .cat-hero-grad { background-size: cover; background-position: center; background-repeat: no-repeat; color: #fff; border-bottom: none; }
/* Almost every category banner is a SQUARE/PORTRAIT product cut-out (1:1 bottle,
 * disc, torch on white) — not a wide landscape photo. `cover` on the short-but-
 * wide hero box scales those up and crops them hard (the gas bottle came out as a
 * zoomed-in sliver). The hero's inline background is TWO layers — a dark gradient
 * scrim FIRST, the product image SECOND — so size/position them independently:
 * gradient stays `cover` (full-bleed scrim) while the product image is CENTRED and
 * scaled to ~112% of the banner height — a mid-point between `contain` (whole
 * image but tiny/off to one side) and `cover` (over-zoomed sliver). Centred reads
 * best; the gentle up-scale fills the banner without cropping into a sliver. */
/* No solid side-fill: the product image itself COVERS the whole banner (fills the
 * width, no bands) and the dark gradient scrim (layer 1) sits on top. */
.cat-hero-img { background-size: cover, cover; background-position: center, center; min-height: 240px; }
@media (max-width: 700px) { .cat-hero-img { background-size: cover, cover; background-position: center, center; min-height: 200px; } }
.cat-hero-grad { background-image: linear-gradient(135deg, #1b1e25 0%, #2b313d 60%, #23282f 100%); }
.cat-hero-img h1, .cat-hero-grad h1 { color: #fff; }
.cat-hero-img .kicker, .cat-hero-grad .kicker { color: rgba(255,255,255,.78); }
.cat-hero-img .kicker a, .cat-hero-grad .kicker a { color: rgba(255,255,255,.92); }
.cat-hero-img .lede, .cat-hero-grad .lede { color: rgba(255,255,255,.9); }
.cat-hero-img .count, .cat-hero-grad .count { color: rgba(255,255,255,.68); }
.hero-guide { margin-top: 20px; max-width: 72ch; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.20); border-radius: var(--radius); padding: 18px 22px; }
.hero-guide-h { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0 0 8px; color: #fff; }
.hero-guide-h svg { width: 20px; height: 20px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.hero-guide p { margin: 0 0 8px; color: rgba(255,255,255,.9); font-size: .93rem; line-height: 1.6; }
.hero-guide p:last-child { margin-bottom: 0; }
/* Two-column category hero: description (left) + "what to look for" guide (right).
 * Pairs with the generator emitting a .cat-hero-cols wrapper. Inside the grid the
 * guide loses its own top margin / width cap so the two columns line up. */
.cat-hero-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 44px); align-items: start; }
.cat-hero-cols .hero-guide { margin-top: 0; max-width: none; }
/* Left column now carries kicker + h1 + lede + count; strip the first child's
 * top margin so its top lines up cleanly with the guide box on the right. */
.cat-hero-cols .cat-hero-copy { min-width: 0; }
.cat-hero-cols .cat-hero-copy > *:first-child { margin-top: 0; }
@media (max-width: 880px) { .cat-hero-cols { grid-template-columns: 1fr; } }

/* ── nicer breadcrumbs ────────────────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; margin-bottom: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--brand-text); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .38; }
.crumbs [aria-current="page"] { color: var(--ink); }
.kicker { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; letter-spacing: .01em; }
.kicker a { text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.kicker .sep { opacity: .5; font-weight: 400; }
/* ── basket line stock level ──────────────────────────────────────────────── */
.cstock { font-size: .72rem; font-weight: 600; margin: 2px 0; }
.cstock.in { color: #1a8a4a; }
.cstock.out { color: var(--muted); }
/* ── mega-menu Welding Courses entry (icon) ───────────────────────────────── */
.mm-courses .mm-top { display: inline-flex; align-items: center; }
.mm-ic { width: 18px; height: 18px; fill: none; stroke: var(--brand-bright); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; margin-right: 7px; flex: 0 0 auto; }
/* Promotions mega-menu entry — HMT orange so the deal stands out. */
.mm-promos .mm-top { display: inline-flex; align-items: center; color: var(--hmt-orange); font-weight: 700; }
.mm-promos .mm-top:hover, .mm-item.mm-promos:focus-within > .mm-top { color: var(--hmt-orange); background: color-mix(in srgb, var(--hmt-orange) 15%, transparent); border-bottom-color: var(--hmt-orange); }
.mm-promos .mm-ic { stroke: var(--hmt-orange); }
.mobcat-promos, header .mobcat-promos { color: var(--hmt-orange) !important; font-weight: 700; }

/* ── customer accounts: header link, auth forms, dashboard, pay-on-account ─── */
/* Header person-icon link injected by commerce.js paintAccountLink() into every
 * .nav-links. Matches the fav/cart icon buttons; shows the first name in. */
.accountbtn { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: .96rem; }
.accountbtn:hover { color: var(--brand-text); }
.accountbtn .i { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.accountbtn.in { color: var(--brand-text); }
.accountbtn.in .accountbtn-t { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { .accountbtn { padding: 13px 12px; border-radius: 9px; } }

/* ── account: auth (login / register / track) tabs ────────────────────────── */
.acc-mount { min-height: 40vh; }
.acc-auth { max-width: 560px; }
.acc-tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.acc-tab { appearance: none; background: none; border: none; border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; padding: 10px 14px; font: inherit; font-weight: 700; font-size: .95rem; color: var(--muted); cursor: pointer; }
.acc-tab:hover { color: var(--brand-text); }
.acc-tab.on { color: var(--brand-text); border-bottom-color: var(--brand); }
.acc-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.acc-panel[hidden] { display: none; }
.acc-form { max-width: 480px; }
.acc-err { color: var(--error, #C42A1A); font-size: .85rem; font-weight: 600; min-height: 1.1em; }
.acc-err:empty { min-height: 0; }
/* Friendly (non-error) note reusing the .acc-err slot — the "check your email for
   a set-password link" message shown to a migrated customer on first sign-in. */
.acc-err.acc-note { color: var(--fg, #1c1c1c); font-weight: 500; }
.opt-tag { color: var(--muted); font-weight: 500; }

/* ── account: signed-in dashboard ─────────────────────────────────────────── */
.acc-dash { max-width: 760px; }
.acc-loading { padding: 40px 0; text-align: center; }
.acc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.acc-head h2 { font-size: 1.4rem; }
.acc-meta { color: var(--muted); font-size: .92rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-logout { flex: 0 0 auto; }
.acc-badge { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--line); color: var(--ink); }
.acc-badge.on { background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand-text); }
.acc-trade { margin: 16px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--radius-sm); background: var(--tint); font-size: .92rem; line-height: 1.55; }
.acc-trade a { color: var(--brand-text); font-weight: 700; }

/* order-history table (responsive: stacks to cards on narrow screens) */
.acc-table-wrap { overflow-x: auto; }
.acc-orders { width: 100%; border-collapse: collapse; font-size: .92rem; }
.acc-orders th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 700; padding: 0 12px 8px 0; border-bottom: 1.5px solid var(--line); }
.acc-orders td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.acc-ref { font-weight: 700; }
.acc-ostat { display: inline-flex; align-items: center; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--line); color: var(--ink); white-space: nowrap; }
.acc-ostat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; background: currentColor; }
.acc-ostat.dispatched, .acc-ostat.completed, .acc-ostat.invoiced { background: color-mix(in srgb, #1a8a4a 16%, transparent); color: #157a40; }
.acc-ostat.in_production, .acc-ostat.open { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand-text); }
@media (max-width: 560px) {
  .acc-orders, .acc-orders thead, .acc-orders tbody, .acc-orders tr, .acc-orders td { display: block; }
  .acc-orders thead { display: none; }
  .acc-orders tr { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 10px; }
  .acc-orders td { border: none; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; }
  .acc-orders td::before { content: attr(data-l); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
}

/* ── checkout: delivery / collection options — STACKED radio cards ─────────── */
/* (were unstyled <label>s → rendered inline/side-by-side; now each is a full-width
 * card so "Free collection" sits UNDER "Delivery"). */
.dgroup { display: grid; gap: 8px; margin: 6px 0 18px; }
.dgroup-h { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.dopt { display: flex; align-items: center; gap: 13px; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: var(--card); transition: border-color .12s ease, background .12s ease; }
.dopt:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.dopt.sel { border-color: var(--brand); background: color-mix(in srgb, var(--tint) 55%, #fff); }
.dopt input[type=radio] { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.dopt-b { flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dopt .dl { font-weight: 700; font-size: .97rem; color: var(--ink); }
.dopt .dn { font-size: .84rem; color: var(--muted); }
.dopt .dp { flex: 0 0 auto; font-weight: 800; color: var(--ink); }
.dopt.dopt-disabled { opacity: .5; cursor: not-allowed; }

/* ── checkout: pay-on-account block (reuses the delivery .dopt look) ───────── */
.paymethod .payopt { margin-bottom: 8px; }
.paymethod .payopt:last-of-type { margin-bottom: 0; }
.paymethod .po-field { margin-top: 12px; }
.paymethod .po-field[hidden] { display: none; }
/* Turnstile bot-check widget above the Pay button */
.hf-turnstile { margin: 4px 0 14px; }
.hf-turnstile .ts-err { margin-top: 6px; }

/* ── HMT promotions band (homepage co-brand promo — navy + orange) ─────────── */
.hmt-promo { background: var(--hmt-navy); color: #fff; border-radius: var(--radius); overflow: hidden; }
.hmt-promo .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 40px); align-items: center; padding: clamp(16px, 2.6vw, 26px) var(--pad); }
.hmt-promo .hmt-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--hmt-orange); margin: 0 0 12px; }
.hmt-promo h2 { color: #fff; margin: 0 0 10px; }
.hmt-promo p { color: rgba(255,255,255,.86); margin: 0 0 18px; max-width: 46ch; }
.hmt-promo .btn-primary { background: var(--hmt-orange); color: #fff; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--hmt-orange) 60%, transparent); }
.hmt-promo .btn-primary:hover { background: color-mix(in srgb, var(--hmt-orange) 85%, #000); }
.hmt-promo .hmt-media img { width: 100%; height: 100%; max-height: 200px; object-fit: contain; border-radius: var(--radius-sm); background: #fff; }
/* Clickable 2×2 grid of real promo products (replaces the single stock image). */
.hmt-promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hmt-promo-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-sm); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 6px 16px -10px rgba(0,0,0,.5); transition: transform .12s ease, box-shadow .12s ease; }
.hmt-promo-card:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -9px rgba(0,0,0,.55); }
.hmt-promo-card img { width: 100%; height: 96px; object-fit: contain; background: #fff; padding: 8px; }
/* crisp CSS PROMO badge on the homepage grid cards (matches the shop cards; sized down for the small cell) */
.hmt-promo-card .promobadge { width: 34%; max-width: 52px; top: 5px; right: 5px; font-size: clamp(.44rem, 2vw, .58rem); letter-spacing: .01em; box-shadow: 0 1px 5px rgba(0,0,0,.22); }
.hmt-promo-card .hp-name { font-size: .78rem; font-weight: 600; line-height: 1.25; padding: 7px 9px 0; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hmt-promo-card .hp-price { font-size: .84rem; font-weight: 800; color: var(--hmt-navy); padding: 3px 9px 9px; margin-top: auto; }
.hmt-promo-card .hp-price small { font-weight: 500; color: var(--muted); }
@media (max-width: 760px) {
  .hmt-promo .wrap { grid-template-columns: 1fr; text-align: left; }
  .hmt-promo .hmt-media { order: -1; }
}

/* ── homepage: category cards with images + "why trade" icon cards ─────────── */
/* The category cards under "Shop by category" are plain .card <a>s; when the
 * generator adds an <img>, tint the tile and keep a tidy image aspect. */
#categories .card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
#categories .card img { margin: 0 0 14px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--tint); border-radius: 0; }
#categories .card > h3, #categories .card > p { padding-inline: 20px; }
#categories .card > h3 { margin-top: 4px; }
#categories .card > p:last-child { padding-bottom: 22px; }
#categories .card:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); transform: translateY(-3px); }
#categories .card { transition: transform .1s, box-shadow .15s, border-color .15s; }
/* "Why trade buys from us" cards — optional leading icon in a tinted chip. */
.why-ic { width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 12%, var(--bg)); color: var(--brand-text); display: grid; place-items: center; margin-bottom: 12px; }
.why-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── homepage: "Our suppliers" brand-logo row ─────────────────────────────────
 * A responsive row of supplier logos, each on a white chip (some brand logos
 * carry solid coloured backgrounds — SIP red, GYS navy — so a white tile keeps
 * every mark legible on the tinted band). Logos are muted/desaturated at rest
 * and lift to full colour on hover/focus. Wraps to a tidy grid on mobile. */
#suppliers .brandrow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: clamp(14px, 2vw, 22px); }
#suppliers .brandrow li { flex: 0 1 auto; }
#suppliers .brandrow a { display: flex; align-items: center; justify-content: center; height: 84px; width: 168px; padding: 16px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease; }
#suppliers .brandrow a:hover, #suppliers .brandrow a:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
/* Fixed logo height (with width:auto) gives every tile a definite box, so the
 * lazy <img>s still occupy space before load and the intersection loader fires. */
#suppliers .brandrow img { height: 46px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .18s ease, opacity .18s ease; }
#suppliers .brandrow a:hover img, #suppliers .brandrow a:focus-visible img { filter: none; opacity: 1; }
@media (hover: none) { #suppliers .brandrow img { filter: none; opacity: 1; } }
@media (max-width: 560px) {
  #suppliers .brandrow { gap: 12px; }
  #suppliers .brandrow li { flex: 1 1 calc(50% - 6px); max-width: calc(50% - 6px); }
  #suppliers .brandrow a { height: 68px; width: 100%; padding: 12px 16px; }
  #suppliers .brandrow img { height: 38px; }
}

/* ── homepage: compact vertical rhythm ────────────────────────────────────────
 * Scoped to <body class="home"> so only the landing page tightens (interior
 * pages keep the roomier default section padding). Trims the oversized global
 * section padding and section-head margins so the page reads as compact. */
.home main > section { padding-block: clamp(22px, 3vw, 36px); }
.home .hero { padding: clamp(32px, 5vw, 56px) 0 clamp(20px, 2.6vw, 34px); }
.home .section-head { margin-bottom: clamp(14px, 2vw, 22px); }
.home #newsletter { padding-block: clamp(22px, 3vw, 34px); }
/* the trustbar is its own full section but must stay a tight strip regardless */
.home .trustbar { padding-block: 0; }

/* ── info / content pages: compaction + tidy tile rows ────────────────────────
 * <body class="info"> gives interior content pages the same tighter vertical
 * rhythm the homepage gets (the default section padding is deliberately roomy).
 * It also caps info-page tile widths and centres the grid so a partial last row
 * doesn't leave lonely stretched orphans — full rows still pack normally. */
.info main > section { padding-block: clamp(20px, 3vw, 34px); }
.info .hero, .info .pagehead { padding-block: clamp(24px, 3.5vw, 40px); }
.info .section-head { margin-bottom: clamp(13px, 1.8vw, 20px); }
.info .grid { grid-template-columns: repeat(auto-fit, minmax(230px, 300px)); justify-content: center; }

/* Contact page: let the message form (right column) flex to the same height as
 * the contact details (left column) instead of centring, so the tall textarea
 * balances the two columns rather than leaving dead space. */
.contact-page .split { align-items: stretch; }
.contact-page .split > div { display: flex; flex-direction: column; }
.contact-page .qform { flex: 1 1 auto; }
.contact-page .qform textarea { flex: 1 1 auto; min-height: 200px; resize: vertical; }
@media (max-width: 820px) { .contact-page .qform textarea { min-height: 150px; } }

/* ── homepage: full-bleed photographic band (adds imagery, stays clean) ───────
 * A real workshop photo spanning the viewport with a dark gradient scrim so the
 * white headline + CTAs read cleanly on top. Sits between the trust strip and
 * the popular-lines grid. */
.photo-band { position: relative; padding: 0 !important; overflow: hidden; background: var(--ink); isolation: isolate; }
.photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.photo-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18,18,20,.92) 0%, rgba(18,18,20,.8) 45%, rgba(18,18,20,.55) 100%); }
.photo-band-inner { padding-block: clamp(34px, 5vw, 60px); max-width: var(--maxw); }
.photo-band-inner .eyebrow { color: var(--brand-bright); }
.photo-band-inner h2 { color: #fff; max-width: 18ch; }
.photo-band-inner p { color: rgba(255,255,255,.9); max-width: 52ch; margin-bottom: 22px; }
.photo-band-inner .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); background: transparent; }
.photo-band-inner .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
@media (max-width: 640px) {
  .photo-band::before { background: linear-gradient(180deg, rgba(18,18,20,.72) 0%, rgba(18,18,20,.82) 100%); }
  .photo-band-inner h2 { max-width: none; }
}

/* ── gas bottle badges: size + type (top-left) + option banner (bottom, full-width) ── */
.gallery { position: relative; }
.gasbadges { position: absolute; top: 8px; left: 8px; z-index: 3; display: flex; align-items: center; gap: 6px; pointer-events: none; }
.gasbdg { font-weight: 800; line-height: 1; border-radius: 5px; box-shadow: 0 1px 3px rgba(0,0,0,.22); white-space: nowrap; }
.gasbdg-size { font-size: 1.05rem; padding: 7px 11px; background: #fff; color: #15171c; border: 1.5px solid #15171c; }   /* larger, black on white */
.gasbdg-type { font-size: .72rem; padding: 6px 9px; color: #fff; text-transform: uppercase; letter-spacing: .03em; }
.gasbdg-argon { background: #000; }            /* Argon — white on black */
.gasbdg-mig { background: #2e7d4f; }           /* MIG — white on green */
.gasbdg-nitrogen { background: #1f5fbf; }      /* Nitrogen — white on blue */
.gasbanner { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; text-align: center; font-weight: 800; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; padding: 8px; color: #fff; background: rgba(18,18,20,.9); pointer-events: none; }
/* Per-option banner colour so Refill / 1-Year / Lifetime read apart at a glance
 * (kitType-driven modifier from gasBadges()). All keep white text with a shadow
 * for legibility; Lifetime uses the brand gold with dark ink for AA contrast. */
.gasbanner-refill { background: rgba(51,58,69,.92); }                 /* slate grey */
.gasbanner-1yr { background: rgba(21,95,130,.94); }                   /* teal / blue */
.gasbanner-lifetime { background: var(--brand); color: #1C1C1E; text-shadow: none; }  /* brand gold, dark ink */
@media (max-width: 560px) { .gasbdg-size { font-size: .92rem; padding: 5px 9px; } .gasbdg-type { font-size: .64rem; } .gasbanner { font-size: .7rem; padding: 6px; } }

/* ══════════════════════════════════════════════════════════════════════════
 * FRONTEND POLISH BATCH (welding storefront). Additive rules; grouped by the
 * item they address so they're easy to trace. commerce.js emits the matching
 * markup (gas banners, PDP spec block, mobile categories).
 * ══════════════════════════════════════════════════════════════════════════ */

/* ── 20 · centre the primary header nav links (desktop only) ───────────────────
 * The .nav-links flex row holds the text links THEN the utility cluster
 * (search box, search icon, account, favourites, cart). Let the row fill the
 * bar and centre its content, then push the utility cluster hard-right by
 * margin-auto'ing the first utility element — so the text links sit centred
 * with the logo on the left and the icons on the right. Desktop only; below the
 * nav breakpoint .nav-links becomes a vertical dropdown and must stay stacked. */
@media (min-width: 761px) {
  header .nav-links { margin-left: 0; flex: 1; justify-content: center; }
  header .nav-links > .hdr-search { margin-left: auto; }
  /* Fallback when the JS search box hasn't been injected: push from the icon. */
  header .nav-links > .navsearch:first-of-type { margin-left: auto; }
}

/* ── 13 · mobile product grid = 2 columns (not 1) ──────────────────────────────
 * The auto-fill minmax(208px…) collapses to a single column on a phone. Force a
 * tidy 2-up on small screens for the product + favourites grids. */
@media (max-width: 620px) {
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pcard h3 { font-size: .9rem; }
  .pcard .pb { padding: 10px 11px 12px; }
  .pcard .ppr small { font-size: .72rem; }
}

/* ── 16 · recently-viewed / strip cards match the grid card size ───────────────
 * .pstrip-row is a horizontal scroller whose columns are `minmax(180px,1fr)`,
 * so with few items each card STRETCHES to 1fr and dwarfs the grid cards. Cap
 * the column to a fixed, grid-matching width so strip cards read the same size. */
.pstrip-row { grid-auto-columns: minmax(190px, 208px); }
@media (max-width: 620px) { .pstrip-row { grid-auto-columns: minmax(150px, 168px); gap: 12px; } }

/* ── 14 · cart drawer close button (was unstyled .cx) ──────────────────────────
 * Give it a visible pill, an adequate tap target and an on-brand hover. */
.drawer header .cx {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  padding: 8px 14px; font: inherit; font-weight: 700; font-size: .9rem;
  color: var(--fg); background: var(--tint); border: 1.5px solid var(--line);
  border-radius: var(--radius-pill); cursor: pointer; line-height: 1;
  transition: background .12s, border-color .12s, color .12s;
}
.drawer header .cx:hover { background: color-mix(in srgb, var(--brand) 12%, var(--tint)); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); color: var(--brand-text); }
.drawer header .cx:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ── 15 · footer link list — tidy spacing / wrapping (CSS-only) ────────────────
 * The footer's link list is an UNCLASSED <div> inside .wrap.foot holding ~18
 * "·"-separated <a>s + <br>s. NOTE: that div carries an INLINE style
 * `text-align:right;line-height:2` (set in the footer HTML, owned elsewhere), and
 * an inline declaration beats any stylesheet rule — so its line-height / align
 * can't be changed from here without !important (deliberately avoided so we don't
 * fight the other agent's inline styles). What CSS CAN do — and the main source of
 * the "messy" look — is the per-link horizontal density: make each link an
 * inline-block with a little side padding and no mid-link wrapping, so the wrapped
 * rows breathe and links never break across lines. Targeted precisely via :has()
 * (the .fname column's links are nested in .footreassure, so it isn't matched);
 * a future <nav>/.footlinks wrapper is covered generically. See report note. */
footer .foot > div:has(> a + a) a, footer nav a, footer .footlinks a { display: inline-block; padding: 1px 4px; white-space: nowrap; }
/* keep the <br>s: they intentionally group the page links vs the sister-brand
 * links onto separate lines. */
footer nav, footer .footlinks { line-height: 2.15; }
@media (max-width: 560px) { footer nav, footer .footlinks { line-height: 2.35; } }

/* ── 19 · contact "Choose file" input styled on-brand (CSS-only) ───────────────
 * A raw <input type="file"> renders the browser's grey button. Restyle the
 * native control itself: hide the value text sizing quirks and give the picker
 * button a brand pill via ::file-selector-button (works on the existing markup,
 * no wrapper/label needed). Keeps the filename text beside it. */
.qform input[type="file"], .filewrap input[type="file"] {
  width: 100%; font: inherit; font-size: .92rem; color: var(--muted);
  padding: 10px 12px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
  background: var(--bg); cursor: pointer;
}
.qform input[type="file"]:focus, .filewrap input[type="file"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.qform input[type="file"]::file-selector-button, .filewrap input[type="file"]::file-selector-button {
  font: inherit; font-weight: 700; font-size: .88rem; margin-right: 12px;
  padding: 9px 16px; border: none; border-radius: var(--radius-pill);
  background: var(--brand); color: var(--on); cursor: pointer;
  transition: background .12s;
}
.qform input[type="file"]::file-selector-button:hover, .filewrap input[type="file"]::file-selector-button:hover { background: var(--brand-strong); }

/* ── 18 · delivery bullets clearing the box border ─────────────────────────────
 * .dc-bullets markers overlapped the accordion's left edge. Give the list enough
 * inline padding so the disc markers sit clear of the border. (Overrides the base
 * .dc-bullets padding above.) */
.pdp-detail .dc-bullets { padding-left: 2.5em; }
.pdp-detail .dc-bullets li { padding-left: 2px; }

/* ── 17 · kill the blank space above the PDP description (~75% less) ────────────
 * .pdesc carried a big top margin (24px) plus the .pstrip-style spacing, leaving
 * a large gap under the buy row. Collapse it hard. */
.pdp-detail .pdesc { margin-top: 6px; }
.pdp-detail #pdesc { margin-top: 0; }
.pdesc-h { margin-top: 0; }

/* ── 4 · PDP Specifications moved into the RIGHT column (below delivery callout) ─
 * commerce.js now renders the spec <details> inside .pdp-specs in the buy column,
 * beside the image, with the description staying full-width below. Match the
 * accordion look used in .pdp-detail (bordered, clickable summary bar). */
.pdp-specs { margin-top: 16px; }
.pdp-specs details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.pdp-specs summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; font-family: var(--font-display); font-weight: 700; font-size: .98rem; color: var(--ink); background: color-mix(in srgb, var(--tint) 45%, #fff); }
.pdp-specs summary::-webkit-details-marker { display: none; }
.pdp-specs summary:hover { background: color-mix(in srgb, var(--tint) 70%, #fff); }
.pdp-specs summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.pdp-specs summary::after { content: ""; flex: 0 0 auto; width: 10px; height: 10px; margin-left: auto; border-right: 2px solid var(--brand-text); border-bottom: 2px solid var(--brand-text); transform: rotate(45deg); transition: transform .2s ease; }
.pdp-specs details[open] summary { border-bottom: 1px solid var(--line); }
.pdp-specs details[open] summary::after { transform: rotate(225deg); }
.pdp-specs .spec-list { padding: 6px 16px 12px; max-width: none; margin: 0; }
/* PDP: relevant how-to guide link (welding) */
.guide-cta { display: inline-flex; align-items: center; gap: 11px; margin: 16px 0 0; padding: 11px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; box-shadow: var(--shadow); transition: border-color .12s ease, transform .12s ease; }
.guide-cta:hover { border-color: var(--brand); transform: translateY(-1px); }
.guide-cta .i { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: var(--brand-strong); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.guide-cta-k { display: inline-block; font-size: .66rem; text-transform: uppercase; letter-spacing: .09em; color: var(--brand-strong); font-weight: 800; margin-right: 9px; }

/* ── 11 · constrain the desktop mega-menu panel (was running off-screen) ───────
 * A long category (e.g. Tools) can exceed the viewport. Rather than scroll the
 * WHOLE panel (which drags the "Shop all →" footer out of view and feels janky),
 * cap the panel height and scroll ONLY the inner category columns, keeping the
 * footer pinned. Short panels never show a scrollbar — the inner scroll appears
 * only for the long category, styled as an intentional slim branded bar. */
.mm-panel { display: flex; flex-direction: column; max-height: min(78vh, 600px); }
.mm-panel .mm-cols { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 8px; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--brand) 70%, transparent) transparent; }
.mm-panel .mm-cols::-webkit-scrollbar { width: 9px; }
.mm-panel .mm-cols::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--brand) 60%, transparent); border-radius: 6px; }
.mm-panel .mm-cols::-webkit-scrollbar-thumb:hover { background: var(--brand); }
.mm-panel .mm-foot { flex: 0 0 auto; margin-top: 14px; }
@media (min-width: 1041px) { .mm-panel .mm-cols { max-width: var(--maxw); } }

/* ── 12 · mobile category accordion inside the nav dropdown ────────────────────
 * commerce.js injects .mobcats into every .nav-links; it must be HIDDEN on
 * desktop (the mega-menu bar handles categories there) and shown only inside the
 * open mobile menu. The nav dropdown is display:flex column below 760px. */
.mobcats { display: none; }
@media (max-width: 760px) {
  /* The category accordion is the one tall section — it (not the whole menu)
   * scrolls, so the search box + Trade/Contact/Account/basket links stay pinned
   * and the menu never runs off the bottom of the screen. */
  .mobcats { display: block; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
  .mobcats-h { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 6px 12px 4px; }
  .mobcat { border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
  .mobcat:last-of-type { border-bottom: none; }
  .mobcat-row { display: flex; align-items: stretch; }
  .mobcat-top { flex: 1; padding: 12px 12px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: .96rem; }
  .mobcat-top:hover { color: var(--brand-text); }
  .mobcat-toggle { flex: 0 0 auto; width: 46px; background: none; border: none; border-left: 1px solid color-mix(in srgb, var(--line) 70%, transparent); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
  .mobcat-toggle .i { width: 1.2em; height: 1.2em; transition: transform .15s; }
  .mobcat-toggle[aria-expanded="true"] .i { transform: rotate(180deg); }
  .mobcat-sub { display: grid; gap: 1px; padding: 2px 0 8px; background: var(--tint); }
  .mobcat-sub[hidden] { display: none; }   /* collapsed by default — .mobcat-sub's display:grid otherwise defeats [hidden] */
  .mobcat-sub a { padding: 9px 12px 9px 22px; color: var(--fg); text-decoration: none; font-size: .9rem; }
  .mobcat-sub a:hover { color: var(--brand-text); }
  .mobcat-sub .mobcat-all { font-weight: 700; color: var(--brand-text); }
  .mobcat-courses { display: block; padding: 12px 12px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: .96rem; }
  .mobcat-courses:hover { color: var(--brand-text); }
}

/* On the DARK welding header the injected mobile category panel must read on the
 * dark dropdown surface (the nav dropdown is #191c22 on this brand). */
@media (max-width: 760px) {
  header .mobcats { border-top-color: #2a2f39; }
  header .mobcats-h { color: #9aa1ad; }
  header .mobcat { border-bottom-color: #2a2f39; }
  header .mobcat-top, header .mobcat-courses { color: #e4e7ec; }
  header .mobcat-top:hover, header .mobcat-courses:hover { color: var(--brand-bright); }
  header .mobcat-toggle { color: #b9bec8; border-left-color: #2a2f39; }
  header .mobcat-sub { background: #14161b; }
  header .mobcat-sub a { color: #c7ccd4; }
  header .mobcat-sub a:hover, header .mobcat-sub .mobcat-all { color: var(--brand-bright); }
}
