/* ═══════════════════════════════════════════════════════════════════
   AIRGAS SHOP — shared styles for shop.html + product.html
   Consumes ONLY semantic tokens from css/style.css (load after it).
   Design language matches about.html: // eyebrows, two-weight headlines,
   quiet engineered cards, signature easing, carbon accents.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --ease-film: cubic-bezier(0.25, 1, 0.5, 1);
  --dur-film: 0.8s;
}

/* navbar stays glass-dark on these pages (light content below) */
#navbar {
  background: var(--ink-900);
  background: color-mix(in srgb, var(--ink-900) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--white-pure) 6%, transparent);
}

img { height: auto; }
main { overflow-x: clip; }

/* ---------- type devices (shared with about.html) ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-accent-pressed);
}
.eyebrow::before { content: '// '; }
.on-dark .eyebrow { color: var(--orange-300); }

.h2w {
  font-family: var(--font-display);
  line-height: 1.04;
  letter-spacing: var(--tracking-tighter);
  color: var(--color-heading);
  margin: var(--space-md) 0 var(--space-lg);
  text-wrap: balance;
}
.h2w .lead { display: block; font-weight: var(--weight-black); }
.h2w .tail { display: block; font-weight: 300; }

/* ═══════════ SHOP HERO (carbon band) ═══════════ */
.shop-hero {
  position: relative;
  overflow: clip;
  background: var(--ink-900);   /* plain fallback — the gradient needs color-mix */
  background:
    radial-gradient(46rem 26rem at 82% 0%, color-mix(in srgb, var(--orange-500) 14%, transparent), transparent 62%),
    var(--ink-900);
  padding: clamp(120px, 16vh, 170px) var(--space-lg) var(--space-2xl);
}
.shop-hero-inner { max-width: var(--container-base); margin: 0 auto; }
.shop-hero .h2w { color: var(--color-text-inv); font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin-bottom: var(--space-md); }
.shop-hero-lead {
  color: var(--ink-300);
  color: color-mix(in srgb, var(--white-pure) 72%, transparent);
  max-width: 38rem;
  line-height: var(--leading-relaxed);
}
.shop-hero-stats {
  display: flex; flex-wrap: wrap; gap: var(--space-lg) var(--space-2xl);
  margin-top: var(--space-xl);
}
.shop-hero-stats div {
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-300);
  color: color-mix(in srgb, var(--white-pure) 55%, transparent);
}
.shop-hero-stats strong {
  display: block;
  font-family: var(--font-display); font-weight: var(--weight-black);
  font-size: var(--text-3xl); letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--orange-300);
}

/* ═══════════ TOOLBAR (sticky filter/search bar) ═══════════ */
.shop-toolbar {
  position: sticky; top: 68px; z-index: 200;   /* sits BELOW the navbar */
  background: var(--white-pure);
  background: color-mix(in srgb, var(--white-pure) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-lg);
  transition: top 0.35s ease;
}
/* when the navbar auto-hides on scroll-down, the toolbar takes the top edge */
#navbar.nav-hidden ~ main .shop-toolbar { top: 0; }
.shop-toolbar-inner {
  max-width: var(--container-base); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm);
}
.shop-search {
  flex: 1 1 240px; min-width: 0;
  display: flex; align-items: center; gap: var(--space-xs);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-card);
  padding: 0 var(--space-sm);
}
.shop-search svg { width: 17px; height: 17px; color: var(--color-text-muted); flex-shrink: 0; }
.shop-search input {
  width: 100%; border: 0; background: none;
  font: inherit; font-size: 16px;   /* ≥16px stops iOS zoom */
  color: var(--color-text);
  padding: 0.65rem 0;
}
.shop-search input:focus { outline: none; }
.shop-search:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 2px var(--color-accent-tint); }

