/* ============================================================
   Organic Trading Company — Jaspr POC stylesheet
   Tokens mirror frontend/lib/core/theme/otc_colors|typography|tokens.dart
   ============================================================ */

:root {
  /* Brand core (otc_colors.dart) */
  --navy-900: #081428;
  --navy-800: #0d1f3c;
  --navy-700: #142a50;
  --navy-600: #1e3a66;
  --navy-300: #4a5e80;

  --red-700: #b30e1f;
  --red-600: #cf1224;
  --red-500: #e8192c;

  --gold-600: #a88a37;
  --gold-500: #c8a84b;

  --base: #f8f9fc;
  --surface-1: #ffffff;
  --surface-2: #f1f3f8;

  --ink-900: #0d1f3c;
  --ink-700: #344256;
  --ink-500: #6b7a99;
  --ink-400: #909cb5;

  --line-300: #d4d9e4;
  --line-200: #e4e8f0;

  --whatsapp: #25d366;
  --whatsapp-hover: #1fbe5a;

  /* On-navy text alphas */
  --on-navy-strong: rgba(255, 255, 255, 0.85);
  --on-navy-body: rgba(255, 255, 255, 0.78);
  --on-navy-muted: rgba(255, 255, 255, 0.72);
  --on-navy-dim: rgba(255, 255, 255, 0.62);
  --on-navy-faint: rgba(255, 255, 255, 0.45);
  --on-navy-hairline: rgba(255, 255, 255, 0.14);

  /* Fonts (otc_typography.dart) */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Tokens (otc_tokens.dart) */
  --max-content: 1200px;
  --page-pad: 28px;
  --r-input: 2px;
  --r-card: 4px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(13, 31, 60, 0.06);
  --shadow-2: 0 2px 8px rgba(13, 31, 60, 0.08);
  --shadow-3: 0 8px 24px rgba(13, 31, 60, 0.10);
  --shadow-4: 0 18px 48px rgba(13, 31, 60, 0.14);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.2, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink-700);
  background: var(--base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.icon--sm { width: 17px; height: 17px; }
.icon--xs { width: 14px; height: 14px; }

/* ---- Eyebrow (mono, gold/red, 0.12em tracking, uppercase) ---- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-500);
}
.eyebrow--center { display: block; text-align: center; color: var(--ink-500); }
.eyebrow--ondark { color: var(--gold-500); }

/* ============================================================
   Glass primitives — the showcase
   ============================================================ */
.glass {
  background: rgba(20, 42, 80, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-card);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
  box-shadow: 0 14px 44px rgba(5, 12, 28, 0.42);
}
.glass--card { box-shadow: 0 18px 48px rgba(5, 12, 28, 0.38); }
.glass--sheen { position: relative; overflow: hidden; }
.glass--sheen::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  pointer-events: none;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--r-card);
  cursor: pointer;
  transition: background 0.2s var(--ease-standard), transform 0.2s var(--ease-standard),
    box-shadow 0.2s var(--ease-standard), border-color 0.2s var(--ease-standard);
}
.btn--lg { padding: 14px 24px; font-size: 15px; }

.btn--primary { background: var(--red-500); color: #fff; }
.btn--primary:hover { background: var(--red-600); transform: translateY(-1px); box-shadow: var(--shadow-3); }

.btn--accent { background: var(--red-500); color: #fff; }
.btn--accent:hover { background: var(--red-600); }

.btn--quote { background: var(--whatsapp); color: #06351a; font-weight: 600; }
.btn--quote:hover { background: var(--whatsapp-hover); transform: translateY(-1px); }

.btn--whatsapp { background: var(--whatsapp); color: #06351a; font-weight: 600; }
.btn--whatsapp:hover { background: var(--whatsapp-hover); transform: translateY(-1px); box-shadow: var(--shadow-3); }

.btn--glass {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-1px); }

/* ============================================================
   Header — glass on navy
   ============================================================ */
.header { position: sticky; top: 0; z-index: 50; }

.header__utility { background: var(--navy-900); height: 38px; }
.header__utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  font-size: 12.5px;
  color: var(--on-navy-strong);
}
.header__utility-left,
.header__utility-right { display: flex; align-items: center; gap: 20px; }
.header__utility-left { gap: 8px; }
.header__utility-item { display: inline-flex; align-items: center; gap: 6px; color: var(--on-navy-body); }
.header__utility-gold { color: var(--gold-500); }

.header__bar {
  height: 74px;
  background: rgba(13, 31, 60, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}
.header__bar-inner { display: flex; align-items: center; height: 74px; gap: 24px; }

.header__logo { display: inline-flex; align-items: center; gap: 12px; }
.header__logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  font-family: var(--font-mono); font-weight: 600; font-size: 15px; letter-spacing: 0.04em;
  color: var(--navy-900); background: var(--gold-500); border-radius: var(--r-card);
}
.header__logo-img { height: 46px; width: auto; display: block; }
.footer__logo-img { height: 58px; width: auto; display: block; }

/* Global quote modal (opened from the header) */
.qmodal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; }
.qmodal__backdrop { position: absolute; inset: 0; background: rgba(8, 20, 40, 0.55); backdrop-filter: blur(4px); }
.qmodal__panel {
  position: relative; z-index: 1; width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto; background: #fff;
  border-radius: var(--r-card); box-shadow: var(--shadow-4); padding: 36px;
}
.qmodal__close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  display: grid; place-items: center; background: transparent; border: none;
  cursor: pointer; color: var(--ink-500); border-radius: 8px;
}
.qmodal__close:hover { background: var(--surface-2); color: var(--ink-900); }

