/* =====================================================================
   STORE.CSS: the Retabionix layer.

   base.css and components.css are the kit's shared template. This file
   carries the Retabionix look taken from the live retabionix.com theme:
   cream ground, full-width oxblood panels with 36px corners, photo-style
   category cards, pill buttons, Google Sans headings at 500 to 600.

   No colour is named here. Everything is a token from tokens.css, and
   every oxblood panel is .tone-dark, which re-points the same tokens.
   ===================================================================== */

/* ---- 0. Type and globals ---------------------------------------------- */

body { font-family: var(--font); background: var(--bg); color: var(--text-body); }
h1, h2, h3, h4, .pcard__title, .card h3, .cart-drawer__title, .faq-item summary, .gate__title {
  font-family: var(--font-display);
}
h1 { font-weight: var(--fw-med); letter-spacing: -.03em; color: var(--text); text-wrap: balance; }
h2 { font-weight: var(--fw-bold); letter-spacing: -.025em; color: var(--text); text-wrap: balance; }
h3 { font-weight: var(--fw-bold); letter-spacing: -.01em; }
p { text-wrap: pretty; }
.dot { color: var(--accent); }
a { color: inherit; }

.eyebrow {
  font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-label);
  letter-spacing: var(--track-eyebrow); color: var(--text-dim);
}
.eyebrow::before { width: 18px; height: 1.5px; }

.btn {
  font-family: var(--font-display); font-weight: var(--fw-med);
  font-size: 15px; letter-spacing: var(--track-btn); text-transform: none;
  border-radius: var(--radius-pill); padding: 15px 28px; min-height: 48px;
}
.btn--sm { padding: 10px 16px; font-size: 13px; min-height: 40px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn--ghost { color: var(--text); }
.btn--text { font-family: var(--font-display); text-transform: none; letter-spacing: 0; font-size: 15px; }
.section--tight { padding-top: 48px; padding-bottom: 48px; }
.section--first { padding-top: 72px; }
.section--flush { padding-top: 0; }
.section--alt { background: var(--bg-alt); border: 0; }
[hidden] { display: none !important; }

/* ---- 1. Top bar and header ------------------------------------------- */

.topbar .marquee { background: var(--oxblood-deep); border: 0; }
.topbar .marquee__item { font-family: var(--font); font-weight: 500; letter-spacing: .12em; color: var(--text-body); }
.topbar .marquee__item b { color: var(--accent); font-weight: 600; }

.site-header {
  position: sticky; top: 40px; z-index: 300;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-faint);
}
.site-header__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px;
}
.site-header__left, .site-header__right { display: flex; align-items: center; gap: 28px; min-width: 0; }
.site-header__right { justify-content: flex-end; }
.site-header .nav { margin-left: 0; gap: 26px; }
.nav a {
  font-family: var(--font); font-weight: 500; font-size: 13px;
  letter-spacing: var(--track-nav); color: var(--text);
}
.nav a::after { height: 1.5px; bottom: -3px; }
.icon-btn { border-radius: 50%; color: var(--text); width: 44px; height: 44px; }
.cart-btn { border-radius: var(--radius-pill); height: 44px; font-family: var(--font-display); font-weight: var(--fw-med); }
.cart-btn__count { border-radius: var(--radius-pill); color: var(--btn-bg); background: var(--btn-ink); }

.brandmark { justify-self: center; padding: 10px 2px; }
.logo { display: block; width: auto; height: 34px; }
.brandmark .logo { height: 34px; }
.drawer .logo { height: 30px; }

.ruo-bar {
  text-align: center; padding: 9px 16px;
  font: 500 11px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim); background: var(--bg-alt); border-bottom: 1px solid var(--line-faint);
}

.drawer__nav a { font-family: var(--font-display); font-weight: var(--fw-med); text-transform: none; letter-spacing: -.01em; font-size: 24px; }

@media (max-width: 1024px) {
  .site-header__inner { gap: 10px; }
  .site-header .nav { display: none; }
  .cart-btn { border-radius: 50%; width: 44px; }
  .cart-btn__count { background: var(--accent); color: var(--btn-ink); }
}
@media (max-width: 420px) {
  .brandmark .logo { height: 27px; }
  .header-actions { gap: 6px; }
}

/* ---- 2. Hero: the oxblood panel --------------------------------------- */

