/*
Theme Name: XtremeXDFMotoFiles
Theme URI: https://example.com/xtremexdfmotofiles
Author: XtremeXDFMotoFiles
Author URI: https://example.com
Description: Dark workshop WooCommerce theme for selling digital tuning files — XDF definitions, WinOLS / damos files, bike and car tuning binaries (.bin) and video training courses. Signature ECU map-table visuals, hexadecimal texture, and a live SKU-aware header search.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xtremexdfmotofiles
Tags: e-commerce, dark, custom-menu, custom-logo, translation-ready
*/

/* ==============================================================
   TABLE OF CONTENTS
   01 Tokens
   02 Reset & base
   03 Typography
   04 Buttons & forms
   05 Header
   06 Live search
   07 Hero + map table (signature)
   08 Sections & bento cards
   09 Process, trust
   10 Content & pagination
   11 Footer
   12 WooCommerce
   13 Responsive
   14 Motion & a11y
   ============================================================== */

/* --------------------------------------------------------------
   01 Tokens
   -------------------------------------------------------------- */
:root {
  /* Surfaces — carbon through gunmetal */
  --c-void:      #0f1114;
  --c-bg:        #14161a;
  --c-panel:     #191c22;
  --c-panel-hi:  #1f232b;
  --c-inset:     #101318;

  /* Lines */
  --c-line:      #282d36;
  --c-line-soft: #21252c;
  --c-edge:      rgba(255, 255, 255, .045);

  /* Ink */
  --c-ink:       #e6e9ee;
  --c-ink-2:     #b8bfca;
  --c-ink-3:     #8b93a0;
  --c-ink-4:     #7c8593;

  /* Signal */
  --c-amber:     #ffae1a;
  --c-amber-2:   #ffc85e;
  --c-amber-lo:  rgba(255, 174, 26, .12);
  --c-amber-ln:  rgba(255, 174, 26, .38);
  --c-steel:     #7fa7c4;
  --c-steel-lo:  rgba(127, 167, 196, .12);

  /* Map heat ramp — cold load to knock-limit */
  --heat-0: #223449;
  --heat-1: #2f5473;
  --heat-2: #4b7c9c;
  --heat-3: #7fa7c4;
  --heat-4: #c9a25a;
  --heat-5: #ffae1a;
  --heat-6: #e8703a;

  --c-ok:    #4fb06a;
  --c-warn:  #e0a63a;
  --c-err:   #e05a5a;

  /* Type */
  --f-display: "Chakra Petch", "DejaVu Sans Condensed", "Arial Narrow", sans-serif;
  --f-body:    "IBM Plex Sans", "Liberation Sans", system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", "DejaVu Sans Mono", ui-monospace, monospace;

  /* Fluid type scale */
  --t-xs:   .72rem;
  --t-sm:   .82rem;
  --t-base: .95rem;
  --t-md:   1.05rem;
  --t-lg:   clamp(1.15rem, 1.6vw, 1.35rem);
  --t-xl:   clamp(1.5rem, 2.6vw, 2rem);
  --t-2xl:  clamp(2rem, 4.2vw, 3.1rem);
  --t-3xl:  clamp(2.6rem, 6vw, 4.4rem);

  /* Space scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 104px;

  --r-sm: 3px;
  --r:    6px;
  --r-lg: 10px;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 8px 24px -8px rgba(0,0,0,.6);
  --shadow-3: 0 24px 60px -20px rgba(0,0,0,.75);

  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* --------------------------------------------------------------
   02 Reset & base
   -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

:where(html) {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--c-line) var(--c-bg);
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink-2);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

:where(img, svg, video) { max-width: 100%; height: auto; display: block; }

:where(a) {
  color: var(--c-steel);
  text-decoration: none;
  transition: color .18s var(--ease);
}
:where(a:hover) { color: var(--c-amber); }

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

::selection { background: var(--c-amber); color: var(--c-void); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed !important; top: 12px; left: 12px;
  width: auto; height: auto; clip: auto; clip-path: none;
  z-index: 999; padding: 10px 16px;
  background: var(--c-amber); color: var(--c-void);
  font-family: var(--f-display); text-transform: uppercase;
}

/* --------------------------------------------------------------
   03 Typography
   -------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-ink);
  line-height: 1.08;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--t-3xl); letter-spacing: -.015em; }
h2 { font-size: var(--t-2xl); letter-spacing: -.01em; }
h3 { font-size: var(--t-lg); letter-spacing: .01em; }
h4 { font-size: var(--t-md); letter-spacing: .02em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Mono utility — SKUs, prices, addresses, axis labels */
.mono, .sku, .xx-meta {
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

/* Eyebrow label */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-amber);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: var(--c-amber); opacity: .7;
}

