:root {
  --radius: 4px;
  --background: oklch(0.16 0.008 155);
  --foreground: oklch(0.94 0.009 110);
  --card: oklch(0.20 0.009 155);
  --popover: oklch(0.21 0.009 155);
  --primary: oklch(0.87 0.17 125);
  --primary-foreground: oklch(0.18 0.025 145);
  --secondary: oklch(0.25 0.012 155);
  --muted-foreground: oklch(0.67 0.013 140);
  --accent: oklch(0.28 0.022 150);
  --border: oklch(0.31 0.01 155);
  --hero-shade: oklch(0.12 0.008 150 / 40%);
  --overlay: oklch(0.08 0.005 150 / 80%);
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); line-height: 1.5; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
h1, h2, h3 { font-weight: 500; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

/* utilities */
.shell { max-width: 1440px; margin-inline: auto; padding-inline: 48px; }
.micro { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }
.text-primary { color: var(--primary); } .text-muted { color: var(--muted-foreground); } .text-fg { color: var(--foreground); }
.tiny { font-size: 11px; } .text-xs { font-size: 12px; line-height: 1.6; } .text-sm { font-size: 14px; } .text-xl { font-size: 20px; } .text-2xl { font-size: 24px; } .text-3xl { font-size: 30px; line-height: 1.2; } .text-4xl { font-size: 36px; line-height: 1.15; }
.italic { font-style: italic; } .fw-500 { font-weight: 500; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 20px; } .mt-6 { margin-top: 24px; } .mt-7 { margin-top: 28px; } .mt-8 { margin-top: 32px; } .mt-14 { margin-top: 56px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-5 { margin-bottom: 20px; } .mb-8 { margin-bottom: 32px; } .ml-1 { margin-left: 4px; } .ml-2 { margin-left: 8px; } .px-1 { padding-inline: 4px; }
.py-10 { padding-block: 40px; } .py-12 { padding-block: 48px; } .py-16 { padding-block: 64px; } .pt-11 { padding-top: 44px; } .pt-12 { padding-top: 48px; }
.block { display: block; } .inline-block { display: inline-block; } .w-full { width: 100%; } .flex-1 { flex: 1; }
.inline-ico { display: flex; align-items: center; gap: 8px; }
.ico { width: 16px; height: 16px; flex-shrink: 0; } .ico-xs { width: 12px; height: 12px; } .ico-sm { width: 16px; height: 16px; } .ico-md { width: 22px; height: 22px; } .ico-lg { width: 32px; height: 32px; } .ico-xl { width: 40px; height: 40px; }
.ulink { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: var(--radius); font-size: 14px; font-weight: 500; white-space: nowrap; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.btn .ico { width: 16px; height: 16px; }
.btn-icon { width: 36px; padding: 0; }
.btn-lg { height: 48px; padding: 0 24px; } .btn-xl { height: 56px; padding: 0 24px; font-weight: 400; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); } .btn-primary:hover { filter: brightness(.92); }
.btn-outline { border-color: var(--border); background: var(--background); } .btn-outline:hover { background: var(--accent); }
.btn-secondary { background: var(--secondary); } .btn-secondary:hover { background: var(--accent); }
.btn-ghost:hover { background: var(--accent); }
.btn.disabled { opacity: .5; pointer-events: none; }
.glass { background: color-mix(in oklch, var(--background) 30%, transparent); }
.link-btn { display: inline-block; color: var(--primary); } .link-btn:hover { text-decoration: underline; }

input, select { font: inherit; color: var(--foreground); background: var(--secondary); border: 1px solid var(--border); border-radius: 3px; padding: 10px 12px; outline-color: var(--primary); }
select option { background: var(--secondary); }

/* header */
.topline { border-bottom: 1px solid var(--border); padding: 10px 16px; text-align: center; }
.star { margin-inline: 12px; }
.site-header { border-bottom: 1px solid var(--border); position: relative; z-index: 40; background: var(--background); }
.header-row { display: flex; height: 96px; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-ico { width: 36px; height: 36px; }
.logo-word { font-size: 30px; font-weight: 600; line-height: 1.1; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--muted-foreground); font-size: 13px; transition: color .2s; }
.nav-link:hover { color: var(--foreground); }
.menu { position: relative; } .menu-wide { position: static; }
.menu-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; }
.nav-dropdown { display: none; position: absolute; z-index: 30; top: 100%; left: 0; min-width: 230px; background: var(--popover); border: 1px solid var(--border); padding: 8px; box-shadow: 0 12px 30px var(--overlay); }
.menu.open .nav-dropdown { display: block; }
.menu.open .az-grid { display: grid; grid-template-columns: repeat(5, 1fr); min-width: 288px; }
.menu.open .botanical-dropdown { display: grid; }
.botanical-dropdown { left: 50%; transform: translateX(-50%); width: min(780px, calc(100vw - 32px)); min-width: 0; grid-auto-flow: column; grid-template-rows: repeat(18, 30px); grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 12px; }
.dd-item { display: flex; align-items: center; height: 36px; padding: 0 12px; border-radius: var(--radius); font-size: 14px; }
.dd-item:hover { background: var(--accent); }
.botanical-dropdown .dd-item { height: 30px; font-size: 12px; }
.span-all { grid-column: 1 / -1; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn-ghost:not(.btn-icon) { padding: 0 8px; gap: 6px; }
.header-actions .ico { width: 20px; height: 20px; }
.divider { height: 20px; border-left: 1px solid var(--border); margin-inline: 8px; }
.mobile-only { display: none; }
.search-form { display: flex; gap: 12px; padding-bottom: 20px; }
.search-form input[name=q] { width: 100%; }
.search-form .btn { height: 44px; }
.mobile-nav { display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; }

/* hero */
.hero { position: relative; min-height: 480px; display: flex; align-items: center; border-bottom: 1px solid var(--border); overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: var(--hero-shade); }
.hero-content { position: relative; z-index: 1; width: 100%; padding-block: 52px; }
.hero h1 { font-size: 68px; line-height: 1.06; font-weight: 500; }
.hero h1 em { font-style: normal; color: var(--primary); }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.lead { max-width: 448px; margin-top: 24px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-specimen { position: absolute; right: 48px; bottom: 28px; z-index: 2; border-left: 1px solid var(--primary); padding-left: 14px; }

/* trust strip */
.trust { border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 24px; }
.trust-item { display: flex; align-items: center; gap: 12px; }

/* product cards */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 28px; }
.grid { display: grid; column-gap: 24px; row-gap: 32px; }
.grid-featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { min-width: 0; }
.product-link { display: block; }
.card-media { position: relative; overflow: hidden; border-radius: 2px; background: var(--card); }
.product-photo { width: 100%; height: 260px; object-fit: cover; transition: transform .5s; }
.product-link:hover .product-photo { transform: scale(1.04); }
.specimen-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border); background: var(--card); text-align: center; padding: 12px; }
.badge { position: absolute; top: 12px; left: 12px; background: color-mix(in oklch, var(--background) 90%, transparent); border: 1px solid var(--border); padding: 6px 8px; }
.family-tag { position: absolute; bottom: 12px; left: 12px; background: color-mix(in oklch, var(--background) 90%, transparent); padding: 4px 8px; }
.card-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-top: 16px; }
.card-title h3 { font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.card-title .ico { margin-top: 4px; }
.origin { display: flex; align-items: center; gap: 6px; margin-top: 16px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); margin-top: 16px; padding-top: 12px; }

