/* ==========================================================================
   FARRISH PHARMACEUTICALS — catalogue site
   Palette: royal blue + signal red on clinical paper-white
   Type:    Cormorant Garamond (display) · Manrope (body) · IBM Plex Mono (label data)
   ========================================================================== */

:root {
  --blue-950: #081C46;
  --blue-900: #0C2A66;
  --blue-800: #10357F;
  --blue: #14459E;
  --blue-600: #1D5BC4;
  --blue-200: #C4D7F4;
  --blue-100: #DCE8FA;
  --blue-50: #EFF5FD;
  --red: #E0242B;
  --red-700: #B81B21;
  --ink: #122442;
  --slate: #54627C;
  --line: #E2E9F4;
  --paper: #F7FAFE;
  --white: #FFFFFF;

  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-product: "Bricolage Grotesque", "Manrope", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  --ease: cubic-bezier(0.22, 0.7, 0.25, 1);
  --shadow-sm: 0 1px 3px rgba(12, 42, 102, 0.08);
  --shadow-md: 0 10px 30px -8px rgba(12, 42, 102, 0.16);
  --shadow-lg: 0 24px 60px -16px rgba(12, 42, 102, 0.28);
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--blue); color: #fff; }

/* ------------------------------------------------------------------ page fade */
body { opacity: 0; transform: translateY(6px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
body.is-ready { opacity: 1; transform: none; }
body.is-leaving { opacity: 0; transform: translateY(-6px); }

/* --------------------------------------------------------------- preloader */
#preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
#preloader.done { opacity: 0; visibility: hidden; }
#preloader svg { width: 180px; }
#preloader .pulse-path {
  stroke: var(--red); stroke-width: 2.4; fill: none; stroke-linecap: round;
  stroke-dasharray: 90 320; stroke-dashoffset: 410;
  animation: preloaderPulse 1.3s linear infinite;
}
#preloader p {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--slate);
}
@keyframes preloaderPulse { to { stroke-dashoffset: 0; } }

/* -------------------------------------------------------------- scrollbar bar */
#scrollbar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--red));
  z-index: 150; border-radius: 0 3px 3px 0;
}

/* ------------------------------------------------------------------ ambient */
.ambient {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.ambient::before, .ambient::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
}
.ambient::before {
  width: 620px; height: 620px; top: -220px; right: -160px;
  background: radial-gradient(circle, var(--blue-100), transparent 65%);
  animation: drift 26s ease-in-out infinite alternate;
}
.ambient::after {
  width: 520px; height: 520px; bottom: -200px; left: -140px;
  background: radial-gradient(circle, #FDE5E6, transparent 65%);
  animation: drift 32s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-60px, 50px) scale(1.12); }
}
.ambient .cap {
  position: absolute; width: 46px; height: 20px; border-radius: 20px;
  border: 1.5px solid var(--blue-200); opacity: 0.5;
  animation: floatCap var(--t, 18s) ease-in-out infinite alternate;
}
.ambient .cap::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px;
  background: var(--blue-200);
}
.ambient .cap.red { border-color: #F3C2C4; }
.ambient .cap.red::before { background: #F3C2C4; }
.ambient .cross {
  position: absolute; font-size: 22px; color: var(--blue-200); opacity: 0.55;
  font-family: var(--font-body); font-weight: 300;
  animation: floatCap var(--t, 20s) ease-in-out infinite alternate;
}
@keyframes floatCap {
  from { transform: translateY(0) rotate(var(--r, 20deg)); }
  to   { transform: translateY(-46px) rotate(calc(var(--r, 20deg) + 18deg)); }
}

/* ------------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.nav-wrap {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 74px;
}
.nav-logo img { height: 44px; width: auto; transition: transform 0.35s var(--ease); }
.nav-logo:hover img { transform: scale(1.04); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  position: relative; padding: 9px 14px; font-size: 0.86rem; font-weight: 600;
  color: var(--slate); border-radius: 10px; transition: color 0.25s, background 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--red); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--blue-800); background: var(--blue-50); }
.nav-links a.active { color: var(--blue-800); }
.nav-links a.active::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  margin-left: 10px; padding: 10px 20px; border-radius: 99px;
  background: var(--blue); color: #fff !important; font-size: 0.84rem; font-weight: 700;
  box-shadow: 0 6px 16px -6px rgba(20, 69, 158, 0.55);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--blue-600) !important; transform: translateY(-2px); box-shadow: 0 10px 22px -6px rgba(20, 69, 158, 0.6); }

.nav-burger {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px;
}
.nav-burger span { width: 24px; height: 2px; background: var(--blue-800); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ layout */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
section { position: relative; }

.eyebrow {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--blue-600);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 34px; height: 1.5px; background: var(--red); }

h1, h2, h3 { line-height: 1.12; }
.display {
  font-family: var(--font-display); font-weight: 600; color: var(--blue-900);
  font-size: clamp(2.6rem, 5.6vw, 4.4rem); letter-spacing: -0.01em;
}
.display em { font-style: italic; color: var(--blue); }
.h2 {
  font-family: var(--font-display); font-weight: 600; color: var(--blue-900);
  font-size: clamp(2rem, 3.6vw, 3rem);
}
.h2 em { font-style: italic; color: var(--blue); }
.lede { color: var(--slate); font-size: 1.05rem; max-width: 56ch; }

/* -------------------------------------------------------------------- hero */
.hero { padding: 84px 0 40px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-copy > * + * { margin-top: 26px; }
.hero-copy .lede { font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 99px; font-weight: 700; font-size: 0.95rem;
  border: 0; transition: transform 0.28s var(--ease), box-shadow 0.28s, background 0.28s, color 0.28s;
}
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 10px 26px -8px rgba(20, 69, 158, 0.6);
}
.btn-primary:hover { background: var(--blue-600); transform: translateY(-3px); box-shadow: 0 16px 34px -8px rgba(20, 69, 158, 0.65); }
.btn-ghost {
  background: transparent; color: var(--blue-800);
  box-shadow: inset 0 0 0 1.5px var(--blue-200);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue); transform: translateY(-3px); background: var(--blue-50); }