.hero-wrap { padding-top: 20px; }
.rhero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: clamp(16px, 3vw, 40px);
  padding: clamp(32px, 5vw, 72px);
  border-radius: var(--radius-panel); background: var(--panel-grad);
}
.rhero__copy { position: relative; z-index: 1; }
.rhero h1 { font-size: var(--fs-hero); line-height: 1.04; margin: 6px 0 22px; }
.rhero__second { display: block; color: var(--accent); }
.rhero__lede { font-size: 17px; line-height: 1.7; max-width: 50ch; margin-bottom: 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rhero__art { position: relative; }
.rhero__art img {
  display: block; width: 100%; height: auto; max-width: 560px; margin-left: auto;
  -webkit-mask-image: radial-gradient(closest-side, #000 66%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 66%, transparent 100%);
}

/* ---- 3. Trust row ------------------------------------------------------ */

.trust-wrap { padding: 28px 0 0; }
.trust {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.trust__item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--panel);
}
.trust__item svg {
  flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 50%;
  color: var(--accent); background: var(--accent-soft);
}
.trust__item b { display: block; font: var(--fw-bold) 15px/1.3 var(--font-display); color: var(--text); }
.trust__item span { display: block; font-size: 13px; line-height: 1.5; color: var(--text-dim); margin-top: 2px; }

/* ---- 4. Page head: a smaller oxblood panel ---------------------------- */

.phead-wrap { padding-top: 20px; }
.phead {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-panel); background: var(--panel-grad);
}
.phead__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; z-index: -1; }
.phead::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--bg) 25%, transparent);
}
.phead__in { padding: clamp(44px, 6vw, 80px) clamp(24px, 5vw, 64px); }
.phead h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; margin-top: 6px; }
.phead__lede { max-width: 60ch; margin-top: 16px; font-size: 17px; line-height: 1.7; }

/* ---- 5. Chemical-class cards (the live site's photo cards) ------------ */

.classgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.classgrid .classcard { aspect-ratio: 6 / 5; }
.classcard {
  position: relative; overflow: hidden; isolation: isolate;
  display: block; aspect-ratio: 4 / 5; border-radius: var(--radius);
  text-decoration: none; background: var(--bg);
}
.classcard img {
  position: absolute; left: 0; right: 0; bottom: -3%; z-index: -2; width: 100%; height: 86%;
  object-fit: cover; object-position: 50% 50%;
  transition: transform .7s var(--ease);
}
.classcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 78%, transparent) 34%, transparent 62%);
}
.classcard:hover img { transform: scale(1.05); }
.classcard__copy { display: flex; flex-direction: column; height: 100%; padding: 22px; }
.classcard__n { font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.classcard h3 { margin: 10px 0 6px; font-size: 24px; color: var(--text); }
.classcard p { font-size: 14px; line-height: 1.5; color: var(--text-body); margin: 0; }
.classcard__go {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 18px;
  border-radius: var(--radius-pill); background: var(--btn-bg); color: var(--btn-ink);
  font: var(--fw-med) 14px/1 var(--font-display);
}
.classcard__go svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.classcard:hover .classcard__go svg { transform: translateX(3px); }

/* ---- 6. Product cards ------------------------------------------------- */

.pgrid { gap: 16px; }
.pgrid--home { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pcard {
  padding: 0; overflow: hidden; text-align: left;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
}
.pcard:hover { border-color: var(--accent-line); box-shadow: var(--shadow); }
.pcard__media { overflow: hidden; background: var(--bg-alt); }
.pcard__media img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: 50% 45%;
  transition: transform .6s var(--ease);
}
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 18px; }
.pcard__cat { font: 500 var(--fs-micro)/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.pcard__title {
  min-height: 0; margin: 6px 0 12px; font-size: 19px; letter-spacing: -.01em;
  text-transform: none; font-weight: var(--fw-bold);
}
.pcard__vars { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
/* Hit areas reach 44px without moving the layout (DESIGN.md, Mobile). */
.pcard__title a { position: relative; }
.pcard__title a::after { content: ""; position: absolute; left: -4px; right: -4px; top: -12px; height: 44px; }
.pcard__vars .vpill { position: relative; }
.pcard__vars .vpill::after { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 44px; }
.pcard__price { margin: auto 0 12px; color: var(--accent); font: var(--fw-bold) 18px/1 var(--font-display); }
.pcard .btn { min-height: 44px; padding: 12px 16px; font-size: 14px; }
.badge {
  top: 12px; left: 12px; right: auto; z-index: 2;
  background: var(--accent); color: var(--btn-ink); border-radius: var(--radius-pill);
  font: 500 10px/1.4 var(--font-mono); letter-spacing: .1em;
}

.vpill {
  font: 500 12px/1 var(--font-mono);
  padding: 9px 12px; min-height: 34px;
  color: var(--text-body); background: transparent;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  cursor: pointer; transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.vpill:hover { border-color: var(--accent-line); color: var(--text); }
.vpill.is-on { border-color: var(--text); color: var(--btn-ink); background: var(--btn-bg); }
.vpill.is-static { cursor: default; }

/* ---- 7. Question and answer panel ------------------------------------- */

.qa {
  border-radius: var(--radius-panel); background: var(--panel-grad);
  padding: clamp(32px, 5vw, 72px);
}
.qa__head { max-width: 640px; margin-bottom: 36px; }
.qa__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.qa__card {
  padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--line-soft); background: var(--surface);
}
.qa__card--answer { border-color: var(--accent-line); }
.qa__label { font: 500 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.qa__card p { font-size: 17px; line-height: 1.65; color: var(--text); margin-bottom: 22px; }
.qa__card p:last-child { margin-bottom: 0; }

/* ---- 8. Steps --------------------------------------------------------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft); }
.step__n { font: var(--fw-med) 44px/1 var(--font-display); color: var(--accent); letter-spacing: -.03em; margin-bottom: 20px; }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { font-size: 15px; margin: 0; }

/* ---- 9. FAQ ----------------------------------------------------------- */

.faq::before, .faq::after { display: none; }
.faq__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq__head { position: sticky; top: 130px; }
.faq__head h2 { margin-bottom: 18px; }
.faq__head a { color: var(--accent); }
.faq-item { background: var(--panel); border-color: var(--line-soft); border-radius: var(--radius-sm); }
.faq-item summary { font-weight: var(--fw-med); font-size: 17px; }
.faq-item[open] summary { color: var(--text); }
.faq-item[open] { border-color: var(--line); }

/* ---- 10. Wholesale banner --------------------------------------------- */

.banner {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-panel); background: var(--panel-grad);
  padding: clamp(36px, 6vw, 80px);
}
.banner__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .55; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 30%, transparent 85%); }
.banner__copy { max-width: 520px; }
.banner h2 { margin-bottom: 16px; }
.banner p { font-size: 17px; margin-bottom: 26px; }

