/* IBM Plex Sans — self-hosted so the site has no third-party font dependency. */
@font-face {
  font-display: swap;
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-display: swap;
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-display: swap;
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-display: swap;
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-display: swap;
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-display: swap;
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-display: swap;
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-display: swap;
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===========================================================================
   Sober Check — design system
   Palette and type are lifted from the WordPress build (brand blue #1D8CBE,
   navy #012444, IBM Plex Sans) so the site still reads as Sober Check. What
   changed is the scale, spacing and alignment rules underneath them.
   =========================================================================== */

:root {
  /* Brand */
  --brand:        #1d8cbe;
  --brand-dark:   #14688f;
  --brand-darker: #0f5170;
  --brand-tint:   #e8f3f9;
  --navy:         #012444;
  --navy-soft:    #0a3a63;

  /* Ink & surface */
  --ink:        #14181c;
  --ink-2:      #3d4852;
  --muted:      #667380;
  --line:       #e2e7ec;
  --line-soft:  #eef2f5;
  --surface:    #ffffff;
  --surface-2:  #f5f8fa;
  --surface-3:  #eaeff3;

  /* Status */
  --ok:      #12805c;
  --ok-tint: #e6f5ef;
  --warn:    #9a5b00;
  --warn-tint:#fdf3e2;
  --err:     #b3261e;
  --err-tint:#fdecea;

  /* Type scale — 1.25 ratio, clamped for fluid headings */
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-xs:   0.75rem;    /* 12 */
  --t-sm:   0.8125rem;  /* 13 */
  --t-base: 0.9375rem;  /* 15 */
  --t-md:   1.0625rem;  /* 17 */
  --t-lg:   1.25rem;    /* 20 */
  --t-xl:   1.5rem;     /* 24 */
  --t-2xl:  clamp(1.5rem, 1.2rem + 1.3vw, 2rem);
  --t-3xl:  clamp(1.875rem, 1.4rem + 2.1vw, 2.75rem);

  /* Space — 4px base */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 3rem;     --s-8: 4rem;
  --s-9: 5rem;     --s-10: 6.5rem;

  --radius:    6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgb(1 36 68 / 6%), 0 1px 3px rgb(1 36 68 / 4%);
  --shadow:    0 2px 6px rgb(1 36 68 / 7%), 0 8px 24px rgb(1 36 68 / 6%);
  --shadow-lg: 0 4px 12px rgb(1 36 68 / 10%), 0 24px 48px rgb(1 36 68 / 12%);

  --wrap: 1200px;
  --wrap-narrow: 780px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

/* The UA sheet's `[hidden] { display: none }` is a plain attribute selector, so
   any component rule that sets `display` outranks it — .product-card{display:flex}
   silently kept every "hidden" card on the page. Everything below toggles
   visibility through the hidden attribute, so it has to win. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--t-3xl); font-weight: 700; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }
h5, h6 { font-size: var(--t-md); }

p, li { text-wrap: pretty; }

a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-darker); }

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

hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }

/* ------------------------------------------------------------ utilities */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s-5); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.stack > * + * { margin-top: var(--s-4); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-3); top: -100px; z-index: 200;
  background: var(--navy); color: #fff; padding: var(--s-3) var(--s-4);
  border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: var(--s-3); color: #fff; }

/* --------------------------------------------------------------- buttons
   Original buttons were 14px text in 10px/33px padding — under the 44px
   minimum tap target and visually lost against body copy. */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  --btn-bd: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px;
  padding: var(--s-3) var(--s-5);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--radius);
  font-size: var(--t-base); font-weight: 600; line-height: 1.2;
  text-align: center; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease),
              color 0.15s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { --btn-bg: var(--brand-dark); --btn-bd: var(--brand-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.55; cursor: not-allowed; pointer-events: none;
}
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--brand-dark); --btn-bd: var(--line); }
.btn--secondary:hover { --btn-bg: var(--brand-tint); --btn-fg: var(--brand-darker); --btn-bd: var(--brand); }
.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgb(255 255 255 / 55%); }
.btn--ghost:hover { --btn-bg: rgb(255 255 255 / 12%); --btn-bd: #fff; }
.btn--lg { min-height: 50px; padding: var(--s-3) var(--s-6); font-size: var(--t-md); }
.btn--block { display: flex; width: 100%; }

/* The page copy carries two button conventions from WordPress — the theme's
   `btn btn-primary` and the block editor's `wp-block-button`. Both are styled
   here so calls to action in the copy render as buttons, not bare links. */
.btn-primary { --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: var(--brand); }
.btn-wide { padding-inline: var(--s-6); }

.wp-block-buttons {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  padding: 0; list-style: none;
}
.wp-block-buttons.aligncenter, .wp-block-button.aligncenter { justify-content: center; }
.prose .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: var(--s-3) var(--s-5);
  background: var(--brand); color: #fff;
  border: 1px solid var(--brand); border-radius: var(--radius);
  font-size: var(--t-base); font-weight: 600; line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.prose .wp-block-button__link:hover {
  background: var(--brand-dark); border-color: var(--brand-dark); color: #fff;
}
.prose .is-style-outline .wp-block-button__link {
  background: transparent; color: var(--brand-dark); border-color: var(--line);
}
.prose .is-style-outline .wp-block-button__link:hover {
  background: var(--brand-tint); color: var(--brand-darker); border-color: var(--brand);
}

.badge {
  display: inline-flex; align-items: center; gap: var(--s-1);
  padding: 2px var(--s-2); border-radius: 100px;
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.02em;
  background: var(--surface-3); color: var(--ink-2);
}
.badge--sale  { background: var(--err-tint);  color: var(--err); }
.badge--stock { background: var(--ok-tint);   color: var(--ok); }
.badge--out   { background: var(--warn-tint); color: var(--warn); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topbar {
  background: var(--navy); color: rgb(255 255 255 / 88%);
  font-size: var(--t-sm);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: flex-end;
  flex-wrap: wrap; gap: var(--s-2) var(--s-5); min-height: 36px;
}
.topbar a {
  color: inherit; text-decoration: none; font-weight: 500;
  white-space: nowrap;
}
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__phone { display: inline-flex; align-items: center; gap: var(--s-2); }
.topbar__phone svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 479px) {
  .topbar .wrap { justify-content: center; }
  .topbar__email { display: none; }
}

.nav {
  display: flex; align-items: center; gap: var(--s-5);
  min-height: var(--header-h);
}
.nav__brand { flex: 0 0 auto; display: block; padding: var(--s-2) 0; }
.nav__brand img { width: 168px; height: auto; }

.nav__menu {
  display: flex; align-items: center; gap: var(--s-1);
  margin-left: auto; padding: 0; list-style: none;
}
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: var(--s-1);
  padding: var(--s-3); border-radius: var(--radius);
  color: var(--ink); font-size: var(--t-base); font-weight: 500;
  text-decoration: none; white-space: nowrap;
}
.nav__link:hover { background: var(--surface-2); color: var(--brand-dark); }
.nav__link[aria-current="page"],
.nav__item--active > .nav__link { color: var(--brand-dark); font-weight: 600; }
.nav__link .chev { width: 10px; height: 10px; transition: transform 0.15s var(--ease); }
.nav__item[data-open="true"] > .nav__link .chev { transform: rotate(180deg); }