.lede { font-size: var(--t-md); color: var(--c-ink-3); max-width: 60ch; }

/* --------------------------------------------------------------
   04 Buttons & forms
   -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--c-amber);
  --btn-fg: var(--c-void);
  --btn-bd: var(--c-amber);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-family: var(--f-display);
  font-size: var(--t-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 13px 24px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -6px rgba(255, 174, 26, .5);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--c-ink);
  --btn-bd: var(--c-line);
}
.btn--ghost:hover {
  --btn-fg: var(--c-amber);
  --btn-bd: var(--c-amber-ln);
  background: var(--c-amber-lo);
  box-shadow: none;
}

input[type="text"], input[type="search"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="url"], input[type="date"],
textarea, select {
  width: 100%;
  padding: 11px 13px;
  font-family: var(--f-body);
  font-size: var(--t-base);
  color: var(--c-ink);
  background: var(--c-inset);
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--c-ink-4); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--c-amber-ln);
  box-shadow: 0 0 0 3px var(--c-amber-lo);
}
label { display: inline-block; font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--c-ink-4); margin-bottom: var(--s-2); }

/* --------------------------------------------------------------
   05 Header
   -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--c-line);
  box-shadow: var(--shadow-2);
}

.header-bar {
  display: flex; align-items: center; gap: clamp(12px, 2vw, 24px);
  min-height: 72px;
}

/* Brand */
.brand { display: inline-flex; align-items: center; gap: var(--s-3); flex-shrink: 0; }
.brand__logo img, .brand img.custom-logo { max-height: 40px; width: auto; }
.brand__text { display: grid; line-height: 1; }
.brand__name {
  font-family: var(--f-display);
  font-size: 1.12rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em;
  color: var(--c-ink);
  white-space: nowrap;
  transition: color .18s var(--ease);
}
.brand:hover .brand__name { color: var(--c-ink); }
.brand__name .dot { color: var(--c-amber); }
.brand__sub {
  font-family: var(--f-mono);
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--c-ink-4);
  margin-top: 4px;
  white-space: nowrap;
}

/* Nav */
.nav-primary { margin-left: auto; }
.nav-primary ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-primary li { position: relative; }
.nav-primary a {
  display: block; position: relative;
  font-family: var(--f-display);
  font-size: var(--t-sm); font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--c-ink-2);
  padding: 10px 13px;
  border-radius: var(--r-sm);
}
.nav-primary a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px;
  height: 1px; background: var(--c-amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav-primary a:hover { color: var(--c-ink); }
.nav-primary a:hover::after { transform: scaleX(1); }
.nav-primary .current-menu-item > a { color: var(--c-amber); }

.nav-primary .sub-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 210px; flex-direction: column; gap: 0;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  box-shadow: var(--shadow-3);
  padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-primary li:hover > .sub-menu,
.nav-primary li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-primary .sub-menu a::after { display: none; }
.nav-primary .sub-menu a:hover { background: var(--c-panel-hi); }

/* Cart */
.cart-link {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--f-mono); font-size: var(--t-sm);
  color: var(--c-ink-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  padding: 9px 13px;
  white-space: nowrap;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.cart-link:hover { border-color: var(--c-amber-ln); color: var(--c-amber); background: var(--c-amber-lo); }
.cart-link__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding-inline: 6px;
  background: var(--c-amber); color: var(--c-void);
  font-size: .68rem; font-weight: 600;
  border-radius: 999px;
}
.cart-link__count[data-empty="1"] { background: var(--c-line); color: var(--c-ink-4); }

/* Menu toggle */
.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  color: var(--c-ink);
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.menu-toggle:hover { border-color: var(--c-amber-ln); color: var(--c-amber); }
.menu-toggle__bars { position: relative; width: 18px; height: 12px; }
.menu-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 5px; }
.menu-toggle__bars span:nth-child(3) { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --------------------------------------------------------------
   06 Live search
   -------------------------------------------------------------- */
.live-search { position: relative; flex: 1 1 300px; max-width: 440px; min-width: 0; }
.live-search__form { position: relative; display: block; }
.live-search__input {
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  padding-inline: 38px 44px;
  background: var(--c-inset);
}
.live-search__icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--c-ink-4); pointer-events: none;
}
.live-search__submit {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: transparent; border: 0; border-radius: var(--r-sm);
  color: var(--c-ink-4); cursor: pointer;
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .04em;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.live-search__submit:hover { color: var(--c-amber); background: var(--c-amber-lo); }

.live-search__spinner {
  position: absolute; right: 44px; top: 50%;
  width: 14px; height: 14px; margin-top: -7px;
  border: 1.5px solid var(--c-line);
  border-top-color: var(--c-amber);
  border-radius: 50%;
  opacity: 0;
  animation: spin .7s linear infinite;
  transition: opacity .15s;
}
.live-search.is-loading .live-search__spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.live-search__panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  max-height: min(70vh, 460px); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.live-search__panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.live-search__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px;
  font-family: var(--f-mono); font-size: var(--t-xs);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-ink-4);
  border-bottom: 1px solid var(--c-line-soft);
  background: var(--c-inset);
}

