/*
Theme Name: Grolltex Store
Theme URI: https://grolltex.com/
Author: Grolltex
Description: Store theme for Grolltex, Inc. — CVD monolayer graphene and hexagonal boron nitride, San Diego. Ported from the approved design, with responsive breakpoints, WCAG AA contrast, and WooCommerce support.
Version: 1.0.6
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grolltex
Tags: e-commerce, custom-colors, custom-menu, accessibility-ready
WC requires at least: 8.0
WC tested up to: 9.4
*/

/* Industry — design-system tokens and component classes. This file is the source of truth for the system's look; retune it here and see readme.md. */
:root {
  --color-bg: #f2f2f3;
  --color-surface: #e9e9ea;
  --color-text: #1d1f20;
  --color-accent: #4f7294;  /* was #5980a6 — 3.71:1, below AA */
  --color-accent-2: #728fab;
  --color-divider: color-mix(in srgb, #1d1f20 16%, transparent);

  /* Tonal ramps — generated in OKLCH on one shared lightness scale, so the
     same step of any role matches the others in visual value. */
  --color-neutral-100: #f5f5f8;
  --color-neutral-200: #e7e7ea;
  --color-neutral-300: #d4d4d7;
  --color-neutral-400: #b7b7ba;
  --color-neutral-500: #98989b;
  --color-neutral-600: #7a7a7d;
  --color-neutral-700: #5d5d60;
  --color-neutral-800: #424244;
  --color-neutral-900: #2b2b2d;

  --color-accent-100: #eef6ff;
  --color-accent-200: #d6ebff;
  --color-accent-300: #b5d9fd;
  --color-accent-400: #94bce3;
  --color-accent-500: #749dc4;
  --color-accent-600: #597ea3;
  --color-accent-700: #416180;
  --color-accent-800: #2c455d;
  --color-accent-900: #1d2d3d;

  --color-accent-2-100: #eef6ff;
  --color-accent-2-200: #d6ebff;
  --color-accent-2-300: #bdd8f2;
  --color-accent-2-400: #9ebbd8;
  --color-accent-2-500: #7e9cb8;
  --color-accent-2-600: #627d98;
  --color-accent-2-700: #486077;
  --color-accent-2-800: #314457;
  --color-accent-2-900: #1f2d3a;

  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Barlow", system-ui, sans-serif;

  --space-1: 3.4px;
  --space-2: 6.8px;
  --space-3: 10.2px;
  --space-4: 13.6px;
  --space-6: 20.4px;
  --space-8: 27.2px;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 7px;

  /* Elevation — derived from the ground: soft ink-tinted shadows on a
     light theme, a hairline edge + ambient darkness on a dark one. */
  --shadow-sm: 0 1px 2px color-mix(in srgb, #2b2b2d 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2b2b2d 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2b2b2d 22%, transparent);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); }

.blueprint {
  position: relative;
  border: 1px solid var(--color-divider);
  border-radius: 0;
}
/* The overlay image treatments (halftone, duotone) clip their overlay
   (overflow:hidden); a blueprint wrapper draws its registration marks
   outside the box, so when both classes share a wrapper the frame must
   win. */
.blueprint.halftone, .blueprint.plate, .blueprint.duotone { overflow: visible; }
.blueprint > .corner {
  position: absolute; width: 11px; height: 11px;
  color: color-mix(in srgb, var(--color-text) 68%, transparent);
}
.blueprint > .corner::before, .blueprint > .corner::after {
  content: ""; position: absolute; background: currentColor;
}
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after  { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }

.duotone{position:relative;overflow:hidden}
.duotone::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:var(--color-accent);mix-blend-mode:color}

/* ══════════════════════════════════════════════════════════════════════════
   Components — built with the tokens above. Plain CSS
   on plain HTML: no JavaScript, no build step. Each class is documented in
   readme.md and demonstrated in foundations/ and components/.
   ══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 400; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; }
h6 { letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
figcaption {
  font-size: 11px; margin-top: var(--space-1);
  color: color-mix(in srgb, var(--color-text) 68%, transparent);
}
.text-muted { color: color-mix(in srgb, var(--color-text) 68%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* — rules — */
.hr {
  height: 1px; border: 0; margin: var(--space-4) 0;
  background: var(--color-divider);
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text); /* matches the .input's 14px —
     the pair sits side by side in sign-up rows */
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; margin-top: var(--space-2); }

/* — forms — */
.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.radio input, .seg-opt input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.radio .dot {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--color-divider);
}
.radio:hover .dot { border-color: var(--color-accent); }
.radio input:checked + .dot {
  border-color: var(--color-accent); background: var(--color-accent);
  box-shadow: inset 0 0 0 4px var(--color-bg);
}
.radio input:focus-visible + .dot { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.seg {
  display: inline-flex; overflow: hidden;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.seg-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; font-size: 13px; cursor: pointer;
}
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt:has(input:checked) { background: var(--color-accent); color: var(--color-bg); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface);
}
.card-kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.card-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 17px; line-height: 1.2;
}
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.card-meta {
  display: flex; align-items: center; gap: 6px; font-size: 11px;
  color: color-mix(in srgb, var(--color-text) 68%, transparent);
}
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-accent-2 { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

/* — navigation — */
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: none;
}
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; margin-right: auto;
}
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-accent); }

