:root {
  --primary: #0f766e;
  --primary-deep: #0b5750;
  --primary-light: #14b8a6;
  --accent: #06b6d4;
  --ink: #0b1620;
  --parchment: #f6efe1;
  --parchment-warm: #efe6d2;
  --rule: #0f766e;
  --site-header-offset-mobile: 3.5rem;
  --site-header-offset-desktop: 7rem;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: 'DM Serif Display', ui-serif, Georgia, serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  /* Per-category identity — used by product cards & filter chips.
     Both legacy keys (vet/poultry/livestock/companion/bees) and active
     production keys (human/equipment/chemicals) are wired in. */
  --cat-vet: #0f766e;
  --cat-vet-tint: rgba(15, 118, 110, 0.10);
  --cat-poultry: #b45309;
  --cat-poultry-tint: rgba(180, 83, 9, 0.10);
  --cat-livestock: #166534;
  --cat-livestock-tint: rgba(22, 101, 52, 0.10);
  --cat-companion: #be123c;
  --cat-companion-tint: rgba(190, 18, 60, 0.10);
  --cat-bees: #ca8a04;
  --cat-bees-tint: rgba(202, 138, 4, 0.12);
  --cat-human: #1e3a8a;
  --cat-human-tint: rgba(30, 58, 138, 0.10);
  --cat-equipment: #475569;
  --cat-equipment-tint: rgba(71, 85, 105, 0.10);
  --cat-chemicals: #7c2d12;
  --cat-chemicals-tint: rgba(124, 45, 18, 0.10);
  --cat-default: #334155;
  --cat-default-tint: rgba(51, 65, 85, 0.08);
}

html, body {
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 100%;
  overflow-x: clip;
}

body {
  position: relative;
}

body.site-public {
  padding-top: var(--site-header-offset-mobile);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
}

/* Footer social icons */
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: #475569;
  background: #ffffff;
  font-size: 0.9rem;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}
.footer-social:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.dark .footer-social {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}
.dark .footer-social:hover {
  border-color: var(--primary-light);
  color: #5eead4;
}

/* Theme-reactive top ribbon */
.top-ribbon {
  background: #0b1620;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  transition: background-color 0.4s ease, color 0.3s ease, border-color 0.3s ease;
}
.top-ribbon-accent {
  color: var(--primary-light);
  transition: color 0.3s ease;
}
.dark .top-ribbon {
  background: linear-gradient(90deg, #0b5750 0%, #0f766e 55%, #0a4f49 100%);
  color: #ffffff;
  border-bottom-color: rgba(94, 234, 212, 0.18);
}
.dark .top-ribbon-accent {
  color: #5eead4;
}
.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.header-brand-mark-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  flex-shrink: 0;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.group:hover .header-brand-mark-shell {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.13);
  border-color: rgba(6, 182, 212, 0.28);
}

.header-brand-mark {
  width: 2rem;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(6, 182, 212, 0.18));
}

.header-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
}

.header-brand-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.header-brand-subtitle {
  font-size: 0.68rem;
  color: #64748b;
  white-space: nowrap;
  margin-top: 0.16rem;
}

.mobile-nav-brand {
  width: 100%;
  padding-bottom: 0.95rem;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.mobile-nav-brand .header-brand-mark-shell {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(103, 232, 249, 0.2);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.28);
}

.mobile-nav-brand .header-brand-title {
  color: #f8fafc;
  font-size: 1.05rem;
}

.mobile-nav-brand .header-brand-subtitle {
  color: rgba(226, 232, 240, 0.72);
  white-space: normal;
  max-width: 14rem;
}

.dark .header-brand-mark-shell {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(71, 85, 105, 0.58);
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.35);
}

.dark .header-brand-title {
  color: #f8fafc;
}

.dark .header-brand-subtitle {
  color: #94a3b8;
}

