/* E-partx theme styles
   Tokens → base → header → home → parts table → WooCommerce → footer → responsive */

/* ---------- Tokens ---------- */
:root {
  --paper: #F3F4F1; --surface: #FFFFFF; --ink: #16191D; --ink-2: #4A5157; --ink-3: #6E7579;
  --rule: #DADDD7; --rule-2: #E8EAE5;
  /* BOM drop zone outline: darker than --rule so the tap target reads as one (3:1 on --paper). */
  --drop-rule: #858B87;
  /* Delivery progress: upcoming step rings and connecting line. */
  --step-rule: #8E9490; /* 3:1 on the white --surface of the delivery card. */
  --copper: #B85F24; --copper-ink: #FFFFFF; --copper-soft: #F6E6DA;
  /* Accent family, copper to match the logo. --mask is a deeper copper so small text on --mask-soft stays readable. */
  --mask: #9A4C17; --mask-soft: #F6E6DA; --feature: #9A4C17;
  --ok: #1C7A43; --warn: #A86A00; --low: #B3261E;
  --hero-bg: #16191D; --hero-ink: #F3F4F1; --hero-muted: #C3C8C4; --hero-accent: #E08A4A;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --radius: 10px;
  --shadow: 0 1px 0 rgba(22,25,29,.04), 0 8px 24px -12px rgba(22,25,29,.18);
  --gutter: 16px;
  /* 1 in dark mode: flips plugin icons drawn as SVGs with a baked-in dark fill (WooCommerce password eye). */
  --icon-invert: 0;
}
/* Dark palette: follows the device unless the header toggle set data-theme.
   The two blocks below must stay identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0F1214; --surface: #171B1E; --ink: #ECEDEA; --ink-2: #B4BAB6; --ink-3: #8C938F;
    --rule: #2A3033; --rule-2: #21262A;
    --drop-rule: #5E6669; /* 3:1 on the dark --paper, matching light mode. */
    --step-rule: #646C6F; /* 3:1 on the dark --surface of the delivery card. */
    --copper: #E08A4A; --copper-ink: #1A0F07; --copper-soft: #3A2415;
    --mask: #E08A4A; --mask-soft: #3A2415; --feature: #7A3D14;
    --ok: #4CC27E; --warn: #E0A63A; --low: #F07167;
    --hero-bg: #1B2024;
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.7);
    --icon-invert: 1;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0F1214; --surface: #171B1E; --ink: #ECEDEA; --ink-2: #B4BAB6; --ink-3: #8C938F;
  --rule: #2A3033; --rule-2: #21262A;
  --drop-rule: #5E6669;
  --step-rule: #646C6F;
  --copper: #E08A4A; --copper-ink: #1A0F07; --copper-soft: #3A2415;
  --mask: #E08A4A; --mask-soft: #3A2415; --feature: #7A3D14;
  --ok: #4CC27E; --warn: #E0A63A; --low: #F07167;
  --hero-bg: #1B2024;
  --shadow: 0 1px 0 rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.7);
  --icon-invert: 1;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--body); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--copper); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; text-wrap: balance; line-height: 1.15; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); }
.eyebrow { display: block; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 10px 14px; background: var(--ink); color: var(--paper); z-index: 100; border-radius: 6px; }
[hidden] { display: none !important; }

.btn, .button, button.button, a.button, input.button,
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 8px; padding: 11px 18px; font: 600 14px/1.2 var(--body);
  cursor: pointer; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
  text-decoration: none; transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .wp-block-button__link:hover {
  background: var(--copper); border-color: var(--copper); color: var(--copper-ink);
}
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--copper); border-color: var(--copper); color: var(--copper-ink); }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"],
input[type="number"], input[type="search"], select, textarea,
.woocommerce form .form-row .input-text, .woocommerce form .form-row select {
  /* color is explicit: WooCommerce sets these fields to var(--wc-form-color-text, #000), which beats inherit. */
  background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; max-width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--copper-soft); }

/* ---------- Header ---------- */
.strip-wrap { border-bottom: 1px solid var(--rule); }
.strip { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding-block: 8px; font-size: 12.5px; color: var(--ink-2); }
.strip b { color: var(--ink); font-weight: 600; }
.strip a { text-decoration: none; }