.cat-chips { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.cat-chip {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-card);
  color: var(--color-text);
  font-size: var(--text-sm); font-weight: var(--weight-medium);
  cursor: pointer;
  transition: background 0.2s var(--ease-film), border-color 0.2s var(--ease-film), color 0.2s var(--ease-film);
}
.cat-chip:hover { border-color: var(--color-accent); color: var(--color-accent-pressed); }
.cat-chip:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.cat-chip[aria-pressed="true"] {
  background: var(--ink-900); border-color: var(--ink-900); color: var(--white-pure);
}
.shop-sort {
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-card);
  color: var(--color-text);
  font: inherit; font-size: var(--text-sm);
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}
.shop-sort:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.shop-count {
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-muted);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ═══════════ PRODUCT GRID ═══════════ */
.shop-main { background: var(--color-bg-alt); min-height: 60vh; }
.shop-grid-wrap { max-width: var(--container-base); margin: 0 auto; padding: var(--space-2xl) var(--space-lg) var(--space-4xl); }
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: var(--space-md);
}
.p-card {
  display: flex; flex-direction: column;
  height: 100%;                       /* equal card heights within a grid row */
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s var(--ease-film), box-shadow 0.2s var(--ease-film), border-color 0.2s var(--ease-film);
}
/* the card is an <article> (2026-09-07: it holds a Copy-link BUTTON next to the link);
   hover / press / focus follow the LINK inside it, painted on the card so the focus ring
   encloses the whole card (an inset ring on the link was hidden by the photo layers) */
.p-card:has(.p-card-link:hover) { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--color-accent-tint); }
.p-card:has(.p-card-link:active) { transform: scale(0.99); }
.p-card:has(.p-card-link:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@supports not selector(:has(a)) { .p-card:focus-within { outline: 2px solid var(--color-focus); outline-offset: 2px; } }
.p-card-imgwrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--white-pure);
  display: grid; place-items: center;
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}
/* soft shimmer behind the photo while it loads — no more "blank card" look */
.p-card-imgwrap::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, var(--ink-50) 32%, var(--color-bg-hover) 50%, var(--ink-50) 68%);
  background-size: 220% 100%;
  animation: img-shimmer 1.6s linear infinite;
}
@keyframes img-shimmer { to { background-position: -120% 0; } }
.p-card-imgwrap img, .p-card-imgwrap .noimg { position: relative; z-index: 1; }
.p-card-imgwrap img { background: var(--white-pure); }
@media (prefers-reduced-motion: reduce) {
  .p-card-imgwrap::before { animation: none; background: var(--ink-50); }
}
.p-card-imgwrap img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s var(--ease-film);
}
.p-card:has(.p-card-link:hover) .p-card-imgwrap img { transform: scale(1.045); }
.p-card-imgwrap .noimg {
  color: var(--color-text-muted);
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.18em; text-transform: uppercase;
}
.p-card-body { padding: var(--space-sm) var(--space-md) var(--space-md); display: flex; flex-direction: column; gap: var(--space-2xs); flex: 1; }
.p-card-cat {
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p-badge { white-space: nowrap; }
.p-card-title {
  font-family: var(--font-display); font-weight: var(--weight-semibold);
  font-size: var(--text-base); line-height: var(--leading-snug);
  color: var(--color-heading);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;                 /* always reserve exactly two lines */
  max-height: 2.5em;
}
.p-card-price {
  margin-top: auto;
  display: flex; align-items: baseline; gap: var(--space-xs);
  font-variant-numeric: tabular-nums;
}
.p-card-price .amt { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-lg); color: var(--color-heading); }
.p-card-price .was { color: var(--color-text-muted); text-decoration: line-through; font-size: var(--text-sm); }
.p-card-price .quote {
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-accent-pressed);
}
.p-badge {
  display: inline-flex; align-self: flex-start;
  padding: 2px var(--space-xs);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.p-badge--order { background: var(--color-accent-wash); color: var(--color-accent-pressed); border: 1px solid var(--color-accent-tint); }
.p-badge--stock { background: var(--color-bg-alt); color: var(--color-text-muted); border: 1px solid var(--color-border); }

.shop-more { display: flex; justify-content: center; padding: var(--space-2xl) 0 0; }
.shop-more button {
  padding: 0.85rem 2.2rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-card);
  color: var(--color-heading);
  font: inherit; font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: border-color 0.2s var(--ease-film), transform 0.2s var(--ease-film), box-shadow 0.2s var(--ease-film);
}
.shop-more button:hover { border-color: var(--color-accent); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.shop-more button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.shop-empty {
  text-align: center; padding: var(--space-4xl) var(--space-lg);
  color: var(--color-text-muted);
}
.shop-empty strong { display: block; font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-heading); margin-bottom: var(--space-xs); }