/* ─── Distinctive Typography ─── */
.site-public h1,
.site-public h2,
.site-public h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-weight: 400;
}
.site-public h1 {
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.site-public h2 {
  line-height: 1.15;
}

/* Mono accents for kickers/labels */
.site-public .text-primary.uppercase,
.site-public [class*="tracking-"] {
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ─── Navigation ─── */
.nav-link {
  color: #475569;
  transition: color 0.2s ease;
  position: relative;
}
.nav-link:hover {
  color: var(--primary);
}
.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2.5px;
  border-radius: 9999px;
  background: var(--primary);
  animation: navUnderline 0.3s ease-out;
}
@keyframes navUnderline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.dark .nav-link.active::after {
  opacity: 0.8;
}
.nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.35);
  border-radius: 0.75rem;
}
.nav-link-mobile.active {
  color: #6ee7b7;
  font-weight: 700;
}
.dark .nav-link {
  color: #cbd5e1;
}
.dark .nav-link:hover {
  color: var(--primary-light);
}

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.35);
}

/* ─── Honeypot anti-spam (visually hidden to real users) ─── */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none;
}

/* ─── Forms ─── */
.form-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
  padding: 0.5rem 0.75rem;
  font-size: 12px;
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}
.dark .form-input {
  border-color: #334155;
  background-color: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2), 0 4px 12px rgba(13, 148, 136, 0.1);
  transform: translateY(-1px);
}

/* ─── Cards with depth ─── */
.card-soft {
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html:not(.dark) .card-soft {
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08), 0 2px 10px rgba(15, 23, 42, 0.05);
  border-color: rgba(148, 163, 184, 0.3);
}
html:not(.dark) .card-soft:hover {
  box-shadow: 0 28px 55px rgba(15, 23, 42, 0.12), 0 6px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

/* ─── Paper-grain section background (replaces the multi-stop gradient mesh) ─── */
.section-gradient {
  position: relative;
  background-color: var(--parchment);
}
.dark .section-gradient {
  background-color: #0a1722;
}

/* Subtle paper grain — kept lighter, no SVG noise (removed for visual restraint) */
.section-gradient::before {
  content: none;
}

/* ─── Hero ─── */
.hero-bg {
  background-size: cover;
  background-position: center 64%;
  background-repeat: no-repeat;
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), background-image 0.4s ease-out;
}

/* Hero video + static layer stack
   - .hero-static (image): always rendered (loads instantly, fallback)
   - .hero-video: covers static once it can play; fades in
   - .hero-bg: CMS slide override, on top when admin sets one
   - .hero-tint: text legibility tint on top of all media */
.hero-static {
  z-index: 0;
  object-position: center 60%;
}
.hero-video {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s ease;
  object-position: center 55%;
  /* Crop to push the source-tool watermark off-screen at the bottom-right */
  transform: scale(1.12);
  transform-origin: 35% 40%;
}
.hero-video[data-ready="1"] {
  opacity: 1;
}
/* Corner mask — subtle dark vignette to hide any residual watermark + add depth */
.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 280px 160px at calc(100% + 40px) calc(100% + 40px), rgba(11, 22, 32, 0.85), transparent 70%);
}
.hero-bg {
  z-index: 2;
  pointer-events: none;
}
.hero-tint {
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.18) 30%,
    rgba(255, 255, 255, 0.04) 60%,
    transparent 100%
  );
}
.dark .hero-tint {
  background: linear-gradient(
    100deg,
    rgba(15, 23, 42, 0.55) 0%,
    rgba(15, 23, 42, 0.30) 35%,
    rgba(15, 23, 42, 0.10) 65%,
    transparent 100%
  );
}
.hero-copy { z-index: 4; }
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
/* Mobile: many devices block autoplay or do it badly — show the static image */
@media (max-width: 639px) {
  .hero-video { display: none; }
}