/* — tables — */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 68%, transparent);
  padding: var(--space-2); border-bottom: 1px solid var(--color-divider);
}
.table td {
  padding: var(--space-2);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }

/* — dialog — */
.dialog-backdrop {
  position: fixed; inset: 0; display: grid; place-items: center;
  padding: var(--space-4);
  background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent);
}
.dialog {
  width: min(440px, 100%); display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4); border-radius: var(--radius-lg);
  background: var(--color-surface); box-shadow: var(--shadow-lg);
}
.dialog-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 20px;
}
.dialog-body { font-size: 14px; opacity: 0.85; }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }

/* — blueprint frame: components are wireframe objects (see .blueprint
     and .corner above) — square, transparent, hairline-bordered — */
.card, .btn, .input, .tag, .seg, .dialog { border-radius: 0; }
.card, .dialog { background: transparent; border: 1px solid var(--color-divider); }
.btn { border: 1px solid var(--color-divider); }
.btn-primary { border-color: var(--color-accent); }
.btn-ghost { border-color: transparent; }

  body { background: var(--color-bg); }
  a { color: var(--color-accent); }
  a:hover { color: var(--color-accent-700); }
  .lnk { color: inherit; text-decoration: none; cursor: pointer; }
  .lnk:hover { color: var(--color-accent); }
  @keyframes dpeak { 0%, 100% { transform: scaleY(0); } 50% { transform: scaleY(0.05); } }
/* ══════════════════════════════════════════════════════════════════════════
   LAYOUT
   The source design carried its layout in 277 inline style attributes and
   had no breakpoints at all. Those are lifted into named classes here, each
   with a mobile collapse. Breakpoints: 1024 / 768 / 480.
   ══════════════════════════════════════════════════════════════════════ */

.gx-wrap { max-width: 1240px; margin: 0 auto; padding-inline: 32px; }
.gx-wrap-narrow { max-width: 1000px; margin: 0 auto; padding-inline: 32px; }
.gx-section { padding-top: 64px; }
.gx-section-tight { padding-top: 40px; }
.gx-section-last { padding-bottom: 80px; }

.gx-rule { border-top: 1px solid var(--color-divider); }
.gx-rule-both { border-block: 1px solid var(--color-divider); }

.gx-kicker {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-accent); margin: 0 0 var(--space-3);
}
.gx-lede { font-size: 17px; max-width: 62ch; color: color-mix(in srgb, var(--color-text) 78%, transparent); }

/* — skip link — */
.gx-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-accent); color: var(--color-bg);
  padding: 10px 18px; font-family: var(--font-heading);
}
.gx-skip:focus { left: 8px; top: 8px; }