/* ═══════════ PRODUCT DETAIL ═══════════ */
.pd-wrap { max-width: var(--container-base); margin: 0 auto; padding: calc(72px + var(--space-2xl)) var(--space-lg) var(--space-3xl); }
.pd-crumbs {
  display: flex; flex-wrap: wrap; gap: var(--space-2xs);
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}
.pd-crumbs a { color: var(--color-text-muted); text-decoration: none; }
.pd-crumbs a:hover { color: var(--color-accent-pressed); }
.pd-crumbs .sep { color: var(--color-accent); }
.pd-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-3xl); align-items: start;
}
.pd-gallery { position: sticky; top: 84px; }
.pd-main-img {
  aspect-ratio: 1 / 1;
  background: var(--white-pure);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  padding: var(--space-xl);
  overflow: hidden;
}
.pd-main-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity 0.25s var(--ease-film); }
.pd-thumbs { display: flex; gap: var(--space-xs); margin-top: var(--space-sm); flex-wrap: wrap; }
.pd-thumb {
  width: 68px; height: 68px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--white-pure);
  display: grid; place-items: center;
  padding: 6px; cursor: pointer;
  transition: border-color 0.2s var(--ease-film);
}
.pd-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-thumb[aria-pressed="true"] { border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent); }
.pd-thumb:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.pd-info h1 {
  font-family: var(--font-display); font-weight: var(--weight-black);
  font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  color: var(--color-heading);
  margin: var(--space-xs) 0 var(--space-md);
  text-wrap: balance;
}
.pd-meta {
  display: flex; flex-wrap: wrap; gap: var(--space-md);
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}
.pd-price-row { display: flex; align-items: baseline; gap: var(--space-sm); margin-bottom: var(--space-lg); font-variant-numeric: tabular-nums; }
.pd-price { font-family: var(--font-display); font-weight: var(--weight-black); font-size: var(--text-3xl); color: var(--color-heading); }
.pd-price-was { color: var(--color-text-muted); text-decoration: line-through; }
.pd-quote-note {
  font-size: var(--text-sm); color: var(--color-text-muted);
  margin-top: calc(var(--space-xs) * -1); margin-bottom: var(--space-lg);
}
.pd-short { color: var(--color-text); line-height: var(--leading-relaxed); margin-bottom: var(--space-lg); }
.pd-short p { margin-bottom: var(--space-xs); }

.pd-buy { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: stretch; margin-bottom: var(--space-md); }
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-card);
}
.qty button {
  width: 44px; height: 48px;
  border: 0; background: none; cursor: pointer;
  font-size: var(--text-lg); color: var(--color-heading);
  transition: color 0.15s var(--ease-film), background 0.15s var(--ease-film);
}
.qty button:hover { background: var(--color-bg-hover); color: var(--color-accent-pressed); }
.qty button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.qty input {
  width: 3.2ch; text-align: center; border: 0; background: none;
  font: inherit; font-size: 16px; font-variant-numeric: tabular-nums;
  color: var(--color-heading);
}
.qty input:focus { outline: none; }
.qty:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 2px var(--color-accent-tint); }
.btn-cart {
  flex: 1 1 200px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  padding: 0 1.6rem; min-height: 48px;
  background: var(--color-accent);
  color: var(--white-pure);
  border: 0; border-radius: var(--radius-md);
  font: inherit; font-weight: var(--weight-semibold); font-size: var(--text-base);
  cursor: pointer;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--orange-500) 30%, transparent);
  transition: background 0.2s var(--ease-film), transform 0.2s var(--ease-film), box-shadow 0.2s var(--ease-film);
}
.btn-cart:hover { background: var(--color-accent-hover); transform: translateY(-1px); }
.btn-cart:active { transform: scale(0.98); }
.btn-cart:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn-cart svg { width: 18px; height: 18px; }
.pd-wa {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  min-height: 48px; padding: 0 1.3rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  color: var(--color-heading); text-decoration: none;
  font-weight: var(--weight-medium); font-size: var(--text-sm);
  transition: border-color 0.2s var(--ease-film), color 0.2s var(--ease-film);
}
.pd-wa:hover { border-color: var(--whatsapp); color: var(--color-heading); }
.pd-wa svg { width: 17px; height: 17px; fill: var(--whatsapp); }
.pd-note { font-size: var(--text-sm); color: var(--color-text-muted); }
.pd-note a { color: var(--color-accent-pressed); }