/* ─── Feature photo (used in About + Innovation sections) ───────── */
.feature-photo {
  position: relative;
  margin: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.10), 0 0 0 1px rgba(15, 23, 42, 0.04);
  isolation: isolate;
}
.feature-photo-img {
  display: block;
  width: 100%;
  height: clamp(220px, 38vw, 380px);
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.feature-photo:hover .feature-photo-img {
  transform: scale(1.025);
}
.feature-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(11, 22, 32, 0.18) 60%,
    rgba(11, 22, 32, 0.78) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.feature-photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  z-index: 2;
  color: #ffffff;
}
@media (min-width: 768px) {
  .feature-photo-caption {
    padding: 1.6rem 2rem 1.7rem;
  }
}
.feature-photo-kicker {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.feature-photo-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-section {
  isolation: isolate;
  overflow: clip;
}

.hero-shell {
  min-height: clamp(22rem, 56vh, 30rem);
}

.hero-copy {
  min-height: inherit;
  align-content: center;
}

.glass-panel {
  backdrop-filter: blur(20px) saturate(1.3);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255,255,255,0.4);
}
.dark .glass-panel {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(51,65,85,0.5);
}

.badge-soft {
  background: rgba(15, 118, 110, 0.10);
  border: 1px solid rgba(15, 118, 110, 0.18);
}
.dark .badge-soft {
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.22);
}

.stats-shadow {
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
}
html:not(.dark) .stats-shadow {
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.06);
  border-color: rgba(148, 163, 184, 0.35);
}

.nav-backdrop {
  backdrop-filter: blur(24px) saturate(1.2);
}

/* ─── Animated gradient border for CTAs ─── */
.site-public :is(a, button).bg-primary {
  position: relative;
  overflow: hidden;
}
.site-public :is(a, button).bg-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.site-public :is(a, button).bg-primary:hover::before {
  opacity: 1;
}

/* ─── Floating accent shapes (decorative — subtler) ─── */
.float-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.07;
  pointer-events: none;
  animation: floatDrift 22s ease-in-out infinite alternate;
}

.hero-accent-shape {
  opacity: 0.05;
}
@keyframes floatDrift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -15px) scale(1.05); }
  100% { transform: translate(-10px, 10px) scale(0.97); }
}

/* ─── Staggered scroll reveal animations ─── */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
/* Staggered children */
html.js [data-reveal].is-visible [data-stagger] {
  animation: staggerIn 600ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
}
html.js [data-reveal].is-visible [data-stagger="1"] { animation-delay: 100ms; }
html.js [data-reveal].is-visible [data-stagger="2"] { animation-delay: 200ms; }
html.js [data-reveal].is-visible [data-stagger="3"] { animation-delay: 300ms; }
html.js [data-reveal].is-visible [data-stagger="4"] { animation-delay: 400ms; }
html.js [data-reveal].is-visible [data-stagger="5"] { animation-delay: 500ms; }
html.js [data-reveal].is-visible [data-stagger="6"] { animation-delay: 600ms; }
@keyframes staggerIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Slide from left variant */
html.js [data-reveal="left"] {
  transform: translateX(-30px);
}
html.js [data-reveal="left"].is-visible {
  transform: none;
}
/* Slide from right variant */
html.js [data-reveal="right"] {
  transform: translateX(30px);
}
html.js [data-reveal="right"].is-visible {
  transform: none;
}
/* Scale up variant */
html.js [data-reveal="scale"] {
  transform: scale(0.92);
}
html.js [data-reveal="scale"].is-visible {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal],
  html.js [data-reveal].is-visible [data-stagger] {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}

/* ─── Parallax-lite text shadow on headings ─── */
.site-public h1 {
  text-shadow: 0 2px 20px rgba(15, 23, 42, 0.06);
}
.dark .site-public h1 {
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

/* ─── Hover lift for service/trust cards ─── */
.site-public .group:hover {
  transform: translateY(-4px);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

/* ─── Editorial headline (was 'gradient-text' — kept class for compat) ─── */
/* Refined: solid deep teal + thin accent rule under the heading.
   Only the hero title keeps a subtle two-tone gradient via .gradient-text--hero. */
.gradient-text {
  color: var(--primary-deep);
  background: none;
  -webkit-text-fill-color: currentColor;
  display: inline;
  position: relative;
  padding-bottom: 0.55rem;
  background-clip: border-box;
}
.gradient-text::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin-top: 0.5rem;
  border-radius: 9999px;
  background: var(--primary);
}
.dark .gradient-text {
  color: #5eead4;
}
.dark .gradient-text::after {
  background: var(--primary-light);
  opacity: 0.85;
}
/* Hero variant retains a single soft accent — only one place gets a gradient */
.gradient-text--hero {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--primary-deep);
  padding-bottom: 0;
}
.gradient-text--hero::after { display: none; }
.dark .gradient-text--hero {
  color: #5eead4;
}