.btn .arr { transition: transform 0.28s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* hero visual — floating carton frames */
.hero-visual { position: relative; min-height: 480px; }
.hero-visual .halo {
  position: absolute; inset: 8% 2%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--blue-100), transparent);
  animation: haloBreathe 7s ease-in-out infinite;
}
@keyframes haloBreathe { 50% { transform: scale(1.06); opacity: 0.85; } }
.float-card {
  position: absolute; background: #fff; border-radius: 20px; padding: 14px;
  border: 1.5px solid var(--blue-100);
  box-shadow: 9px 9px 0 rgba(20, 69, 158, 0.09);
  animation: bob var(--t, 7s) ease-in-out infinite alternate;
}
.float-card img { border-radius: 12px; object-fit: contain; background: var(--blue-50); }
.float-card .fc-label {
  margin-top: 10px; font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); text-align: center;
}
.fc-1 { width: 250px; top: 4%; left: 6%; --t: 7.5s; rotate: -4deg; z-index: 3; }
.fc-1 img { height: 220px; width: 100%; }
.fc-2 { width: 215px; top: 34%; right: 2%; --t: 8.5s; rotate: 3.5deg; z-index: 2; }
.fc-2 img { height: 180px; width: 100%; }
.fc-3 { width: 195px; bottom: 0; left: 22%; --t: 6.5s; rotate: -2deg; z-index: 4; }
.fc-3 img { height: 150px; width: 100%; }
@keyframes bob {
  from { translate: 0 0; }
  to   { translate: 0 -18px; }
}
.hero-visual .mol {
  position: absolute; z-index: 1; opacity: 0.5;
  animation: spinSlow 40s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ECG lifeline */
.ecg { display: block; width: 100%; height: 74px; margin-top: 26px; }
.ecg path {
  fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 150 1400; stroke-dashoffset: 1550;
  animation: ecgTravel 5.5s linear infinite; opacity: 0.9;
}
.ecg path.ghost {
  stroke: var(--blue-200); stroke-dasharray: none; stroke-dashoffset: 0; animation: none; opacity: 0.7;
}
@keyframes ecgTravel { to { stroke-dashoffset: 0; } }

/* ------------------------------------------------------------------- ticker */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #fff; overflow: hidden; padding: 15px 0; margin-top: 30px;
}
.ticker-track {
  display: flex; gap: 48px; width: max-content;
  animation: tick 30s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue-800);
  display: inline-flex; align-items: center; gap: 48px; white-space: nowrap;
}
.ticker-track span::after { content: "✚"; color: var(--red); font-size: 0.8rem; }
@keyframes tick { to { transform: translateX(-50%); } }