.pd-desc { max-width: var(--container-narrow); margin: var(--space-3xl) auto 0; }
.pd-desc-head { margin-bottom: var(--space-lg); }
.pd-desc-body { color: var(--color-text); line-height: var(--leading-relaxed); overflow-wrap: break-word; }
.pd-desc-body p { margin-bottom: var(--space-md); }
.pd-desc-body h1, .pd-desc-body h2, .pd-desc-body h3, .pd-desc-body h4 {
  font-family: var(--font-display); color: var(--color-heading);
  margin: var(--space-lg) 0 var(--space-sm); font-size: var(--text-lg);
}
.pd-desc-body ul, .pd-desc-body ol { padding-left: 1.3em; margin-bottom: var(--space-md); }
.pd-desc-body li { margin-bottom: var(--space-2xs); }
.pd-desc-body img { max-width: 100%; border-radius: var(--radius-sm); margin: var(--space-sm) 0; }
.pd-desc-body table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); margin-bottom: var(--space-md); }
.pd-desc-body td, .pd-desc-body th { border: 1px solid var(--color-border); padding: var(--space-xs) var(--space-sm); text-align: left; }
.pd-desc-body a { color: var(--color-accent-pressed); }

.pd-related { background: var(--color-bg-alt); border-top: 1px solid var(--color-border); }
.pd-related-inner { max-width: var(--container-base); margin: 0 auto; padding: var(--space-3xl) var(--space-lg) var(--space-4xl); }
.pd-related-inner .shop-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ═══════════ CART (FAB + drawer) ═══════════ */
.cart-fab {
  position: fixed; right: 24px; bottom: 170px; z-index: 900;
  width: 54px; height: 54px;
  border-radius: var(--radius-circle);
  border: 0;
  background: var(--ink-900);
  color: var(--white-pure);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s var(--ease-film), box-shadow 0.2s var(--ease-film);
}
.cart-fab:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); }
.cart-fab:active { transform: scale(0.96); }
.cart-fab:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.cart-fab svg { width: 22px; height: 22px; }
.cart-fab .cart-n {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--white-pure);
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  display: grid; place-items: center;
  font-variant-numeric: tabular-nums;
}
.cart-fab[data-n="0"] .cart-n { display: none; }

.cart-backdrop {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(31, 32, 36, 0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease-film);
}
.cart-backdrop.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1201;
  width: min(430px, 94vw);
  background: var(--color-bg);
  box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.35s var(--ease-film);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.cart-head h2 { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-heading); }
