/* ==========================================================================
   Mahoney Controls Theme  -  theme.css
   Design system + components.  Tokens mirrored from the reference build.
   Organized: 1) Tokens  2) Base  3) Layout  4) Buttons  5) Header/Nav
   6) Mega-menu  7) Search  8) Mobile nav  9) Hero  10) Category cards
   11) Product card/grid  12) Quote CTA  13) Footer  14) Breadcrumb
   15) Archive (filters/toolbar/pagination)  16) Single product  17) Utilities
   ========================================================================== */

/* 1) TOKENS ---------------------------------------------------------------- */
:root {
  /* Brand colors (pulled from the reference site's CSS variables) */
  --color-dark-green: #1c2b1e;
  --color-mid-green:  #2d4a30;
  --color-accent-lime:#c8e06a;
  --color-lime-hover: #b8d352;

  --color-text-dark:  #1a1a1a;
  --color-text-muted: #5a5a5a;
  --color-text-light: #6f6f6f; /* 1.6.3: was #a0a0a0 (2.4:1 on the page background); now 4.6:1 for WCAG AA */

  --color-bg-page:    #f7f5f0;
  --color-bg-surface: #ffffff;
  --color-border:     #e8e4dc;

  /* On-dark variants */
  --color-on-dark:        #f4f6f1;
  --color-on-dark-muted:  rgba(244,246,241,.62);
  --color-on-dark-border: rgba(244,246,241,.14);

  /* Fonts */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-condensed: "IBM Plex Sans Condensed", var(--font-sans);

  /* Type scale */
  --text-xs: .75rem;  --text-sm: .875rem; --text-base: 1rem;
  --text-lg: 1.125rem;--text-xl: 1.25rem; --text-2xl: 1.5rem;
  --text-3xl:1.875rem;--text-4xl:2.25rem; --text-5xl: 3rem;
  --text-6xl:3.75rem; --text-7xl: 4.5rem;

  --leading-tight: 1.1; --leading-snug: 1.3; --leading-body: 1.7;

  /* Spacing scale */
  --space-1:.25rem; --space-2:.5rem; --space-3:.75rem; --space-4:1rem;
  --space-5:1.25rem;--space-6:1.5rem;--space-8:2rem;  --space-10:2.5rem;
  --space-12:3rem;  --space-16:4rem; --space-20:5rem; --space-24:6rem;
  --space-32:8rem;

  /* Radii */
  --radius-sm:6px; --radius-md:12px; --radius-lg:20px; --radius-xl:28px;
  --radius-full:9999px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.18);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur-fast: .18s; --dur: .28s; --dur-slow: .5s;

  /* Layout */
  --container: 1280px;
  --container-pad: var(--space-6);
  --header-h: 76px;
  --z-header: 100;
  --z-overlay: 200;
  --z-panel: 210;
}

/* 2) BASE ------------------------------------------------------------------ */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }   /* kills the horizontal scroll bug */

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-text-dark);
  background: var(--color-bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1,h2,h3,h4 {
  font-family: var(--font-condensed);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -.01em;
  margin: 0 0 var(--space-4);
  color: var(--color-text-dark);
}
h1 { font-size: clamp(2.25rem, 1.2rem + 4.4vw, var(--text-6xl)); }
h2 { font-size: clamp(1.875rem, 1.2rem + 2.8vw, var(--text-5xl)); }
h3 { font-size: var(--text-2xl); }
p  { margin: 0 0 var(--space-4); }

:focus-visible { outline: 3px solid var(--color-accent-lime); outline-offset: 2px; border-radius: var(--radius-sm); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-3);
}

/* 3) LAYOUT ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.section { padding-block: clamp(3rem, 1.5rem + 6vw, var(--space-24)); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--color-dark-green); color: #fff; padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; }

/* 4) BUTTONS --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-sans); font-weight: 600; font-size: var(--text-sm);
  line-height: 1; border-radius: var(--radius-full);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--color-accent-lime); color: var(--color-dark-green); }
.btn--primary:hover { background: var(--color-lime-hover); }
.btn--green { background: var(--color-mid-green); color: #fff; }
.btn--green:hover { background: var(--color-dark-green); }
.btn--outline { background: transparent; color: var(--color-text-dark); box-shadow: inset 0 0 0 1.5px var(--color-border); }
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--color-text-dark); }
.btn--outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px var(--color-on-dark-border); }
.btn--outline-light:hover { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn--block { width: 100%; }

/* small round icon button (used on cards / steppers) */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-full);
  color: inherit; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.icon-btn:hover { background: rgba(0,0,0,.06); }

/* 5) HEADER / NAV ---------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: var(--z-header); }
.header-bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
  margin: var(--space-3) auto 0;
  padding-inline: var(--space-6);
  max-width: var(--container);
  background: var(--color-dark-green);
  color: var(--color-on-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  /* v1.5.4: margin and min-height snap instead of animating. Animating
     layout properties on a sticky element re-lays-out and re-rasterizes the
     nav text every frame, which is the header "ghosting". Only paint-cheap
     properties still transition. */
  transition:
    max-width var(--dur) var(--ease),
    border-radius var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
  /* v1.5.7: the layer above makes .header-bar a stacking context, which trapped
     the mega panel (z 210) below the sibling .mega-overlay (z 200). Lift the
     whole bar above the overlay so the panel is reachable again. */
  z-index: 250;
}

/* v1.2: scroll-transition. Floating rounded bar collapses to a flush sticky strip. */
body.is-scrolled .site-header { background: var(--color-dark-green); }
body.is-scrolled .header-bar {
  margin-top: 0;
  max-width: 100%;
  border-radius: 0;
  min-height: 60px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
/* full-bleed feel on small screens */
@media (max-width: 1023px) {
  .header-bar { margin-top: 0; border-radius: 0; }
}

.header-logo { grid-column: 2; justify-self: center; display: inline-flex; align-items: center; }
.header-logo img { height: 38px; width: auto; }
.header-logo .logo-text {
  font-family: var(--font-condensed); font-weight: 700; font-size: var(--text-xl);
  color: #fff; letter-spacing: -.01em;
}

/* primary nav (desktop) */
.primary-nav { grid-column: 1; display: flex; align-items: center; gap: var(--space-2); }
.primary-nav > li > .nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: var(--space-3) var(--space-3);
  font-size: var(--text-sm); font-weight: 500; color: var(--color-on-dark);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease);
}
.primary-nav > li > .nav-link:hover,
.primary-nav > li.is-open > .nav-link { color: var(--color-accent-lime); }
.nav-caret { transition: transform var(--dur) var(--ease); }
.primary-nav > li.is-open .nav-caret { transform: rotate(180deg); }

/* header utilities (right) */
.header-utils { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: var(--space-2); }
.search-trigger {
  display: inline-flex; align-items: center; gap: var(--space-3);
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4);
  color: var(--color-on-dark-muted); font-size: var(--text-sm);
  border-radius: var(--radius-full);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.search-trigger:hover { color: var(--color-on-dark); background: rgba(255,255,255,.06); }