/* — announcement bar — */
.gx-topbar {
  background: var(--color-accent-900); color: #fff;
  text-align: center; padding: 9px 16px;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
}

/* — header — */
.gx-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--color-divider);
}
.gx-header-inner {
  max-width: 1240px; margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; gap: 32px;
}
.gx-brand { margin-right: auto; display: flex; align-items: center; }
.gx-brand img { height: 38px; width: auto; }
.gx-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.gx-nav a {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.gx-nav a:hover,
.gx-nav a[aria-current="page"] { color: var(--color-accent); border-bottom-color: currentColor; }

.gx-cart-link { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.gx-cart-count {
  font-family: var(--font-body); font-size: 12px;
  min-width: 18px; text-align: center;
  color: var(--color-accent);
}

/* the mobile menu toggle is hidden until the nav actually collapses */
.gx-burger { display: none; }

/* — hero — */
.gx-hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 56px; align-items: center;
  padding: 72px 0 56px;
}
.gx-hero h1 { font-size: clamp(38px, 5.2vw, 58px); margin-bottom: var(--space-4); text-wrap: balance; }
.gx-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-6); }
.gx-hero-figure { position: relative; }
.gx-hero-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gx-hero-dots { display: flex; gap: 6px; margin-top: 10px; justify-content: flex-end; }
.gx-hero-dots button {
  width: 26px; height: 26px; font-size: 12px; cursor: pointer;
  font-family: var(--font-body);
  border: 1px solid var(--color-divider); background: transparent; color: var(--color-text);
}
.gx-hero-dots button[aria-current="true"] { background: var(--color-accent); color: var(--color-bg); border-color: var(--color-accent); }

/* — figure strip (8" / Class 100 / >=95% / per batch) — */
.gx-figures {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; padding: 28px 0;
}
.gx-figures .v { font-family: var(--font-heading); font-weight: 600; font-size: 30px; line-height: 1; }
.gx-figures .k {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  margin-top: 6px; color: color-mix(in srgb, var(--color-text) 68%, transparent);
}

/* — product grids — */
.gx-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }

/* Before/after comparison pair: an arrow sits in the gutter between the two
   figures, reading previous product -> new line. Absolutely positioned, so it
   is taken out of grid flow and never occupies a cell. */
.gx-compare { position: relative; }
.gx-compare::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(50% - 14px);
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1f20' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 2;
}
.gx-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.gx-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.gx-grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); gap: 1px; }

/* — catalogue card — */
.gx-card { display: flex; flex-direction: column; }
.gx-card-media { position: relative; margin-bottom: var(--space-4); }
.gx-card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gx-card h3 { margin-bottom: var(--space-2); }
.gx-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--space-3) 0; }
.gx-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: auto; padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}
.gx-price { font-family: var(--font-heading); font-weight: 600; font-size: 24px; }

/* — customer logo wall — */
.gx-customers { background: var(--color-divider); border: 1px solid var(--color-divider); }
.gx-customers li { list-style: none; }
.gx-customers figure {
  background: var(--color-bg); aspect-ratio: 16 / 9;
  display: grid; place-items: center; padding: 18px;
}
.gx-customers img { max-height: 100%; max-width: 100%; object-fit: contain; }

/* — numbered blocks (the 2026 requalification, why-buy) — */
.gx-numbered { display: grid; gap: 28px; }
.gx-numbered .n {
  font-family: var(--font-heading); font-weight: 600; font-size: 13px;
  letter-spacing: 0.1em; color: var(--color-accent); margin-bottom: 8px;
}
.gx-numbered h3 { font-size: 17px; text-transform: uppercase; letter-spacing: 0.06em; }
.gx-numbered p { font-size: 14px; color: color-mix(in srgb, var(--color-text) 78%, transparent); }