.result {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center; gap: var(--s-3);
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-line-soft);
  color: var(--c-ink-2);
  transition: background .14s var(--ease);
}
.result:last-of-type { border-bottom: 0; }
.result:hover, .result.is-active { background: var(--c-panel-hi); color: var(--c-ink); }
.result.is-active { box-shadow: inset 2px 0 0 var(--c-amber); }

.result__media {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-inset);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.result__media img { width: 100%; height: 100%; object-fit: cover; }
.result__media .ext { font-size: .56rem; }

.result__body { min-width: 0; }
.result__title {
  display: block; font-size: var(--t-base); line-height: 1.3;
  color: inherit;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.result__meta {
  display: block;
  font-family: var(--f-mono); font-size: var(--t-xs);
  color: var(--c-ink-4);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.result__price {
  font-family: var(--f-mono); font-size: var(--t-sm); font-weight: 600;
  color: var(--c-amber);
  white-space: nowrap;
}

.live-search__foot {
  display: block; padding: 11px 14px; text-align: center;
  font-family: var(--f-mono); font-size: var(--t-xs);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-amber);
  border-top: 1px solid var(--c-line-soft);
  background: var(--c-inset);
  transition: background .14s var(--ease);
}
.live-search__foot:hover, .live-search__foot.is-active { background: var(--c-panel-hi); color: var(--c-amber); }

.live-search__empty {
  padding: 22px 16px; text-align: center;
}
.live-search__empty .mono { color: var(--c-ink-4); display: block; }
.live-search__empty strong {
  display: block; font-family: var(--f-display); text-transform: uppercase;
  color: var(--c-ink-2); font-size: var(--t-base); margin-bottom: 4px;
}

/* --------------------------------------------------------------
   07 Hero + map table (signature)
   -------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 92px) clamp(48px, 7vw, 80px);
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 82% 8%, rgba(127,167,196,.10), transparent 70%),
    radial-gradient(40% 40% at 8% 0%, rgba(255,174,26,.06), transparent 70%),
    var(--c-bg);
}

/* Hexadecimal dump texture */
.hexdump {
  position: absolute; inset: 0;
  font-family: var(--f-mono);
  font-size: 11px; line-height: 1.5;
  color: var(--c-steel);
  opacity: .07;
  white-space: pre;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  padding: 14px 0 0 12px;
  -webkit-mask-image: linear-gradient(115deg, #000 0%, transparent 62%);
  mask-image: linear-gradient(115deg, #000 0%, transparent 62%);
}
.hexdump b { color: var(--c-amber); font-weight: 400; }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero__copy { max-width: 62ch; }
.hero h1 {
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  margin-block: var(--s-4) var(--s-4);
}
.hero h1 .accent { color: var(--c-amber); }
.hero__lede { margin-bottom: var(--s-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-6); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: var(--t-xs);
  color: var(--c-ink-3);
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 6px 12px;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.chip::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--c-steel);
}
.chip:hover { border-color: var(--c-amber-ln); color: var(--c-ink); }
.chip:hover::before { background: var(--c-amber); }

/* --- The map table: signature element --- */
.mapwin {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3), inset 0 1px 0 var(--c-edge);
  overflow: hidden;
}
.mapwin__bar {
  display: flex; align-items: center; gap: var(--s-3);
  padding: 10px 14px;
  background: linear-gradient(var(--c-panel-hi), var(--c-panel));
  border-bottom: 1px solid var(--c-line);
}
.mapwin__dots { display: flex; gap: 5px; }
.mapwin__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--c-line); display: block; }
.mapwin__dots i:first-child { background: #3d444f; }
.mapwin__file {
  font-family: var(--f-mono); font-size: var(--t-xs);
  color: var(--c-ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mapwin__tag {
  margin-left: auto;
  font-family: var(--f-mono); font-size: .62rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-amber);
  border: 1px solid var(--c-amber-ln);
  background: var(--c-amber-lo);
  border-radius: 3px;
  padding: 3px 7px;
  white-space: nowrap;
}
.mapwin__body { padding: 14px; }
.mapwin__title {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--f-mono); font-size: var(--t-xs);
  color: var(--c-ink-4);
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 10px;
}

/* The grid of map cells */
.maptable { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; min-width: 0; }
.maptable__yaxis {
  display: grid; gap: 2px;
  font-family: var(--f-mono); font-size: .58rem;
  color: var(--c-ink-4);
  text-align: right;
  padding-right: 4px;
}
.maptable__yaxis span { display: flex; align-items: center; justify-content: flex-end; }
.maptable__cells {
  display: grid;
  gap: 2px;
  grid-auto-rows: minmax(0, 1fr);
  min-width: 0;
}
.maptable__row { display: grid; gap: 2px; min-width: 0; }
.cell {
  min-width: 0;
  aspect-ratio: 1.55;
  border-radius: 1.5px;
  font-family: var(--f-mono);
  font-size: .5rem;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55);
  transition: transform .2s var(--ease), filter .2s var(--ease);
}
.cell:hover { transform: scale(1.28); filter: brightness(1.35); z-index: 2; }
.h0 { background: var(--heat-0); }
.h1 { background: var(--heat-1); }
.h2 { background: var(--heat-2); }
.h3 { background: var(--heat-3); color: rgba(0,0,0,.5); }
.h4 { background: var(--heat-4); color: rgba(0,0,0,.6); }
.h5 { background: var(--heat-5); color: rgba(0,0,0,.65); }
.h6 { background: var(--heat-6); color: rgba(0,0,0,.6); }