/* Header actions + mobile menu (hamburger shown < 900px) */
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__menu-btn {
  display: none; width: 40px; height: 40px; place-items: center;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--on-navy-hairline);
  border-radius: var(--r-input); color: #fff; cursor: pointer;
}
.header__menu-btn:hover { background: rgba(255, 255, 255, 0.12); }
.header__mobile { display: none; background: var(--navy-900); border-top: 1px solid var(--on-navy-hairline); }
.header__mobile-inner { display: flex; flex-direction: column; padding-block: 8px 18px; }
.header__mobile-link {
  display: block; padding: 13px 2px; color: var(--on-navy-body);
  text-decoration: none; font-size: 16px; border-bottom: 1px solid var(--on-navy-hairline);
}
.header__mobile-link:hover { color: #fff; }
.header__mobile-quote { margin-top: 16px; width: 100%; justify-content: center; }
.header__logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.header__logo-name { font-family: var(--font-serif); font-size: 19px; font-weight: 600; color: #fff; }
.header__logo-suffix {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--on-navy-dim);
}

.header__nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header__nav-link {
  position: relative;
  padding: 10px 14px;
  font-size: 14.5px;
  color: var(--on-navy-body);
  transition: color 0.2s var(--ease-standard);
}
.header__nav-link:hover { color: #fff; }
.header__nav-link--active { color: #fff; font-weight: 500; }
.header__nav-link--active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--red-500); border-radius: 1px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(30, 58, 102, 0.55), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 70%);
  border-bottom: 1px solid var(--navy-700);
  padding-block: 76px;
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 35%, transparent 80%);
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 35%, transparent 80%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.27fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero__eyebrow-text {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-500);
}
.hero__title {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero__subtext {
  margin-top: 22px;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--on-navy-body);
}

.hero__search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 540px;
  margin-top: 28px;
  padding: 7px 7px 7px 16px;
  background: rgba(20, 42, 80, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero__search-icon { color: var(--on-navy-muted); }
.hero__search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 15px;
  color: #fff;
}
.hero__search-input::placeholder { color: var(--on-navy-muted); }
.hero__search-btn { padding: 10px 16px; }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }

.hero__assurance {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 26px; max-width: 520px;
  font-size: 13.5px; line-height: 1.5; color: var(--on-navy-dim);
}
.hero__assurance-icon { color: var(--red-500); margin-top: 1px; }

/* ---- Spec sheet glass card ---- */
.spec { width: 100%; }
.spec__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid var(--on-navy-hairline);
}
.spec__head-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.55);
}
.spec__image {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
}
.spec__image-glyph { width: 56px; height: 56px; color: rgba(255, 255, 255, 0.20); }
.spec__rows { display: flex; flex-direction: column; }
.spec__row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.spec__row:last-child { border-bottom: none; }
.spec__row-key {
  width: 92px; flex: 0 0 auto;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}
.spec__row-value {
  flex: 1; text-align: right;
  font-family: var(--font-mono); font-size: 14px; color: #fff;
}

/* ---- Gold badge ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--gold-500);
  border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; color: var(--gold-600);
}
.badge--ondark { background: rgba(200, 168, 75, 0.12); color: var(--gold-500); }

/* ============================================================
   Bands & sections
   ============================================================ */