header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule); }
.admin-bar header.top { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { .admin-bar header.top { top: env(safe-area-inset-top, 0px); } }
.bar { display: flex; align-items: center; gap: 20px; padding-block: 14px; flex-wrap: wrap; }
.logo, .custom-logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.custom-logo { max-height: 40px; width: auto; }
.logo-svg { display: block; flex: none; }
.logo-svg-mark { height: 48px; width: auto; aspect-ratio: 304 / 274; }
.logo-svg-word { height: 28px; width: auto; aspect-ratio: 656 / 159; }
.logo-svg .lg-ink { fill: currentColor; }
.logo-svg .lg-accent { fill: var(--copper); }
.logo-svg .lg-e { fill: #fff; }

.site-search { flex: 1 1 360px; display: flex; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--surface); overflow: hidden; min-width: 0; }
.site-search select { border: 0; border-radius: 0; background: var(--rule-2); padding: 0 10px; font-size: 13px; max-width: 160px; }
.site-search input[type="search"] { flex: 1; border: 0; border-radius: 0; background: transparent; padding: 11px 12px; min-width: 0; font-family: var(--mono); font-size: 14px; box-shadow: none; }
.site-search input::placeholder { color: var(--ink-3); }
.site-search:focus-within { box-shadow: 0 0 0 3px var(--copper-soft); }
.site-search button { border: 0; background: var(--ink); color: var(--paper); padding: 0 18px; font-weight: 600; cursor: pointer; }
.site-search button:hover { background: var(--copper); color: var(--copper-ink); }

.actions { display: flex; gap: 6px; align-items: center; }
.icon-btn { display: flex; align-items: center; gap: 8px; border: 1px solid transparent; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); text-decoration: none; }
.icon-btn:hover { border-color: var(--rule); color: var(--ink); }
.theme-toggle { background: transparent; cursor: pointer; }
.theme-toggle span { display: inline-flex; }
.theme-toggle .i-sun, .theme-toggle[aria-pressed="true"] .i-moon { display: none; }
.theme-toggle[aria-pressed="true"] .i-sun { display: inline-flex; }
.cart-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--copper); color: var(--copper-ink); font: 600 11px/20px var(--mono); text-align: center; transition: transform .2s; }
.cart-count.bump { transform: scale(1.35); }

nav.cats { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
nav.cats::-webkit-scrollbar { display: none; }
nav.cats a { white-space: nowrap; text-decoration: none; font-size: 13.5px; padding: 6px 10px; border-radius: 6px; color: var(--ink-2); }
nav.cats a:hover, nav.cats .current-menu-item a { background: var(--rule-2); color: var(--ink); }

/* ---------- Home: hero + BOM ---------- */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; padding-block: 28px 12px; }
.hero-main { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-ink); border-radius: 14px; padding: 36px 36px 30px; display: flex; flex-direction: column; gap: 20px; min-height: 340px; }
.hero-main canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.hero-main > *:not(canvas) { position: relative; }
.hero-main .eyebrow { color: var(--hero-accent); }
.hero h1 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.02; font-stretch: 125%; font-weight: 800; letter-spacing: -.02em; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--hero-accent); }