.nav__submenu {
  position: absolute; top: calc(100% + 2px); left: 0; z-index: 40;
  min-width: 268px; padding: var(--s-2);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: none;
}
.nav__item[data-open="true"] > .nav__submenu { display: block; }
.nav__submenu a {
  display: block; padding: var(--s-3); border-radius: var(--radius);
  color: var(--ink-2); font-size: var(--t-base); text-decoration: none;
}
.nav__submenu a:hover { background: var(--brand-tint); color: var(--brand-darker); }
.nav__submenu a[aria-current="page"] { color: var(--brand-dark); font-weight: 600; }

.nav__tools { display: flex; align-items: center; gap: var(--s-1); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-width: 44px; min-height: 44px; padding: 0 var(--s-3);
  border-radius: var(--radius); color: var(--ink);
  font-size: var(--t-sm); font-weight: 500; text-decoration: none;
}
.icon-btn:hover { background: var(--surface-2); color: var(--brand-dark); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  border-radius: 100px; font-size: 11px; font-weight: 700; line-height: 1;
}
.cart-count[hidden] { display: none; }

.nav__toggle { display: none; }

/* Mobile nav */
@media (max-width: 1023px) {
  .nav { gap: var(--s-3); }
  .nav__brand img { width: 140px; }
  .nav__toggle { display: inline-flex; order: 3; }
  .nav__tools { order: 2; margin-left: auto; }
  .nav__menu {
    order: 4; display: none; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-2) 0 var(--s-4);
    border-top: 1px solid var(--line);
  }
  .nav[data-menu-open="true"] { flex-wrap: wrap; }
  .nav[data-menu-open="true"] .nav__menu { display: flex; }
  .nav__link { justify-content: space-between; padding: var(--s-3) var(--s-2); font-size: var(--t-md); }
  .nav__submenu {
    position: static; display: none; min-width: 0;
    margin: 0 0 var(--s-2) var(--s-3);
    padding: 0 0 0 var(--s-3);
    border: 0; border-left: 2px solid var(--line);
    border-radius: 0; box-shadow: none;
  }
  .nav__item[data-open="true"] > .nav__submenu { display: block; }
}