.cart-close {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  color: var(--color-text-muted); display: grid; place-items: center;
  border-radius: var(--radius-md);
  transition: color 0.15s var(--ease-film), background 0.15s var(--ease-film);
}
.cart-close:hover { color: var(--color-heading); background: var(--color-bg-hover); }
.cart-close:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.cart-close svg { width: 20px; height: 20px; }
.cart-items { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-sm) var(--space-lg); }
.cart-row {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: var(--space-sm); align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-row-img {
  width: 58px; height: 58px;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--white-pure);
  display: grid; place-items: center; padding: 4px;
}
.cart-row-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-row-t { min-width: 0; }
.cart-row-t a {
  display: block; color: var(--color-heading); text-decoration: none;
  font-size: var(--text-sm); font-weight: var(--weight-medium); line-height: var(--leading-snug);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cart-row-t a:hover { color: var(--color-accent-pressed); }
.cart-row-p { font-size: var(--text-xs); color: var(--color-text-muted); font-variant-numeric: tabular-nums; margin-top: 2px; }
.cart-row-ctrl { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2xs); }
/* full-size steppers — scaled-down transforms shrink the touch target */
.cart-remove {
  border: 0; background: none; cursor: pointer;
  font-size: var(--text-xs); color: var(--color-text-muted);
  text-decoration: underline; padding: 4px;
}
.cart-remove:hover { color: var(--danger); }
.cart-remove:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.cart-empty { text-align: center; color: var(--color-text-muted); padding: var(--space-3xl) var(--space-lg); }
.cart-foot { border-top: 1px solid var(--color-border); padding: var(--space-md) var(--space-lg) var(--space-lg); }
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: var(--space-2xs);
  font-family: var(--font-display); font-weight: var(--weight-bold);
  color: var(--color-heading); font-variant-numeric: tabular-nums;
}
.cart-total-note { font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-md); }
.cart-send {
  display: flex; align-items: center; justify-content: center; gap: var(--space-xs);
  width: 100%; min-height: 50px;
  background: var(--whatsapp); color: var(--white-pure);
  border: 0; border-radius: var(--radius-md);
  font: inherit; font-weight: var(--weight-semibold);
  text-decoration: none; cursor: pointer;
  transition: filter 0.2s var(--ease-film), transform 0.2s var(--ease-film);
}
.cart-send:hover { filter: brightness(1.06); transform: translateY(-1px); }
.cart-send:active { transform: scale(0.99); }
.cart-send:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.cart-send svg { width: 18px; height: 18px; fill: currentColor; }
.cart-mail {
  display: block; text-align: center; margin-top: var(--space-sm);
  font-size: var(--text-sm); color: var(--color-text-muted);
}
.cart-mail a { color: var(--color-accent-pressed); }

/* toast */
.shop-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 1300;
  transform: translate(-50%, 20px);
  background: var(--ink-900); color: var(--white-pure);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease-film), transform 0.3s var(--ease-film);
}
.shop-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* reveal (main.js fade-up handles .visible) */

/* fast, intentional taps everywhere interactive */
.qty button, .cat-chip, .btn-cart, .cart-fab, .cart-send, .cart-close, .cart-remove,
.pd-thumb, .shop-more button, .p-card, .pd-wa, .shop-sort {
  touch-action: manipulation;
}

/* selected chip must survive Windows High Contrast (colors get stripped) */
@media (forced-colors: active) {
  .cat-chip[aria-pressed="true"] { border-width: 3px; }
}