.maptable__xaxis {
  grid-column: 2;
  display: grid; gap: 2px;
  font-family: var(--f-mono); font-size: .58rem;
  color: var(--c-ink-4);
  text-align: center;
  margin-top: 4px;
}
.mapwin__foot {
  display: flex; justify-content: space-between; gap: var(--s-3);
  padding: 9px 14px;
  border-top: 1px solid var(--c-line);
  background: var(--c-inset);
  font-family: var(--f-mono); font-size: .62rem;
  color: var(--c-ink-4);
  letter-spacing: .06em;
}
.mapwin__foot .ok { color: var(--c-ok); }

/* --------------------------------------------------------------
   08 Sections & bento cards
   -------------------------------------------------------------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tight { padding-block: clamp(36px, 5vw, 60px); }
.section + .section { border-top: 1px solid var(--c-line-soft); }

.section__head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}
.section__head h2 { margin: 0; }
.section__head .mono { color: var(--c-ink-4); letter-spacing: .06em; }

/* Bento grid of categories */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
}
.filecard {
  position: relative;
  display: flex; flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  color: var(--c-ink-2);
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 1px 0 var(--c-edge);
  transition: border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}
.filecard::before {
  content: "";
  position: absolute; inset-inline: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--c-amber), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.filecard:hover {
  border-color: var(--c-line);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2), inset 0 1px 0 var(--c-edge);
  color: var(--c-ink-2);
}
.filecard:hover::before { transform: scaleX(1); }
.filecard--feature { grid-column: span 2; grid-row: span 2; }

.filecard__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.filecard__name { font-family: var(--f-display); font-size: var(--t-lg); text-transform: uppercase; color: var(--c-ink); letter-spacing: .01em; line-height: 1.15; }
.filecard--feature .filecard__name { font-size: var(--t-xl); }
.filecard__desc { font-size: var(--t-sm); color: var(--c-ink-3); margin: 0; }
.filecard__foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--f-mono); font-size: var(--t-xs);
  color: var(--c-ink-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-line-soft);
}
.filecard__go { color: var(--c-steel); transition: transform .22s var(--ease), color .22s var(--ease); }
.filecard:hover .filecard__go { color: var(--c-amber); transform: translateX(3px); }

/* Extension badge */
.ext {
  display: inline-flex; align-items: center;
  font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .07em;
  color: var(--c-amber);
  background: var(--c-amber-lo);
  border: 1px solid var(--c-amber-ln);
  border-radius: var(--r-sm);
  padding: 4px 9px;
  white-space: nowrap;
}
.ext--steel { color: var(--c-steel); background: var(--c-steel-lo); border-color: rgba(127,167,196,.35); }