/* ---- 11. Catalog toolbar ---------------------------------------------- */

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft);
}
.toolbar__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-f {
  font: 500 14px/1 var(--font-display); min-height: 44px;
  padding: 12px 16px; color: var(--text); background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius-pill); cursor: pointer;
}
.chip-f span { color: var(--text-faint); margin-left: 4px; font-family: var(--font-mono); font-size: 12px; }
.chip-f:hover { border-color: var(--accent-line); }
.chip-f.is-on { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }
.chip-f.is-on span { color: inherit; opacity: .7; }
.toolbar__sort {
  display: flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim);
}
.toolbar__sort select {
  font: 16px var(--font); color: var(--text); background: var(--panel); min-height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 8px 14px;
}
.cat-empty { text-align: center; padding: 40px 0; color: var(--text-dim); }

/* ---- 12. Product page ------------------------------------------------- */

.pdp-sec { padding-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-faint); margin-bottom: 24px; }
.crumbs a { position: relative; color: var(--text-dim); text-decoration: none; }
.crumbs a::after { content: ""; position: absolute; left: -4px; right: -4px; top: -11px; height: 44px; }
.crumbs a:hover { color: var(--accent); }
.pdp {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 72px); align-items: start;
}
.pdp__gallery { position: sticky; top: 130px; }
.pdp__media {
  position: relative; overflow: hidden;
  background: var(--bg-alt); border-radius: var(--radius-panel);
}
.pdp__media > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 42%; }
.mchips { position: absolute; left: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.mchips span {
  font: 500 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 11px; color: var(--text); border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--panel) 82%, transparent); border: 1px solid var(--line-soft);
  backdrop-filter: blur(6px);
}
.pdp__thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumb {
  width: 76px; height: 76px; padding: 0; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--bg-alt);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }

.pbadges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.pbadge {
  font: 500 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 11px; color: var(--text-dim); border: 1px solid var(--line); border-radius: var(--radius-pill);
}
.pbadge--accent { color: var(--btn-ink); background: var(--accent); border-color: var(--accent); }
.pdp__title { font-size: clamp(36px, 4vw, 56px); line-height: 1.02; margin: 8px 0 12px; font-weight: var(--fw-bold); }
.pdp__lede { font-size: 17px; line-height: 1.7; max-width: 52ch; }
.pdp__pricerow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin: 22px 0 6px; }
.pdp__price { font: var(--fw-bold) 36px/1 var(--font-display); color: var(--accent); letter-spacing: -.02em; }
.pdp__compare { font-size: 17px; color: var(--text-faint); }
.pdp__per { font-size: var(--fs-small); color: var(--text-dim); }

.opt { margin-top: 24px; }
.opt__label {
  display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px;
  font: 500 12px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text);
}
.opt__label span { letter-spacing: 0; text-transform: none; font-family: var(--font); font-size: 14px; color: var(--text-dim); }
.vpills { display: flex; flex-wrap: wrap; gap: 8px; }
.vpills .vpill { padding: 12px 18px; font-size: 14px; min-height: 44px; }

.tiers { display: grid; gap: 8px; }
.tier {
  display: flex; align-items: center; gap: 14px; cursor: pointer; min-height: 56px;
  padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel); transition: border-color var(--t-fast), background var(--t-fast);
}
.tier:hover { border-color: var(--accent-line); }
.tier.is-on { border-color: var(--text); background: var(--surface-hover); }
.tier input { accent-color: var(--oxblood); width: 18px; height: 18px; flex: none; }
.tier__main { flex: 1; min-width: 0; }
.tier__q { display: block; font: var(--fw-bold) 15px/1.2 var(--font-display); color: var(--text); }
.tier__ea { display: block; margin-top: 3px; font-size: 13px; color: var(--text-dim); }
.tier__right { display: flex; align-items: center; gap: 10px; text-align: right; }
.tier__tag {
  font: 500 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 9px; border-radius: var(--radius-pill); background: var(--accent); color: var(--btn-ink);
}
.tier__save { font-size: 13px; color: var(--accent); white-space: nowrap; }
.tier__total { font: var(--fw-bold) 16px/1 var(--font-display); color: var(--text); min-width: 74px; }