.header-utils .icon-btn { color: var(--color-on-dark); }
.header-utils .icon-btn:hover { background: rgba(255,255,255,.1); }
.cart-link { position: relative; }
.cart-count {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700; line-height: 1;
  color: var(--color-dark-green); background: var(--color-accent-lime);
  border-radius: var(--radius-full);
}

/* hamburger + mobile-only utilities hidden on desktop */
.nav-toggle, .header-utils .mobile-only { display: none; }

/* 6) MEGA-MENU ------------------------------------------------------------- */
.mega-overlay {
  position: fixed; inset: var(--header-h) 0 0; z-index: var(--z-overlay);
  background: rgba(15,20,15,.45); opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
body.has-overlay .mega-overlay { opacity: 1; visibility: visible; }

.mega-panel {
  position: absolute; left: 0; right: 0; top: calc(100% - var(--space-3));
  z-index: var(--z-panel);
  background: var(--color-bg-page);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-10) var(--space-8) var(--space-4);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
  max-width: var(--container); margin-inline: auto;
}
.primary-nav > li.is-open .mega-panel { opacity: 1; visibility: visible; transform: translateY(0); }

.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr) minmax(260px, 320px); gap: var(--space-8); }
.mega-col-head { margin-bottom: var(--space-5); }
.mega-col-head h3 { margin: 0; font-size: var(--text-2xl); }
.mega-links { display: grid; gap: 2px; }
.mega-link {
  display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: var(--space-3);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
  font-size: var(--text-sm); color: var(--color-text-dark);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.mega-link:hover { background: var(--color-bg-surface); color: var(--color-mid-green); }
.mega-link .num { font-size: var(--text-xs); color: var(--color-text-light); font-variant-numeric: tabular-nums; }
.mega-link .chev { color: var(--color-text-light); opacity: 0; transform: translateX(-4px); transition: all var(--dur-fast) var(--ease); }
.mega-link:hover .chev { opacity: 1; transform: translateX(0); }

.mega-mfrs { margin-top: var(--space-6); }
.mega-mfrs .eyebrow { margin-bottom: var(--space-3); }
.mega-mfrs-list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.mega-mfrs-list img { height: 18px; width: auto; object-fit: contain; opacity: .85; }
.mega-mfrs-list span { font-size: var(--text-sm); color: var(--color-text-muted); font-weight: 600; }

.mega-promos { display: grid; gap: var(--space-5); }
.mega-promo {
  position: relative; display: flex; align-items: flex-end;
  min-height: 150px; padding: var(--space-5);
  border-radius: var(--radius-md); overflow: hidden; color: #fff;
  background: var(--color-mid-green);
}
.mega-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.mega-promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,43,30,.1), rgba(28,43,30,.85)); }
.mega-promo .promo-body { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; width: 100%; gap: var(--space-3); }
.mega-promo .badge {
  position: absolute; top: 0; left: 0; z-index: 1;
  background: rgba(255,255,255,.16); backdrop-filter: blur(4px);
  padding: 4px 10px; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 600;
}
.mega-promo h4 { font-family: var(--font-condensed); font-size: var(--text-xl); margin: 0; line-height: 1.15; }
.mega-promo .promo-arrow { flex: none; width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--color-accent-lime); color: var(--color-dark-green); display: grid; place-items: center; }

.mega-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: var(--space-6); padding-top: var(--space-5);
  border-top: 1px solid var(--color-border); font-size: var(--text-sm); color: var(--color-text-muted);
}
.mega-foot a { font-weight: 600; color: var(--color-mid-green); }
.mega-foot .view-all { display: inline-flex; align-items: center; gap: 6px; }

/* 7) SEARCH ---------------------------------------------------------------- */
.search-dropdown {
  position: absolute; top: calc(100% + var(--space-2)); right: var(--space-6);
  width: min(420px, 90vw); z-index: var(--z-panel);
  background: var(--color-bg-surface); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: var(--space-6);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
body.search-open .search-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
/* expanding field inside the header when open */
.search-field {
  display: none; align-items: center; gap: var(--space-2);
  background: #fff; border-radius: var(--radius-full); padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4);
  width: min(360px, 38vw);
}
body.search-open .search-trigger { display: none; }
body.search-open .search-field { display: flex; }
.search-field input { flex: 1; border: 0; outline: 0; background: none; font-size: var(--text-sm); color: var(--color-text-dark); }
.search-field .search-clear { color: var(--color-text-light); }

.search-section + .search-section { margin-top: var(--space-6); }
.search-section h4 { font-family: var(--font-sans); font-size: var(--text-base); font-weight: 600; margin: 0 0 var(--space-4); }
.search-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.search-tag {
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-full);
  font-size: var(--text-sm); color: var(--color-text-dark);
  box-shadow: inset 0 0 0 1px var(--color-border);
  transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.search-tag:hover { background: var(--color-bg-page); box-shadow: inset 0 0 0 1px var(--color-text-dark); }
.search-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.search-prod { display: block; }
.search-prod .thumb { aspect-ratio: 1; background: var(--color-bg-page); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: var(--space-2); }
.search-prod .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 12%; }
.search-prod .cat { font-size: var(--text-xs); color: var(--color-text-light); }
.search-prod .name { font-size: var(--text-sm); font-weight: 600; line-height: 1.25; margin: 2px 0; }
.search-prod .price { font-size: var(--text-sm); color: var(--color-text-muted); }

/* 8) MOBILE NAV ------------------------------------------------------------ */
.mobile-drawer {
  position: fixed; inset: 0 30% 0 0; max-width: 380px; z-index: 300;
  background: var(--color-dark-green); color: var(--color-on-dark);
  transform: translateX(-100%); transition: transform var(--dur) var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
  padding: var(--space-6);
}
body.drawer-open .mobile-drawer { transform: translateX(0); }
.drawer-scrim {
  position: fixed; inset: 0; z-index: 290; background: rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
body.drawer-open .drawer-scrim { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-6); }
.drawer-acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) 0; font-size: var(--text-lg); font-family: var(--font-condensed); font-weight: 700;
  border-bottom: 1px solid var(--color-on-dark-border);
}
.drawer-acc-trigger .nav-caret { transition: transform var(--dur) var(--ease); }
.drawer-acc.is-open .drawer-acc-trigger .nav-caret { transform: rotate(180deg); }
.drawer-acc-body { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.drawer-acc.is-open .drawer-acc-body { max-height: 1200px; }
.drawer-sublist { padding: var(--space-2) 0 var(--space-4); }
.drawer-sublist a { display: block; padding: var(--space-2) 0 var(--space-2) var(--space-3); font-size: var(--text-sm); color: var(--color-on-dark-muted); }
.drawer-sublist a:hover { color: var(--color-accent-lime); }
.drawer-group-label { font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent-lime); padding: var(--space-3) 0 var(--space-1) var(--space-3); }
.drawer-foot { margin-top: auto; padding-top: var(--space-6); display: grid; gap: var(--space-3); }