/* — single product — */
.gx-product { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; padding-top: 32px; }
.gx-product-gallery { position: sticky; top: 96px; }
.gx-product-gallery img { width: 100%; object-fit: cover; }
.gx-buybox { border: 1px solid var(--color-divider); padding: var(--space-6); margin: var(--space-6) 0; }
.gx-buybox-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gx-qty { display: inline-flex; border: 1px solid var(--color-divider); }
.gx-qty button {
  width: 34px; height: 38px; border: 0; background: transparent;
  cursor: pointer; font-size: 16px; color: var(--color-text);
}
.gx-qty button:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.gx-qty input {
  width: 44px; height: 38px; text-align: center; border: 0;
  border-inline: 1px solid var(--color-divider);
  background: transparent; color: var(--color-text); font: inherit;
  -moz-appearance: textfield;
}
.gx-qty input::-webkit-outer-spin-button,
.gx-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.gx-spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gx-spec-table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 68%, transparent);
  padding: var(--space-2); border-bottom: 1px solid var(--color-divider);
}
.gx-spec-table td { padding: var(--space-2); border-bottom: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent); }
.gx-spec-table td:first-child { width: 38%; color: color-mix(in srgb, var(--color-text) 78%, transparent); }

.gx-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: var(--space-6); }
.gx-metric .k { font-size: 12px; color: color-mix(in srgb, var(--color-text) 68%, transparent); }
.gx-metric .v { font-family: var(--font-heading); font-weight: 600; font-size: 21px; margin: 4px 0; }
.gx-metric .n { font-size: 12px; color: color-mix(in srgb, var(--color-text) 68%, transparent); }

.gx-micros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: var(--space-6); }

/* — tables that must scroll rather than push the page sideways — */
.gx-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* — footer — */
.gx-footer {
  margin-top: 80px; background: var(--color-accent-900); color: #fff;
  padding: 28px 0;
}
.gx-footer a { color: #fff; }
.gx-footer-inner {
  max-width: 1240px; margin: 0 auto; padding-inline: 32px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  /* 0.72 alpha white on #1d2d3d was 1.49:1 — opaque white is 12.6:1 */
}

/* ── 1024px ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .gx-wrap, .gx-wrap-narrow, .gx-header-inner, .gx-footer-inner { padding-inline: 24px; }
  .gx-hero { gap: 36px; }
  .gx-grid-4, .gx-figures { grid-template-columns: repeat(2, 1fr); }
  .gx-product { grid-template-columns: 1fr; gap: 32px; }
  .gx-product-gallery { position: static; }
  .gx-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ── 768px — the nav collapses and every multi-column grid stacks ───── */
@media (max-width: 768px) {
  .gx-wrap, .gx-wrap-narrow, .gx-header-inner, .gx-footer-inner { padding-inline: 18px; }

  .gx-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0;
    border: 1px solid var(--color-divider); background: transparent;
    color: var(--color-text); cursor: pointer;
  }
  .gx-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider);
    box-shadow: var(--shadow-md);
    padding: 8px 18px 16px;
  }
  .gx-nav.is-open { display: flex; }
  .gx-nav a, .gx-nav .gx-cart-link {
    padding: 13px 0; border-bottom: 1px solid var(--color-divider);
    font-size: 16px;
  }
  /* the cart is a .btn on desktop; in the stacked menu it reads as a link */
  .gx-nav .gx-cart-link {
    justify-content: flex-start;
    border-inline: 0; border-top: 0;
    padding-inline: 0;
    font-size: 16px;
  }
  .gx-nav > :last-child { border-bottom: 0; }

  .gx-hero { grid-template-columns: 1fr; padding: 44px 0 36px; }
  .gx-hero h1 { font-size: clamp(32px, 8vw, 44px); }
  .gx-hero-dots { justify-content: flex-start; }

  .gx-grid-2, .gx-grid-3, .gx-grid-4,
  .gx-metrics, .gx-micros, .gx-numbered { grid-template-columns: 1fr; }
  /* stacked: rotate the comparison arrow to point down the page */
  .gx-compare::after { left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(90deg); }
  .gx-figures { gap: 22px; }
  .gx-section { padding-top: 44px; }
  .gx-footer-inner { flex-direction: column; gap: 10px; }
}