.bom { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); scroll-margin-top: 140px; }
.bom h2 { font-size: 22px; font-stretch: 112%; font-weight: 700; }
.bom > p { margin: 0; color: var(--ink-2); font-size: 14px; }
.bom-form { display: flex; flex-direction: column; gap: 12px; }
.drop { border: 1.5px dashed var(--drop-rule); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; align-items: center; cursor: pointer; background: var(--paper); transition: border-color .15s; }
.drop:hover, .file-input:focus-visible + .drop { border-color: var(--copper); }
.drop svg { flex: none; color: var(--copper); }
.drop b { word-break: break-all; }
.drop small { display: block; color: var(--ink-3); font-size: 12.5px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop.has-file { border-style: solid; border-color: var(--mask); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field input { width: 100%; padding: 9px 10px; }
.hp { position: absolute; left: -9999px; }
.notice { margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; }
/* .notice.notice-* so the colour beats ".bom > p" (grey intro text) when the notice is inside the BOM form. */
.notice.notice-ok { background: var(--mask-soft); color: var(--mask); }
.notice.notice-error { background: color-mix(in srgb, var(--low) 12%, var(--surface)); color: var(--low); }

.sec { padding-block: 28px; scroll-margin-top: 150px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(22px, 2.6vw, 30px); font-stretch: 112%; font-weight: 700; letter-spacing: -.01em; }
.sec-head a { font-size: 13.5px; color: var(--copper); font-weight: 600; text-decoration: none; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); text-decoration: none; transition: border-color .15s, transform .15s; }
.cat:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--ink); }
.cat svg { color: var(--mask); }
.cat h3 { font-size: 16px; font-stretch: 112%; font-weight: 700; padding-right: 70px; }
.cat .sub { font-size: 12.5px; color: var(--ink-3); }
.cat .n { position: absolute; top: 16px; right: 16px; font: 500 11.5px var(--mono); color: var(--ink-3); }
.cat.wide { grid-column: span 2; background: var(--feature); border-color: var(--feature); color: #fff; justify-content: flex-end; }
.cat.wide:hover { color: #fff; border-color: var(--ink); }
.cat.wide svg, .cat.wide .sub, .cat.wide .n { color: #CFE6DE; }
.cat.wide h3 { font-size: 22px; }

.trade { background: var(--copper-soft); border-radius: 14px; padding: 32px; }
.trade h2 { font-size: clamp(22px, 2.8vw, 32px); font-stretch: 125%; font-weight: 800; letter-spacing: -.01em; margin-top: 8px; }
.trade p { color: var(--ink-2); margin: 10px 0 0; max-width: 52ch; }
.trade .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Parts table ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { border: 1px solid var(--rule); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
a.chip { text-decoration: none; }
.chip[aria-current="true"] { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.shop-body .filters.sub { margin-top: -6px; padding-left: 12px; border-left: 2px solid var(--rule); }
.filters.sub .chip { font-size: 12.5px; padding: 5px 11px; }
.filters.sub .chip .n { font: 500 11px var(--mono); color: var(--ink-3); margin-left: 2px; }
.filters.sub .chip[aria-current="page"] .n { color: inherit; opacity: .7; }

/* Shop archive */
.shop-body .page-head { margin-bottom: 16px; }
.shop-body .term-description, .shop-body .page-description { color: var(--ink-2); max-width: 72ch; }
.shop-body .filters { margin-bottom: 16px; }
.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.woocommerce .shop-toolbar .woocommerce-result-count, .woocommerce .shop-toolbar .woocommerce-ordering { float: none; margin: 0; }
.woocommerce nav.woocommerce-pagination { margin-top: 20px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: inline-flex; gap: 6px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 38px; padding: 9px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink); font-family: var(--mono); }
.woocommerce nav.woocommerce-pagination ul li a:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pn { font: 600 14px var(--mono); text-decoration: none; }
.pkg { font: 500 12px var(--mono); padding: 3px 7px; border-radius: 4px; background: var(--mask-soft); color: var(--mask); white-space: nowrap; }
.stock { display: flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.stock.warn .dot { background: var(--warn); }
.stock.low .dot { background: var(--low); }
.woocommerce-price-suffix { font: 500 0.8em var(--body); color: var(--ink-3); }
.qty { display: inline-flex; border: 1px solid var(--rule); border-radius: 7px; overflow: hidden; }
.qty button { border: 0; background: var(--rule-2); width: 28px; cursor: pointer; }
.qty button:hover { background: var(--rule); }
.qty input { width: 56px; border: 0; border-radius: 0; text-align: center; background: var(--surface); font: 500 13px var(--mono); padding: 6px 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.add { display: inline-block; border: 1.5px solid var(--ink); background: transparent; border-radius: 7px; padding: 6px 12px; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.add:hover, .add.done { background: var(--ink); color: var(--paper); }
.add[aria-busy="true"] { opacity: .6; cursor: progress; }
.ds { font-size: 12.5px; color: var(--copper); text-decoration: none; font-weight: 600; white-space: nowrap; }
.ds:hover { text-decoration: underline; }
.empty { padding: 28px; text-align: center; color: var(--ink-3); margin: 0; }

/* ---------- Product cards ---------- */
.part-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.part-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; transition: border-color .15s, transform .15s; }
.part-card:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.part-img { display: block; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--rule); }
.part-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; margin: 0; }
.part-img--icon { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--copper-soft); color: var(--copper); }
.part-card:hover .part-img--icon { color: var(--copper); }
/* No zoom button when the gallery shows an icon instead of a photo */
.woocommerce-product-gallery:has(.epx-product-icon) .woocommerce-product-gallery__trigger { display: none; }
.epx-product-icon { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--copper-soft); color: var(--copper); border-radius: 12px; }
.part-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; flex: 1; }
.part-name { font: 600 14.5px/1.35 var(--body); margin: 0; }
.part-name a { color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.part-name a:hover { color: var(--copper); }
.part-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.part-meta .pn { font: 500 12px var(--mono); color: var(--ink-3); }
.part-price { font-variant-numeric: tabular-nums; }
.part-price b { font: 700 17px var(--mono); color: var(--ink); }
.part-tiers { display: block; font: 12px var(--mono); color: var(--ink-3); margin-top: 2px; }
.part-card .stock { font-size: 13px; }
.part-price .per { font: 500 12px var(--mono); color: var(--ink-3); margin-left: 1px; }
.part-pack { display: block; font: 12px var(--mono); color: var(--ink-3); margin-top: 2px; }
.epx-pack-note { margin: -4px 0 14px; font-size: 14px; color: var(--ink-2); }
.part-buy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.part-buy .qty { flex: none; }
.part-buy .qty input { width: 40px; }
.part-buy .add { flex: 1; text-align: center; padding: 8px 10px; }
/* WooCommerce inserts "View cart" after the button on added_to_cart (theme.js); give it its own row. */
.part-buy .added_to_cart { flex-basis: 100%; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--copper); text-decoration: none; }
.part-buy .added_to_cart:hover { text-decoration: underline; }
.part-card .ds { font-size: 12px; }

/* ---------- Pages ---------- */
.page-body { padding-block: 32px 16px; min-height: 50vh; }
.page-head { margin-bottom: 24px; }
.page-head h1, .woocommerce-products-header__title, .product_title {
  font-size: clamp(26px, 3.4vw, 40px); font-stretch: 112%; font-weight: 800; letter-spacing: -.015em;
}
.page-head p, .meta { color: var(--ink-2); }
.entry { max-width: 72ch; }
.woocommerce-cart .entry, .woocommerce-checkout .entry, .woocommerce-account .entry { max-width: none; }
.entry a { color: var(--copper); }
.post-list { display: grid; gap: 16px; max-width: 72ch; }
.post-card { padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.post-card h2 { font-size: 22px; font-stretch: 112%; }
.post-card h2 a { text-decoration: none; }

/* ---------- Comments ---------- */
.comments-area, #comments, #respond { max-width: 72ch; margin-top: 36px; }
.comments-title, .comment-reply-title { font-size: 20px; font-stretch: 112%; margin-bottom: 14px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.comment-list .children { margin: 14px 0 0 24px; }
.comment-body { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-meta a, .comment-metadata a { color: var(--ink-3); font-size: 12.5px; text-decoration: none; }
.comment-content { margin-top: 8px; }
.reply a { font-size: 13px; font-weight: 600; color: var(--copper); text-decoration: none; }
.comment-form { display: grid; gap: 12px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { width: 100%; }
.comment-form .form-submit input[type="submit"] { border-radius: 8px; padding: 11px 18px; font-weight: 600; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; }
.comment-form .form-submit input[type="submit"]:hover { background: var(--copper); border-color: var(--copper); color: var(--copper-ink); }

/* ---------- WooCommerce ---------- */
.woocommerce-breadcrumb { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.woocommerce-breadcrumb a { color: var(--ink-2); text-decoration: none; }
.woocommerce .woocommerce-result-count { color: var(--ink-3); font-size: 13.5px; }
.woocommerce ul.products li.product {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 14px;
  display: flex; flex-direction: column; transition: border-color .15s;
}
.woocommerce ul.products li.product:hover { border-color: var(--ink); }
.woocommerce ul.products li.product a img { border-radius: 8px; background: var(--paper); margin-bottom: 10px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 600 15px/1.3 var(--body); padding: 0; color: var(--ink); }
.woocommerce ul.products li.product .price { color: var(--ink); font: 600 15px var(--mono); margin-top: 6px; }
.woocommerce ul.products li.product .button { margin-top: auto; align-self: flex-start; }
.woocommerce span.onsale { background: var(--copper); color: var(--copper-ink); border-radius: 6px; min-height: 0; min-width: 0; padding: 4px 8px; line-height: 1.2; font-weight: 600; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font: 600 26px var(--mono); }
.woocommerce div.product .stock { color: var(--ok); }
.woocommerce div.product .out-of-stock { color: var(--low); }
.woocommerce .quantity .qty { width: 5em; padding: 10px; }
/* "/pc" after a pack-sold price (inc/packs.php). */
.price .per { font: 500 0.55em var(--mono); color: var(--ink-3); margin-left: 2px; }
/* − qty + on product pages (inc/woocommerce.php), styled like the product cards. */
.woocommerce .quantity:has(.epx-qty-btn) { display: inline-flex; align-items: stretch; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--surface); }
.woocommerce .quantity:has(.epx-qty-btn) .qty { width: 4.5em; border: 0; border-radius: 0; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.woocommerce .quantity:has(.epx-qty-btn) .qty::-webkit-inner-spin-button, .woocommerce .quantity:has(.epx-qty-btn) .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.epx-qty-btn { flex: none; width: 40px; border: 0; background: var(--rule-2); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
.epx-qty-btn:hover { background: var(--rule); }
.epx-qty-btn:focus-visible { outline: 2px solid var(--copper); outline-offset: -2px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--rule-2); border-color: var(--rule); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--surface); border-bottom-color: var(--surface); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--ink-3); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover, .woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--rule); }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews { background: var(--surface); color: var(--ink); border-top-color: var(--copper); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--copper); }
.woocommerce nav.woocommerce-pagination ul, .woocommerce nav.woocommerce-pagination ul li { border-color: var(--rule); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ink); color: var(--paper); }
.woocommerce table.shop_table { border-color: var(--rule); border-radius: 12px; background: var(--surface); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: var(--rule-2); }

/* My account */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.woocommerce-account .woocommerce::before, .woocommerce-account .woocommerce::after { display: none; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.woocommerce-MyAccount-navigation a:hover { background: var(--rule-2); color: var(--ink); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: var(--paper); }
.woocommerce-MyAccount-navigation-link--customer-logout { border-top: 1px solid var(--rule-2); margin-top: 4px; padding-top: 4px; }
.woocommerce-MyAccount-content > p:first-child { margin-top: 0; }
.woocommerce-MyAccount-content a:not(.button):not(.btn):not(.account-tile) { color: var(--copper); }
.account-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.entry .account-tile, .account-tile { color: var(--ink); display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; text-decoration: none; transition: border-color .15s, transform .15s; }
.account-tile:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--ink); }
.account-tile svg { color: var(--mask); margin-bottom: 6px; }
.account-tile b { font: 700 16px var(--display); font-stretch: 112%; }
.account-tile span { font-size: 13.5px; color: var(--ink-2); }
.woocommerce-Addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.woocommerce .col2-set.woocommerce-Addresses::before, .woocommerce .col2-set.woocommerce-Addresses::after { display: none; }
.woocommerce-account .woocommerce-Address { float: none !important; width: auto !important; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 18px; }
.woocommerce-account .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.woocommerce-account .woocommerce-Address-title::before, .woocommerce-account .woocommerce-Address-title::after { display: none; }
.woocommerce-Address-title h2 { font-size: 18px; margin: 0; }
.woocommerce-account .woocommerce-Address-title .edit { float: none; font-size: 13px; font-weight: 600; text-decoration: none; }
.woocommerce-Address address { font-style: normal; color: var(--ink-2); }