/* ─── Animated underline for links ─── */
.animated-underline {
  position: relative;
  text-decoration: none;
}
.animated-underline::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 9999px;
  transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.animated-underline:hover::after {
  width: 100%;
}

/* ─── Glow effect for primary buttons ─── */
.glow-primary {
  box-shadow: 0 0 0 rgba(13, 148, 136, 0);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.glow-primary:hover {
  box-shadow: 0 0 30px rgba(13, 148, 136, 0.3), 0 0 60px rgba(13, 148, 136, 0.1);
  transform: translateY(-1px);
}

/* ─── Marquee/ticker for trust badges ─── */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 30s linear infinite;
}

/* ─── Counter animation ─── */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.count-up {
  animation: countUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* ─── Admin ergonomics ─────────────────────────────────────────── */
/* Per-panel intro banner — explains what this tab does in plain language */
.admin-callout {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.05);
  color: #0f172a;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  line-height: 1.5;
}
.admin-callout-icon {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 9999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}
.admin-callout strong {
  display: block;
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 0.1rem;
  color: var(--ink);
}
.dark .admin-callout {
  border-color: rgba(94, 234, 212, 0.18);
  background: rgba(20, 184, 166, 0.08);
  color: #e2e8f0;
}
.dark .admin-callout-icon {
  background: rgba(20, 184, 166, 0.18);
  color: #5eead4;
}
.dark .admin-callout strong { color: #f8fafc; }

/* Inline form hint — a small caption under labels */
.admin-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  margin-top: 0.2rem;
  font-size: 0.66rem;
  line-height: 1.45;
  color: #64748b;
}
.admin-hint i { font-size: 0.55rem; opacity: 0.8; }
.dark .admin-hint { color: #94a3b8; }

/* Language tag pill — placed inline with field labels */
.lang-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 0.4rem;
  padding: 0.06rem 0.42rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(15, 118, 110, 0.12);
  color: var(--primary);
  border: 1px solid rgba(15, 118, 110, 0.18);
}
.lang-tag--sq {
  background: rgba(180, 83, 9, 0.10);
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.18);
}
.dark .lang-tag {
  background: rgba(20, 184, 166, 0.16);
  color: #5eead4;
  border-color: rgba(20, 184, 166, 0.28);
}
.dark .lang-tag--sq {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.28);
}

/* Field label with optional info tooltip */
.field-label {
  display: flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.3rem;
}
.dark .field-label { color: #cbd5e1; }
.field-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.4rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
  font-size: 0.55rem;
  cursor: help;
  transition: background-color 0.15s, color 0.15s;
}
.field-info:hover {
  background: rgba(15, 118, 110, 0.15);
  color: var(--primary);
}
.dark .field-info { background: rgba(255,255,255,0.06); color: #94a3b8; }

/* Refined admin primary button (replaces flashy gradient) */
.admin-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.05rem;
  border-radius: 0.75rem;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid var(--primary-deep);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.admin-btn-primary:hover {
  background: var(--primary-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.22);
}
.admin-btn-primary i { margin-right: 0.4rem; font-size: 0.65rem; }

/* Empty state for admin lists */
.admin-empty {
  padding: 1.5rem 1rem;
  border: 1px dashed rgba(15, 23, 42, 0.15);
  border-radius: 0.9rem;
  text-align: center;
  background: rgba(15, 118, 110, 0.03);
  color: #64748b;
  font-size: 0.72rem;
}
.dark .admin-empty {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.4);
  color: #94a3b8;
}
.admin-empty-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.dark .admin-empty-title { color: #f8fafc; }

/* ─── Admin styles ─── */
.admin-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.625rem 1.125rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.admin-tab i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: rgba(15, 118, 110, 0.08);
  font-size: 14px;
  flex-shrink: 0;
}
.admin-tab.active i {
  background: rgba(255, 255, 255, 0.2);
}
@media (min-width: 768px) {
  .admin-tab {
    justify-content: flex-start;
  }
}
.admin-tab:hover {
  background-color: #f1f5f9;
}
.dark .admin-tab {
  border-color: #334155;
  color: #e2e8f0;
}
.dark .admin-tab i {
  background: rgba(15, 118, 110, 0.15);
}
.dark .admin-tab:hover {
  background-color: #1e293b;
}
.admin-tab.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.admin-panel {
  font-size: 11px;
}