/* Heat strip — miniature map, echoes the hero signature */
.heatstrip { display: flex; gap: 2px; height: 6px; }
.heatstrip i { flex: 1; border-radius: 1px; display: block; }
.filecard--feature .heatstrip { height: 10px; }

/* --------------------------------------------------------------
   09 Process, trust
   -------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
  counter-reset: step;
}
.step {
  position: relative;
  padding: var(--s-5);
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  counter-increment: step;
  box-shadow: inset 0 1px 0 var(--c-edge);
}
.step__num {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--f-mono); font-size: var(--t-xs);
  color: var(--c-amber);
  letter-spacing: .12em;
  margin-bottom: var(--s-4);
}
.step__num::before { content: "0" counter(step); }
.step__num::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--c-amber-ln), transparent);
}
.step h3 { font-size: var(--t-md); margin-bottom: 6px; }
.step p { font-size: var(--t-sm); color: var(--c-ink-3); margin: 0; }

.trust {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--s-4) var(--s-7);
  padding: var(--s-5) var(--s-4);
  background: var(--c-panel);
  border-block: 1px solid var(--c-line);
}
.trust__item {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--f-mono); font-size: var(--t-sm);
  color: var(--c-ink-3);
}
.trust__item svg { width: 15px; height: 15px; color: var(--c-amber); flex-shrink: 0; }

/* --------------------------------------------------------------
   10 Content & pagination
   -------------------------------------------------------------- */
.main { padding-block: clamp(36px, 6vw, 64px); }

.panel, .entry {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 4vw, 36px);
  box-shadow: inset 0 1px 0 var(--c-edge);
  margin-bottom: var(--s-5);
}
.entry__meta { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--c-ink-4); letter-spacing: .06em; text-transform: uppercase; margin-bottom: var(--s-3); }
.entry__title { margin-bottom: var(--s-3); }
.entry__title a { color: var(--c-ink); }
.entry__title a:hover { color: var(--c-amber); }

.prose { color: var(--c-ink-2); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--r); }
.prose pre {
  font-family: var(--f-mono); font-size: var(--t-sm);
  background: var(--c-inset);
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  padding: var(--s-4);
  overflow-x: auto;
}
.prose :not(pre) > code {
  font-family: var(--f-mono); font-size: .88em;
  background: var(--c-inset);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  padding: 2px 6px;
  color: var(--c-amber);
}
.prose blockquote {
  margin: 1.4em 0; padding: var(--s-3) var(--s-5);
  border-left: 2px solid var(--c-amber);
  background: var(--c-inset);
  color: var(--c-ink-3);
}
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.prose th, .prose td { border: 1px solid var(--c-line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--c-panel-hi); font-family: var(--f-display); text-transform: uppercase; font-size: var(--t-xs); letter-spacing: .06em; color: var(--c-ink); }

/* Pagination */
.pagination { margin-top: var(--s-6); display: flex; justify-content: center; }
.pagination .page-numbers,
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding-inline: 12px;
  font-family: var(--f-mono); font-size: var(--t-sm);
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  color: var(--c-ink-2);
  margin: 0 3px;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.pagination .page-numbers.current,
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--c-amber); border-color: var(--c-amber); color: var(--c-void); font-weight: 600;
}
.pagination a.page-numbers:hover,
.woocommerce nav.woocommerce-pagination ul li a:hover {
  border-color: var(--c-amber-ln); color: var(--c-amber); background: var(--c-amber-lo);
}
.woocommerce nav.woocommerce-pagination { margin-top: var(--s-6); }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0; overflow: visible; }

/* Empty / 404 states */
.void { text-align: center; padding-block: clamp(48px, 9vw, 96px); max-width: 60ch; margin-inline: auto; }
.void__code {
  font-family: var(--f-mono);
  font-size: clamp(3.4rem, 12vw, 6.5rem);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  background: linear-gradient(180deg, var(--c-amber), rgba(255,174,26,.15));
  -webkit-background-clip: text; background-clip: text;
  letter-spacing: .04em;
  margin-bottom: var(--s-4);
}
.void h1 { font-size: var(--t-xl); }
.void p { color: var(--c-ink-3); }
.void__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-5); }

/* --------------------------------------------------------------
   11 Footer
   -------------------------------------------------------------- */