/* ---------- motion guards ---------- */
@media (prefers-reduced-motion: reduce) {
  .p-card:has(.p-card-link:hover), .btn-cart:hover, .cart-fab:hover, .shop-more button:hover,
  .cart-send:hover, .cart-send:active, .btn-cart:active, .cart-fab:active, .p-card:has(.p-card-link:active) { transform: none; }
  .p-card:has(.p-card-link:hover) .p-card-imgwrap img { transform: none; }
  .cart-drawer, .cart-backdrop, .shop-toast, .shop-toolbar { transition: none; }
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ---------- print: catalog reads as a clean product list ---------- */
@media print {
  #navbar, .shop-toolbar, .cart-fab, .cart-drawer, .cart-backdrop,
  .whatsapp-btn, .back-to-top, .shop-toast, .shop-more, #scroll-progress { display: none !important; }
  .shop-hero { background: none !important; padding-top: var(--space-xl); }
  .shop-hero .h2w, .shop-hero-lead, .shop-hero-stats div, .shop-hero-stats strong { color: var(--ink-900) !important; }
  .p-card, .pd-grid { break-inside: avoid; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .pd-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .pd-gallery { position: static; }
  .shop-toolbar { padding: var(--space-sm) var(--space-md); }
  /* visually hidden but still announced (it is an aria-live region) */
  .shop-count {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}
@media (max-width: 560px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
  .p-card-imgwrap { padding: var(--space-xs); }
  .cart-fab { right: 16px; bottom: 150px; width: 50px; height: 50px; }
  .shop-hero { padding-left: var(--space-md); padding-right: var(--space-md); }
  .shop-grid-wrap { padding-left: var(--space-md); padding-right: var(--space-md); }
}

/* ---------- product datasheets (PDF) — Dropbox library links on the product page ---------- */
.pd-sheets {
  margin-top: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-alt);
}
.pd-sheets-title {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}
.pd-sheets-list { list-style: none; margin: 0; padding: 0; }
.pd-sheets-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
}
.pd-sheets-list li + li { border-top: 1px solid var(--color-border); }
.pd-sheets-list a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--orange-600);
  text-decoration: none;
  font-weight: 500;
  min-height: 44px;
}
.pd-sheets-list a:hover { color: var(--color-accent-pressed); text-decoration: underline; }
.pd-sheets-list a svg { width: 16px; height: 16px; flex: none; }
.pd-sheets-list .pd-sheet-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pd-sheets-list .pd-sheet-dl {
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- image containment hardening ----------
   Every fixed photo frame is a CSS grid; auto-sized tracks let percentage
   max-sizes resolve against content, so tall photos blew out of their frames.
   Definite 100% tracks + explicit 100% image boxes make overflow impossible:
   the photo always letterboxes inside its frame (object-fit: contain). */
.p-card-imgwrap, .pd-main-img, .pd-thumb, .cart-row-img {
  grid-template: 100% / 100%;
}
.p-card-imgwrap img, .pd-main-img img, .pd-thumb img, .cart-row-img img {
  width: 100%; height: 100%;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
/* photos embedded in product descriptions must never exceed the column */
.pd-short img, .pd-desc-body img { max-width: 100%; height: auto; }

/* ---------- photo lightbox — click any product photo to inspect it up close ---------- */
.pd-main-img { position: relative; }
.pd-main-img img { cursor: zoom-in; }
.pd-main-zoom {
  position: absolute; right: var(--space-sm); bottom: var(--space-sm); z-index: 2;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--white-pure);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-circle);
  color: var(--ink-700);
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.pd-main-zoom:hover { color: var(--color-accent-hover); border-color: var(--color-accent); }
.pd-main-zoom:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.pd-main-zoom svg { width: 20px; height: 20px; }
.pd-desc-body img, .pd-short img { cursor: zoom-in; }

.lightbox {
  position: fixed; inset: 0;
  /* NOT var(--z-modal): that token says 400, but the real page stacks higher —
     #navbar is 1000, .cart-fab 900, WhatsApp/chatbot floats 500. A modal must
     cover them all. */
  z-index: 2000;
  background: rgba(31, 32, 36, 0.93); /* ink-900 veil, matches the cart backdrop family */
  display: grid; grid-template: 100% / 100%; place-items: center;
}
.lightbox[hidden] { display: none; }
.lb-stage {
  width: 100%; height: 100%;
  display: grid; grid-template: 100% / 100%; place-items: center;
  overflow: hidden;
  touch-action: none;
}
.lb-img {
  width: 100%; height: 100%;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  padding: clamp(20px, 6vmin, 56px);
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.25s var(--ease-out);
}
.lightbox.is-zoomed .lb-img { cursor: grab; transition: none; }
.lightbox.is-panning .lb-img { cursor: grabbing; }
.lb-btn {
  position: absolute; z-index: 2;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-circle);
  color: var(--white-pure);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.2); }
.lb-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; margin-top: -24px; }
.lb-next { right: 18px; top: 50%; margin-top: -24px; }
.lb-count {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.14em;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  pointer-events: none;
}
@media (max-width: 560px) {
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-img { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-img { transition: none; }
}

/* ---------- mobile touch-target hardening (audited at 375px, WCAG 44px) ---------- */
@media (max-width: 767px) {
  .cat-chip { min-height: 44px; padding: 0.55rem 1rem; }
  .shop-sort { min-height: 44px; font-size: 16px; } /* 16px stops iOS focus-zoom */
  .qty input { align-self: stretch; min-height: 44px; }
  .pd-crumbs a { display: inline-block; padding: 13px 2px; }
}

/* ---------- "Most Requested" flag on catalog cards (real ERP best-sellers) ---------- */
.p-card-imgwrap { position: relative; }
.p-card-pop {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--white-pure);
  font-family: var(--font-mono);
  font-size: 0.6rem; font-weight: var(--weight-semibold);
  letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(244, 123, 32, 0.35);
  pointer-events: none;
}