/* ----------------------------------------------------------- search bar
   The WordPress build kept a full-width search field pinned under the header
   on mobile, costing ~15% of the viewport on every page. It's a panel now. */
.searchbar {
  display: none;
  padding: var(--s-4) 0;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.searchbar[data-open="true"] { display: block; }
.searchbar form { display: flex; gap: var(--s-2); }
.searchbar input { flex: 1; }

/* ---------------------------------------------------------------- forms */
.field { display: block; }
.field > label,
.label {
  display: block; margin-bottom: var(--s-2);
  color: var(--ink); font-size: var(--t-sm); font-weight: 600;
}
input[type="text"], input[type="email"], input[type="tel"], input[type="search"],
input[type="number"], input[type="password"], textarea, select {
  width: 100%; min-height: 44px;
  padding: var(--s-3);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: var(--t-base);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
input:hover, textarea:hover, select:hover { border-color: #c7d0d8; }
input:focus, textarea:focus, select:focus {
  outline: 0; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(29 140 190 / 18%);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { min-height: 130px; resize: vertical; }
select {
  appearance: none;
  padding-right: var(--s-7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23667380' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-3) center;
  background-size: 12px;
}
.form-row { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.form-note { color: var(--muted); font-size: var(--t-sm); }
.form-status { padding: var(--s-3) var(--s-4); border-radius: var(--radius); font-size: var(--t-base); }
.form-status--ok  { background: var(--ok-tint);  color: var(--ok); }
.form-status--err { background: var(--err-tint); color: var(--err); }
.form-status[hidden] { display: none; }

/* ------------------------------------------------------------ page shell */
main { display: block; min-height: 55vh; }

.page-head {
  padding: var(--s-7) 0 var(--s-5);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin-bottom: var(--s-2); }
.page-head__lead { max-width: 62ch; color: var(--ink-2); font-size: var(--t-md); }

.breadcrumbs { margin-bottom: var(--s-3); font-size: var(--t-sm); color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: var(--s-2); color: var(--line); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-dark); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink-2); }

.section { padding: var(--s-8) 0; }
.section--tight { padding: var(--s-7) 0; }
.section--soft { background: var(--surface-2); }
.section__head { max-width: 62ch; margin-bottom: var(--s-6); }
.section__head p { margin-top: var(--s-3); color: var(--ink-2); font-size: var(--t-md); }

/* ------------------------------------------------------------- prose
   Everything rendered from the original page copy lands inside .prose. */
.prose { max-width: 74ch; }

/* Spacing is set on the blocks themselves rather than with a `> * + *` owl,
   because the extracted copy still nests paragraphs inside section wrappers —
   33 of 46 pages do — and a child combinator silently skips every one of them. */
.prose :is(p, ul, ol, dl, figure, table, blockquote, video, audio,
           .video-embed, .tile-grid, .table-scroll) {
  margin-block: 0 var(--s-4);
}
.prose :is(h2, h3, h4, h5, h6) { margin-block: var(--s-6) var(--s-3); }
.prose h2 { margin-top: var(--s-7); font-size: var(--t-2xl); }
.prose h3 { font-size: var(--t-xl); }
.prose h4 { font-size: var(--t-lg); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: var(--s-5); }
.prose li + li { margin-top: var(--s-2); }
.prose li > :is(p, ul, ol) { margin-block: var(--s-2) 0; }
.prose img { border-radius: var(--radius-lg); }
.prose figure { margin-block: var(--s-6); }
.prose figcaption { margin-top: var(--s-2); color: var(--muted); font-size: var(--t-sm); }
/* Rebuilt by extract.py from the thumbnail-and-caption pairs the WPBakery
   columns used to hold. Fixed tile ratio, so mismatched source thumbnails
   (a 660 KB PNG next to a 20 KB JPEG) still line up. */
.tile-grid {
  display: grid; gap: var(--s-4); padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}
.tile-grid > li { display: flex; }
.tile-grid a {
  display: flex; flex-direction: column; flex: 1; gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  color: var(--ink); font-size: var(--t-base); font-weight: 500;
  text-align: center; text-decoration: none;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease),
              transform 0.15s var(--ease);
}
.tile-grid a:hover {
  border-color: var(--brand); box-shadow: var(--shadow);
  color: var(--brand-darker); transform: translateY(-2px);
}
.tile-grid img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: contain;
  margin: 0; border-radius: var(--radius);
  background: var(--surface-2);
}
.tile-grid span { margin-top: auto; }

.prose blockquote {
  padding-left: var(--s-5);
  border-left: 3px solid var(--brand);
  color: var(--ink); font-size: var(--t-md);
}
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-base); }
.prose :is(th, td) { padding: var(--s-3); border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--ink); font-weight: 600; }
.prose--wide { max-width: none; }
.table-scroll { overflow-x: auto; }