.band { position: relative; overflow: hidden; }
.band--navy { background: var(--navy-800); }
.band--navy900 { background: var(--navy-900); }
.band__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
}

.section { padding-block: 84px; }
.section--base { background: var(--base); }
.section--rule {
  background: var(--surface-1);
  border-top: 1px solid var(--line-300);
  border-bottom: 1px solid var(--line-300);
  padding-block: 56px;
}

.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__head-text { display: flex; flex-direction: column; gap: 14px; }
.section__title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(28px, 3vw, 38px); line-height: 1.15; letter-spacing: -0.01em;
  color: var(--ink-900);
}
.section__title--ondark { color: #fff; }
.section__head-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 500; color: var(--red-500); white-space: nowrap;
}
.section__head-link:hover { color: var(--red-600); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.brand-grid { gap: 18px; }

/* ---- Stats ---- */
.stats__inner { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 40px; }
.stat { padding-inline: 30px; }
.stat + .stat { border-left: 1px solid var(--on-navy-hairline); }
.stat__figure {
  display: block; font-family: var(--font-serif); font-weight: 600;
  font-size: 42px; line-height: 1.1; color: #fff;
}
.stat__label { display: block; margin-top: 6px; font-size: 14px; color: var(--on-navy-muted); }

/* ---- Category cards ---- */
.cat-card {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 320px;
  padding: 18px;
  border-radius: var(--r-card);
  background: linear-gradient(180deg, var(--navy-600) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
  border: 1px solid var(--line-300);
  overflow: hidden;
  transition: transform 0.36s var(--ease-out), box-shadow 0.36s var(--ease-out);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-4); }
.cat-card__badge {
  position: absolute; top: 14px; left: 14px;
  display: grid; place-items: center; width: 44px; height: 44px;
  background: rgba(20, 42, 80, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-card); color: #fff;
}
.cat-card__icon { width: 22px; height: 22px; }
.cat-card__body {
  padding: 16px;
  background: rgba(20, 42, 80, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-card);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.cat-card__title { font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: #fff; }
.cat-card__blurb { margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--on-navy-body); }
.cat-card__link { display: inline-block; margin-top: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--gold-500); }

/* ---- Brand cards ---- */
.brand-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--line-300);
  border-radius: var(--r-card);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.brand-card__name { font-family: var(--font-serif); font-size: 24px; font-weight: 600; color: var(--ink-900); }
.brand-card__country { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-400); margin-bottom: 6px; }

/* ---- Why cards ---- */
.why-card {
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--line-300);
  border-top: 2px solid var(--navy-800);
  border-radius: var(--r-card);
}
.why-card__badge { display: grid; place-items: center; width: 44px; height: 44px; background: var(--surface-2); border-radius: var(--r-card); color: var(--navy-800); }
.why-card__icon { width: 22px; height: 22px; }
.why-card__title { margin-top: 18px; font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--ink-900); }
.why-card__body { margin-top: 8px; font-size: 13.5px; line-height: 1.6; color: var(--ink-500); }

/* ---- Institution strip ---- */
.inst { padding-block: 80px; }
.inst__inner { position: relative; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 52px; align-items: center; }
.inst__lead { margin-top: 16px; font-size: 16px; line-height: 1.7; color: var(--on-navy-muted); }
.inst__copy .btn { margin-top: 26px; }
.inst__panel { padding: 6px; }
.inst__list { display: grid; grid-template-columns: 1fr 1fr; }
.inst__row { display: flex; align-items: center; gap: 12px; padding: 15px 16px; font-size: 13px; color: var(--on-navy-strong); }
.inst__row-icon { color: rgba(255, 255, 255, 0.5); }