/* mobile search overlay */
.msearch {
  position: fixed; inset: 0; z-index: 320; background: var(--color-bg-page);
  transform: translateY(-100%); transition: transform var(--dur) var(--ease);
  display: flex; flex-direction: column; padding: var(--space-5);
}
body.msearch-open .msearch { transform: translateY(0); }
.msearch-bar { display: flex; align-items: center; gap: var(--space-3); }
.msearch-bar .field { flex: 1; display: flex; align-items: center; gap: var(--space-2); background: #fff; border-radius: var(--radius-full); padding: var(--space-3) var(--space-4); box-shadow: inset 0 0 0 1px var(--color-border); }
.msearch-bar input { flex: 1; border: 0; outline: 0; background: none; font-size: var(--text-base); }
.msearch-body { margin-top: var(--space-6); overflow-y: auto; }

/* 9) HERO ------------------------------------------------------------------ */
.hero { position: relative; margin-top: calc(var(--header-h) * -1 - var(--space-3)); }
@media (max-width: 1023px) { .hero { margin-top: calc(var(--header-h) * -1); } }
.hero-track { position: relative; }
.hero-slide {
  position: relative; min-height: clamp(560px, 72vh, 760px);
  display: grid; place-items: center; text-align: center; color: #fff;
  background-size: cover; background-position: center;
}
.hero-slide::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(20,28,20,.35), rgba(20,28,20,.55)); }
.hero-slide:not(.is-active) { display: none; }
.hero-inner { position: relative; z-index: 2; padding: var(--header-h) var(--space-6) var(--space-12); max-width: 900px; }
.hero h1, .hero .hero-h { color: #fff; font-size: clamp(2.5rem, 1.2rem + 5.5vw, var(--text-7xl)); margin-bottom: var(--space-8); text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero .btn { box-shadow: var(--shadow-md); }
/* v1.4.0: hero sub-heading + dual CTA */
.hero h1 + .hero-sub, .hero .hero-h + .hero-sub { margin-top: calc(-1 * var(--space-4)); }
.hero-sub { color: rgba(255,255,255,.92); font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.25rem); line-height: 1.55; max-width: 720px; margin: 0 auto var(--space-8); text-shadow: 0 1px 12px rgba(0,0,0,.3); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.hero .btn--outline-light { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85), var(--shadow-md); }
.hero .btn--outline-light:hover { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1.5px #fff, var(--shadow-md); }
/* v1.4.1: left-aligned hero copy, aligned to the container edge, kept clear of the call card */
.hero-slide { text-align: left; place-items: center start; }
.hero-inner { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + var(--space-6)); width: 100%; max-width: none; padding-left: max(var(--space-6), calc((100% - var(--container)) / 2 + var(--container-pad))); padding-right: var(--space-6); padding-bottom: calc(var(--space-12) + 72px); }
.hero-inner > * { max-width: 860px; }
.hero h1, .hero .hero-h { font-size: clamp(2.25rem, 1rem + 4vw, 4.25rem); }
.hero-sub { margin-left: 0; margin-right: 0; }
.hero-actions { justify-content: flex-start; }

/* v1.4.1: stats band, section sub-heading, category card descriptions, featured brands strip */
.stats-band { background: var(--color-dark-green); color: #fff; padding-block: var(--space-10); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.stat { display: flex; flex-direction: column; gap: var(--space-2); }
.stat-num { font-family: var(--font-condensed); font-weight: 700; font-size: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem); line-height: 1; color: var(--color-accent-lime); }
.stat-lbl { font-size: var(--text-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); }
@media (max-width: 767px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.section-sub { color: var(--color-text-muted); font-size: var(--text-lg); line-height: 1.5; max-width: 640px; margin: var(--space-3) 0 0; }
.cat-card-desc { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.55; margin: var(--space-2) 0 var(--space-5); }
.brand-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); }
.brand-tile { display: grid; place-items: center; min-height: 88px; padding: var(--space-4); background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); font-family: var(--font-condensed); font-weight: 700; font-size: var(--text-lg); line-height: 1.15; text-align: center; color: var(--color-text-dark); text-decoration: none; transition: box-shadow .15s ease, transform .15s ease; }
.brand-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
@media (max-width: 1023px) { .brand-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 639px) { .brand-strip { grid-template-columns: repeat(2, 1fr); } }

/* v1.5.0: hero breathing room, why-us, our story, who we serve, quote CTA rework */
.hero-slide { min-height: clamp(640px, 80vh, 840px); }
.hero-inner { padding-top: calc(var(--header-h) + var(--space-12)); padding-bottom: calc(var(--space-16) + 96px); }
.hero-sub { margin-bottom: var(--space-10); }

.why-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--space-16); align-items: center; }
.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); padding: var(--space-8); background: var(--color-dark-green); border-radius: var(--radius-lg); }
.why-stat { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); background: var(--color-mid-green); border-radius: var(--radius-md); border-bottom: 3px solid var(--color-accent-lime); }
.why-stat-num { font-family: var(--font-condensed); font-weight: 700; font-size: var(--text-5xl); line-height: 1; color: var(--color-accent-lime); }
.why-stat-lbl { color: rgba(255,255,255,.8); font-size: var(--text-sm); line-height: 1.4; }
.why-points { display: flex; flex-direction: column; gap: var(--space-6); margin-top: var(--space-8); }
.why-point { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-4); align-items: start; }
.why-point-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--color-accent-lime); color: var(--color-dark-green); }
.why-point h3 { font-family: var(--font-condensed); font-size: var(--text-xl); margin: 0 0 var(--space-1); }
.why-point p { margin: 0; color: var(--color-text-muted); line-height: 1.55; }