.video-embed {
  position: relative; aspect-ratio: 16 / 9;
  overflow: hidden; border-radius: var(--radius-lg);
  background: var(--surface-3);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose video, .prose audio { width: 100%; border-radius: var(--radius-lg); background: var(--ink); }
.prose audio { background: none; }

/* --------------------------------------------------------------- layouts */
.split {
  display: grid; gap: var(--s-7); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.sidebar-layout { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .sidebar-layout { grid-template-columns: 252px minmax(0, 1fr); gap: var(--s-7); align-items: start; }
  .sidebar-layout > aside { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
}

.card-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.card {
  display: flex; flex-direction: column;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.card h3 { font-size: var(--t-lg); }
.card > * + * { margin-top: var(--s-3); }
.card__foot { margin-top: auto; padding-top: var(--s-4); }

/* ------------------------------------------------------------ home hero */
.hero {
  position: relative;
  padding: var(--s-9) 0;
  background: linear-gradient(105deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: rgb(255 255 255 / 90%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 90% at 88% 15%, rgb(29 140 190 / 30%), transparent 65%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero__grid { display: grid; gap: var(--s-7); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.05fr 1fr; gap: var(--s-8); } }
.hero h1 { color: #fff; max-width: 16ch; }
.hero__copy { margin-top: var(--s-5); max-width: 56ch; font-size: var(--t-md); }
.hero__copy > * + * { margin-top: var(--s-4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.hero__proof {
  display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-7);
  margin-top: var(--s-8); padding-top: var(--s-6);
  border-top: 1px solid rgb(255 255 255 / 18%);
}
.hero__proof div { min-width: 150px; }
.hero__proof strong { display: block; color: #fff; font-size: var(--t-xl); font-weight: 700; line-height: 1.2; }
.hero__proof span { font-size: var(--t-sm); color: rgb(255 255 255 / 72%); }

/* --------------------------------------------------------- product cards
   The WordPress grid let each card size to its own content, so titles,
   prices and Add-to-cart buttons landed at different heights in every row.
   Fixed image ratio + margin-top:auto on the footer aligns every row. */
.product-grid {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.product-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease),
              transform 0.15s var(--ease);
}
.product-card:hover { border-color: #cfd9e1; box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgb(29 140 190 / 18%); }
.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: var(--s-4);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
}
.product-card__media img { width: 100%; height: 100%; object-fit: contain; }
.product-card__flags { position: absolute; top: var(--s-3); left: var(--s-3); display: flex; gap: var(--s-1); }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--s-4); }
.product-card__cat {
  margin-bottom: var(--s-2);
  color: var(--muted); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.product-card__title { font-size: var(--t-md); font-weight: 600; line-height: 1.35; }
.product-card__title a { color: var(--ink); text-decoration: none; }
/* Stretched link keeps the whole card clickable without nesting <a> in <a>. */
.product-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card__title a:hover { color: var(--brand-dark); }
.product-card__foot { margin-top: auto; padding-top: var(--s-4); }
.product-card__price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-2);
  margin-bottom: var(--s-3);
  color: var(--ink); font-size: var(--t-lg); font-weight: 700;
}
.product-card__price .was { color: var(--muted); font-size: var(--t-base); font-weight: 400; text-decoration: line-through; }
.product-card__price .gst { color: var(--muted); font-size: var(--t-sm); font-weight: 500; }
/* Raised above the stretched link so the button stays clickable. */
.product-card .btn { position: relative; z-index: 2; }

/* --------------------------------------------------------------- filters */
.filters { padding: var(--s-5); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.filters h2 { font-size: var(--t-md); }
.filters__group + .filters__group { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.filters__legend {
  display: block; margin-bottom: var(--s-3);
  color: var(--ink); font-size: var(--t-sm); font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase;
}
.filters ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.filters a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  min-height: 40px; padding: var(--s-2) var(--s-3);
  border-radius: var(--radius);
  color: var(--ink-2); font-size: var(--t-base); text-decoration: none;
}
.filters a:hover { background: var(--surface); color: var(--brand-dark); }
.filters a[aria-current="true"] { background: var(--brand); color: #fff; font-weight: 600; }
.filters a[aria-current="true"] .count { color: rgb(255 255 255 / 80%); }
.filters .count { color: var(--muted); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }

/* On phones the filter panel used to fill the first screen and push every
   product below the fold. It collapses now, so results are visible at once. */
.filters-disclosure { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-2); }
.filters-disclosure > summary {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; padding: var(--s-3) var(--s-4);
  color: var(--ink); font-weight: 600; cursor: pointer; list-style: none;
}
.filters-disclosure > summary::-webkit-details-marker { display: none; }
.filters-disclosure > summary::after {
  content: ""; width: 10px; height: 10px; flex: none;
  background: currentColor;
  clip-path: polygon(50% 75%, 0 25%, 12% 13%, 50% 51%, 88% 13%, 100% 25%);
  transition: transform 0.15s var(--ease);
}
.filters-disclosure[open] > summary::after { transform: rotate(180deg); }
.filters-disclosure .filters { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
@media (min-width: 1024px) { .filters-disclosure { display: none; } }
.filters-desktop { display: none; }
@media (min-width: 1024px) { .filters-desktop { display: block; } }

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.toolbar__count { color: var(--muted); font-size: var(--t-base); }
.toolbar__sort { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.toolbar__sort label { color: var(--muted); font-size: var(--t-sm); white-space: nowrap; }
.toolbar__sort select { min-width: 190px; }

.load-more { display: grid; justify-items: center; gap: var(--s-2); margin-top: var(--s-7); }
.load-more[hidden] { display: none; }

.empty-state { padding: var(--s-8) var(--s-5); text-align: center; border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.empty-state h2 { font-size: var(--t-lg); }
.empty-state p { margin-top: var(--s-2); color: var(--muted); }

/* ------------------------------------------------------------ pagination
   Original marked the current page grey — which reads as disabled. */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin-top: var(--s-7); }
.pagination a, .pagination span {
  display: grid; place-items: center;
  min-width: 44px; min-height: 44px; padding: 0 var(--s-3);
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink-2); font-size: var(--t-base); font-weight: 500; text-decoration: none;
}
.pagination a:hover { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-darker); }
.pagination [aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.pagination .is-gap { border: 0; color: var(--muted); }

/* ------------------------------------------------------- product detail */
.product-layout { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .product-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: var(--s-8); align-items: start; }
}
.gallery { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
@media (max-width: 899px) { .gallery { position: static; } }
.gallery__main {
  display: grid; place-items: center;
  aspect-ratio: 1 / 1; padding: var(--s-6);
  background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery__main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.gallery__thumbs[hidden] { display: none; }
.gallery__thumb {
  width: 74px; height: 74px; padding: var(--s-2);
  background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb[aria-current="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px rgb(29 140 190 / 22%); }

.buybox > * + * { margin-top: var(--s-5); }
.buybox__title { font-size: var(--t-2xl); }
.buybox__meta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.buybox__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-2); }
.buybox__price .now { color: var(--ink); font-size: 1.875rem; font-weight: 700; letter-spacing: -0.02em; }
.buybox__price .was { color: var(--muted); font-size: var(--t-lg); text-decoration: line-through; }
.buybox__price .gst { color: var(--muted); font-size: var(--t-base); }
.buybox__short { color: var(--ink-2); }
.buybox__short > * + * { margin-top: var(--s-3); }
.buybox__actions { display: grid; gap: var(--s-3); }
.buybox__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.buybox__row .btn { flex: 1 1 200px; }

.specs { width: 100%; border-collapse: collapse; font-size: var(--t-base); }
.specs th, .specs td { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs th { width: 40%; color: var(--muted); font-weight: 500; }
.specs td { color: var(--ink); }
.specs a { color: var(--brand-dark); }

/* --------------------------------------------------------------- qty */
.qty {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
.qty:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgb(29 140 190 / 18%); }
.qty button {
  width: 44px; min-height: 44px;
  display: grid; place-items: center;
  color: var(--ink-2); font-size: var(--t-lg); font-weight: 500;
}
.qty button:hover:not([disabled]) { background: var(--surface-2); color: var(--brand-dark); }
.qty button[disabled] { opacity: 0.4; cursor: not-allowed; }
.qty input {
  width: 56px; min-height: 44px; padding: 0;
  border: 0; border-inline: 1px solid var(--line); border-radius: 0;
  text-align: center; font-weight: 600;
  -moz-appearance: textfield;
}
.qty input:focus { box-shadow: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm button { width: 36px; min-height: 36px; font-size: var(--t-base); }
.qty--sm input { width: 44px; min-height: 36px; }

/* ---------------------------------------------------------- cart drawer */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 150;
  background: rgb(1 36 68 / 45%);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s var(--ease);
}
.drawer-backdrop[data-open="true"] { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 151;
  width: min(420px, 100%);
  display: flex; flex-direction: column;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.25s var(--ease);
}
.drawer[data-open="true"] { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
}
.drawer__head h2 { font-size: var(--t-lg); }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--s-4) var(--s-5); }
.drawer__foot { padding: var(--s-5); border-top: 1px solid var(--line); background: var(--surface-2); }
.drawer__foot > * + * { margin-top: var(--s-3); }

.line-item { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--line-soft); }
.line-item:first-child { padding-top: 0; }
.line-item__media {
  width: 68px; height: 68px; padding: var(--s-2);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.line-item__media img { width: 100%; height: 100%; object-fit: contain; }
.line-item__name { color: var(--ink); font-size: var(--t-base); font-weight: 600; line-height: 1.35; text-decoration: none; }
.line-item__name:hover { color: var(--brand-dark); }
.line-item__sku { margin-top: 2px; color: var(--muted); font-size: var(--t-xs); }
.line-item__controls { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-3); }
.line-item__price { text-align: right; color: var(--ink); font-weight: 600; white-space: nowrap; }
.link-danger { background: none; border: 0; padding: 0; color: var(--muted); font-size: var(--t-sm); text-decoration: underline; cursor: pointer; }
.link-danger:hover { color: var(--err); }

.totals { display: grid; gap: var(--s-2); }
.totals__row { display: flex; justify-content: space-between; gap: var(--s-4); font-size: var(--t-base); }
.totals__row--grand {
  padding-top: var(--s-3); margin-top: var(--s-1);
  border-top: 1px solid var(--line);
  color: var(--ink); font-size: var(--t-lg); font-weight: 700;
}

/* ----------------------------------------------------------- cart page */
.cart-layout { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-7); align-items: start; } }
.cart-summary { padding: var(--s-5); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); }
@media (min-width: 900px) { .cart-summary { position: sticky; top: calc(var(--header-h) + var(--s-4)); } }
.cart-summary > * + * { margin-top: var(--s-4); }
.cart-table { width: 100%; }
.cart-table .line-item { grid-template-columns: 88px minmax(0, 1fr) auto; }
.cart-table .line-item__media { width: 88px; height: 88px; }

/* ----------------------------------------------------------- news cards */
.post-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: box-shadow 0.15s var(--ease), transform 0.15s var(--ease); }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card__media { aspect-ratio: 16 / 9; background: var(--surface-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--s-5); }
.post-card__meta { color: var(--muted); font-size: var(--t-sm); }
.post-card__title { margin-top: var(--s-2); font-size: var(--t-lg); }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--brand-dark); }
.post-card__excerpt { margin-top: var(--s-3); color: var(--ink-2); }
.post-card__foot { margin-top: auto; padding-top: var(--s-4); }