.explore { border-block: 1px solid var(--border); padding-block: 36px; display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.explore-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.explore-top { display: flex; justify-content: space-between; margin-bottom: 16px; }
.explore-link:hover .ico { color: var(--primary); }
.knowledge { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.knowledge-text { display: flex; gap: 16px; align-items: center; }

/* catalog */
.catalog-layout { margin-top: 36px; display: grid; grid-template-columns: 210px 1fr; gap: 36px; }
.search-box { position: relative; }
.search-box input { padding-right: 32px; }
.search-box .ico { position: absolute; right: 12px; top: 13px; }
.browse-by { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 20px; }
.side-btn { width: 100%; justify-content: flex-start; font-size: 12px; margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 24px; }
.chips.gap-2 { gap: 8px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding-block: 24px; }
.empty { border-block: 1px solid var(--border); padding-block: 80px; text-align: center; }

/* species */
.species-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.species-photo { width: 100%; height: 520px; object-fit: cover; border-radius: 2px; }
.desc { line-height: 1.75; } .desc p + p { margin-top: 12px; }
.note { border-top: 1px solid var(--border); padding-top: 24px; }
section .note, .text-xs.note { border: 0; padding: 0; margin-top: 16px; }
.attribution { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-block: 1px solid var(--border); padding-block: 24px; margin-top: 28px; }
.price-row { display: flex; justify-content: space-between; margin-top: 28px; }
.price-row .micro { padding-top: 8px; }
.buy-row { display: flex; gap: 16px; margin-top: 24px; }
.qty { display: flex; align-items: center; gap: 16px; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 8px; }

/* notes + licensing */
.notes-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; row-gap: 40px; }
.notes-grid .ico { display: block; margin-bottom: 20px; }
.note-text { line-height: 1.75; max-width: 512px; }
.lic-head { border-bottom: 1px solid var(--border); padding-bottom: 32px; margin-bottom: 48px; }
.lic-head .lead { max-width: 576px; }
.check-section { border-top: 1px solid var(--border); margin-top: 56px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start; }
.max-xl { max-width: 576px; }

/* footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 64px; }
.footer-inner { padding-top: 56px; padding-bottom: 40px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.quick-icons { display: flex; gap: 24px; }
.footer-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 40px 32px; margin-top: 64px; }
.footer-h { font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.footer-cols li + li { margin-top: 12px; }
.footer-cols .nav-link { line-height: 1.5; }
.footer-bottom { margin-top: 80px; text-align: center; }
.archive-links { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 12px; }
.archive-links a { padding-inline: 12px; } .archive-links a + a { border-left: 1px solid var(--border); }
.archive-links a:hover { color: var(--foreground); }

/* bag */
.modal-backdrop { position: fixed; inset: 0; background: var(--overlay); z-index: 80; display: flex; justify-content: flex-end; }
.bag-panel { width: min(460px, 100%); height: 100%; background: var(--background); padding: 30px; overflow-y: auto; border-left: 1px solid var(--border); }
.bag-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.bag-empty { padding-block: 80px; text-align: center; }
.bag-empty .ico { margin: 0 auto 20px; }
.bag-item { display: flex; gap: 16px; padding-block: 24px; border-bottom: 1px solid var(--border); }
.bag-thumb { width: 80px; height: 96px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; font-size: 8px; }
.bag-thumb .ico { width: 20px; height: 20px; }
.bag-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.bag-qty { display: flex; align-items: center; gap: 12px; }
.bag-total { display: flex; justify-content: space-between; font-size: 20px; margin-top: 32px; }

.center-page { display: flex; min-height: 60vh; align-items: center; justify-content: center; padding: 16px; }
.center-box { max-width: 448px; text-align: center; }
.big-404 { font-size: 72px; font-weight: 700; }

@media (min-width: 768px) { .md-py-16 { padding-block: 64px; } .md-text-5xl { font-size: 48px; } }
@media (max-width: 1279px) { .grid-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1023px) {
  .grid-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-layout { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .species-grid { gap: 40px; }
}
@media (max-width: 767px) {
  .main-nav { display: none; } .mobile-only { display: inline-flex; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .explore { grid-template-columns: 1fr; }
  .species-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { padding-inline: 20px; }
  .hero { min-height: 460px; } .hero h1 { font-size: 46px; } .hero-specimen { display: none; }
  .product-photo { height: 225px; }
}
@media (max-width: 639px) {
  .hide-sm, .divider { display: none; }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .notes-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .species-photo { height: 380px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