.btn--atc { margin-top: 22px; min-height: 56px; font-size: 16px; }
.delivery { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: var(--fs-small); color: var(--text-body); }
.delivery svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.delivery b { color: var(--text); }
.coalink {
  display: inline-block; margin-top: 10px; font-size: var(--fs-small);
  color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); position: relative;
}
.coalink::after { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 44px; }
.shipbar { margin-top: 18px; }
.shipbar__msg { font-size: 13px; color: var(--text-dim); margin-bottom: 7px; }
.shipbar__track { height: 4px; background: var(--line-soft); border-radius: 4px; overflow: hidden; }
.shipbar__track i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s var(--ease); }

.trustrow {
  list-style: none; padding: 0; margin: 24px 0 18px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
.trustrow li {
  padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  background: var(--panel); font-size: 12px; line-height: 1.45; color: var(--text-dim);
}
.trustrow b { display: block; font: var(--fw-bold) 14px var(--font-display); color: var(--text); margin-bottom: 3px; }
.pdp__info .faq-item { margin-bottom: 8px; }
.pdp__info .faq-item summary { padding: 18px 20px; }

.specs { margin: 0; }
.spec { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line-faint); font-size: 14px; }
.spec:last-child { border-bottom: 0; }
.spec dt { color: var(--text-dim); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding-top: 3px; }
.spec dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }

.pdp__detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.pdp__detail h2 { margin: 6px 0 18px; }
.prose p { line-height: 1.8; margin-bottom: 14px; }
.prose__note { font-size: var(--fs-small); color: var(--text-dim); border-left: 2px solid var(--accent-line); padding-left: 14px; }
.prose--page { max-width: 760px; }
.prose--page h2 { font-size: 24px; margin: 36px 0 12px; }
.footer-notice--card { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; background: var(--panel); }
.footer-notice--card .footer-notice__label { color: var(--accent); font-family: var(--font-mono); letter-spacing: .14em; }

.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); transform: translateY(100%); transition: transform var(--t-med) var(--ease);
}
.stickybar.is-on { transform: none; }
.stickybar__in { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.stickybar img { width: 38px; height: 52px; object-fit: cover; border-radius: 8px; }
.stickybar__mid { flex: 1; min-width: 0; }
.stickybar__name { font: var(--fw-bold) 16px var(--font-display); color: var(--text); }
.stickybar__sub { font-size: 13px; color: var(--text-dim); }
.stickybar__total { font: var(--fw-bold) 18px var(--font-display); color: var(--accent); }

/* ---- 13. Footer, drawer, gate ---------------------------------------- */

.site-footer { border-radius: var(--radius-panel) var(--radius-panel) 0 0; background: var(--panel-grad); border: 0; }
.footer-grid { border-bottom-color: var(--line-soft); }
.footer-logo { display: inline-block; padding: 12px 0; }
.footer-logo .logo { height: 42px; }
.footer-brand p { color: var(--text-body); font-size: 15px; }
.footer-col h4 { font-family: var(--font-display); font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: var(--fw-bold); color: var(--accent); }
.footer-col h4::before { display: none; }
.footer-col a, .footer-col address {
  font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--text-body);
  padding: 10px 0; overflow-wrap: anywhere;
}
.footer-col a:hover { color: var(--text); }
.footer-notice__label { font-family: var(--font-mono); letter-spacing: .14em; }
.footer-bottom span { font-family: var(--font-mono); letter-spacing: .06em; font-size: 11px; }

.cart-drawer__title { font-weight: var(--fw-bold); text-transform: none; letter-spacing: -.01em; }
.cart-viewall { display: block; text-align: center; margin: 10px 0 4px; font-size: 13px; color: var(--text-dim); }
.line__meta { font-size: 12px; color: var(--text-dim); margin: 2px 0 6px; line-height: 1.4; }
.cartline__meta { font-size: 12px; color: var(--text-dim); margin-bottom: 4px; }
.line img, .rec img { object-fit: cover; border-radius: 8px; }

.gate { background: var(--panel-grad); }
.gate__brand { justify-content: space-between; background: transparent; }
.gate__mark { display: flex; align-items: center; flex: 1 1 auto; }
.gate__mark .logo { height: auto; width: min(100%, 340px); }
.gate__est { font-family: var(--font-mono); letter-spacing: .16em; }
.gate__tagline { font-size: 16px; color: var(--text-body); max-width: 300px; }
.gate__checks label { border-radius: var(--radius-sm); }
.gate__checks label:has(input:checked) { border-color: var(--accent); }
@media (max-width: 820px) {
  .gate__mark { flex: 0 0 auto; }
  .gate__mark .logo { width: auto; height: 32px; }
}
.draftbanner {
  border: 1px solid var(--accent-line); border-left: 3px solid var(--accent);
  background: var(--accent-soft); padding: 14px 16px; margin-bottom: 26px;
  font-size: var(--fs-small); color: var(--text); border-radius: var(--radius-sm);
}
.notfound { display: flex; gap: 12px; flex-wrap: wrap; }
.legal-updated { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); margin: 0 0 18px; }
.prose--page ul { padding-left: 20px; display: grid; gap: 8px; margin: 0 0 16px; }
.prose--page a { color: var(--accent); }
.prose--page ul.assumptions li { color: var(--text-dim); }