/* -------------------------------------------------------------------- stats */
.stats { padding: 72px 0 10px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat {
  background: #fff; border: 1.5px solid var(--blue-100); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: 6px 6px 0 rgba(20, 69, 158, 0.07);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.stat:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 rgba(20, 69, 158, 0.1); }
.stat b {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 2.7rem; color: var(--blue-900); line-height: 1;
}
.stat b sup { font-size: 1.4rem; color: var(--red); }
.stat span {
  display: block; margin-top: 8px; font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--slate);
}

/* ------------------------------------------------------------ section heads */
.section-head { padding: 90px 0 44px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-head .lede { margin-top: 14px; }
.section-head .h2 { margin-top: 12px; }

/* --------------------------------------------------------------- categories */
.cat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding-bottom: 20px;
}
.cat-card {
  position: relative; display: grid; grid-template-columns: 1fr 190px; gap: 12px;
  background: #fff; border: 1.5px solid var(--blue-100); border-radius: 20px;
  padding: 30px; overflow: hidden;
  box-shadow: 7px 7px 0 rgba(20, 69, 158, 0.08);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}
.cat-card:hover {
  transform: translate(-4px, -4px); border-color: var(--blue-200);
  box-shadow: 12px 12px 0 rgba(20, 69, 158, 0.12);
}
.cat-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--red));
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.cat-card:hover::before { transform: scaleX(1); }
.cat-card .cc-code {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.3em;
  color: var(--red); font-weight: 600;
}
.cat-card h3 {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--blue-900);
  margin: 8px 0 8px;
}
.cat-card p { color: var(--slate); font-size: 0.92rem; max-width: 40ch; }
.cat-card .cc-count {
  margin-top: 16px; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-600);
  display: inline-flex; align-items: center; gap: 8px;
}
.cat-card .cc-count .arr { color: var(--red); transition: transform 0.3s var(--ease); }
.cat-card:hover .cc-count .arr { transform: translateX(5px); }
.cat-card .cc-img {
  align-self: center; border-radius: 14px; background: var(--blue-50);
  height: 165px; width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.cat-card .cc-img img {
  max-height: 88%; max-width: 88%; object-fit: contain;
  transition: transform 0.5s var(--ease);
}
.cat-card:hover .cc-img img { transform: scale(1.09) rotate(1.5deg); }

/* -------------------------------------------------------------- product grid */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px; padding-bottom: 90px;
}

/* --- medicine-carton card --- */
.p-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1.5px solid var(--blue-100); border-radius: 18px;
  overflow: hidden; cursor: pointer;
  box-shadow: 7px 7px 0 rgba(20, 69, 158, 0.08);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.p-card:hover {
  transform: translate(-4px, -4px);
  border-color: var(--blue-200);
  box-shadow: 12px 12px 0 rgba(20, 69, 158, 0.12);
}
.p-card.is-rx { box-shadow: 7px 7px 0 rgba(224, 36, 43, 0.08); }
.p-card.is-rx:hover { box-shadow: 12px 12px 0 rgba(224, 36, 43, 0.12); }

/* carton top band */
.p-card__band {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 18px;
  background: linear-gradient(90deg, var(--blue-800), var(--blue-600));
  color: #fff;
}
.p-card.is-rx .p-card__band { background: linear-gradient(90deg, var(--red-700), var(--red)); }
.p-card__band span {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.9;
}
.p-card__band b {
  font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 2px 10px; border-radius: 99px;
}

.p-card__media {
  position: relative; height: 235px; background: var(--blue-50);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-bottom: 1.5px solid var(--blue-100);
}
.p-card__media img {
  max-height: 86%; max-width: 82%; object-fit: contain;
  transition: transform 0.55s var(--ease);
  filter: drop-shadow(0 12px 18px rgba(12, 42, 102, 0.14));
}
.p-card:hover .p-card__media img { transform: scale(1.07) translateY(-3px); }
.badge-rx {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em;
  color: #fff; background: var(--red); padding: 4px 10px; border-radius: 99px;
  box-shadow: 0 4px 12px -3px rgba(224, 36, 43, 0.55);
}
.badge-brand {
  position: absolute; top: 12px; left: 16px; z-index: 2;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue-600); background: #fff; border: 1px solid var(--blue-100);
  padding: 4px 10px; border-radius: 99px;
}