.article-head { padding: var(--s-7) 0 var(--s-5); }
.article-head__meta { color: var(--muted); font-size: var(--t-sm); }
.article-hero { margin: var(--s-5) 0 var(--s-6); }
.article-hero img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius-lg); }

/* ------------------------------------------------------------ callouts */
.cta-band {
  padding: var(--s-8) 0;
  background: linear-gradient(105deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: rgb(255 255 255 / 88%);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 54ch; margin: var(--s-3) auto 0; font-size: var(--t-md); }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-6); }

/* Eight testimonials of very uneven length. `align-items: start` stops the
   grid stretching every card to the tallest in its row, which would leave
   most of them mostly empty. */
.testimonial-grid {
  display: grid; gap: var(--s-4); align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
}

.testimonial {
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-lg);
}
.testimonial blockquote { color: var(--ink-2); font-size: var(--t-md); }
.testimonial figcaption { margin-top: var(--s-4); color: var(--ink); font-weight: 600; }
.testimonial figcaption span { display: block; color: var(--muted); font-size: var(--t-sm); font-weight: 400; }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: var(--s-9); background: var(--surface-2); border-top: 1px solid var(--line); }
.site-footer__grid {
  display: grid; gap: var(--s-6);
  padding: var(--s-8) 0 var(--s-7);
  grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr 1.4fr; gap: var(--s-7); } }