/* ---------- placeholder for the handful of products with no photo on file ----------
   Only 6 of 366 products lack a photo in the WordPress media library. Rather than
   borrowing a similar product's image (which would misrepresent it), show a quiet
   branded placeholder and invite an enquiry. */
.p-card-imgwrap .noimg,
.pd-main-img .noimg,
.cart-row-img .noimg {
  display: grid; place-items: center; align-content: center; gap: 10px;
  width: 100%; height: 100%;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.16em; text-transform: uppercase;
  text-align: center; padding: var(--space-sm);
}
.p-card-imgwrap .noimg::before,
.pd-main-img .noimg::before {
  content: '';
  width: 52px; height: 52px;
  background: url('../assets/no-photo.svg') center / contain no-repeat;
  opacity: 0.75;
}
.cart-row-img .noimg { font-size: 0; gap: 0; }        /* 58px row — icon only */
.cart-row-img .noimg::before {
  content: ''; width: 26px; height: 26px;
  background: url('../assets/no-photo.svg') center / contain no-repeat;
  opacity: 0.7;
}

/* ═══ DETAIL-PAGE QUICK SEARCH (product.html) ═══
   Search without going back to the shop: input + ranked suggestion listbox.
   Same engine as the catalog page, so results match shop.html exactly. */
.pd-search {
  position: relative;
  max-width: 560px;
  margin: var(--space-md) 0 var(--space-lg);
  z-index: var(--z-dropdown);
}
.pd-search-form {
  display: flex; align-items: center; gap: var(--space-xs);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: var(--space-3xs) var(--space-3xs) var(--space-3xs) var(--space-md);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.pd-search-form:focus-within {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}
.pd-search-ico { width: 18px; height: 18px; flex: none; color: var(--color-text-muted); }
#pd-q {
  flex: 1; min-width: 0;
  border: 0; background: none; outline: none;
  font: inherit; font-size: 16px;          /* ≥16px: no iOS focus zoom */
  color: var(--color-text);
  min-height: 44px;
}
#pd-q::placeholder { color: var(--color-text-muted); }
.pd-search-btn {
  flex: none; min-height: 44px; padding: 0 var(--space-lg);
  border: 0; border-radius: var(--radius-pill);
  background: var(--color-accent); color: var(--white-pure, #fff);
  font: inherit; font-weight: 600; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.pd-search-btn:hover { background: var(--color-accent-hover); }
.pd-search-btn:active { background: var(--color-accent-pressed); }

.pd-q-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  margin: 0; padding: var(--space-2xs); list-style: none;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: min(420px, 62vh); overflow-y: auto;
}
.pd-q-list li {
  display: flex; align-items: center; gap: var(--space-sm);
  min-height: 48px; padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-md); cursor: pointer;
}
.pd-q-list li img,
.pd-q-list .pdq-noimg {
  width: 40px; height: 40px; flex: none;
  object-fit: contain;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
}
.pd-q-list .pdq-noimg { display: inline-block; text-align: center; color: var(--color-text-muted); }
.pd-q-list li .t {
  flex: 1; min-width: 0;
  font-size: var(--text-sm); line-height: var(--leading-snug);
  color: var(--color-heading);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pd-q-list li .k {
  flex: none;
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.pd-q-list li:hover { background: var(--color-bg-hover); }
.pd-q-list li.is-active {
  background: var(--color-bg-hover);
  outline: 2px solid var(--color-focus); outline-offset: -2px;
}
.pd-q-list .pdq-all {
  justify-content: center;
  font-weight: 600; font-size: var(--text-sm);
  color: var(--color-accent-hover);      /* orange-600: AA on white at this size */
}

@media (max-width: 767px) {
  .pd-search { max-width: none; }
  .pd-q-list li .k { display: none; }    /* keep rows one-line-tidy on phones */
}

/* screen-reader-only utility (style.css's layer diagram names it, but it was
   never actually defined anywhere — the quick-search status line needs it) */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- spec tables — "one line per spec, not one blob" (owner 2026-09-04) ----------
   shop.js specFormat() turns "Key: value; Key: value…" text into <table class="pd-spec">.
   Hand-made tables in WooCommerce get the same look. product.html loads only this file. */
.pd-spec, .pd-short table, .pd-desc-body table {
  width: 100%; border-collapse: collapse;
  margin: var(--space-sm) 0 var(--space-md);
  font-size: var(--text-sm); line-height: var(--leading-snug);
  border: 1px solid var(--color-border);
}
.pd-spec th, .pd-spec td,
.pd-short table th, .pd-short table td,
.pd-desc-body table th, .pd-desc-body table td {
  padding: 0.6rem 0.8rem; text-align: left; vertical-align: top;
  border: 1px solid var(--color-border);
  overflow-wrap: anywhere;
}
.pd-spec th[scope="row"], .pd-short table th:first-child, .pd-desc-body table th:first-child {
  width: 38%; font-weight: var(--weight-semibold);
  color: var(--color-heading); background: var(--color-bg-alt);
}
.pd-spec-group th {
  background: var(--color-accent-wash); color: var(--color-accent-pressed);
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: var(--weight-semibold);
}
.pd-spec-note td { color: var(--color-text-muted); }
@media (max-width: 560px) { .pd-spec th[scope="row"] { width: 44%; } }

/* the "Price on request — add it to your enquiry…" note now sits at the BOTTOM of
   the product panel (owner 2026-09-07: "this can move to bottom") */
.pd-quote-note { margin-top: var(--space-md); margin-bottom: 0; }

/* ---------- "Copy link" on every product card + product page (owner 2026-09-07) ----------
   The card is an <article>: a stretched link (photo + text) and a footer row that
   holds a REAL button, because a button inside the old <a> card would be invalid
   HTML and would navigate. */
.p-card-link { display: flex; flex-direction: column; flex: 1; min-width: 0; color: inherit; text-decoration: none; cursor: pointer; }
.p-card-link:focus-visible { outline: none; }          /* the ring is painted on .p-card (see above) */
.p-card-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs);
  padding: 0 var(--space-md) var(--space-md);
}
.p-card-foot .p-card-price { margin-top: 0; }
.p-card-foot .quote { white-space: nowrap; }            /* label keeps one line; the button drops to its own row when the card is narrow */
.p-copy, .pd-copy {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 0.75rem;
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill);
  background: var(--color-card); color: var(--color-heading);
  font: inherit; font-size: var(--text-xs); font-weight: var(--weight-medium); letter-spacing: 0.02em;
  cursor: pointer; white-space: nowrap; margin-left: auto;
  transition: border-color 0.2s var(--ease-film), background 0.2s var(--ease-film), color 0.2s var(--ease-film);
}
.p-copy svg, .pd-copy svg { width: 14px; height: 14px; flex-shrink: 0; }
.p-copy:hover, .pd-copy:hover { border-color: var(--color-accent); color: var(--color-accent-pressed); }
.p-copy:focus-visible, .pd-copy:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.p-copy.is-copied, .pd-copy.is-copied { background: var(--color-accent-tint); border-color: var(--color-accent); color: var(--color-accent-pressed); }
.pd-copy { min-height: 48px; padding: 0 1.3rem; border-radius: var(--radius-md); font-size: var(--text-sm); }
.pd-copy svg { width: 16px; height: 16px; }
@media (max-width: 1024px), (hover: none) { .p-copy { min-height: 44px; padding: 0 0.9rem; } }   /* 44 px on every touch screen, tablets included */
@media (max-width: 560px) { .p-copy { flex: 1 1 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .p-copy, .pd-copy { transition: none; } }

/* "Price on request" heading + its note both sit at the BOTTOM of the product panel
   (owner 2026-09-07, second round: "the bold header must be moved to the bottom too") */
.pd-price-row { margin-top: var(--space-lg); margin-bottom: var(--space-2xs); }
.pd-price-row .pd-price { font-size: var(--text-xl); }
.pd-quote-note { margin-top: 0; }

/* the toast used to hold 19-character messages; centre it with a real width */
.shop-toast { width: max-content; max-width: calc(100vw - 32px); text-align: center; }