/* ── 480px ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .gx-figures { grid-template-columns: 1fr; }
  .gx-grid-auto { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .gx-card-foot { flex-direction: column; align-items: stretch; }
  .gx-card-foot .btn { width: 100%; }
  .gx-buybox { padding: var(--space-4); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   WOOCOMMERCE
   Woo ships its own markup for shop, cart and checkout. This restyles it in
   the design system rather than letting the default storefront look through.
   ══════════════════════════════════════════════════════════════════════ */

.woocommerce-notices-wrapper:empty { display: none; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border: 1px solid var(--color-divider);
  border-left: 3px solid var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 7%, transparent);
  padding: var(--space-3) var(--space-4);
  margin: 0 0 var(--space-6);
  font-size: 14px;
  list-style: none;
}
.woocommerce-error { border-left-color: #9c3a2e; background: color-mix(in srgb, #9c3a2e 8%, transparent); }
.woocommerce-message .button, .woocommerce-info .button { float: right; }

/* — shop archive — */
.woocommerce ul.products {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 40px; margin: 0; padding: 0; list-style: none;
}
/* WooCommerce ships a float clearfix on ul.products. On a grid container those
   pseudo-elements become grid items and consume the first cell, leaving a
   product-sized hole before the first product. Suppress them. */
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none; }
.woocommerce ul.products li.product { margin: 0; width: auto; float: none; }
.woocommerce ul.products li.product a img { margin-bottom: var(--space-4); aspect-ratio: 4/3; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 21px; line-height: 1.2; padding: 0; margin: 0 0 var(--space-2);
}
.woocommerce ul.products li.product .price {
  font-family: var(--font-heading); font-weight: 600; font-size: 22px;
  color: var(--color-text); margin: 0;
}
.woocommerce ul.products li.product .price del { opacity: 0.6; font-size: 0.7em; }
.woocommerce span.onsale { display: none; }

/* — single product — */
.woocommerce div.product .product_title { font-size: 34px; }
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 30px; color: var(--color-text);
}
.woocommerce div.product form.cart { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: var(--space-4) 0; }
.woocommerce div.product form.cart .quantity { display: inline-flex; }
.woocommerce .quantity input.qty {
  width: 62px; height: 38px; text-align: center;
  border: 1px solid var(--color-divider); background: var(--color-surface);
  color: var(--color-text); font: inherit;
}

/* Woo's buttons adopt .btn-primary's shape */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2;
  background: var(--color-accent); color: var(--color-bg);
  border: 1px solid var(--color-accent); border-radius: 0;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  text-decoration: none; text-shadow: none;
}
.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,
.woocommerce input.button.alt:hover { background: var(--color-accent-600); color: var(--color-bg); }
.woocommerce a.button.wc-backward,
.woocommerce button.button[name="update_cart"] {
  background: transparent; color: var(--color-text); border-color: var(--color-divider);
}
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled] { opacity: 0.45; padding: var(--space-2) calc(var(--space-3) * 1.2); }

/* — tabs — */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0; margin: 0 0 var(--space-6); display: flex; gap: 4px; flex-wrap: wrap;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: 1px solid var(--color-divider); border-radius: 0;
  background: transparent; margin: 0; padding: 0;
}
.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.active { background: var(--color-accent); border-color: var(--color-accent); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--color-bg); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; padding: 9px 16px; display: block; color: var(--color-text);
}

/* — attribute / additional information table — */
.woocommerce table.shop_attributes { border: 0; width: 100%; }
.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
  padding: var(--space-2); font-size: 14px; font-style: normal;
  border: 0; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
  background: transparent;
}
.woocommerce table.shop_attributes th {
  width: 38%; font-weight: 400;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}
.woocommerce table.shop_attributes td p { margin: 0; }