.p-card__body { padding: 20px 22px 18px; flex: 1; }
.p-card__body h3 {
  font-family: var(--font-product); font-size: 1.62rem; font-weight: 800;
  color: var(--blue-900); letter-spacing: -0.025em; line-height: 1.08;
}
.p-card__body h3::after {
  content: ""; display: block; width: 30px; height: 3px; margin-top: 9px;
  border-radius: 3px; background: var(--red);
  transition: width 0.4s var(--ease);
}
.p-card:hover .p-card__body h3::after { width: 62px; }
.p-card__comp {
  margin-top: 10px; font-size: 0.9rem; font-weight: 500;
  color: var(--slate); line-height: 1.55;
}
.p-card__chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 0.73rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 5px 13px; border-radius: 99px;
  background: var(--blue-50); color: var(--blue-800); border: 1px solid var(--blue-100);
}
.chip.pack { background: #fff; color: var(--slate); border: 1px dashed var(--blue-200); }

/* printed price-label footer */
.p-card__price {
  margin-top: auto; padding: 14px 20px 16px;
  background: var(--blue-900);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.trade-mini { display: flex; gap: 16px; flex-wrap: wrap; }
.trade-mini span {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; color: #93A9D6;
}
.trade-mini b { display: block; font-size: 0.98rem; color: #fff; font-weight: 600; margin-top: 3px; }
.mrp-tag {
  text-align: center; white-space: nowrap;
  background: #fff; border-radius: 12px; padding: 7px 16px 8px;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.35);
}
.mrp-tag em {
  display: block; font-style: normal; font-family: var(--font-mono);
  font-size: 0.58rem; letter-spacing: 0.26em; color: var(--slate);
}
.mrp-tag strong {
  font-family: var(--font-product); font-size: 1.55rem; font-weight: 800;
  color: var(--red); letter-spacing: -0.02em; line-height: 1.15;
}
.p-on-request {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #C7D6F2; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 0;
}
.p-on-request::before { content: "◦"; color: #FF8A8E; }

/* variant toggle */
.variant-toggle { display: inline-flex; gap: 6px; margin-top: 4px; }
.variant-toggle button {
  font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600;
  padding: 4px 12px; border-radius: 99px; border: 1px solid var(--blue-200);
  background: #fff; color: var(--blue-800); transition: all 0.25s var(--ease);
}
.variant-toggle button.on { background: var(--blue); color: #fff; border-color: var(--blue); }
/* toggle inside the navy price footer */
.p-card__price .variant-toggle button {
  background: transparent; border-color: rgba(255, 255, 255, 0.4); color: #fff;
}
.p-card__price .variant-toggle button.on {
  background: #fff; border-color: #fff; color: var(--blue-900);
}
.price-flash { animation: priceFlash 0.45s var(--ease); }
@keyframes priceFlash {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 160;
  background: rgba(8, 28, 70, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  width: min(880px, 100%); max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  transform: translateY(26px) scale(0.97); transition: transform 0.4s var(--ease);
}
.modal-overlay.open .modal { transform: none; }
.modal__media {
  background: linear-gradient(165deg, var(--blue-50), #fff);
  display: flex; align-items: center; justify-content: center; padding: 34px;
  border-right: 1px solid var(--line); position: relative;
}
.modal__media img { max-height: 340px; object-fit: contain; filter: drop-shadow(0 18px 26px rgba(12, 42, 102, 0.18)); }
.modal__body { padding: 36px 38px; }
.modal__body .eyebrow { margin-bottom: 10px; }
.modal__body h3 {
  font-family: var(--font-product); font-size: 2.15rem; font-weight: 800;
  color: var(--blue-900); letter-spacing: -0.025em; line-height: 1.08;
}
.modal__comp { margin-top: 8px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--slate); }
.modal__blurb { margin-top: 14px; color: var(--slate); font-size: 0.95rem; }
.modal__details { margin: 16px 0 4px; list-style: none; }
.modal__details li {
  position: relative; padding: 5px 0 5px 24px; font-size: 0.88rem; color: var(--ink);
}
.modal__details li::before { content: "✚"; position: absolute; left: 0; top: 6px; font-size: 0.7rem; color: var(--red); }
.modal__price {
  margin-top: 18px; border: 1.5px dashed var(--blue-200); border-radius: 14px; padding: 16px 18px;
  background: var(--blue-50);
}
.modal__price .label {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--blue-600); margin-bottom: 10px; display: block;
}
.trade-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.trade-grid span { font-family: var(--font-mono); font-size: 0.64rem; color: var(--slate); }
.trade-grid b { display: block; font-size: 1.02rem; color: var(--blue-900); font-weight: 700; margin-top: 2px; }
.trade-grid .hot b { color: var(--red); font-family: var(--font-product); font-size: 1.3rem; }
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--blue-900); font-size: 1rem; line-height: 1;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}
.modal__close:hover { background: var(--red); color: #fff; transform: rotate(90deg); }

/* ------------------------------------------------------------ quality band */
.quality { margin-top: 60px; background: linear-gradient(180deg, #fff, var(--blue-50)); border-top: 1px solid var(--line); }
.quality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 30px 0 90px; }
.q-tile {
  background: #fff; border: 1.5px solid var(--blue-100); border-radius: var(--radius);
  padding: 30px; box-shadow: 6px 6px 0 rgba(20, 69, 158, 0.07);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.q-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.q-tile .q-ic {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--blue-50); border: 1px solid var(--blue-100); margin-bottom: 18px;
}
.q-tile h3 { font-size: 1.05rem; font-weight: 800; color: var(--blue-900); }
.q-tile p { margin-top: 8px; font-size: 0.9rem; color: var(--slate); }

/* --------------------------------------------------------------- CTA band */
.cta-band { background: var(--blue-900); color: #fff; overflow: hidden; position: relative; }
.cta-band::before {
  content: "℞"; position: absolute; right: -30px; top: -70px;
  font-family: var(--font-display); font-size: 20rem; color: rgba(255, 255, 255, 0.05);
  font-style: italic;
}
.cta-inner { padding: 82px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-inner .h2 { color: #fff; }
.cta-inner .h2 em { color: var(--blue-200); }
.cta-inner p { color: var(--blue-200); margin-top: 10px; max-width: 52ch; }
.btn-light { background: #fff; color: var(--blue-900); }
.btn-light:hover { background: var(--blue-50); transform: translateY(-3px); box-shadow: 0 14px 30px -10px rgba(0,0,0,0.4); }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--blue-950); color: var(--blue-200); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; padding: 66px 0 40px;
}
.footer-grid .f-logo {
  background: #fff; display: inline-block; padding: 10px 16px; border-radius: 12px; margin-bottom: 18px;
}
.footer-grid .f-logo img { height: 38px; }
.footer-grid p { font-size: 0.88rem; line-height: 1.7; }
.footer-grid h4 {
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: #fff; margin-bottom: 16px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { font-size: 0.9rem; transition: color 0.25s, padding-left 0.25s; }
.footer-grid a:hover { color: #fff; padding-left: 5px; }
.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 22px 0 30px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; color: #7E93BE;
}

/* ------------------------------------------------------- category page hero */
.page-hero { padding: 70px 0 8px; }
.breadcrumb {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--slate); display: flex; gap: 10px; flex-wrap: wrap;
}
.breadcrumb .sep { color: var(--red); }
.page-hero .display { margin-top: 18px; font-size: clamp(2.4rem, 5vw, 3.8rem); }
.page-hero .lede { margin-top: 16px; }
.page-hero-flex { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.page-hero .count-pill {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue-800); background: #fff; border: 1px solid var(--blue-100);
  padding: 10px 20px; border-radius: 99px; white-space: nowrap; box-shadow: var(--shadow-sm);
}

/* category switcher chips */
.cat-switch { display: flex; flex-wrap: wrap; gap: 10px; padding: 26px 0 40px; }
.cat-switch a {
  font-size: 0.8rem; font-weight: 700; padding: 9px 20px; border-radius: 99px;
  background: #fff; color: var(--slate); border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
}
.cat-switch a:hover { border-color: var(--blue); color: var(--blue-800); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cat-switch a.on { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 18px -6px rgba(20, 69, 158, 0.5); }

/* ------------------------------------------------------------- back to top */
#toTop {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--blue); color: #fff; font-size: 1.05rem;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all 0.35s var(--ease);
}
#toTop.show { opacity: 1; visibility: visible; transform: none; }
#toTop:hover { background: var(--red); transform: translateY(-4px); }

/* ---------------------------------------------------------------- reveals */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal-l.in { opacity: 1; transform: none; }
.reveal-r { opacity: 0; transform: translateX(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal-r.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 430px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 18px 24px 26px; box-shadow: var(--shadow-lg);
    transform: translateY(-130%); transition: transform 0.4s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 13px 16px; font-size: 1rem; }
  .nav-cta { margin: 10px 0 0; text-align: center; justify-content: center; display: inline-flex; }
  .nav-burger { display: flex; }
  .modal { grid-template-columns: 1fr; }
  .modal__media { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px; }
  .modal__media img { max-height: 230px; }
  .cat-card { grid-template-columns: 1fr; }
  .cat-card .cc-img { order: -1; height: 150px; }
  .page-hero-flex { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat { padding: 22px 18px; }
  .stat b { font-size: 2.1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding-top: 56px; }
  .fc-1 { width: 200px; } .fc-1 img { height: 170px; }
  .fc-2 { width: 170px; } .fc-2 img { height: 140px; }
  .fc-3 { width: 150px; } .fc-3 img { height: 115px; }
  .hero-visual { min-height: 380px; }
  .product-grid { grid-template-columns: 1fr; }
  .trade-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-l, .reveal-r { opacity: 1; transform: none; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2.5px solid var(--red); outline-offset: 3px; border-radius: 6px;
}