/* ─── Admin: species icon picker (full + readable on web) ────────── */
/* auto-fill packs as many columns as fit; min width fits the longest
   label ("RUMINANTS") at the chosen font-size with no ellipsis. */
.icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.45rem;
  padding: 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.9rem;
  background: #ffffff;
  max-height: 14rem;
  overflow-y: auto;
}
.dark .icon-picker {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(148, 163, 184, 0.18);
}
@media (min-width: 640px) {
  .icon-picker {
    max-height: 18rem;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  }
}
@media (min-width: 768px) {
  .icon-picker {
    /* Web: show all icons without scrolling */
    max-height: none;
    overflow-y: visible;
    gap: 0.55rem;
    padding: 0.85rem;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  }
}
@media (min-width: 1024px) {
  .icon-picker {
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    gap: 0.65rem;
    padding: 1rem;
  }
}

.icon-picker-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  padding: 0.75rem 0.45rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.7rem;
  color: #334155;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
  min-height: 4.5rem;
}
.icon-picker-tile:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}
.icon-picker-tile.is-selected {
  border-color: var(--primary);
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary), 0 4px 12px rgba(15, 118, 110, 0.12);
}
.dark .icon-picker-tile {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}
.dark .icon-picker-tile:hover {
  border-color: var(--primary-light);
  color: #5eead4;
}
.dark .icon-picker-tile.is-selected {
  background: rgba(20, 184, 166, 0.12);
  color: #5eead4;
  border-color: var(--primary-light);
  box-shadow: inset 0 0 0 1px var(--primary-light);
}

.icon-picker-glyph {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-picker-glyph svg {
  width: 100%;
  height: 100%;
}
@media (min-width: 768px) {
  .icon-picker-glyph {
    width: 2.4rem;
    height: 2.4rem;
  }
}
@media (min-width: 1024px) {
  .icon-picker-glyph {
    width: 2.6rem;
    height: 2.6rem;
  }
}

.icon-picker-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.15;
  word-break: normal;
  overflow-wrap: normal;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.icon-picker-tile:hover .icon-picker-label,
.icon-picker-tile.is-selected .icon-picker-label {
  color: inherit;
}
@media (min-width: 768px) {
  .icon-picker-label { font-size: 0.6rem; }
}
@media (min-width: 1024px) {
  .icon-picker-label { font-size: 0.65rem; }
}

/* ─── Admin responsive ergonomics ──────────────────────────────────── */
/* Compact top bar on small screens */
.admin-top-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
@media (max-width: 639px) {
  .admin-top-title { display: none; }
  .admin-top-meta { gap: 0.3rem; }
  .admin-top-meta .admin-top-logout-text { display: none; }
}

/* Sidebar tab list — horizontal scroll snap on mobile */
@media (max-width: 767px) {
  #admin-tabs {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.4rem;
    margin: -0.25rem -0.25rem 0;
    padding: 0.25rem;
  }
  #admin-tabs .admin-tab {
    scroll-snap-align: start;
    min-height: 2.5rem;
    padding: 0.45rem 0.7rem;
    font-size: 11px;
  }
  #admin-tabs .admin-tab i {
    width: 1.4rem;
    height: 1.4rem;
    font-size: 12px;
  }
}