.story-band { background: var(--color-dark-green); color: #fff; }
.story-band .eyebrow { color: var(--color-accent-lime); }
.story-band h2 { color: #fff; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: start; }
.milestones { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-8); }
.milestone { display: grid; grid-template-columns: 64px 1fr; gap: var(--space-5); align-items: start; }
.milestone-badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--color-accent-lime); color: var(--color-dark-green); font-family: var(--font-condensed); font-weight: 700; font-size: var(--text-lg); }
.milestone h3 { font-family: var(--font-condensed); font-size: var(--text-xl); color: #fff; margin: 0 0 var(--space-2); }
.milestone p { margin: 0; color: rgba(255,255,255,.8); line-height: 1.55; }
.story-copy { padding-top: var(--space-2); }
.story-copy p { color: rgba(255,255,255,.85); line-height: 1.65; margin: 0 0 var(--space-5); }
.story-copy .btn { margin-top: var(--space-4); }

.serve-band { background: rgba(45,74,48,.07); }
.serve-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); margin-top: var(--space-10); }
.serve-card { background: #fff; border: 1px solid var(--color-border); border-top: 3px solid var(--color-accent-lime); border-radius: var(--radius-lg); padding: var(--space-6); }
.serve-card h3 { font-family: var(--font-condensed); font-size: var(--text-xl); margin: 0 0 var(--space-3); }
.serve-card p { margin: 0; color: var(--color-text-muted); line-height: 1.55; }

.quote-cta .inner { grid-template-columns: 1.4fr 1fr; gap: var(--space-16); }
.quote-cta .quote-text { color: rgba(255,255,255,.8); line-height: 1.65; max-width: 620px; margin: var(--space-4) 0 0; }
.quote-contact { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.quote-contact .eyebrow { margin-bottom: 0; }
.quote-phone { font-family: var(--font-condensed); font-weight: 700; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1; color: #fff; text-decoration: none; }
.quote-email { display: inline-flex; align-items: center; gap: var(--space-2); color: #fff; text-decoration: none; }
.quote-phone:hover, .quote-email:hover { color: var(--color-accent-lime); }
.quote-contact .btn { margin-top: var(--space-2); }

@media (max-width: 1023px) { .why-grid, .story-grid, .quote-cta .inner { grid-template-columns: 1fr; gap: var(--space-10); } .serve-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .serve-grid { grid-template-columns: 1fr; } .why-point { grid-template-columns: 44px 1fr; } .why-point-ic { width: 44px; height: 44px; } .why-stats { padding: var(--space-5); gap: var(--space-4); } }

/* v1.5.1: get a free quote in three steps */
.steps-band { background: var(--color-mid-green); color: #fff; }
.steps-band .eyebrow { color: var(--color-accent-lime); }
.steps-band h2 { color: #fff; }
.steps-band .section-sub { color: rgba(255,255,255,.82); max-width: 780px; }
.steps-grid { list-style: none; margin: var(--space-10) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.step { position: relative; }
.step-num { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--color-accent-lime); color: var(--color-dark-green); font-family: var(--font-condensed); font-weight: 700; font-size: var(--text-2xl); margin-bottom: var(--space-5); }
.step::before { content: ""; position: absolute; top: 28px; left: 56px; right: calc(-1 * var(--space-8)); border-top: 1px dashed rgba(255,255,255,.35); }
.step:last-child::before { display: none; }
.step h3 { font-family: var(--font-condensed); font-size: var(--text-xl); color: #fff; margin: 0 0 var(--space-2); }
.step p { margin: 0; color: rgba(255,255,255,.85); line-height: 1.55; max-width: 360px; }
@media (max-width: 767px) { .steps-grid { grid-template-columns: 1fr; gap: var(--space-6); } .step::before { display: none; } }

.hero-callcard, .hero-prodcard { position: absolute; z-index: 3; }
.hero-callcard {
  left: var(--space-6); bottom: var(--space-6);
  display: flex; align-items: center; gap: var(--space-3);
  background: #fff; color: var(--color-text-dark);
  border-radius: var(--radius-lg); padding: var(--space-3) var(--space-5) var(--space-3) var(--space-3);
  box-shadow: var(--shadow-md);
}
.hero-callcard .ic { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--color-accent-lime); color: var(--color-dark-green); display: grid; place-items: center; flex: none; }
.hero-callcard .lbl { font-size: var(--text-xs); color: var(--color-text-muted); }
.hero-callcard .num { font-family: var(--font-condensed); font-weight: 700; font-size: var(--text-lg); }

.hero-prodcard {
  right: var(--space-6); bottom: var(--space-6); width: 400px; max-width: calc(100vw - var(--space-12));
  display: grid; grid-template-columns: 110px 1fr; gap: var(--space-4);
  background: rgba(20,28,20,.72); backdrop-filter: blur(10px);
  color: #fff; border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: var(--space-4);
}
.hero-prodcard .thumb { background: #fff; border-radius: var(--radius-md); aspect-ratio: 1; overflow: hidden; }
.hero-prodcard .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.hero-prodcard .meta { font-size: var(--text-xs); color: var(--color-on-dark-muted); }
.hero-prodcard .meta b { color: var(--color-accent-lime); font-weight: 600; }
.hero-prodcard h4 { font-family: var(--font-condensed); font-size: var(--text-base); color: #fff; margin: 4px 0; letter-spacing: .04em; }
.hero-prodcard p { font-size: var(--text-xs); color: var(--color-on-dark-muted); margin: 0 0 var(--space-3); }
.hero-prodcard .row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.hero-prodcard .brand { font-size: var(--text-xs); color: #9fc0e8; font-weight: 600; }

.hero-controls { position: absolute; left: 50%; transform: translateX(-50%); bottom: var(--space-6); z-index: 3; display: flex; align-items: center; gap: var(--space-4); color: #fff; }
.hero-controls .count { font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.hero-progress { width: 90px; height: 3px; background: rgba(255,255,255,.3); border-radius: var(--radius-full); overflow: hidden; }
.hero-progress span { display: block; height: 100%; background: var(--color-accent-lime); width: 33%; transition: width var(--dur) var(--ease); }
.hero-arrow { width: 34px; height: 34px; border-radius: var(--radius-full); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.hero-arrow:hover { background: rgba(255,255,255,.15); }

/* 10) CATEGORY CARDS (homepage "shop by department") ----------------------- */
.cat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.cat-card {
  background: var(--color-bg-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-8);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card .eyebrow { color: var(--color-mid-green); }
.cat-card h3 a { transition: color var(--dur-fast) var(--ease); }
.cat-card h3 a:hover { color: var(--color-mid-green); }
.cat-card-links { display: grid; gap: 2px; margin: var(--space-5) 0; }
.cat-card-links a { display: grid; grid-template-columns: 22px 1fr; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); padding: 3px 0; }
.cat-card-links a:hover { color: var(--color-text-dark); }
.cat-card-links .num { color: var(--color-text-light); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }

.utility-band { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-6); }
.utility-tile {
  display: flex; align-items: center; gap: var(--space-4);
  background: var(--color-dark-green); color: #fff;
  border-radius: var(--radius-lg); padding: var(--space-6) var(--space-8);
}
.utility-tile .ic { width: 44px; height: 44px; border-radius: var(--radius-md); background: rgba(200,224,106,.18); color: var(--color-accent-lime); display: grid; place-items: center; flex: none; }
.utility-tile h4 { font-family: var(--font-condensed); margin: 0; color: #fff; }
.utility-tile p { margin: 0; font-size: var(--text-sm); color: var(--color-on-dark-muted); }

/* 11) PRODUCT CARD / GRID -------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.product-card { display: flex; flex-direction: column; }
.product-card .media {
  position: relative; aspect-ratio: 1; background: var(--color-bg-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden;
}
.product-card .media img { width: 100%; height: 100%; object-fit: contain; padding: var(--space-6); transition: opacity var(--dur) var(--ease); }
.product-card .media .img-hover { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .media .img-hover { opacity: 1; }
.product-card .quick {
  position: absolute; left: var(--space-4); right: var(--space-4); bottom: var(--space-4);
  display: flex; gap: var(--space-2); opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.product-card:hover .quick { opacity: 1; transform: translateY(0); }
.product-card .quick .btn { flex: 1; }
.product-card .add-cart {
  position: absolute; right: var(--space-4); bottom: var(--space-4);
  width: 42px; height: 42px; border-radius: var(--radius-full);
  background: var(--color-dark-green); color: #fff; display: grid; place-items: center;
  transition: background var(--dur-fast) var(--ease), opacity var(--dur) var(--ease);
}
.product-card:hover .add-cart { opacity: 0; pointer-events: none; }
.product-card .add-cart:hover { background: var(--color-mid-green); }
.product-card .body { padding-top: var(--space-4); }
.product-card .sku { font-size: var(--text-xs); color: var(--color-text-light); }
.product-card .title { font-family: var(--font-condensed); font-weight: 700; font-size: var(--text-lg); margin: 2px 0 4px; }
.product-card .title a:hover { color: var(--color-mid-green); }
.product-card .price { font-weight: 600; margin-bottom: 4px; }
.product-card .spec { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-3); }
.product-card .stock { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); color: var(--color-text-muted); }
.product-card .stock::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-mid-green); }
.product-card .stock.lead::before { background: #d08a2a; }
.product-card .brand-logo { margin-top: var(--space-3); height: 20px; }
.product-card .brand-logo img { height: 100%; width: auto; object-fit: contain; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-8); }
.tabs { display: inline-flex; gap: var(--space-2); }
.tab { padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); }
.tab.is-active { background: var(--color-dark-green); color: #fff; }

/* --- v1.2: Product carousel ----------------------------------------------- */
.carousel-wrap { position: relative; }
.product-carousel {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-left: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-2);
  /* a little right padding so the partial peek card has visual space */
  padding-right: var(--space-12);
  /* negative right margin so it bleeds to the container edge for the peek effect */
  margin-right: calc(var(--container-pad) * -1);
}
.product-carousel::-webkit-scrollbar { display: none; }
.product-carousel > .product-card {
  flex: 0 0 calc((100% - var(--space-12)) / 4 - var(--space-3));
  scroll-snap-align: start;
}
.carousel-controls { display: inline-flex; gap: var(--space-2); }
.carousel-btn {
  width: 44px; height: 44px; border-radius: var(--radius-full);
  display: grid; place-items: center;
  background: var(--color-bg-surface);
  box-shadow: inset 0 0 0 1px var(--color-border);
  color: var(--color-text-dark);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.carousel-btn[data-carousel-prev] svg { transform: rotate(180deg); }
.carousel-btn:hover { background: var(--color-dark-green); color: #fff; box-shadow: none; }
.carousel-btn[disabled] { opacity: .35; cursor: not-allowed; }
.carousel-btn[disabled]:hover { background: var(--color-bg-surface); color: var(--color-text-dark); box-shadow: inset 0 0 0 1px var(--color-border); }

@media (max-width: 1023px) {
  .product-carousel > .product-card { flex: 0 0 calc((100% - var(--space-6)) / 2 - var(--space-3)); }
}
@media (max-width: 600px) {
  .product-carousel > .product-card { flex: 0 0 78%; }
  .product-carousel { padding-right: var(--space-8); }
}

/* 12) QUOTE CTA ------------------------------------------------------------ */
.quote-cta { background: var(--color-dark-green); color: #fff; }
.quote-cta .inner { display: grid; grid-template-columns: 1fr auto; gap: var(--space-8); align-items: center; padding-block: clamp(2.5rem,1.5rem+4vw,var(--space-20)); }
.quote-cta .eyebrow { color: var(--color-accent-lime); }
.quote-cta h2 { color: #fff; margin: 0; }
.quote-cta .actions { display: flex; gap: var(--space-3); }

/* 13) FOOTER --------------------------------------------------------------- */
.site-footer { background: var(--color-dark-green); color: var(--color-on-dark-muted); }
.footer-main { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-8); padding-block: var(--space-16); }
.footer-brand img { height: 40px; margin-bottom: var(--space-4); }
.footer-brand p { font-size: var(--text-sm); max-width: 30ch; }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.footer-social a { width: 38px; height: 38px; border-radius: var(--radius-full); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--color-on-dark-border); color: var(--color-on-dark); transition: background var(--dur-fast) var(--ease); }
.footer-social a:hover { background: rgba(255,255,255,.1); }
.footer-col h4 { font-family: var(--font-sans); font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--color-on-dark-muted); margin: 0 0 var(--space-4); }
.footer-col a { display: block; padding: 5px 0; font-size: var(--text-sm); color: var(--color-on-dark); transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: var(--color-accent-lime); }
.footer-contact { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); padding-block: var(--space-8); border-top: 1px solid var(--color-on-dark-border); }
.footer-contact .lbl { font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--color-on-dark-muted); margin-bottom: 4px; }
.footer-contact .val { color: var(--color-on-dark); font-size: var(--text-sm); }
.footer-legal { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-6); border-top: 1px solid var(--color-on-dark-border); font-size: var(--text-sm); }
.footer-legal .links { display: flex; gap: var(--space-6); }

/* 14) BREADCRUMB ----------------------------------------------------------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-light); padding-block: var(--space-6); }
.breadcrumb a:hover { color: var(--color-text-dark); }
.breadcrumb .sep { color: var(--color-text-light); }

/* 15) ARCHIVE -------------------------------------------------------------- */
.archive-head { padding-bottom: var(--space-8); }
.archive-head h1 { margin-bottom: var(--space-2); }
.archive-head p { color: var(--color-text-muted); margin: 0; }
.archive-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-10); align-items: start; padding-bottom: var(--space-20); }

.filters .filters-btn { display: none; }
.filter-group { padding: var(--space-5) 0; border-top: 1px solid var(--color-border); }
.filter-group:first-child { border-top: 0; }
.filter-group > summary, .filter-group .fg-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-condensed); font-weight: 700; font-size: var(--text-lg);
  cursor: pointer; list-style: none;
}
.filter-group > summary::-webkit-details-marker { display: none; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) 0; font-size: var(--text-sm); }
.filter-row label { display: flex; align-items: center; gap: var(--space-2); }
.filter-row .cnt { color: var(--color-text-light); font-size: var(--text-xs); }
.filter-row.is-disabled { color: var(--color-text-light); }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-3); }
.price-inputs .pin { display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); }
.price-inputs input { width: 100%; border: 0; outline: 0; background: none; font-size: var(--text-sm); }
input[type="range"] { width: 100%; accent-color: var(--color-mid-green); }

.archive-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-bottom: var(--space-6); flex-wrap: wrap; }
.archive-toolbar .count { font-size: var(--text-sm); color: var(--color-text-muted); }
.archive-toolbar .controls { display: flex; align-items: center; gap: var(--space-6); }
.toolbar-select { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); }
.toolbar-select select { border: 1px solid var(--color-border); border-radius: var(--radius-full); padding: var(--space-2) var(--space-4); background: #fff; font: inherit; font-size: var(--text-sm); }
.toggle { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); }
.switch { width: 38px; height: 22px; border-radius: var(--radius-full); background: var(--color-border); position: relative; transition: background var(--dur-fast) var(--ease); }
.switch::after { content:""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--dur-fast) var(--ease); }
.switch.on { background: var(--color-mid-green); }
.switch.on::after { transform: translateX(16px); }