/* ---- 14. Cart page and checkout --------------------------------------- */

.cartgrid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 28vw, 360px); gap: clamp(28px, 4vw, 60px); align-items: start; }
.cartlines { min-width: 0; }
.cartline { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.cartline:first-child { padding-top: 0; }
.cartline:last-child { border-bottom: 0; }
.cartline__img { width: 84px; height: 112px; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg-alt); }
.cartline__mid { min-width: 0; }
.cartline__name { display: block; font: var(--fw-bold) 16px var(--font-display); color: var(--text); text-decoration: none; margin-bottom: 4px; }
.cartline__name:hover { color: var(--accent); }
.cartline__each, .cartline__tier, .cartline__next { font-size: 12px; font-family: var(--font-mono); }
.cartline__each { color: var(--text-dim); margin-bottom: 2px; }
.cartline__tier { color: var(--accent); }
.cartline__next { color: var(--text-faint); }
.cartline .qty { margin-top: 12px; }
.cartline__right { text-align: right; white-space: nowrap; }
.cartline__price { font-weight: var(--fw-bold); color: var(--text); }
.cartline__price del { display: block; font-weight: 400; color: var(--text-faint); font-size: var(--fs-small); }
.cartline__remove { margin-top: 8px; background: none; border: 0; padding: 12px 0; font-size: 11px; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); cursor: pointer; }
.cartline__remove:hover { color: var(--text-error); }
.cartsum { position: sticky; top: 130px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px 24px; }
.cartsum__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: var(--fs-small); color: var(--text-body); border-bottom: 1px solid var(--line-soft); }
.cartsum .eyebrow + .cartsum__row { border-top: 1px solid var(--line-soft); margin-top: 14px; }
.cartsum__row--off { color: var(--accent); }
.cartsum__row--total { border-bottom: 0; font-size: 20px; font-weight: var(--fw-bold); color: var(--text); }
.cartsum__note, .cartsum__fine { font-size: 12px; color: var(--text-faint); margin: 8px 0 14px; }
.cartsum .btn--block { margin-top: 6px; }
.cartsum__back { display: block; text-align: center; margin-top: 14px; font-size: var(--fs-small); color: var(--text-dim); }
.cartempty { text-align: center; padding: clamp(30px, 6vw, 70px) 0; }
.cartempty h2 { margin-bottom: 10px; }
.cartempty p { color: var(--text-dim); max-width: 44ch; margin: 0 auto 26px; }
.coform { min-width: 0; }
.coform__h { font-size: 22px; margin: 34px 0 14px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.coform > .coform__h:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.coform__note { font-size: var(--fs-small); color: var(--text-dim); margin: -6px 0 16px; }
.cfields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.cfield--wide { grid-column: 1 / -1; }
.cfield__label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.cfield__input { width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cfield__input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.cfield__err { min-height: 15px; margin-top: 4px; font-size: 12px; color: var(--text-error); }
.cfield.is-bad .cfield__input { border-color: var(--text-error); }
.copay { margin-bottom: 8px; }
.paymock { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 18px; background: var(--panel); }
.paymock__head { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.paymock__note { font-size: var(--fs-small); color: var(--text-dim); margin-bottom: 14px; }
.paymock__choices { display: grid; gap: 8px; }
.paymock__choice { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--text); cursor: pointer; min-height: 44px; }
.coform__error { margin: 16px 0 10px; font-size: var(--fs-small); color: var(--text-error); }
.coform__error:empty { margin: 0; }
.coform__fine { margin-top: 14px; font-size: 12px; color: var(--text-faint); }
.cosum__line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 7px 0; font-size: var(--fs-small); color: var(--text-body); }
.cosum__qty { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.cosum__name { min-width: 0; }
.cosum__val { white-space: nowrap; }
.testflag { border: 1px solid var(--accent-line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent-soft); padding: 14px 16px; margin-bottom: 26px; font-size: var(--fs-small); color: var(--text); }
.ordercard { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px 24px; max-width: 520px; margin-bottom: 26px; }
.ordercard__ref { font-family: var(--font-mono); font-size: 24px; letter-spacing: .04em; color: var(--text); margin: 6px 0 12px; }
.ordercard__meta { font-size: var(--fs-small); color: var(--text-dim); margin-bottom: 14px; }
.ordercard__lines { border-top: 1px solid var(--line-soft); padding-top: 10px; }

/* ---- 15. COA history, opt-ins ----------------------------------------- */

.coa__intro { max-width: 64ch; margin: -18px 0 22px; }
.coa__head { font: 500 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.coa__wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--panel); }
.coa__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.coa__table th { text-align: left; font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.coa__table td { padding: 12px 14px; border-bottom: 1px solid var(--line-faint); color: var(--text-body); white-space: nowrap; }
.coa__table tr:last-child td { border-bottom: 0; }
.coa__table a { color: var(--text); text-decoration: none; }
.coa__batch { font-family: var(--font-mono); color: var(--text); }
.coa__str { color: var(--text-dim); font-size: 12px; margin-left: 4px; }
.coa__pdf { color: var(--accent) !important; border-bottom: 1px solid var(--accent-line); }
.coa__na { color: var(--text-faint); }
.coa__empty { padding: 20px 22px; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--text-dim); max-width: 760px; background: var(--panel); }

.cfield--check { margin-top: -4px; }
.cfield__check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: var(--fs-small); color: var(--text); min-height: 44px; }
.cfield__check input { accent-color: var(--oxblood); width: 20px; height: 20px; margin-top: 1px; flex: none; }
.cfield__fine { font-size: 12px; line-height: 1.5; color: var(--text-faint); margin: 6px 0 0 30px; max-width: 70ch; }