.site-footer { background: var(--c-void); border-top: 1px solid var(--c-line); }
.footer__cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(40px, 6vw, 64px);
}
.footer__title {
  font-family: var(--f-mono); font-size: var(--t-xs);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-ink-4);
  margin-bottom: var(--s-4);
}
.footer__brand { font-family: var(--f-display); font-size: var(--t-lg); text-transform: uppercase; color: var(--c-ink); margin-bottom: var(--s-3); }
.site-footer p { font-size: var(--t-sm); color: var(--c-ink-3); max-width: 46ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer li a { font-size: var(--t-sm); color: var(--c-ink-2); }
.site-footer li a:hover { color: var(--c-amber); }

.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3) var(--s-5);
  padding-block: var(--s-4);
  border-top: 1px solid var(--c-line-soft);
  font-family: var(--f-mono); font-size: var(--t-xs);
  color: var(--c-ink-4);
}

/* --------------------------------------------------------------
   12 WooCommerce
   -------------------------------------------------------------- */
.woocommerce .woocommerce-breadcrumb { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--c-ink-4); margin-bottom: var(--s-5); }
.woocommerce .woocommerce-breadcrumb a { color: var(--c-ink-3); }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--c-amber); }
.woocommerce .woocommerce-result-count { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--c-ink-4); }
.woocommerce .woocommerce-ordering select { width: auto; font-size: var(--t-sm); }

/* Product grid */
.woocommerce ul.products, .woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
  margin: 0 0 var(--s-5); padding: 0; list-style: none;
}
.woocommerce ul.products::before, .woocommerce ul.products::after,
.woocommerce-page ul.products::before, .woocommerce-page ul.products::after { display: none; }
.woocommerce ul.products.columns-1 { grid-template-columns: minmax(0,1fr); }
.woocommerce ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  position: relative;
  width: auto; float: none; margin: 0; clear: none;
  display: flex; flex-direction: column;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: inset 0 1px 0 var(--c-edge);
  transition: border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2), inset 0 1px 0 var(--c-edge);
  border-color: var(--c-amber-ln);
}
.woocommerce ul.products li.product > a { display: flex; flex-direction: column; flex: 1; color: inherit; }
.woocommerce ul.products li.product a img {
  margin: 0; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-inset);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--f-display); font-size: var(--t-base);
  text-transform: uppercase; letter-spacing: .01em; line-height: 1.25;
  color: var(--c-ink);
  padding: var(--s-4) var(--s-4) 6px;
  margin: 0;
}
.woocommerce ul.products li.product .price {
  font-family: var(--f-mono); font-size: var(--t-md); font-weight: 600;
  color: var(--c-amber);
  padding: 0 var(--s-4) var(--s-4);
  margin: auto 0 0;
  display: block;
}
.woocommerce ul.products li.product .price del { color: var(--c-ink-4); font-weight: 400; font-size: var(--t-sm); opacity: 1; margin-right: 6px; }
.woocommerce ul.products li.product .price ins { color: var(--c-amber); text-decoration: none; background: transparent; }
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
  margin: 0 var(--s-4) var(--s-4);
  font-family: var(--f-display); font-size: var(--t-xs);
  text-transform: uppercase; letter-spacing: .07em; font-weight: 600;
  background: transparent;
  color: var(--c-ink) !important;
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  padding: 10px 14px;
  text-align: center;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .added_to_cart:hover {
  background: var(--c-amber-lo);
  border-color: var(--c-amber-ln);
  color: var(--c-amber) !important;
}
.woocommerce ul.products li.product .ext {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(15, 17, 20, .88);
  backdrop-filter: blur(4px);
}
.woocommerce ul.products li.product .star-rating { margin: 0 var(--s-4) var(--s-2); font-size: .7em; }

/* Sale flash */
.woocommerce span.onsale {
  position: absolute; top: 10px; right: 10px; left: auto;
  min-height: 0; min-width: 0; line-height: 1;
  padding: 5px 9px; margin: 0;
  background: var(--c-amber); color: var(--c-void);
  font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  border-radius: var(--r-sm);
  z-index: 3;
}