.pagination { display: flex; align-items: center; justify-content: center; gap: var(--space-2); padding-top: var(--space-10); }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 var(--space-3); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--radius-full); font-size: var(--text-sm); color: var(--color-text-dark);
}
.pagination a:hover { background: var(--color-bg-surface); box-shadow: inset 0 0 0 1px var(--color-border); }
.pagination .current { background: var(--color-dark-green); color: #fff; }
.pagination .dots { color: var(--color-text-light); }

/* 16) SINGLE PRODUCT ------------------------------------------------------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); padding-block: var(--space-8) var(--space-12); align-items: start; }
.pdp-gallery { display: grid; grid-template-columns: 80px 1fr; gap: var(--space-4); position: sticky; top: calc(var(--header-h) + var(--space-6)); }
.pdp-thumbs { display: grid; gap: var(--space-3); }
.pdp-thumb { aspect-ratio: 1; background: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.pdp-thumb.is-active { border-color: var(--color-mid-green); box-shadow: inset 0 0 0 1px var(--color-mid-green); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 14%; }
.pdp-main { aspect-ratio: 1; background: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.pdp-main img { width: 100%; height: 100%; object-fit: contain; padding: var(--space-10); }

.pdp-brandrow { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.pdp-brandrow img { height: 26px; }
.badge-pill { background: rgba(200,224,106,.25); color: var(--color-mid-green); font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--radius-full); }
.pdp h1 { font-size: clamp(2rem,1.4rem+2vw,var(--text-5xl)); margin-bottom: var(--space-4); }
.pdp-price { font-family: var(--font-condensed); font-weight: 700; font-size: var(--text-3xl); margin-bottom: var(--space-4); }
.pdp-price sup { font-size: .5em; top: -.7em; }
.pdp-price .unit { font-family: var(--font-sans); font-size: var(--text-base); font-weight: 400; color: var(--color-text-muted); }
.pdp-sku { display: inline-flex; align-items: center; gap: var(--space-2); background: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: var(--radius-full); padding: 5px 12px; font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-5); }
.pdp-desc { color: var(--color-text-muted); margin-bottom: var(--space-6); }
.pdp-variants { margin-bottom: var(--space-5); }
.pdp-variants .lbl { font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-3); }
.variant-pills { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.variant-pill { padding: var(--space-3) var(--space-5); border-radius: var(--radius-full); font-size: var(--text-sm); box-shadow: inset 0 0 0 1px var(--color-border); transition: all var(--dur-fast) var(--ease); }
.variant-pill.is-active { background: var(--color-dark-green); color: #fff; box-shadow: none; }
.pdp-stock { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); color: #c0492b; margin: var(--space-5) 0; }
.pdp-stock::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.pdp-buy { display: grid; gap: var(--space-3); }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); }
.qty { display: inline-flex; align-items: center; gap: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-full); padding: 0 var(--space-3); background: #fff; }
.qty button { width: 32px; height: 44px; font-size: var(--text-lg); color: var(--color-text-muted); }
.qty input { width: 36px; text-align: center; border: 0; outline: 0; background: none; font: inherit; font-weight: 600; }
.btn--cart { background: var(--color-accent-lime); color: var(--color-dark-green); height: 48px; }
.btn--buy { background: var(--color-mid-green); color: #fff; height: 48px; }

.pdp-trust { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-4); margin: var(--space-8) 0; text-align: center; padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
.pdp-trust .ic { color: var(--color-mid-green); display: grid; place-items: center; margin-bottom: var(--space-2); }
.pdp-trust b { display: block; font-size: var(--text-sm); }
.pdp-trust span { font-size: var(--text-xs); color: var(--color-text-muted); }

.pdp-acc { border-top: 1px solid var(--color-border); }
.pdp-acc summary { display: flex; align-items: center; justify-content: space-between; padding: var(--space-5) 0; font-family: var(--font-condensed); font-weight: 700; font-size: var(--text-xl); cursor: pointer; list-style: none; }
.pdp-acc summary::-webkit-details-marker { display: none; }
.pdp-acc summary .nav-caret { transition: transform var(--dur) var(--ease); }
.pdp-acc[open] summary .nav-caret { transform: rotate(180deg); }
.pdp-acc .acc-body { padding-bottom: var(--space-5); color: var(--color-text-muted); }
.pdp-acc .acc-body li { display: flex; gap: var(--space-3); padding: 4px 0; }
.pdp-acc .acc-body li::before { content:""; flex: none; width: 6px; height: 6px; margin-top: .6em; border-radius: 50%; background: var(--color-mid-green); }
.spec-table { width: 100%; }
.spec-table div { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); font-size: var(--text-sm); }
.spec-table div span:first-child { color: var(--color-text-muted); }
.spec-table div span:last-child { font-weight: 600; color: var(--color-text-dark); text-align: right; }

.pdp-downloads { display: flex; gap: var(--space-3); margin-top: var(--space-5); }

.pdp-sticky {
  position: sticky; bottom: 0; z-index: 80;
  display: none; align-items: center; justify-content: space-between; gap: var(--space-4);
  background: var(--color-dark-green); color: #fff; padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-lg);
}
.pdp-sticky.show { display: flex; }
.pdp-sticky .info { display: flex; align-items: center; gap: var(--space-3); }
.pdp-sticky .info .t { width: 44px; height: 44px; background: #fff; border-radius: var(--radius-sm); overflow: hidden; }
.pdp-sticky .info .t img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.pdp-sticky .info b { font-family: var(--font-condensed); font-size: var(--text-base); }
.pdp-sticky .info span { display: block; font-size: var(--text-xs); color: var(--color-on-dark-muted); }
.pdp-sticky .acts { display: flex; gap: var(--space-2); }

/* 17) UTILITIES ------------------------------------------------------------ */
.text-center { text-align: center; }
.muted { color: var(--color-text-muted); }
.hide { display: none !important; }
.stack-sm > * + * { margin-top: var(--space-3); }

/* ==========================================================================
   RESPONSIVE LAYER  -  the heart of this rebuild
   ========================================================================== */

/* Tablet / below desktop: collapse the nav, fix the header */
@media (max-width: 1023px) {
  :root { --header-h: 64px; }

  .primary-nav, .search-trigger, .search-field, .header-utils .desktop-only { display: none; }
  .nav-toggle { display: inline-flex; grid-column: 1; justify-self: start; }
  .header-utils .mobile-only { display: inline-flex; }
  .header-bar { grid-template-columns: 1fr auto 1fr; padding-inline: var(--space-4); }
  .search-dropdown { display: none; }

  .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-promos { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }

  .pdp { grid-template-columns: 1fr; gap: var(--space-8); }
  .pdp-gallery { position: static; grid-template-columns: 1fr; }
  .pdp-thumbs { grid-template-columns: repeat(4, 1fr); order: 2; }
  .pdp-main { order: 1; }
  .pdp-sticky.show { display: flex; }

  .archive-layout { grid-template-columns: 1fr; gap: var(--space-6); }
  .filters .filters-btn { display: inline-flex; }
  .filters .filters-panel { display: none; }
  .filters.open .filters-panel { display: block; margin-top: var(--space-4); }

  .footer-main { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer-brand { grid-column: 1 / -1; }
  .quote-cta .inner { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* Mobile */
@media (max-width: 767px) {
  :root { --container-pad: var(--space-4); }

  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .cat-cards { grid-template-columns: 1fr; gap: var(--space-4); }
  .utility-band { grid-template-columns: 1fr; }
  .search-featured { grid-template-columns: 1fr 1fr; }

  .hero-prodcard { display: none; }   /* keep the hero clean on phones */
  .hero-callcard { left: var(--space-4); right: var(--space-4); bottom: calc(var(--space-16)); }
  .hero-controls { bottom: var(--space-4); }

  .footer-main { grid-template-columns: 1fr; }
  .footer-contact { grid-template-columns: 1fr 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: var(--space-3); }

  .pdp-trust { grid-template-columns: 1fr; gap: var(--space-3); text-align: left; }
  .pdp-trust .ic { margin: 0; }
  .pdp-trust > div { display: flex; align-items: center; gap: var(--space-3); }

  .archive-toolbar { gap: var(--space-3); }
  .archive-toolbar .controls { width: 100%; justify-content: space-between; }

  .mega-grid { grid-template-columns: 1fr; }
}

/* very small */
@media (max-width: 400px) {
  .product-grid, .product-grid.cols-3 { grid-template-columns: 1fr; }
  .search-featured { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   v1.3.0 - WooCommerce single-product integration
   Styles WooCommerce's native add-to-cart form to fit the .pdp-buy buy box,
   plus a little breadcrumb breathing room as a safety net.
   ========================================================================= */

/* Breadcrumb spacing (belt-and-suspenders; the custom PDP uses .breadcrumb). */
.woocommerce-breadcrumb { margin-bottom: var(--space-5); }

/* WooCommerce add-to-cart form -> match the design's qty stepper + lime button. */
.pdp-buy form.cart {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--space-3);
	align-items: center;
	margin: 0;
}
.pdp-buy form.cart .quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-full);
	background: #fff;
	height: 48px;
	padding: 0 var(--space-2);
}
.pdp-buy form.cart .quantity input.qty {
	width: 48px;
	height: 46px;
	text-align: center;
	border: 0;
	outline: 0;
	background: none;
	font: inherit;
	font-weight: 600;
}
.pdp-buy form.cart .single_add_to_cart_button {
	background: var(--color-accent-lime);
	color: var(--color-dark-green);
	height: 48px;
	border: 0;
	border-radius: var(--radius-full);
	font-weight: 600;
	cursor: pointer;
	padding: 0 var(--space-5);
}
.pdp-buy form.cart .single_add_to_cart_button:hover { filter: brightness(0.96); }

/* Grouped/variable products: let the form span full width gracefully. */
.pdp-buy form.cart.grouped_form,
.pdp-buy form.cart.variations_form { grid-template-columns: 1fr; }

/* ============================================================
   v1.5.2/1.5.3/1.5.4 - WooCommerce block buttons + notice scroll offset
   Cart "Proceed to Checkout" and Checkout "Place Order" are
   wc-block buttons that ship unstyled. Mirror .btn--primary.
   ============================================================ */
.wc-block-components-button.wp-element-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--color-accent-lime) !important;
  color: var(--color-dark-green) !important;
  border: 0 !important;
  border-radius: 9999px !important;
  padding: 14px 28px !important;
  font-weight: 600 !important;
  font-size: 1rem;
  line-height: 1.2;
  box-shadow: none !important;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease;
}
.wc-block-components-button.wp-element-button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  background: var(--color-lime-hover) !important;
  color: var(--color-dark-green) !important;
}
.wc-block-components-button.wp-element-button:disabled,
.wc-block-components-button.wp-element-button[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
}
.wc-block-components-button.wp-element-button .wc-block-components-button__text {
  color: inherit;
}