/* ---- CTA band ---- */
.cta { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); padding-block: 76px; }
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta__eyebrow { display: block; }
.cta__title { max-width: 680px; margin-top: 14px; }
.cta__lead { max-width: 560px; margin-top: 16px; font-size: 17px; line-height: 1.65; color: var(--on-navy-body); }
.cta__ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { position: relative; overflow: hidden; padding-block: 64px 30px; color: var(--on-navy-muted); }
.footer .container { position: relative; }
.footer__cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 44px; }
.footer__logo { display: inline-flex; align-items: center; gap: 12px; }
.footer__logo-text .header__logo-name { color: #fff; }
.footer__blurb { max-width: 300px; margin-top: 18px; font-size: 14px; line-height: 1.7; color: var(--on-navy-dim); }
.footer__brand .btn { margin-top: 22px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col-head { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; color: var(--gold-500); margin-bottom: 6px; }
.footer__link { font-size: 14px; color: var(--on-navy-muted); transition: color 0.2s; }
.footer__link:hover { color: #fff; }
.footer__contact-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; }
.footer__contact-icon { color: rgba(255, 255, 255, 0.6); margin-top: 2px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__copy { font-size: 12.5px; color: var(--on-navy-faint); }
.footer__reg { font-family: var(--font-mono); font-size: 12.5px; color: var(--on-navy-faint); }

.btn--outline {
  background: #fff;
  border-color: var(--line-300);
  color: var(--ink-900);
}
.btn--outline:hover { border-color: var(--navy-800); transform: translateY(-1px); box-shadow: var(--shadow-2); }

/* ============================================================
   Catalogue listing (/catalogue) — @client island
   ============================================================ */
.cat-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 80% -20%, rgba(30, 58, 102, 0.5), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 75%);
  border-bottom: 1px solid var(--navy-700);
  padding-block: 60px 76px;
}
.cat-hero__inner { position: relative; }
.cat-hero__title {
  margin-top: 14px;
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(32px, 4vw, 46px); line-height: 1.08; color: #fff;
}
.cat-hero__sub { margin-top: 18px; max-width: 560px; font-size: 17px; line-height: 1.6; color: var(--on-navy-body); }

.cat-section { padding-block: 0 80px; }

/* Search bar — lifted to overlap the hero seam. */
.cat-search {
  display: flex; align-items: center; gap: 12px;
  margin-top: -28px; margin-bottom: 28px; position: relative; z-index: 2;
  padding: 6px 18px;
  background: var(--surface-1);
  border: 1px solid var(--line-200);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-3);
}
.cat-search__icon { color: var(--ink-400); }
.cat-search__input {
  flex: 1; padding: 12px 0;
  background: transparent; border: none; outline: none;
  font-family: var(--font-sans); font-size: 15.5px; color: var(--ink-900);
}
.cat-search__input::placeholder { color: var(--ink-400); }

.cat-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 26px; }
.cat-pill {
  padding: 8px 15px;
  font-family: var(--font-sans); font-size: 13.5px; color: var(--ink-700);
  background: #fff; border: 1px solid var(--line-300); border-radius: var(--r-card);
  cursor: pointer; transition: all 0.18s var(--ease-standard);
}
.cat-pill:hover { border-color: var(--navy-300); }
.cat-pill--active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; font-weight: 500; }
.cat-results__count { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--ink-500); }

.cat-toggle { display: inline-flex; border: 1px solid var(--line-300); border-radius: var(--r-card); overflow: hidden; }
.cat-toggle__seg { display: grid; place-items: center; padding: 7px; background: transparent; border: none; cursor: pointer; color: var(--ink-500); }
.cat-toggle__seg--active { background: var(--navy-800); color: #fff; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat-list { display: flex; flex-direction: column; border: 1px solid var(--line-300); border-radius: var(--r-card); overflow: hidden; }

.cat-loadmore-wrap { display: flex; justify-content: center; margin-top: 36px; }
.cat-loadmore { border: none; }

.cat-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 64px 20px; text-align: center;
  border: 1px solid var(--line-300); border-radius: var(--r-card);
}
.cat-empty__icon { width: 32px; height: 32px; color: var(--line-300); margin-bottom: 8px; }
.cat-empty__text { font-size: 16px; color: var(--ink-500); }
.cat-empty__sub { font-size: 14px; color: var(--ink-400); }