.site-footer h2 {
  margin-bottom: var(--s-4);
  color: var(--ink); font-size: var(--t-sm); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.site-footer ul { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--brand-dark); text-decoration: underline; }
.site-footer__brand img { width: 176px; margin-bottom: var(--s-4); }
.site-footer__brand p { color: var(--muted); font-size: var(--t-sm); max-width: 34ch; }
.site-footer address { font-style: normal; color: var(--ink-2); }
.site-footer address > * + * { margin-top: var(--s-2); }

/* The original stacked a lone round arrow button under the email input with
   no visual connection to it. One inline group instead. */
.newsletter__form { display: flex; gap: var(--s-2); margin-bottom: var(--s-3); }
.newsletter__form input { flex: 1; min-width: 0; }
.newsletter__note { color: var(--muted); font-size: var(--t-sm); }

.site-footer__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: var(--t-sm);
}
.site-footer__bar ul { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.social { display: flex; gap: var(--s-2); }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); color: var(--ink-2); }
.social a:hover { background: var(--surface-3); color: var(--brand-dark); }
.social svg { width: 18px; height: 18px; }

/* ----------------------------------------------------------------- toast */
.toast-region { position: fixed; z-index: 200; right: var(--s-4); bottom: var(--s-4); display: grid; gap: var(--s-2); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: var(--s-3);
  max-width: 360px; padding: var(--s-3) var(--s-4);
  background: var(--ink); color: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  font-size: var(--t-base);
  animation: toast-in 0.2s var(--ease);
}
.toast--err { background: var(--err); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* --------------------------------------------------------------- print */
@media print {
  .site-header, .site-footer, .cta-band, .drawer, .drawer-backdrop, .toast-region { display: none !important; }
  body { font-size: 11pt; }
}

/* Post byline: date and author, matching what the WordPress entry-meta showed. */
.article-head__meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.article-head__meta span::before { content: "by "; color: var(--line); }
