/* ============================================================
   Storefront stylesheet. All colors come from the CSS variables
   injected by brand.config.mjs — never hard-code a brand color.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-ui), system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--font-mono), monospace; }
.ico { width: 1em; height: 1em; vertical-align: -0.125em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand-primary); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-align: center;
  font: 600 13px/1 var(--font-ui), sans-serif; letter-spacing: .08em; text-transform: uppercase;
  padding: 14px 26px; border-radius: 6px; transition: background .15s, color .15s, box-shadow .15s;
  text-decoration: none !important;
}
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: var(--brand-primary-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 14px; }
.btn-sm { padding: 9px 16px; font-size: 11px; }

.kicker, .hero-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
}

/* ---- Header ---- */
.topbar { border-bottom: 1px solid var(--line); background: #fff; }
.topbar-inner { display: flex; align-items: center; gap: 24px; padding: 14px 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; color: inherit; }
.logo-img { height: 52px; width: auto; display: block; }
.logo-footer .logo-img { height: 44px; }
.topbar-meta { display: flex; gap: 22px; align-items: center; margin-left: auto; }
.meta-item { font-size: 13px; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.meta-item .ico { color: var(--brand-primary); }
.meta-item:hover { text-decoration: none; color: var(--brand-primary); }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.search { display: flex; align-items: center; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 999px; padding: 3px 4px 3px 16px; }
.search input { border: 0; background: transparent; font: 14px var(--font-ui), sans-serif; outline: none; width: 150px; color: var(--ink); }
.search button { border: 0; background: var(--brand-primary); color: #fff; width: 38px; height: 38px; border-radius: 999px; cursor: pointer; display: grid; place-items: center; }
.cart-btn { position: relative; color: var(--ink); font-size: 20px; padding: 10px 12px; }
.cart-count {
  position: absolute; top: -2px; right: -6px; background: var(--brand-primary); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 4px;
}
.mainnav { background: #fff; border-bottom: 1px solid var(--line); }
.mainnav-inner { display: flex; align-items: center; padding: 0 20px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 14px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.nav-links a:hover { color: var(--brand-primary); text-decoration: none; }
.login-link {
  margin-left: auto; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); display: inline-flex; align-items: center; gap: 7px; padding: 12px 0;
}
.login-link:hover { color: var(--brand-primary); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 12px; cursor: pointer; font-size: 20px; color: var(--ink); }

/* ---- RUO banners ---- */
.ruo-strip {
  background: var(--surface-alt); border-bottom: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; padding: 12px 0; text-align: center;
}
.home-ruo { background: #fff; border-bottom: 0; padding: 26px 0 8px; }
.ruo-banner { background: var(--surface-alt); border-bottom: 1px solid var(--line); padding: 18px 0; }
.ruo-title { font-size: 12.5px; font-weight: 800; letter-spacing: .06em; margin: 0 0 6px; }
.ruo-body { font-size: 11.5px; color: var(--muted); margin: 0; max-width: 1050px; line-height: 1.55; }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f7f6fb 58%, #edebf4 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before { /* pale chevron sweeping in from the top-right corner */
  content: ""; position: absolute; pointer-events: none;
  top: -140px; right: -120px; width: 460px; height: 560px;
  background: linear-gradient(200deg, var(--soft-band), rgba(237,234,246,.4));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 55% 50%);
}
.hero::after { /* solid brand chevron on the right edge */
  content: ""; position: absolute; pointer-events: none;
  top: 50%; right: -40px; width: 240px; height: 380px; transform: translateY(-46%);
  background: linear-gradient(160deg, var(--brand-primary), var(--brand-primary-dark));
  clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%);
  opacity: .92;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(320px, 480px) 1fr; gap: 44px;
  align-items: center; padding-top: 58px; padding-bottom: 58px;
}
.hero-kicker {
  color: var(--brand-primary); margin: 0 0 20px;
  font-size: 15px; font-weight: 800; letter-spacing: 0; text-transform: none;
}
.hero-kicker::after { content: ""; display: block; width: 34px; height: 3px; margin-top: 10px; background: var(--brand-primary); border-radius: 2px; }
.hero h1 {
  color: var(--ink); font-size: clamp(26px, 3vw, 38px); font-weight: 800;
  letter-spacing: -.015em; line-height: 1.16; margin: 0 0 16px;
}
.hero-line { display: block; white-space: nowrap; }
.hero-sub { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 0 0 18px; max-width: 46ch; }
.hero-ruo {
  display: flex; align-items: center; gap: 9px; margin: 0 0 26px;
  font-size: 13px; color: var(--muted);
}
.hero-ruo .ico { color: var(--brand-primary); font-size: 18px; flex: none; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn {
  display: inline-flex; align-items: center; gap: 9px;
  text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 700;
  padding: 14px 22px; border-radius: 8px;
}
.hero-actions .btn-primary { box-shadow: 0 10px 24px rgba(91,45,142,.28); }
.hero-actions .btn-ghost { border-color: var(--brand-primary); color: var(--brand-primary); background: #fff; }
.hero-actions .btn-ghost:hover { background: var(--soft-band); }
.hero-visual { position: relative; min-width: 0; }
.hero-visual::after { /* soft studio-floor shadow under the lineup */
  content: ""; position: absolute; left: 6%; right: 6%; bottom: -16px; height: 34px;
  background: radial-gradient(closest-side, rgba(30,20,60,.16), transparent 75%);
}
.hero-vials { display: block; width: 100%; height: auto; max-width: 720px; margin: 0 auto; }

/* ---- Label artwork ---- */
.label-art {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 16px 18px; width: 100%; color: var(--ink); text-align: left;
  display: flex; flex-direction: column; gap: 8px; overflow: hidden;
}
.label-head { display: flex; align-items: center; gap: 7px; }
.label-brand { font-size: 13px; color: var(--brand-primary); line-height: 1; display: flex; flex-direction: column; }
.label-brand b { font-weight: 800; }
.label-brand small { font-size: 5.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.label-cas { font-size: 11px; white-space: nowrap; }
.label-name { font-size: 23px; font-weight: 800; letter-spacing: -.01em; padding-right: 30%; position: relative; z-index: 1; }
.label-brand small { white-space: nowrap; }
.label-box { font-size: 15px; font-weight: 600; }
.label-box small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.label-rows { font-size: 11px; display: flex; flex-direction: column; gap: 3px; margin-top: auto; }
.label-note { color: var(--ink); }
.tag {
  display: inline-block; border: 1.3px solid var(--ink); font-size: 9px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; padding: 1px 5px; border-radius: 2px; margin-right: 3px;
}
.label-vial {
  position: absolute; right: -14px; bottom: -18px; width: 43%; height: auto; max-height: 78%;
  object-fit: contain; object-position: bottom; pointer-events: none;
  mix-blend-mode: multiply; /* white photo background disappears into the card */
}
.label-card { height: 270px; }
.label-card .label-name { font-size: 21px; line-height: 1.15; }
.label-detail { min-height: 420px; padding: 26px 26px 30px; border-radius: 14px; box-shadow: 0 10px 34px rgba(30,34,48,.08); }
.label-detail .label-name { font-size: 38px; }
.label-detail .label-box { font-size: 20px; margin-top: 10px; }
.label-detail .label-cas { font-size: 13px; }
.label-detail .label-rows { font-size: 13px; gap: 6px; }
.label-detail .label-vial { width: 40%; }
.label-hero { width: 290px; min-height: 345px; }
.label-hero .label-name { font-size: 27px; white-space: nowrap; padding-right: 0; }
.label-hero .label-box { font-size: 17px; }
.label-hero .label-rows { font-size: 12px; }

/* ---- Product cards ---- */
.section-title { text-align: center; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 34px; }
.product-grid, .featured-page { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
[data-featured-pages] { display: block; }
.featured-page[hidden] { display: none; }
.product-card { position: relative; display: flex; flex-direction: column; }
.product-card-media { display: block; text-decoration: none !important; color: inherit; }
.product-card-media .label-art { transition: box-shadow .15s, transform .15s; }
.product-card-media:hover .label-art { box-shadow: 0 10px 26px rgba(30,34,48,.12); transform: translateY(-2px); }
.badge-sale {
  position: absolute; z-index: 2; top: 10px; left: 10px; background: var(--sale); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 4px;
}
.product-card-body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card-title { font-size: 15px; font-weight: 700; margin: 0; }
.product-card-title a { color: var(--ink); }
.product-card-title a:hover { color: var(--brand-primary); text-decoration: none; }
.product-card-price { margin: 0 0 4px; font-size: 14.5px; color: var(--ink); }
.product-card-price del { color: var(--muted); margin-right: 6px; }
.product-card-price ins { text-decoration: none; font-weight: 700; }
.product-card .btn { margin-top: auto; }
.is-oos .label-art { opacity: .65; }
.oos-note { color: var(--danger); font-size: 12.5px; font-weight: 600; margin: 0; }

.value-props { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; padding-top: 40px; padding-bottom: 56px; text-align: center; }
.value-prop h2 { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.value-prop p { font-size: 13.5px; color: var(--muted); margin: 0; }


.featured { padding-bottom: 70px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.pager-btn {
  min-width: 44px; height: 44px; border: 0; border-radius: 8px; background: var(--brand-primary);
  color: #fff; font: 700 14px var(--font-ui), sans-serif; cursor: pointer; opacity: .55;
}
.pager-btn.is-active, .pager-btn:hover { opacity: 1; }

/* ---- Storefront band + footer ---- */
.storefront-band { background: linear-gradient(180deg, var(--surface) 0%, var(--soft-band) 100%); padding: 60px 0; }
.storefront-card {
  background: #fff; border-radius: 22px; padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  box-shadow: 0 18px 50px rgba(30,34,48,.07);
}
.storefront-copy .kicker { color: var(--brand-primary); margin: 0 0 14px; }
.storefront-copy h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin: 0 0 16px; }
.storefront-body { color: var(--muted); font-size: 14.5px; margin: 0; }
.storefront-ctas { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
@media (min-width: 720px) { .storefront-ctas { flex-direction: row; justify-content: flex-end; align-items: center; } }

.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer-brand p { font-size: 13.5px; margin: 6px 0; }
.footer-ruo { color: var(--muted); font-size: 12.5px; }
.footer-col h3 { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--ink); font-size: 14px; }
.footer-col a:hover { color: var(--brand-primary); }
.footer-legal { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-legal p { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }

/* ---- Page hero / breadcrumbs ---- */
.page-hero {
  background:
    linear-gradient(100deg, rgba(30,34,48,.82) 0%, rgba(30,34,48,.45) 55%, rgba(30,34,48,.2) 100%),
    var(--brand-hero) url("/images/banner-lab.jpg") center/cover no-repeat;
  color: #fff; padding: 34px 0; text-align: center;
}
.page-hero h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; }
.crumbs { font-size: 12.5px; color: rgba(255,255,255,.85); }
.crumbs a { color: #fff; font-weight: 600; }
.crumb-sep { margin: 0 8px; opacity: .6; }

/* ---- Shop ---- */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding-top: 40px; padding-bottom: 70px; align-items: start; }
/* Disclosures that collapse on mobile only (store.js removes [open] under 700px) */
.filters-disclosure > summary, .ruo-details > summary { list-style: none; }
.filters-disclosure > summary::-webkit-details-marker, .ruo-details > summary::-webkit-details-marker { display: none; }
@media (min-width: 701px) {
  .filters-disclosure > summary { display: none; }
  .ruo-details > summary { pointer-events: none; }
}
.filter-block { margin-bottom: 26px; }
.filter-title {
  background: var(--brand-primary); color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; padding: 9px 14px; border-radius: 6px; margin: 0 0 12px;
}
.filter-cats { list-style: none; margin: 0; padding: 0 4px; display: flex; flex-direction: column; gap: 8px; }
.filter-cats a { color: var(--ink); font-size: 13.5px; }
.filter-cats a.is-active { color: var(--brand-primary); font-weight: 700; }
.radio { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 3px 4px; }
.radio input { accent-color: var(--brand-primary); }
.filter-actions { display: flex; gap: 8px; margin-top: 12px; padding: 0 4px; }
.price-slider { position: relative; height: 22px; margin: 4px 4px 0; }
.price-slider input[type="range"] {
  position: absolute; inset: 0; width: 100%; appearance: none; -webkit-appearance: none;
  background: none; pointer-events: none; margin: 0;
}
.price-slider input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: var(--line); border-radius: 2px; margin-top: 9px; }
.price-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 999px;
  background: var(--brand-primary); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3);
  margin-top: -6px; pointer-events: auto; cursor: pointer;
}
.price-slider input[type="range"]::-moz-range-track { height: 4px; background: var(--line); border-radius: 2px; }
.price-slider input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 999px; background: var(--brand-primary);
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); pointer-events: auto; cursor: pointer;
}
.price-readout { font-size: 13px; color: var(--muted); padding: 0 4px; margin: 8px 0 0; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.shop-count { font-size: 13.5px; color: var(--muted); margin: 0; }
.sort-label { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.sort-label select {
  font: 600 13px var(--font-ui), sans-serif; color: #fff; background: var(--brand-primary);
  border: 0; border-radius: 6px; padding: 8px 10px; cursor: pointer;
}
.shop-grid { grid-template-columns: repeat(3, 1fr); }
.shop-item { display: flex; }
.shop-item > .product-card { width: 100%; }
.shop-item.is-hidden { display: none !important; }
.shop-empty { color: var(--muted); text-align: center; padding: 60px 0; }

/* ---- Product page ---- */
.page-product .page-hero { padding: 18px 0; }
.product-layout { display: grid; grid-template-columns: minmax(300px, 480px) 1fr; gap: 56px; padding-top: 44px; padding-bottom: 20px; align-items: start; }
.product-buy h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 18px; }
.buy-meta { margin: 0 0 22px; }
.buy-meta div { display: flex; gap: 18px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.buy-meta dt { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); min-width: 90px; padding-top: 3px; }
.buy-meta dd { margin: 0; font-size: 15px; }
.buy-meta del { color: var(--muted); margin-right: 8px; }
.buy-meta ins { text-decoration: none; font-weight: 700; }
.buy-row { margin-bottom: 18px; }
.buy-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.variant-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.variant-pill {
  border: 1.5px solid var(--line); background: #fff; border-radius: 6px; padding: 9px 16px;
  font: 600 13.5px var(--font-ui), sans-serif; color: var(--ink); cursor: pointer;
}
.variant-pill.is-active { border-color: var(--brand-primary); color: var(--brand-primary); box-shadow: 0 0 0 1px var(--brand-primary) inset; }
.buy-price { font-size: 24px; font-weight: 800; margin: 0 0 18px; }
.qty-stepper { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 6px; overflow: hidden; }
.qty-stepper button { width: 44px; min-height: 44px; border: 0; background: var(--brand-primary); color: #fff; font-size: 18px; cursor: pointer; }
.qty-stepper input { width: 56px; border: 0; text-align: center; font: 600 16px var(--font-ui), sans-serif; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.oos-banner { background: var(--surface-alt); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; color: var(--danger); font-weight: 600; }

.product-tabs { padding-top: 34px; padding-bottom: 30px; }
.tab-list { display: flex; gap: 4px; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.tab-list [role="tab"] {
  border: 0; background: none; padding: 12px 20px; cursor: pointer; position: relative; top: 2px;
  font: 700 12px var(--font-ui), sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tab-list [role="tab"][aria-selected="true"] { background: var(--brand-primary); color: #fff; border-radius: 6px 6px 0 0; border-bottom-color: var(--brand-primary); }
.tab-panel { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; padding: clamp(20px, 3vw, 36px); }
.tab-panel h2 { font-size: 20px; letter-spacing: .04em; }

.table-wrap { overflow-x: auto; margin: 22px 0; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 10px 16px; text-align: left; }
.spec-table tbody th { font-weight: 600; width: 45%; background: var(--surface-alt); }
.spec-table thead th { background: var(--brand-primary); color: #fff; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.cert-table td { font-size: 13.5px; }
.id-block { font-size: 13.5px; line-height: 1.9; }

.studies { margin-top: 34px; }
.studies h2 { font-size: 20px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.studies-note { color: var(--muted); font-size: 12.5px; margin: 0 0 18px; }
.study { margin-bottom: 26px; }
.study h3 { font-size: 16.5px; color: var(--brand-primary); margin-bottom: 8px; }
.study h4 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 12px 0 4px; }
.study p { font-size: 14.5px; margin: 0; }
.study .study-source { margin-top: 9px; font-size: 13px; font-weight: 700; }
.storage-list { font-size: 14.5px; display: flex; flex-direction: column; gap: 10px; padding-left: 20px; }

.related { padding-bottom: 60px; }
.compliance { background: var(--surface-alt); border-top: 1px solid var(--line); padding: 40px 0 44px; }
.compliance h2 { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.compliance p { font-size: 12.5px; color: var(--muted); max-width: 1050px; }

/* ---- Certifications / prose pages ---- */
.prose-page { padding-top: 40px; padding-bottom: 70px; max-width: 980px; }
.prose-page .lead { font-size: 16.5px; color: var(--muted); }
.cert-section { margin-top: 40px; }
.cert-section h2 { font-size: 19px; }
.cert-section h2 small { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-left: 10px; }
.cert-note { color: var(--muted); font-size: 13.5px; margin-top: 30px; }
.policy-page h2 { font-size: 18px; margin-top: 32px; }
.policy-page ul, .policy-page ol { font-size: 14.5px; }
.policy-page p { font-size: 14.5px; }
.policy-updated { color: var(--muted); font-size: 12.5px; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 16px; }

/* ---- Contact ---- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; padding-top: 46px; padding-bottom: 70px; }
.contact-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.contact-list b { display: inline-block; min-width: 76px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-form, .account-form, .checkout-form fieldset {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px;
}
.contact-form label, .account-form label, .checkout-form label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.optional { font-weight: 400; text-transform: none; letter-spacing: 0; }
.contact-form input, .contact-form textarea, .account-form input,
.checkout-form input {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px;
  /* 16px minimum: anything smaller makes iOS Safari auto-zoom on focus */
  border: 1.5px solid var(--line); border-radius: 7px; font: 16px var(--font-ui), sans-serif; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus, .account-form input:focus, .checkout-form input:focus {
  outline: none; border-color: var(--brand-primary);
}
.form-success { color: var(--success); font-weight: 600; margin-top: 14px; }

/* ---- Cart / checkout ---- */
.cart-page, .checkout-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; padding-top: 44px; padding-bottom: 70px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cart-table th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--line); padding: 10px 8px; }
.cart-table td { border-bottom: 1px solid var(--line); padding: 14px 8px; vertical-align: middle; }
.cart-item-name { font-weight: 700; }
.cart-item-variant { font-size: 12.5px; color: var(--muted); }
.cart-remove { background: none; border: 0; color: var(--danger); cursor: pointer; font-size: 14px; padding: 10px 8px; }
.cart-summary { background: var(--surface-alt); border: 1px solid var(--line); border-radius: 14px; padding: 26px; position: sticky; top: 20px; }
.cart-summary h2 { font-size: 17px; }
.totals { margin: 18px 0; }
.totals div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.totals .grand { font-size: 17px; font-weight: 800; border-bottom: 0; }
.totals dd { margin: 0; }
.shipbar p { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.shipbar-track { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.shipbar-fill { height: 100%; width: 0; background: var(--brand-primary); border-radius: 999px; transition: width .3s; }
.checkout-form fieldset { border: 1px solid var(--line); margin: 0 0 22px; }
.checkout-form legend { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 0 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid-3 { grid-template-columns: 2fr 1fr 1fr; }
.pay-placeholder { background: var(--soft-band); border-radius: 8px; padding: 14px 16px; font-size: 13.5px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important; font-size: 13px !important; color: var(--ink) !important; }
.check input { width: auto !important; margin-top: 3px !important; accent-color: var(--brand-primary); }

.confirm-page { text-align: center; }
.confirm-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 50px 30px; max-width: 560px; margin: 0 auto; }
.confirm-check { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 999px; background: var(--success); color: #fff; font-size: 30px; display: grid; place-items: center; }
.account-layout { padding: 60px 20px 80px; display: flex; justify-content: center; }
.account-form { width: 100%; max-width: 420px; }
.account-note { font-size: 12.5px; color: var(--muted); margin-top: 16px; }
.nf-page { text-align: center; padding-top: 80px; padding-bottom: 100px; }

/* ---- Guides / FAQ / About / Category intros ---- */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
.guide-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 26px; color: var(--ink); text-decoration: none !important;
  transition: box-shadow .15s, transform .15s;
}
.guide-card:hover { box-shadow: 0 12px 30px rgba(30,34,48,.1); transform: translateY(-2px); }
.guide-card h2 { font-size: 18px; color: var(--brand-primary); margin-bottom: 8px; }
.guide-card p { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.guide-meta { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.guide-article .guide-title { font-size: clamp(24px, 3vw, 32px); margin-top: 8px; }
.guide-article h2 { font-size: 20px; margin-top: 34px; }
.guide-article p, .guide-article li { font-size: 15px; }
.guide-article table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 20px 0; display: block; overflow-x: auto; }
.guide-article th, .guide-article td { border: 1px solid var(--line); padding: 9px 14px; text-align: left; }
.guide-article th { background: var(--surface-alt); }
.guide-footer { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 18px; font-size: 14px; }
.faq-list { margin-top: 28px; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; background: #fff; }
.faq-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 15px; list-style: none;
  position: relative; padding-right: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 600; color: var(--brand-primary);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 20px 16px; margin: 0; font-size: 14.5px; color: var(--muted); }
.product-faq { margin-top: 34px; }
.product-faq h2 { font-size: 20px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.category-intro { padding-top: 36px; max-width: 900px; }
.category-intro p { font-size: 15px; }
.about-page h2 { font-size: 20px; margin-top: 34px; }
.about-page p, .about-page li { font-size: 15px; }
.external-record { margin: 28px 0; border: 1px solid var(--line); border-left: 4px solid var(--brand-primary); border-radius: 10px; background: var(--surface-alt); padding: 20px; }
.external-record h2 { margin: 0 0 8px; font-size: 18px; }
.external-record p { margin: 0 0 8px; font-size: 14px; }
.external-record p:last-child { margin-bottom: 0; }
@media (max-width: 700px) { .guide-grid { grid-template-columns: 1fr; } }

/* ---- Cart drawer ---- */
.cart-drawer { position: fixed; inset: 0; z-index: 60; }
.cart-drawer-backdrop { position: absolute; inset: 0; background: rgba(20,18,30,.45); }
.cart-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 92vw); background: #fff;
  display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,.2);
}
.cart-drawer-panel header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cart-drawer-panel header h2 { margin: 0; font-size: 17px; }
.cart-drawer-panel header button { background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--muted); line-height: 1; padding: 9px 14px; margin: -9px -14px; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 12px 22px; }
.cart-drawer-panel footer { border-top: 1px solid var(--line); padding: 18px 22px; }
.cart-drawer-total { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 14px; }
.drawer-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .topbar-meta { display: none; }
  .product-grid, .featured-page, .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 48px; }
  .hero::after { display: none; }
  .product-layout, .cart-page, .checkout-layout, .contact-layout { grid-template-columns: 1fr; }
  .checkout-layout .cart-summary { order: -1; position: static; }
  .storefront-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .value-props { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: 200px 1fr; }
}
@media (max-width: 700px) {
  .search input { width: 90px; font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; z-index: 40; box-shadow: 0 14px 30px rgba(0,0,0,.08); }
  .nav-links.is-open { display: flex; }
  .mainnav { position: relative; }
  .product-grid, .featured-page, .shop-grid { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; gap: 24px; }
  .value-props { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }

  /* Footer links: comfortable tap column */
  .footer-col ul { gap: 4px; }
  .footer-col a { display: inline-block; padding: 8px 0; }

  /* Selects at 16px so iOS doesn't zoom on focus */
  .sort-label select { font-size: 16px; padding: 10px 12px; }

  /* Shop filters: collapsed disclosure, bigger touch controls */
  .filters-disclosure { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 16px; }
  .filters-disclosure > summary { cursor: pointer; padding: 15px 0; font-weight: 700; font-size: 14.5px; position: relative; }
  .filters-disclosure > summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 600; color: var(--brand-primary); }
  .filters-disclosure[open] > summary::after { content: "\2212"; }
  .filters-disclosure .filter-block { margin-bottom: 20px; }
  .filter-cats { gap: 0; }
  .filter-cats a { display: block; padding: 10px 0; font-size: 14.5px; }
  .radio { padding: 8px 4px; font-size: 14.5px; }
  .filter-actions .btn-sm { padding: 13px 18px; font-size: 12px; }
  .price-slider { height: 30px; margin-top: 8px; }
  .price-slider input[type="range"]::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -10px; }
  .price-slider input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; }

  /* RUO banner: title stays visible, body collapses behind it */
  .ruo-banner { padding: 12px 0; }
  .ruo-details > summary { cursor: pointer; position: relative; padding-right: 30px; }
  .ruo-details > summary::after { content: "+"; position: absolute; right: 4px; top: -3px; font-size: 18px; font-weight: 600; color: var(--brand-primary); }
  .ruo-details[open] > summary::after { content: "\2212"; }
  .ruo-details .ruo-body { margin-top: 6px; }

  /* Cart table becomes stacked cards; labels come from data-label */
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px 6px; margin-bottom: 12px; background: #fff; }
  .cart-table td { border-bottom: 0; padding: 6px 0; }
  .cart-table td[data-label] { display: flex; justify-content: space-between; align-items: center; }
  .cart-table td[data-label]::before { content: attr(data-label); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .cart-table td:last-child { text-align: right; }

  /* Denser table cells so more columns fit before scrolling */
  .spec-table th, .spec-table td { padding: 8px 10px; }
}

/* ---- Mobile landing layout (matches phone mock) ---- */
@media (max-width: 700px) {
  /* Header: circular hamburger | centered logo | circular cart */
  .topbar-inner { display: grid; grid-template-columns: 46px 1fr 46px; gap: 12px; padding: 10px 16px; align-items: center; }
  .nav-toggle-topbar {
    display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
    border: 1px solid var(--line); border-radius: 999px; background: #fff;
  }
  .topbar-inner .logo { justify-self: center; }
  .topbar-inner .logo-img { height: 42px; }
  .search { display: none; }
  .topbar-actions { justify-self: end; }
  .cart-btn {
    width: 46px; height: 46px; padding: 0; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 999px; background: #fff;
  }
  .cart-count { top: -3px; right: -3px; }
  .mainnav { border-bottom: 0; }
  .mainnav .nav-toggle, .login-link { display: none; }

  /* Hero: purple band, vials on top, centered white uppercase copy, one CTA */
  .hero { background: linear-gradient(180deg, var(--brand-hero) 0%, var(--brand-hero) 76%, #eceaf4 100%); border-bottom: 0; }
  .hero::before { display: none; }
  .hero-inner { display: flex; flex-direction: column; gap: 30px; padding-top: 24px; padding-bottom: 44px; text-align: center; }
  .hero-visual { order: -1; }
  .hero-visual::after { display: none; }
  .hero-kicker { color: #fff; text-transform: uppercase; letter-spacing: .05em; font-size: 21px; margin: 0 0 14px; }
  .hero-kicker::after { display: none; }
  .hero h1 { color: #fff; text-transform: uppercase; font-size: clamp(28px, 8.6vw, 38px); line-height: 1.2; letter-spacing: .01em; margin: 0 0 24px; }
  .hero-line { white-space: normal; }
  .hero-sub, .hero-ruo { display: none; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn-ghost { display: none; }
  .hero-actions .btn .ico { display: none; }
  .hero-actions .btn-primary {
    justify-content: center; min-width: 230px; padding: 16px 40px;
    text-transform: uppercase; letter-spacing: .08em; font-size: 15px;
  }

  /* RUO strip + value props: large, centered, roomy */
  .home-ruo { padding: 34px 0 4px; font-size: 15px; line-height: 1.5; }
  .value-props { gap: 38px; padding-top: 46px; padding-bottom: 54px; }
  .value-prop h2 { font-size: 21px; letter-spacing: .03em; margin-bottom: 12px; }
  .value-prop p { font-size: 16px; line-height: 1.6; }

  /* Featured products: big title, full-width cards + buttons */
  .section-title { font-size: 30px; }
  .product-card .btn { padding: 15px 18px; font-size: 13px; }
}