/* Single product */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(24px, 4vw, 56px); }
.woocommerce div.product .woocommerce-product-gallery { width: auto; float: none; margin: 0; }
.woocommerce div.product .summary { width: auto; float: none; margin: 0; }
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells,
.woocommerce div.product .woocommerce-product-gallery + .summary ~ * { grid-column: 1 / -1; }
.woocommerce div.product .product_title { font-size: var(--t-xl); margin-bottom: var(--s-3); }
.woocommerce div.product p.price, .woocommerce div.product span.price {
  font-family: var(--f-mono); font-size: var(--t-xl); font-weight: 600;
  color: var(--c-amber);
  margin-bottom: var(--s-4);
}
.woocommerce div.product p.price del { color: var(--c-ink-4); font-size: var(--t-md); font-weight: 400; }
.woocommerce div.product p.price ins { color: var(--c-amber); text-decoration: none; background: transparent; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--c-ink-3); font-size: var(--t-base); margin-bottom: var(--s-5); }
.woocommerce div.product .woocommerce-product-gallery__wrapper { border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; background: var(--c-inset); }
.woocommerce div.product form.cart { margin: var(--s-5) 0; display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.woocommerce div.product form.cart div.quantity { margin: 0; float: none; }
.woocommerce div.product form.cart div.quantity .qty { width: 78px; text-align: center; }
.woocommerce div.product .product_meta {
  font-family: var(--f-mono); font-size: var(--t-xs);
  color: var(--c-ink-4);
  border-top: 1px solid var(--c-line-soft);
  padding-top: var(--s-4);
  display: grid; gap: 6px;
}
.woocommerce div.product .product_meta > span { display: block; }
.woocommerce div.product .product_meta .sku { color: var(--c-steel); }
.woocommerce div.product .product_meta a { color: var(--c-ink-3); }
.woocommerce div.product .product_meta a:hover { color: var(--c-amber); }

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 -1px; display: flex; flex-wrap: wrap; gap: 4px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: var(--c-panel); border: 1px solid var(--c-line);
  border-radius: var(--r) var(--r) 0 0; margin: 0; padding: 0;
  box-shadow: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block; padding: 11px 18px;
  font-family: var(--f-display); font-size: var(--t-sm); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--c-ink-3);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--c-panel-hi); border-bottom-color: var(--c-panel-hi); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--c-amber); }
.woocommerce div.product .woocommerce-tabs .panel {
  background: var(--c-panel-hi);
  border: 1px solid var(--c-line);
  border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: var(--s-6);
  color: var(--c-ink-2);
}
.woocommerce div.product .woocommerce-tabs .panel h2 { font-size: var(--t-lg); }

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-top: 2px solid var(--c-steel);
  border-radius: var(--r);
  color: var(--c-ink-2);
  font-size: var(--t-base);
  padding: var(--s-4) var(--s-5) var(--s-4) 52px;
  margin-bottom: var(--s-5);
  list-style: none;
}
.woocommerce-message { border-top-color: var(--c-ok); }
.woocommerce-message::before { color: var(--c-ok); }
.woocommerce-info::before { color: var(--c-steel); }
.woocommerce-error { border-top-color: var(--c-err); }
.woocommerce-error::before { color: var(--c-err); }
.woocommerce-message .button, .woocommerce-info .button { background: transparent; border: 1px solid var(--c-line); color: var(--c-ink) !important; }

/* Cart, checkout, account */
.woocommerce table.shop_table {
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--c-panel);
}
.woocommerce table.shop_table th {
  background: var(--c-panel-hi);
  font-family: var(--f-display); font-size: var(--t-xs);
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--c-ink);
  border-top: 0; padding: 14px 16px;
}
.woocommerce table.shop_table td { border-top: 1px solid var(--c-line-soft); padding: 14px 16px; color: var(--c-ink-2); }
.woocommerce table.shop_table .product-name a { color: var(--c-ink); }
.woocommerce table.shop_table .amount { font-family: var(--f-mono); color: var(--c-amber); }
.woocommerce-cart table.cart img { width: 56px; border-radius: var(--r-sm); border: 1px solid var(--c-line); }
.woocommerce-cart table.cart td.actions .coupon { display: flex; gap: var(--s-2); }
.woocommerce-cart table.cart td.actions .coupon .input-text { width: 180px; }

.woocommerce .cart_totals h2, .woocommerce-checkout h3 { font-size: var(--t-lg); }
.woocommerce-checkout #payment { background: var(--c-panel); border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--c-line); }
.woocommerce-checkout #payment div.payment_box { background: var(--c-inset); color: var(--c-ink-3); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--c-inset); }

.woocommerce form .form-row label { color: var(--c-ink-3); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  background: var(--c-inset); border: 1px solid var(--c-line);
  color: var(--c-ink); border-radius: var(--r); padding: 11px 13px;
}
.woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register {
  background: var(--c-panel); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--s-5);
}

.select2-container--default .select2-selection--single {
  background: var(--c-inset); border: 1px solid var(--c-line);
  height: 44px; border-radius: var(--r);
}
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--c-ink); line-height: 42px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }
.select2-dropdown { background: var(--c-panel); border: 1px solid var(--c-line); color: var(--c-ink-2); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--c-amber); color: var(--c-void); }
.select2-search--dropdown .select2-search__field { background: var(--c-inset); border: 1px solid var(--c-line); color: var(--c-ink); }