/* Exclude the notice banner's dismiss (X) button from the primary styling. */
.wc-block-components-notice-banner .wc-block-components-button,
.wc-block-components-notice-banner__dismiss,
.wc-block-components-notice-banner .wc-block-components-button.wp-element-button,
.wc-block-components-notice-banner button {
  background: transparent !important;
  color: inherit !important;
  width: auto !important;
  padding: 4px !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  font-weight: 400 !important;
}
.wc-block-components-notice-banner .wc-block-components-button:hover,
.wc-block-components-notice-banner button:hover {
  background: rgba(0,0,0,.06) !important;
  color: inherit !important;
}

/* Error/notice banners: Woo scrolls them into view on submit and the
   sticky header (76px + 12px offset + 32px admin bar) covers them. */
html { scroll-padding-top: 130px; }
.wc-block-components-notices,
.wc-block-components-notice-banner,
.woocommerce-notices-wrapper,
.woocommerce-error,
.woocommerce-message {
  scroll-margin-top: 130px;
}

/* v1.5.5: stock-state badge on archive cards (see inc/woocommerce.php) */
.card-stock {
  /* v1.5.6: sits opposite the price on the same row (printed before .price) */
  float: right;
  display: inline-block;
  margin: 8px 0 0 8px; /* v1.5.7: 6px price margin + 2px centering */
  position: relative;
  top: 0;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .01em;
}