/* Login and register (signed out) */
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
.woocommerce-account #customer_login { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.woocommerce .col2-set#customer_login::before, .woocommerce .col2-set#customer_login::after { display: none; }
.woocommerce-account #customer_login .u-column1, .woocommerce-account #customer_login .u-column2 { float: none; width: auto; }
#customer_login h2, .woocommerce-account .woocommerce > h2 { font-size: 22px; font-stretch: 112%; margin-bottom: 12px; }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.lost_reset_password {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 22px; margin: 0; max-width: 520px;
}
.woocommerce form .form-row label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.woocommerce form .form-row .input-text { width: 100%; }
.woocommerce form .show-password-input::before { filter: invert(var(--icon-invert)); }

/* Order confirmation and order view */
.woocommerce-order { display: grid; gap: 24px; }
.woocommerce-order::before, .woocommerce-order::after { display: none; }
.woocommerce-order > * { margin: 0; }
.woocommerce-order .woocommerce-thankyou-order-received {
  font: 700 clamp(18px, 2vw, 22px)/1.3 var(--display); font-stretch: 112%;
  padding: 16px 18px; border-radius: 12px; background: var(--mask-soft); color: var(--mask);
}
.woocommerce-order .woocommerce-thankyou-order-received:has(.epx-order-issue) { background: color-mix(in srgb, var(--warn) 14%, var(--surface)); color: var(--ink); }
.epx-order-issue a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.woocommerce ul.order_details.woocommerce-order-overview {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden;
}
.woocommerce ul.order_details.woocommerce-order-overview::before, .woocommerce ul.order_details.woocommerce-order-overview::after { display: none; }
.woocommerce ul.order_details.woocommerce-order-overview li {
  float: none; margin: 0; padding: 14px 18px; border: 0; border-right: 1px solid var(--rule-2);
  font: 600 10.5px var(--mono); letter-spacing: .1em; color: var(--ink-3);
}
.woocommerce ul.order_details.woocommerce-order-overview li:last-child { border-right: 0; }
.woocommerce ul.order_details.woocommerce-order-overview li strong { display: block; margin-top: 4px; font: 600 15px var(--mono); letter-spacing: 0; text-transform: none; color: var(--ink); word-break: break-word; }
.epx-next { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 20px 22px; }
.epx-next h2 { font-size: 18px; font-stretch: 112%; }
.epx-next ol { margin: 12px 0 16px; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.epx-next .cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* Delivery status (inc/delivery.php) */
.epx-delivery { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 20px 22px; display: grid; gap: 18px; margin-top: 24px; }
.epx-delivery h2 { font-size: 20px; font-stretch: 112%; margin: 0; }
.epx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.epx-steps li { position: relative; padding: 22px 2px 0; text-align: center; font-size: 12.5px; line-height: 1.3; color: var(--ink-3); }
.epx-steps li::before { content: ""; position: absolute; z-index: 1; top: 3px; left: 50%; width: 14px; height: 14px; margin-left: -7px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--step-rule); background: var(--surface); }
.epx-steps li::after { content: ""; position: absolute; top: 9px; left: calc(-50% + 7px); right: calc(50% + 7px); height: 2px; background: var(--step-rule); }
.epx-steps li:first-child::after { display: none; }
.epx-steps li.is-done { color: var(--ink-2); }
.epx-steps li.is-done::before, .epx-steps li.is-done::after { background: var(--ok); border-color: var(--ok); }
.epx-steps li.is-current { color: var(--ink); font-weight: 600; }
.epx-steps li.is-current::before { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }
.epx-delivery-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 20px; margin: 0; padding-top: 16px; border-top: 1px solid var(--rule-2); }
.epx-delivery-facts dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.epx-delivery-facts dd { margin: 3px 0 0; font: 600 15px var(--mono); color: var(--ink); word-break: break-word; }
.epx-delivery .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.epx-track-form { display: grid; gap: 4px; max-width: 440px; }
.epx-track-form label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.epx-track-form input { width: 100%; }
.epx-track-result { margin-top: 24px; }
@media (max-width: 480px) {
	.epx-delivery { padding: 16px; }
	.epx-steps li { font-size: 11px; }
}
.entry a.btn { color: var(--paper); }
.entry a.btn.ghost { color: var(--ink); }
.entry a.btn:hover { color: var(--copper-ink); }
.entry a.btn.ghost:hover { color: var(--paper); }
.entry a.wp-block-button__link { color: var(--paper); }
.entry a.wp-block-button__link:hover { color: var(--copper-ink); }
.entry a.wc-block-grid__product-link { color: var(--ink); text-decoration: none; }
.woocommerce-order-details h2, .woocommerce-customer-details h2, .woocommerce-order h2.woocommerce-column__title { font-size: 20px; font-stretch: 112%; margin-bottom: 10px; }
.woocommerce-table--order-details td.product-name a { color: var(--ink); font-weight: 600; text-decoration: none; }
.woocommerce-table--order-details td.product-name a:hover { color: var(--copper); }
.woocommerce-table--order-details .wc-item-meta { list-style: none; margin: 6px 0 0; padding: 0; font: 12.5px/1.6 var(--mono); color: var(--ink-2); }
.woocommerce-table--order-details .wc-item-meta li { display: flex; gap: 6px; }
.woocommerce-table--order-details .wc-item-meta p { margin: 0; }
.woocommerce-table--order-details .wc-item-meta .wc-item-meta-label { font-weight: 600; color: var(--ink-3); float: none; }
.wc-block-order-confirmation-additional-fields-wrapper { margin-top: 24px; }
.wc-block-order-confirmation-additional-fields-wrapper h2 { font-size: 20px; font-stretch: 112%; margin-bottom: 10px; }
.wc-block-components-additional-fields-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; }
.wc-block-components-additional-fields-list dt { font-weight: 600; color: var(--ink-2); }
.wc-block-components-additional-fields-list dd { margin: 0; font-family: var(--mono); overflow-wrap: anywhere; }
.woocommerce .woocommerce-customer-details address { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; font-style: normal; }
/* Billing and shipping stack on phones; keep them apart. */
.woocommerce .woocommerce-customer-details .col2-set .col-1 { margin-bottom: 28px; }