.woocommerce-account .woocommerce-MyAccount-navigation { width: 26%; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li { margin-bottom: 6px; }
.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block; padding: 11px 15px;
  background: var(--c-panel); border: 1px solid var(--c-line);
  border-radius: var(--r);
  font-family: var(--f-display); font-size: var(--t-sm);
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--c-ink-2);
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  border-color: var(--c-amber-ln); color: var(--c-amber); background: var(--c-amber-lo);
}
.woocommerce-account .woocommerce-MyAccount-content { width: 70%; }

/* Downloads table — the core of a digital shop */
.woocommerce table.shop_table.order_details .download-file a,
.woocommerce-MyAccount-content .woocommerce-table--order-downloads .download-file a {
  font-family: var(--f-mono); font-size: var(--t-sm);
}

/* Buttons (WooCommerce) */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
  font-family: var(--f-display); font-size: var(--t-sm); font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
  background: var(--c-amber); color: var(--c-void) !important;
  border: 1px solid var(--c-amber); border-radius: var(--r);
  padding: 12px 22px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce #respond input#submit:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
  background: var(--c-amber); color: var(--c-void) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -6px rgba(255,174,26,.5);
}
.woocommerce a.button.disabled, .woocommerce button.button:disabled { opacity: .45; }

.woocommerce .star-rating span::before, .woocommerce p.stars a { color: var(--c-amber); }
.woocommerce #reviews #comments ol.commentlist li .comment-text { border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-panel); }

/* --------------------------------------------------------------
   13 Responsive
   -------------------------------------------------------------- */
@media (max-width: 1180px) {
  .live-search { flex-basis: 220px; }
}

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { max-width: none; }
  .mapwin { max-width: 560px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filecard--feature { grid-column: span 2; grid-row: span 1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .woocommerce ul.products, .woocommerce-page ul.products,
  .woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header-bar { flex-wrap: wrap; gap: 12px; padding-block: 12px; min-height: 0; }
  .menu-toggle { display: inline-flex; order: 3; }
  .cart-link { order: 2; margin-left: auto; }
  .live-search { order: 4; flex: 1 1 100%; max-width: none; }

  .nav-primary {
    order: 5; flex-basis: 100%; margin-left: 0;
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows .3s var(--ease);
  }
  .nav-primary.is-open { grid-template-rows: 1fr; }
  .nav-primary > div, .nav-primary > ul { overflow: hidden; min-height: 0; }
  .nav-primary ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-primary li { border-bottom: 1px solid var(--c-line-soft); }
  .nav-primary li:last-child { border-bottom: 0; }
  .nav-primary a { padding: 13px 4px; font-size: var(--t-base); }
  .nav-primary a::after { display: none; }
  .nav-primary .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent;
    padding: 0 0 8px 16px;
  }

  .woocommerce div.product { grid-template-columns: 1fr; }
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content { width: 100%; float: none; }
}

@media (max-width: 720px) {
  .woocommerce ul.products, .woocommerce-page ul.products,
  .woocommerce ul.products.columns-3, .woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .footer__cols { grid-template-columns: 1fr; }
  .trust { gap: var(--s-3) var(--s-5); }
  /* Drop the numerals but keep the heat surface legible */
  .cell { font-size: 0; }
  .maptable__xaxis span:nth-child(even) { visibility: hidden; }
}

@media (max-width: 520px) {
  .bento, .steps { grid-template-columns: minmax(0, 1fr); }
  .filecard--feature { grid-column: span 1; }
  .woocommerce ul.products, .woocommerce-page ul.products,
  .woocommerce ul.products.columns-2, .woocommerce ul.products.columns-3,
  .woocommerce ul.products.columns-4 { grid-template-columns: minmax(0,1fr); }
  .footer__legal { flex-direction: column; }
  .maptable__yaxis { font-size: 0; padding-right: 0; }
  .brand__sub { display: none; }
}

/* --------------------------------------------------------------
   14 Motion & a11y
   -------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  :where(html) { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .filecard:hover,
  .woocommerce ul.products li.product:hover,
  .btn:hover,
  .cell:hover { transform: none; }
}

@media (prefers-contrast: more) {
  :root { --c-line: #4a515c; --c-ink-3: #b0b7c2; --c-ink-4: #98a0ac; }
}