/* Sidebar info notes — hidden on small to save space */
@media (max-width: 767px) {
  .admin-sidebar-notes { display: none; }
}

/* Stack any 2-col form grids on phones */
@media (max-width: 519px) {
  .admin-panel .grid.grid-cols-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Live preview iframe — shorter on mobile */
@media (max-width: 767px) {
  .admin-preview-frame {
    height: 360px !important;
  }
}

/* Form pad in tighter on mobile */
@media (max-width: 519px) {
  .admin-panel .border-2.border-dashed { padding: 0.85rem; }
  .admin-callout { padding: 0.65rem 0.75rem; gap: 0.5rem; font-size: 0.7rem; }
  .admin-callout-icon { width: 1.4rem; height: 1.4rem; font-size: 0.65rem; }
}

/* Carousel buttons */
.carousel-btn {
  height: 1.75rem;
  width: 1.75rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.carousel-btn:hover {
  background-color: #f1f5f9;
}
.dark .carousel-btn {
  border-color: #334155;
  color: #cbd5e1;
}
.dark .carousel-btn:hover {
  background-color: #1e293b;
}

/* Drag-drop highlight */
.drop-target.drag-over {
  border-color: #22c55e !important;
  background-color: rgba(34,197,94,0.06) !important;
}

/* ─── Scrollbars (flat, no gradient) ─── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(15, 118, 110, 0.45);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
.dark ::-webkit-scrollbar-thumb {
  background: rgba(94, 234, 212, 0.30);
}
.dark ::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* ─── Product category filters — editorial / catalog tab feel ─── */
.category-filter-btn {
  --cat-color: var(--cat-default);
  --cat-tint: var(--cat-default-tint);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  min-height: 2.4rem;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 9999px;
  background: #ffffff;
  color: #334155;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  position: relative;
}
.category-filter-btn:hover {
  border-color: var(--cat-color);
  color: var(--ink);
}
.category-filter-btn.active {
  background: var(--cat-tint);
  border-color: var(--cat-color);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--cat-color), 0 4px 12px rgba(15, 23, 42, 0.06);
}
.dark .category-filter-btn {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
  box-shadow: none;
}
.dark .category-filter-btn:hover {
  border-color: var(--cat-color);
  color: #f8fafc;
}
.dark .category-filter-btn.active {
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
  box-shadow: inset 0 0 0 1px var(--cat-color), 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.category-filter-badge {
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--cat-tint);
  color: var(--cat-color);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}
.category-filter-badge svg,
.category-filter-badge i {
  width: 0.95rem;
  height: 0.95rem;
  font-size: 0.78rem;
}
.dark .category-filter-badge {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.category-filter-btn.active .category-filter-badge {
  background: var(--cat-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}
.category-filter-text {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.category-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cat-color);
  margin-left: 0.1rem;
  padding: 0.06rem 0.4rem;
  border-radius: 9999px;
  background: var(--cat-tint);
  opacity: 0.85;
}
.category-filter-btn.active .category-filter-count {
  background: rgba(255, 255, 255, 0.7);
  color: var(--cat-color);
  opacity: 1;
}
.dark .category-filter-count {
  background: rgba(255, 255, 255, 0.05);
}
.dark .category-filter-btn.active .category-filter-count {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* ─── Species Finder — refined, clinical tile feel ─── */
.finder-species-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem 0.7rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  position: relative;
}
.dark .finder-species-btn {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: none;
}
.finder-species-btn:hover {
  border-color: rgba(15, 118, 110, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}
.finder-species-btn.active {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.10), 0 8px 20px rgba(15, 23, 42, 0.06);
}
.finder-species-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.15rem;
  height: 2px;
  background: var(--primary);
  border-radius: 9999px;
}
.dark .finder-species-btn.active {
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.16);
}
.dark .finder-species-btn.active::after {
  background: var(--primary-light);
}
.finder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 9999px;
  background: rgba(15, 118, 110, 0.07);
  color: var(--primary);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.dark .finder-icon {
  background: rgba(20, 184, 166, 0.10);
  color: #5eead4;
}
.finder-species-btn.active .finder-icon {
  background: var(--primary);
  color: #ffffff;
}
.finder-species-btn:hover .finder-icon {
  transform: scale(1.05);
}
.finder-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.dark .finder-label {
  color: #94a3b8;
}
.finder-species-btn.active .finder-label {
  color: var(--ink);
}
.dark .finder-species-btn.active .finder-label {
  color: #f8fafc;
}

/* Clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── FAQ accordion ─── */
html.js .faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}
html.js .faq-panel > div {
  overflow: hidden;
}
html.js .faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}
.faq-icon {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
  border-color: rgba(13, 148, 136, 0.35);
  background-color: rgba(13, 148, 136, 0.08);
}

/* ─── Modal ─── */
body.modal-open {
  overflow: hidden;
}
#product-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px) saturate(1.2);
}
.modal-panel {
  position: relative;
  width: min(900px, calc(100vw - 2rem));
  margin: 6vh auto 0;
  border-radius: 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(255,255,255,0.2);
  padding: 1rem;
  animation: modalIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.dark .modal-panel {
  border-color: #334155;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 40px 85px rgba(0, 0, 0, 0.55);
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.85);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.modal-close:hover {
  border-color: rgba(13, 148, 136, 0.45);
  color: var(--primary);
  transform: rotate(90deg);
}
.dark .modal-close {
  background: rgba(15, 23, 42, 0.75);
  border-color: #334155;
  color: #e2e8f0;
}
.modal-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .modal-body {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1.25rem;
    align-items: start;
  }
}
.modal-media {
  border-radius: 1.25rem;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid rgba(148, 163, 184, 0.25);
  min-height: 210px;
}
.dark .modal-media {
  background: rgba(30, 41, 59, 0.7);
  border-color: #334155;
}
.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.modal-media:hover img {
  transform: scale(1.03);
}

/* ─── Horizontal rule accent (single solid color, no gradient) ─── */
.hr-accent {
  height: 3px;
  width: 60px;
  border: none;
  border-radius: 9999px;
  background: var(--primary);
}

/* ─── Product Card v2 — editorial veterinary catalog ───────────────────── */
.product-card {
  --cat-color: var(--cat-default);
  --cat-tint: var(--cat-default-tint);
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.1rem;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 8px 22px rgba(15, 23, 42, 0.04);
}
.product-card:hover,
.product-card:focus-visible {
  outline: none;
  transform: translateY(-3px);
  border-color: var(--cat-color);
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.04),
    0 22px 38px rgba(15, 23, 42, 0.10);
}
.dark .product-card {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.45);
}
.dark .product-card:hover,
.dark .product-card:focus-visible {
  border-color: var(--cat-color);
  box-shadow: 0 22px 42px rgba(2, 6, 23, 0.6);
}

/* Top ribbon — category color stripe (the unique catalog touch) */
.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cat-color);
  z-index: 2;
}

.product-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cat-tint);
  overflow: hidden;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}
.dark .product-card-media {
  background: rgba(15, 23, 42, 0.82);
  border-bottom-color: rgba(148, 163, 184, 0.10);
}
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.product-card:hover .product-card-media img {
  transform: scale(1.04);
}
/* Faint repeating dot pattern as fallback texture */
.product-card-media--empty {
  background: var(--cat-tint);
}
.dark .product-card-media--empty {
  background: rgba(15, 23, 42, 0.82);
}
.product-card-empty-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cat-color);
  opacity: 0.55;
  font-size: 2.4rem;
}
.product-card-empty-icon svg {
  width: 48%;
  max-width: 110px;
  height: auto;
}