/* Checkout block form fields: follow the theme in light and dark mode */
.wc-block-components-form .wc-block-components-text-input input[type],
.wc-block-components-text-input input[type],
.wc-block-components-textarea,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
  background-color: var(--surface); color: var(--ink); border-color: var(--rule);
}
.wc-block-components-text-input label,
.wc-blocks-components-select .wc-blocks-components-select__label,
.wc-block-components-combobox .wc-block-components-combobox-control label { color: var(--ink-3); }
.wc-blocks-components-select .wc-blocks-components-select__container { background: var(--surface); }
.wc-blocks-components-select .wc-blocks-components-select__expand { fill: var(--ink-2); }
.wc-block-components-address-card { border-color: var(--rule); background: var(--surface); }
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option { color: var(--ink); }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] { background: var(--surface); border-color: var(--ink-3); }
.wc-block-components-order-summary-item__quantity { background: var(--ink) !important; border-color: var(--surface) !important; color: var(--surface) !important; box-shadow: none; }

/* Cart and checkout blocks */
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
  background: var(--copper); color: var(--copper-ink); border: 1.5px solid var(--copper); border-radius: 8px; font-weight: 600; text-decoration: none;
}
.wc-block-components-button:not(.is-link):hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.woocommerce-cart .wc-block-cart .wc-block-cart__submit-button.wc-block-components-button, .woocommerce-checkout .wc-block-checkout .wc-block-components-checkout-place-order-button.wc-block-components-button { min-height: 48px; }
.wc-block-components-button:not(.is-link) .wc-block-components-button__text { color: inherit; }
.wc-block-cart-item__product .wc-block-components-product-name { color: var(--ink); font-weight: 600; text-decoration: none; }
.wc-block-cart-item__product .wc-block-components-product-name:hover { color: var(--copper); }
.wc-block-components-product-details { font: 12.5px/1.6 var(--mono); color: var(--ink-2); }
.wc-block-components-product-details__name { color: var(--ink-3); }
/* One part detail per line instead of a wrapped "a / b / c" run */
.wc-block-components-product-details > span { display: block; }
.wc-block-components-product-details > span > [aria-hidden="true"] { display: none; }
.wc-block-components-sale-badge { background: var(--mask-soft); color: var(--mask); border: 0; border-radius: 4px; }
.wc-block-components-product-metadata__description { color: var(--ink-3); }