/* — cart — */
.woocommerce table.shop_table {
  border: 1px solid var(--color-divider); border-radius: 0;
  border-collapse: collapse; width: 100%;
}
.woocommerce table.shop_table th {
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 68%, transparent);
  padding: var(--space-3); border-bottom: 1px solid var(--color-divider);
}
.woocommerce table.shop_table td { padding: var(--space-3); border-top: 1px solid var(--color-divider); }
.woocommerce table.shop_table img { width: 72px; }
.woocommerce-cart table.cart td.actions .coupon .input-text {
  width: 180px; height: 38px; padding: 6px 10px;
  border: 1px solid var(--color-divider); background: var(--color-surface);
  color: var(--color-text);
}
.woocommerce-cart .cart-collaterals .cart_totals { width: 100%; float: none; }
.woocommerce .cart-collaterals h2 { font-size: 21px; }

.gx-cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.gx-checkout-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.gx-order-summary { border: 1px solid var(--color-divider); padding: var(--space-6); position: sticky; top: 96px; }

/* — checkout — */
.woocommerce form .form-row { padding: 0; margin: 0 0 var(--space-4); }
.woocommerce form .form-row label { display: block; font-size: 12px; margin-bottom: 5px; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single {
  width: 100%; min-height: 38px; padding: 6px 10px; font: inherit; font-size: 14px;
  color: var(--color-text); background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: 0;
}
.woocommerce .select2-container .select2-selection--single .select2-selection__rendered { line-height: 24px; padding: 0; color: var(--color-text); }
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: #9c3a2e; }
.woocommerce-checkout #payment { background: transparent; border: 1px solid var(--color-divider); border-radius: 0; }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--color-divider); padding: var(--space-4); }
.woocommerce-checkout #payment ul.payment_methods li { list-style: none; }
.woocommerce-checkout #payment div.form-row { padding: var(--space-4); }
.woocommerce-checkout #payment div.payment_box { background: color-mix(in srgb, var(--color-text) 5%, transparent); font-size: 13px; }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #payment #place_order { width: 100%; }

/* — order received — */
.woocommerce ul.order_details { padding: 0; margin: 0 0 var(--space-6); display: flex; flex-wrap: wrap; gap: 24px; }
.woocommerce ul.order_details li {
  list-style: none; border: 0; margin: 0; padding: 0; float: none;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 68%, transparent);
}
.woocommerce ul.order_details li strong {
  display: block; font-family: var(--font-heading); font-weight: 600;
  font-size: 18px; letter-spacing: 0; text-transform: none; color: var(--color-text);
}

/* — breadcrumb — */
.woocommerce-breadcrumb {
  font-size: 12px; padding: var(--space-4) 0;
  color: color-mix(in srgb, var(--color-text) 68%, transparent);
}
.woocommerce-breadcrumb a { color: inherit; }

/* — quote-only products: no price, no add-to-cart — */
.gx-quote-only .price,
.gx-quote-only form.cart { display: none; }
.gx-quote-note {
  border: 1px solid var(--color-divider); border-left: 3px solid var(--color-accent);
  padding: var(--space-4); margin: var(--space-4) 0; font-size: 14px;
}

@media (max-width: 1024px) {
  .gx-cart-layout, .gx-checkout-layout { grid-template-columns: 1fr; }
  .gx-order-summary { position: static; }
}
@media (max-width: 768px) {
  .woocommerce ul.products { grid-template-columns: 1fr; gap: 32px; }
  /* Woo's cart table is unusable at phone width as a table — make it rows */
  .woocommerce table.shop_table_responsive thead { display: none; }
  .woocommerce table.shop_table_responsive tr { display: block; border-bottom: 1px solid var(--color-divider); }
  .woocommerce table.shop_table_responsive td {
    display: flex; justify-content: space-between; gap: 16px;
    border-top: 0; padding: 10px var(--space-3);
  }
  .woocommerce table.shop_table_responsive td::before {
    content: attr(data-title); font-size: 11px; letter-spacing: 0.08em;
    text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 68%, transparent);
  }
  .woocommerce-cart table.cart td.actions .coupon .input-text { width: 100%; margin-bottom: 10px; }
}