/* ---- 16. Research-use disclaimer and entry gate ----------------------
   The disclaimer is required VERBATIM in header, footer, product pages,
   cart and checkout (COMPLIANCE.md section 2).                           */

.ruo-line { margin: 10px 0 0; font-size: 12px; color: var(--text-dim); text-align: center; }
.cart-ruo { font-size: 12px; color: var(--text-dim); margin: -4px 0 12px; }
.gate__ruo { margin: 18px 0 0; font-size: 12px; color: var(--text-dim); }
/* Styled like a heading, but NOT a heading: the gate is the first element
   on every page, so an h1 here would be every page's h1. */
.gate__title { margin: 0 0 16px; font: var(--fw-bold) clamp(30px, 3.6vw, 46px)/1.08 var(--font-display); letter-spacing: -.025em; color: var(--text); }

/* Painted by the <head> script before the page: no flash of content. */
html.rbx-gate { overflow: hidden; }
html.rbx-gate #researcher-gate { display: flex; }

/* ---- 17. Responsive --------------------------------------------------- */

@media (max-width: 1180px) {
  .pgrid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .rhero { grid-template-columns: minmax(0, 1fr); }
  .rhero__art { order: -1; max-width: 420px; margin: -10px auto -20px; }
  .classgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdp, .pdp__detail, .cartgrid, .faq__in { grid-template-columns: minmax(0, 1fr); }
  .pdp__gallery, .cartsum, .faq__head { position: static; }
  .pdp__media > img { aspect-ratio: 1 / 1; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  :root { --section-y: 64px; --radius-panel: 24px; }
  .pgrid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qa__grid { grid-template-columns: minmax(0, 1fr); }
  .trustrow { grid-template-columns: minmax(0, 1fr); }
  .tier__save { display: none; }
  .spec { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cartline { grid-template-columns: 64px minmax(0, 1fr); }
  .cartline__img { width: 64px; height: 86px; }
  .cartline__right { grid-column: 2; text-align: left; }
  .cfields { grid-template-columns: minmax(0, 1fr); }
  .stickybar img { display: none; }
  .toolbar { align-items: flex-start; }
  .pcard__body { padding: 12px 12px 14px; }
  .pcard__title { font-size: 16px; }
  .pcard__vars .vpill { padding: 7px 9px; font-size: 11px; min-height: 32px; }
  .pcard .btn { font-size: 13px; padding: 10px 8px; }
  .pcard__pending { font-size: 10px; padding: 9px 6px; }
  .classcard h3 { font-size: 21px; }
  .rhero__lede, .phead__lede, .banner p, .qa__card p { font-size: 16px; }
  .banner::before { background: linear-gradient(180deg, var(--bg) 45%, color-mix(in srgb, var(--bg) 70%, transparent)); }
  .site-footer { border-radius: var(--radius-panel) var(--radius-panel) 0 0; }
}
@media (max-width: 480px) {
  .classgrid { grid-template-columns: minmax(0, 1fr); }
  .classcard { aspect-ratio: 5 / 4; }
  .classcard img { left: 40%; width: 60%; height: 100%; bottom: 0; object-position: 50% 50%; }
  .classcard::before { background: linear-gradient(90deg, var(--bg) 42%, color-mix(in srgb, var(--bg) 40%, transparent) 70%, transparent); }
  .classcard__copy { max-width: 62%; }
  .trust { gap: 8px; }
  .trust__item { flex-direction: column; gap: 10px; padding: 14px; }
  .trust__item b { font-size: 14px; }
  .trust__item span { font-size: 12px; }
}


/* =====================================================================
   AWAITING LOT VERIFICATION

   A strength whose current supplier lot is not attested against a
   laboratory report stays listed and is not orderable. Availability is
   per STRENGTH: GHK-Cu 100 ships while GHK-Cu 50 does not.

   Not "out of stock", which would also be untrue. There may be stock;
   what is missing is the attestation.
   ===================================================================== */
.pcard__pending {
  font: 500 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  text-align: center; padding: 12px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill); border: 1px dashed var(--line); color: var(--text-dim);
}
.vpill.is-pending { opacity: .55; text-decoration: line-through; cursor: not-allowed; }
.vpill.is-pending.is-on { opacity: 1; text-decoration: none; }
.pending {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); background: var(--panel);
  padding: 16px 18px; margin: 22px 0 6px;
}
.pending__head { font: 500 12px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin-bottom: 7px; }
.pending p { margin: 0; font-size: 14px; line-height: 1.6; }
.stickybar__pending { font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; }