.epx-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; margin: 12px 0; }
.epx-specs div { background: var(--surface); padding: 10px 12px; }
.epx-specs dt { font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.epx-specs dd { margin: 2px 0 0; font: 600 14px var(--mono); }
.epx-breaks-table { border-collapse: collapse; margin: 0 0 20px; min-width: 260px; font-variant-numeric: tabular-nums; }
.epx-breaks-table caption { text-align: left; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 6px; }
.epx-breaks-table th, .epx-breaks-table td { text-align: left; padding: 7px 12px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.epx-breaks-table th { font-weight: 600; color: var(--ink-2); background: var(--rule-2); }
.epx-breaks-table td:first-child { font-family: var(--mono); }
.epx-breaks-table { margin-bottom: 8px; }
.epx-breaks-table tr.is-active td { background: var(--mask-soft); color: var(--mask); font-weight: 600; }
.epx-live-total { margin: 0 0 20px; font: 600 14px var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; min-height: 1.5em; }
.btn.ds-btn { padding: 8px 14px; font-size: 13px; border-color: var(--copper); color: var(--copper); }
.btn.ds-btn:hover { background: var(--copper); color: var(--copper-ink); }
.single-product .woocommerce-breadcrumb { margin-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 48px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-2); }
/* Wide first column for the logo, then one equal column per footer section, however many there are. */
.footer-grid { display: grid; grid-template-columns: 1.4fr; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 24px; padding-block: 32px 24px; }
.footer-grid .about { margin: 12px 0 0; max-width: 36ch; }
.foot-h { margin: 0 0 10px; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.legal { padding-block: 16px 32px; border-top: 1px solid var(--rule-2); font-size: 12.5px; color: var(--ink-3); }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; font-size: 13.5px; transition: .25s; pointer-events: none; z-index: 100; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: var(--copper-soft); margin-left: 8px; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .bar { gap: 12px; padding-block: 10px; }
  .actions { margin-left: auto; }
  .site-search { order: 3; flex-basis: 100%; }
  .hero { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat h3 { overflow-wrap: anywhere; hyphens: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; grid-auto-flow: row; }
  .woocommerce-account .woocommerce { grid-template-columns: 1fr; gap: 20px; }
  .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; }
  .woocommerce-MyAccount-navigation-link--customer-logout { border-top: 0; margin-top: 0; padding-top: 0; }
  .woocommerce-account #customer_login { grid-template-columns: 1fr; }

  .add { padding: 9px 16px; }
}
@media (max-width: 560px) {
  .part-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .part-body { padding: 10px; gap: 6px; }
  .part-name { font-size: 13.5px; }
  .part-price b { font-size: 15px; }
  .part-buy { flex-direction: column; }
  .part-buy .qty { align-self: stretch; }
  /* min-width: 0 lets the number field shrink; without it the field's built-in width pushes "+" out of the box. */
  .part-buy .qty input { flex: 1; width: auto; min-width: 0; }
  .part-buy .qty, .part-buy .add { min-height: 44px; }
  .part-buy .qty button { flex: none; width: 40px; }
  /* Order overview: label left, value right, one row each */
  .woocommerce ul.order_details.woocommerce-order-overview { grid-template-columns: 1fr; }
  .woocommerce ul.order_details.woocommerce-order-overview li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-right: 0; border-bottom: 1px solid var(--rule-2); padding: 12px 16px; }
  .woocommerce ul.order_details.woocommerce-order-overview li:last-child { border-bottom: 0; }
  .woocommerce ul.order_details.woocommerce-order-overview li strong { margin-top: 0; font-size: 14px; text-align: right; word-break: normal; overflow-wrap: anywhere; }
  /* Orders list: WooCommerce hides the order-number cell on phones; show it as each card's header */
  .woocommerce table.shop_table_responsive.woocommerce-orders-table tbody th.woocommerce-orders-table__cell-order-number { display: block; padding: 12px 12px 6px; border: 0; font: 600 15px var(--mono); text-align: left; }
  .woocommerce table.shop_table_responsive.woocommerce-orders-table tbody th.woocommerce-orders-table__cell-order-number a { color: var(--ink); text-decoration: none; }
  .woocommerce table.shop_table_responsive.woocommerce-orders-table tbody tr { display: block; border-bottom: 6px solid var(--paper); }
  .woocommerce-account .woocommerce-info .button, .woocommerce-account .woocommerce-message .button { float: none; display: flex; width: 100%; margin: 10px 0 0; }
  body .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input { font-size: 16px; }
  .epx-specs { grid-template-columns: 1fr 1fr; }
  .epx-specs div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* Product page: name and price before a large photo; no iOS zoom on inputs */
  .woocommerce div.product div.images.woocommerce-product-gallery { max-width: 240px; margin-inline: auto; margin-bottom: 20px; }
  .woocommerce div.product form.cart .quantity .qty, .qty input, .woocommerce form .form-row .input-text { font-size: 16px; }
  .woocommerce div.product form.cart { display: flex; gap: 10px; align-items: stretch; }
  .woocommerce div.product form.cart .quantity { margin: 0; }
  .woocommerce div.product form.cart .single_add_to_cart_button { flex: 1; min-height: 48px; }
  .shop-toolbar { flex-wrap: nowrap; }
  .woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 48px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
  .woocommerce nav.woocommerce-pagination ul { gap: 8px; }
  .woocommerce .shop-toolbar .woocommerce-result-count { font-size: 12.5px; min-width: 0; }
  .woocommerce .shop-toolbar .woocommerce-ordering select { max-width: 170px; }
  /* Category buttons: one swipeable row instead of several wrapped rows */
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
  .filters .chip { flex: none; white-space: nowrap; }
  .shop-body .filters.sub { margin-inline: 0; padding-left: 10px; }
  .hero-main { padding: 26px 22px; min-height: 0; }
  .actions .label { display: none; }
  .site-search select { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .account-tiles, .woocommerce-Addresses { grid-template-columns: 1fr; }
  .woocommerce-MyAccount-navigation a { min-height: 44px; display: flex; align-items: center; }
  .cat { padding: 14px; }
  .cat .n { position: static; }
  .cat h3 { padding-right: 0; font-size: 15px; }
  .cat.wide h3 { font-size: 19px; }

  .strip span:nth-child(n+2) { display: none; }
  /* Home best sellers: first few cards only; "Browse all parts" has the rest */
  .part-card.is-extra { display: none; }
  /* Product blocks (e.g. "New in store" in the empty cart): two per row, not one */
  .wc-block-grid .wc-block-grid__products { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; margin: 0; }
  .wc-block-grid .wc-block-grid__products .wc-block-grid__product { max-width: none !important; margin: 0; padding: 0; border: 0; }
  .wc-block-grid__product-title { font-size: 13.5px; }
  .trade { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