/* ---- Product card ---- */
.pcard {
  display: block;
  background: #fff; border: 1px solid var(--line-300); border-radius: var(--r-card);
  overflow: hidden; transition: transform 0.36s var(--ease-out), box-shadow 0.36s var(--ease-out);
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.pcard__media { position: relative; height: 150px; overflow: hidden; }
.pcard__media .badge { position: absolute; top: 10px; left: 10px; }
.pcard__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.36s var(--ease-out); }
.pcard:hover .pcard__img { transform: scale(1.05); }
.pcard__img--ph {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #f1f3f8, #e7eaf1);
}
.pcard__img-glyph { width: 40px; height: 40px; color: #b8c0d1; }
.pcard__body { padding: 16px; display: flex; flex-direction: column; }
.pcard__brand { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-500); margin-bottom: 9px; }
.pcard__name { font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--ink-900); line-height: 1.25; }
.pcard__tech { display: flex; align-items: baseline; gap: 10px; margin-top: 9px; }
.pcard__formula { font-family: var(--font-mono); font-size: 13px; color: var(--ink-900); }
.pcard__cas { font-family: var(--font-mono); font-size: 13px; color: var(--ink-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard__chip {
  align-self: flex-start; margin-top: 12px; padding: 4px 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-700);
  background: var(--surface-2); border-radius: 2px;
}

/* ---- Product row (list view) ---- */
.prow { display: flex; align-items: center; gap: 18px; padding: 14px 16px; background: #fff; }
.prow + .prow { border-top: 1px solid var(--line-300); }
.prow:hover { background: var(--surface-2); }
.prow__img { width: 56px; height: 56px; flex: 0 0 auto; object-fit: cover; border-radius: var(--r-card); }
.prow__img--ph { display: grid; place-items: center; background: linear-gradient(135deg, #f1f3f8, #e7eaf1); }
.prow__img-glyph { width: 24px; height: 24px; color: #b8c0d1; }
.prow__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.prow__brand { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--ink-500); }
.prow__name { font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--ink-900); }
.prow__tech { display: flex; flex-direction: column; gap: 2px; text-align: right; min-width: 120px; }
.prow__formula { font-family: var(--font-mono); font-size: 13px; color: var(--ink-900); }
.prow__cas { font-family: var(--font-mono); font-size: 12px; color: var(--ink-500); }
.prow__chip {
  flex: 0 0 auto; padding: 4px 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-700);
  background: var(--surface-2); border-radius: 2px;
}

/* ============================================================
   Product detail (/catalogue/<slug>) — @client island
   ============================================================ */
.pd-section { padding-block: 28px 80px; }
.pd-breadcrumb { margin-bottom: 22px; }
.pd-back { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-500); }
.pd-back:hover { color: var(--red-500); }

.pd-layout { display: grid; grid-template-columns: 92fr 108fr; gap: 52px; align-items: start; }

.pd-image {
  position: relative; aspect-ratio: 1;
  border: 1px solid var(--line-300); border-radius: var(--r-card); overflow: hidden;
}
.pd-image .badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.pd-image__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-image__ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #f1f3f8, #e7eaf1); }
.pd-image__glyph { width: 72px; height: 72px; color: #b8c0d1; }

.pd-info { display: flex; flex-direction: column; }
.pd-brand { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-500); }
.pd-title { margin-top: 12px; font-family: var(--font-serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; color: var(--ink-900); }
.pd-formula { margin-top: 10px; font-family: var(--font-mono); font-size: 22px; color: var(--ink-900); }

.pd-spec { margin-top: 24px; border: 1px solid var(--line-300); border-radius: var(--r-card); overflow: hidden; }
.pd-spec__row { display: flex; }
.pd-spec__row + .pd-spec__row { border-top: 1px solid var(--line-200); }
.pd-spec__key {
  width: 150px; flex: 0 0 auto; padding: 12px 16px;
  background: var(--surface-2); border-right: 1px solid var(--line-200);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-500);
}
.pd-spec__value { flex: 1; padding: 12px 16px; font-family: var(--font-mono); font-size: 14px; color: var(--ink-900); }

.pd-desc { margin-top: 20px; font-size: 15px; line-height: 1.7; color: var(--ink-700); white-space: pre-line; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.pd-coa { background: #fff; border-color: var(--line-300); color: var(--ink-900); -webkit-backdrop-filter: none; backdrop-filter: none; }
.pd-coa:hover { background: var(--surface-2); border-color: var(--navy-800); }

/* ============================================================
   Responsive — single 900px breakpoint
   ============================================================ */
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .pd-layout { grid-template-columns: 1fr; gap: 32px; }
  .prow__tech { display: none; }

  .header__nav { display: none; }
  .header__utility-right { display: none; }
  .header__menu-btn { display: inline-grid; }
  .header__actions { margin-left: auto; }
  .header__mobile { display: block; }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .stats__inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat { padding-inline: 0; }
  .stat + .stat { border-left: none; }

  .grid-4 { grid-template-columns: 1fr 1fr; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .section__head-link { display: none; }

  .inst__inner { grid-template-columns: 1fr; gap: 40px; }
  .inst__list { grid-template-columns: 1fr; }

  .footer__cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stats__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
}