/* v1.5.6: price row holds the floated badge */
ul.products li.product .price { display: block; overflow: hidden; }

/* 1.5.9: checkout opt-in links read as links */
.wc-block-checkout__terms a,
.wc-block-checkout__terms a:visited { text-decoration: underline; text-underline-offset: 2px; }
.wc-block-checkout__terms a:hover { text-decoration-thickness: 2px; }

/* 1.6.0: product card add-to-cart, mega menu manufacturer links */
.product-card .card-atc { display: flex; justify-content: center; width: 100%; margin-top: var(--space-3); }
.product-card .added_to_cart { display: block; margin-top: var(--space-2); font-size: var(--text-sm); text-align: center; text-decoration: underline; }
.mega-mfrs-list a { font-size: var(--text-sm); color: var(--color-text-muted); font-weight: 600; text-decoration: none; }
.mega-mfrs-list a:hover, .mega-mfrs-list a:focus-visible { text-decoration: underline; }

/* 1.6.1: Brands page ([mahoneyco_brands]) */
.brands-page h2 { margin: var(--space-8, 40px) 0 var(--space-4, 16px); }
.brand-logo-grid, .brand-text-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4, 16px); }
.brand-logo-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.brand-logo-tile { display: flex; align-items: center; justify-content: center; min-height: 120px; padding: 20px; background: #fff; border: 1px solid rgba(28,43,30,.18); border-radius: 12px; text-decoration: none; color: #1c2b1e; text-align: center; transition: border-color .15s, box-shadow .15s; }
.brand-logo-tile:hover, .brand-logo-tile:focus-visible { border-color: #1c2b1e; box-shadow: 0 4px 14px rgba(28,43,30,.12); }
.brand-logo-tile img { max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; }
.brand-logo-name { font-weight: 700; font-size: 1.125rem; line-height: 1.25; }
.brand-text-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 24px; }
.brand-text-grid li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(28,43,30,.12); }
.brand-text-grid a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.brand-text-grid .cnt { color: #5c6158; font-size: .875rem; white-space: nowrap; }

/* 1.6.2: accessibility - primary nav is a real list inside the nav landmark */
.primary-nav-wrap { display: contents; }
ul.primary-nav { list-style: none; margin: 0; padding: 0; }
ul.primary-nav > li { list-style: none; }

/* 1.6.5: links inside page copy were the same colour as the text with no
   underline, so they could not be told apart (WCAG 1.4.1). Plain content
   links are now underlined; buttons and tiles (which carry a class) are not. */
.entry-content a:not([class]) { text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:not([class]):hover { text-decoration-thickness: 2px; }

/* 1.6.6: mobile - the "Why Choose Us" grid column grew to its content's
   minimum width and pushed the page 17px wider than a phone screen
   (sideways scroll on the homepage). Let the grid items shrink. */
.why-grid > * { min-width: 0; }

/* 1.7.0: one neutral pill for every stock state so the badge stops competing
   with Add to Cart; the wording carries the difference. Out of stock keeps the
   same pill and leads with a red dot.
   Replaces: is-in rgba(83,141,34,.12)/mid green, is-low rgba(214,137,16,.14)/#a3600a,
   is-backorder lime/dark green, is-out rgba(0,0,0,.07)/#666. */
.card-stock.is-in,
.card-stock.is-low,
.card-stock.is-backorder,
.card-stock.is-out { background: rgba(0,0,0,.06); color: #4a4f47; }
.card-stock.is-out::before,
.sr-stock.is-out::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #c0392b; vertical-align: 1px; }

/* 1.7.0: mega menu promo tile titles were inheriting the dark heading colour on a dark tile */
.mega-promo h4 { color: #fff; }

/* 1.7.0: search type-ahead (rendered by theme.js into [data-search-results]) */
.search-dropdown { width: min(520px, 92vw); max-height: calc(100vh - 120px); overflow-y: auto; color: var(--color-text-dark); }
.search-results[hidden], [data-search-popular][hidden] { display: none; }
.sr-group + .sr-group { margin-top: var(--space-5); }
.sr-head { font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); margin: 0 0 var(--space-2); padding-bottom: var(--space-2); border-bottom: 1px solid var(--color-border); }
.sr-cat, .sr-row { display: flex; align-items: center; gap: var(--space-3); padding: 8px; margin: 0 -8px; border-radius: var(--radius-sm); color: var(--color-text-dark); text-decoration: none; }
.sr-cat { display: block; }
.sr-cat small { display: block; font-size: var(--text-xs); color: var(--color-text-muted); }
.sr-cat:hover, .sr-cat:focus-visible, .sr-row:hover, .sr-row:focus-visible { background: var(--color-bg-page); }
.sr-thumb { flex: none; width: 48px; height: 48px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.sr-thumb img { width: 100%; height: 100%; object-fit: contain; }
.sr-body { flex: 1; min-width: 0; }
.sr-name { display: block; font-size: var(--text-sm); font-weight: 500; line-height: 1.3; }
.sr-name strong, .sr-cat strong, .sr-sku strong { font-weight: 700; }
.sr-meta { display: block; margin-top: 2px; font-size: var(--text-xs); color: var(--color-text-muted); }
.sr-sku { color: var(--color-text-dark); }
.sr-price { flex: none; font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }
.sr-all { display: block; margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--color-border); text-align: center; font-size: var(--text-sm); font-weight: 600; color: var(--color-text-dark); text-decoration: underline; text-underline-offset: 2px; }
.sr-empty { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.sr-empty a { color: var(--color-text-dark); text-decoration: underline; }

/* 1.7.2: product titles always occupy exactly two lines on cards (homepage
   grids, related products, shop and category pages). Longer titles are cut
   with an ellipsis; one-line titles keep the second line's space, so prices
   and buttons line up across a row instead of stepping up and down. */
.product-card .title,
ul.products li.product .woocommerce-loop-product__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	min-height: 2.5em; /* fallback for browsers without the lh unit */
	min-height: 2lh;
}

/* 1.7.2: search field - hide the browser's own clear "x" (the theme's close
   button sits right beside it), and stop result rows nudging the mobile
   search panel sideways. */
.search-field input[type="search"]::-webkit-search-cancel-button,
.msearch-bar input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.msearch .sr-cat, .msearch .sr-row { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }

/* 1.7.3: no-price products - "Price on request" sits in the price slot at a quieter size */
.product-card .price--request, .price-on-request { font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); }
.pdp-price--request { font-size: var(--text-2xl, 1.5rem); }

/* 1.7.5: page copy (policy pages etc.) - the global list reset left numbered
   lists with no numbers, no indent and no space between items, and headings
   sat tight against the text above them. Numbered lists now show their
   numbers with a hanging indent, and section headings get room above. */
.entry-content ol.wp-block-list { list-style: decimal outside; margin: 0 0 var(--space-6, 24px); padding-left: 1.75em; }
.entry-content ol.wp-block-list > li { margin: 0 0 10px; padding-left: 6px; }
.entry-content ol.wp-block-list > li:last-child { margin-bottom: 0; }
.entry-content ol.wp-block-list > li::marker { font-weight: 600; }
.entry-content * + h2.wp-block-heading { margin-top: var(--space-8, 40px); }
.entry-content * + h3.wp-block-heading { margin-top: var(--space-8, 32px); }
.entry-content h3.wp-block-heading { margin-bottom: 12px; }