/* Category pill on top-left of media */
.product-card-cat {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem 0.22rem 0.32rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--cat-color);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  z-index: 1;
}
.dark .product-card-cat {
  background: rgba(15, 23, 42, 0.92);
  color: var(--cat-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.product-card-cat-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 9999px;
  background: var(--cat-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.5rem;
}
.product-card-cat-dot svg,
.product-card-cat-dot i {
  width: 0.55rem;
  height: 0.55rem;
  font-size: 0.42rem;
}

/* Folio number — bottom-right of media, mono catalog stamp */
.product-card-folio {
  position: absolute;
  bottom: 0.55rem;
  right: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  z-index: 1;
}
.dark .product-card-folio {
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.85);
}

.product-card-body {
  padding: 0.85rem 0.95rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 1.03rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.42em;
}
.dark .product-card-title {
  color: #f8fafc;
}
.product-card-desc {
  font-size: 0.72rem;
  line-height: 1.45;
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.dark .product-card-desc {
  color: #94a3b8;
}

.product-card-rule {
  height: 1px;
  background: rgba(15, 23, 42, 0.08);
  margin: 0.3rem 0 0.1rem;
}
.dark .product-card-rule {
  background: rgba(148, 163, 184, 0.18);
}

.product-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
}
.product-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cat-color);
  transition: gap 0.25s ease;
}
.product-card-cta i {
  font-size: 0.6rem;
  transition: transform 0.25s ease;
}
.product-card:hover .product-card-cta {
  gap: 0.5rem;
}
.product-card:hover .product-card-cta i {
  transform: translateX(2px);
}
.product-card-meta {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: #94a3b8;
  letter-spacing: 0.08em;
}
.dark .product-card-meta {
  color: #64748b;
}

/* Species chips on card — only shown when species are tagged */
.product-card-species {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 1;
}
.product-card-species-chip {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.10);
}
.dark .product-card-species-chip {
  background: rgba(15, 23, 42, 0.9);
  color: #f1f5f9;
}
.product-card-species-chip svg {
  width: 0.78rem;
  height: 0.78rem;
}

/* Empty state for products grid */
.products-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 3rem 1rem;
  text-align: center;
  border: 1px dashed rgba(15, 23, 42, 0.15);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.6);
  color: #64748b;
}
.dark .products-empty {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.5);
  color: #94a3b8;
}
.products-empty-icon {
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary);
}
.products-empty-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}
.dark .products-empty-title {
  color: #f8fafc;
}
.products-empty-sub {
  font-size: 0.78rem;
}

/* Catalog header rule — ornamental flourish above products section */
.catalog-marque {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--primary);
}
.catalog-marque-rule {
  flex: 1;
  max-width: 6rem;
  height: 1px;
  background: rgba(15, 118, 110, 0.35);
  position: relative;
}
.catalog-marque-rule::before,
.catalog-marque-rule::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 9999px;
  transform: translateY(-50%);
}
.catalog-marque-rule--left::after { right: 0; }
.catalog-marque-rule--right::before { left: 0; }
.dark .catalog-marque {
  color: #5eead4;
}
.dark .catalog-marque-rule {
  background: rgba(94, 234, 212, 0.30);
}
.dark .catalog-marque-rule::before,
.dark .catalog-marque-rule::after {
  background: #5eead4;
}

/* ─── Smooth page transitions ─── */
main > section {
  position: relative;
  overflow-x: clip;
  scroll-margin-top: calc(var(--site-header-offset-mobile) + 1rem);
}

.products-filter-sticky {
  top: var(--site-header-offset-mobile);
}

@media (max-width: 767px) {
  .hero-bg {
    background-position: center 58%;
  }
}

@media (min-width: 768px) {
  body.site-public {
    padding-top: var(--site-header-offset-desktop);
  }

  .header-brand {
    gap: 0.95rem;
  }

  .header-brand-mark-shell {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.15rem;
  }

  .header-brand-mark {
    width: 2.4rem;
  }

  .header-brand-title {
    font-size: 1.08rem;
  }

  .header-brand-subtitle {
    font-size: 0.72rem;
  }

  main > section {
    scroll-margin-top: calc(var(--site-header-offset-desktop) + 1rem);
  }

  .products-filter-sticky {
    top: var(--site-header-offset-desktop);
  }

  .hero-bg {
    background-position: center 72%;
  }
}