/* ---- Policy contents list -------------------------------------------- */
.legal-toc {
  max-width: 760px; margin: 0 0 30px; padding: 20px 22px;
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--panel);
}
.legal-toc__title { font: 500 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; columns: 2 260px; column-gap: 28px; }
.legal-toc li { break-inside: avoid; }
.legal-toc a { display: block; padding: 8px 0; min-height: 44px; font-size: 14px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-faint); }
.legal-toc a:hover { color: var(--accent); }
.prose--page h2 span[id] { scroll-margin-top: 130px; }

/* ---- Lab report cards and library ------------------------------------- */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.rcard {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px 22px; background: var(--panel);
  border: 1px solid var(--line-soft); border-left: 3px solid var(--line); border-radius: var(--radius-sm);
}
.rcard--lot { border-left-color: var(--accent); }
.rcard__kind { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font: 500 11px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.rcard--lot .rcard__kind { color: var(--accent); }
.rcard__kind span { color: var(--text-dim); letter-spacing: .04em; }
.rcard__title { font-size: 19px; margin: 0; }
.rcard__title a { text-decoration: none; color: var(--text); }
.rcard__title a:hover { color: var(--accent); }
.rcard__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.rcard__meta dt, .rcard__res dt { font: 500 10px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.rcard__meta dd { margin: 3px 0 0; font: 500 13px/1.35 var(--font-mono); color: var(--text); overflow-wrap: anywhere; }
.rcard__test { margin: 0; font-size: 13px; color: var(--text-dim); }
.rcard__results { margin: 0; border-top: 1px solid var(--line-faint); }
.rcard__res { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-faint); }
.rcard__res dt { padding-top: 2px; }
.rcard__res dd { margin: 0; font: 600 14px/1.35 var(--font-mono); color: var(--text); text-align: right; }
.rcard__note, .rcard__rel { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-body); }
.rcard__verify { margin-top: auto; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-alt); font-size: 13px; line-height: 1.6; color: var(--text); }
.rcard__verify span { display: block; font: 500 10px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.rcard__verify a { color: var(--accent); }
.rcard__verify b { font-family: var(--font-mono); font-weight: 600; overflow-wrap: anywhere; }
.coa + .coa { margin-top: 0; }
.coa__head { margin-bottom: 14px; }

.rsearch { max-width: 640px; margin: 0 0 24px; }
.rsearch__label { display: block; font: 500 12px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: 8px; }
.rsearch__input { width: 100%; min-height: 50px; padding: 12px 18px; font: 16px var(--font); color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-pill); }
.rsearch__input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.rsearch__status { margin: 8px 0 0; font-size: 13px; color: var(--text-dim); }
@media (max-width: 480px) { .rcard__meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.rcard__file { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   FORMS, NEWSLETTER, HELP WIDGET, WHOLESALE, ADMIN
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fform { margin: 18px 0 8px; }
.fform--card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.ffield { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ffield--wide { grid-column: 1 / -1; }
.ffield label { font: 500 11px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.ffield__opt { text-transform: none; letter-spacing: 0; font-family: var(--font); }
.ffield input, .ffield select, .ffield textarea, .news input[type="email"], .help__search {
  width: 100%; min-height: 48px; padding: 12px 14px; font: 16px/1.4 var(--font); color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.ffield textarea { resize: vertical; min-height: 96px; }
.ffield input:focus, .ffield select:focus, .ffield textarea:focus, .news input:focus, .help__search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ffield.is-bad input, .ffield.is-bad select, .ffield.is-bad textarea { border-color: var(--text-error); }
.ffield__err { font-size: 12px; color: var(--text-error); }
.ffield__hint { margin: 0; font-size: 12px; color: var(--text-dim); }
.fattest { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 14px 16px; margin: 18px 0 14px; }
.fattest legend { padding: 0 6px; font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.fcheck { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 14px; color: var(--text); cursor: pointer; }
.fcheck input, .news__consent input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--accent); }
.fnote { font-size: 13px; color: var(--text-dim); margin: 14px 0; }
.fstatus { margin: 10px 0 0; font-size: 14px; }
.fstatus.is-bad { color: var(--text-error); }
.fdone { margin: 18px 0; padding: 18px 20px; border-radius: var(--radius-sm); border-left: 3px solid var(--accent); background: var(--surface-hover); color: var(--text); font-size: 15px; line-height: 1.6; }

/* Newsletter, at the top of the footer */
.footer-news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding: 56px 0 44px; border-bottom: 1px solid var(--line-soft); }
.footer-news h2 { font-size: clamp(26px, 3vw, 36px); margin: 6px 0 10px; }
.footer-news p { margin: 0; color: var(--text-body); }
.news__label { display: block; font: 500 11px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.news__row { display: flex; gap: 10px; }
.news__row input { flex: 1; min-width: 0; border-radius: var(--radius-pill); padding-left: 18px; }
.news__consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--text-body); cursor: pointer; }

/* Help widget: bottom right */
.help { position: fixed; right: 16px; bottom: 16px; z-index: calc(var(--z-sticky) + 5); }
.help__toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px; cursor: pointer;
  border: 0; border-radius: var(--radius-pill); background: var(--oxblood); color: var(--cream);
  font: var(--fw-med) 15px/1 var(--font-display); box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .45);
}
.help__toggle svg { width: 22px; height: 22px; }
.help.is-open .help__toggle { display: none; }
.help__panel {
  position: absolute; right: 0; bottom: 0; width: min(400px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: var(--panel-grad); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55);
}
.help__panel[hidden] { display: none; }
.help__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 18px 12px; border-bottom: 1px solid var(--line-soft); }
.help__title { font: var(--fw-bold) 19px/1.2 var(--font-display); color: var(--text); }
.help__sub { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.help__view { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px 18px; overflow-y: auto; }
.help__view[hidden] { display: none; }
.help__search { background: var(--surface); border-color: var(--line); color: var(--text); }
.help__list { display: flex; flex-direction: column; gap: 6px; }
.help__item { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--surface); }
.help__item summary { cursor: pointer; padding: 12px 14px; min-height: 44px; font-size: 14px; color: var(--text); list-style: none; }
.help__item summary::-webkit-details-marker { display: none; }
.help__item[open] summary { color: var(--accent); }
.help__ans { padding: 0 14px 12px; font-size: 13px; line-height: 1.6; color: var(--text-body); }
.help__ans p { margin: 0 0 8px; }
.help__ans a { color: var(--accent); }
.help__none { font-size: 13px; color: var(--text-dim); }
.help__back { align-self: flex-start; background: none; border: 0; color: var(--text-dim); cursor: pointer; min-height: 44px; padding: 0; font-size: 13px; }
.help .fform { margin: 0; }
.help .fgrid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.help .ffield input, .help .ffield select, .help .ffield textarea { background: var(--surface); color: var(--text); border-color: var(--line); }
.help .ffield select option { color: #2b1d1f; }
.help .fnote { font-size: 12px; margin: 10px 0; }
.help .btn { width: 100%; }

/* Wholesale */
.rhero--wholesale { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.wstats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wstats li { padding: 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line-soft); }
.wstats b { display: block; font: var(--fw-med) 40px/1 var(--font-display); color: var(--accent); letter-spacing: -.03em; }
.wstats span { display: block; margin-top: 6px; font-size: 13px; color: var(--text-body); }
.wbens { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.wben { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft); }
.wben b { display: block; font: var(--fw-bold) 18px/1.25 var(--font-display); color: var(--text); margin-bottom: 8px; }
.wben span { font-size: 14px; color: var(--text-body); }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wfit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wfit__col { padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft); }
.wlist { list-style: none; margin: 8px 0 0; padding: 0; }
.wlist li { position: relative; padding: 9px 0 9px 28px; border-bottom: 1px solid var(--line-faint); font-size: 15px; color: var(--text); }
.wlist li::before { position: absolute; left: 0; top: 9px; font-weight: 700; }
.wlist--yes li::before { content: "\2713"; color: var(--ok); }
.wlist--no li::before { content: "\2715"; color: var(--text-error); }
.wfit__note { margin: 14px 0 0; font-size: 13px; color: var(--text-dim); }
.wapply { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.wapply__copy { position: sticky; top: 130px; }
.wapply__small { font-size: 13px; color: var(--text-dim); }
.wapply__small a { color: var(--accent); }

/* Admin inbox */
.admin-body { background: var(--bg); }
.admin { padding-top: 28px; padding-bottom: 60px; }
.admin__top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font: 500 12px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.admin__top .logo { height: 28px; width: auto; }
.admin__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.admin__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 13px; color: var(--text-dim); }
.admin__wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--panel); }
.admin__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin__table th { text-align: left; padding: 10px 12px; font: 500 10px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin__table td { padding: 10px 12px; border-bottom: 1px solid var(--line-faint); vertical-align: top; color: var(--text); }
.admin__long { min-width: 280px; white-space: pre-wrap; }
.admin__muted { color: var(--text-dim); }

@media (max-width: 1024px) {
  .wbens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rhero--wholesale, .wapply, .footer-news { grid-template-columns: minmax(0, 1fr); }
  .wapply__copy { position: static; }
}
@media (max-width: 640px) {
  .fgrid, .wfit, .wbens, .steps--4 { grid-template-columns: minmax(0, 1fr); }
  .news__row { flex-direction: column; }
  .news__row .btn { width: 100%; }
  .help__toggle span { display: none; }
  .help__toggle { padding: 0; width: 52px; height: 52px; justify-content: center; }
}
/* Product pages: lift the help button above the sticky add-to-cart bar when it shows. */
body:has(.stickybar.is-on) .help { bottom: 84px; }
