:root, [data-theme="dark"] {
  --bg-blue: #2a3fc4;
  --bg-purple: #6c46d6;
  --bg-magenta: #b962d6;
  --accent-cyan: #4dc8d4;
  --accent-pink: #ff4d8a;
  --accent-grad: linear-gradient(135deg, #4dc8d4 0%, #b962d6 100%);

  --bg-deep: #14161d;
  --bg-radial-1: rgba(185, 98, 214, 0.10);
  --bg-radial-2: rgba(108, 70, 214, 0.10);
  --bg-radial-3: rgba(42, 63, 196, 0.14);
  --bg-linear: linear-gradient(180deg, #14161d 0%, #1c2030 50%, #14161d 100%);
  --grid-dot: rgba(255,255,255,0.05);
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.5);
  --card-bg: rgba(28, 32, 48, 0.55);
  --card-border: rgba(255, 255, 255, 0.10);
  --header-bg: rgba(20, 22, 30, 0.72);
  --header-border: rgba(255, 255, 255, 0.07);
  --footer-bg: rgba(15, 17, 24, 0.78);
  --icon-btn-bg: rgba(255,255,255,0.05);
  --icon-btn-bg-hover: rgba(255,255,255,0.10);
  --icon-btn-border: rgba(255,255,255,0.09);
  --input-bg: rgba(255,255,255,0.05);
  --modal-overlay: rgba(5, 6, 10, 0.92);
  --modal-bg: linear-gradient(160deg, rgba(28,32,48,0.96), rgba(15,17,24,0.96));
  --lab-strip-bg: linear-gradient(120deg, rgba(108,70,214,0.18), rgba(185,98,214,0.12), rgba(42,63,196,0.18));
  --newsletter-bg: rgba(20, 22, 30, 0.65);
  --eyebrow-bg: rgba(255,255,255,0.05);
  --eyebrow-border: rgba(255,255,255,0.12);
  --float-card-bg: rgba(20, 22, 30, 0.88);
  --tag-bg: rgba(0,0,0,0.6);
  --tag-border: rgba(255,255,255,0.15);
  --ruo-bg: rgba(255, 77, 138, 0.10);
  --ruo-border: rgba(255, 77, 138, 0.28);
  --ruo-text: #ff8ab0;
  --compliance-bar-bg: linear-gradient(90deg, rgba(255, 74, 138, 0.10), rgba(77, 200, 212, 0.10));
  --compliance-bar-text: rgba(255,255,255,0.85);
  --product-bg: linear-gradient(135deg, #1a1f2e 0%, #232842 60%, #1c2030 100%);
  --hero-visual-bg: linear-gradient(135deg, rgba(28,32,48,0.6), rgba(35,40,66,0.6));
  --table-row-alt: rgba(255,255,255,0.03);
  --pill-bg: rgba(77, 200, 212, 0.15);
  --pill-text: #4dc8d4;
  --pill-border: rgba(77, 200, 212, 0.3);
  --success-bg: rgba(72, 207, 132, 0.15);
  --success-text: #6ce0a4;
  --success-border: rgba(72, 207, 132, 0.35);
  --warn-bg: rgba(245, 196, 92, 0.15);
  --warn-text: #f5c45c;
  --warn-border: rgba(245, 196, 92, 0.35);
}

[data-theme="light"] {
  --bg-deep: #f5f6f8;
  --bg-radial-1: rgba(185, 98, 214, 0.06);
  --bg-radial-2: rgba(108, 70, 214, 0.05);
  --bg-radial-3: rgba(42, 63, 196, 0.06);
  --bg-linear: linear-gradient(180deg, #f5f6f8 0%, #eaecf0 50%, #f5f6f8 100%);
  --grid-dot: rgba(20, 22, 30, 0.05);
  --text: #14161d;
  --text-dim: rgba(20, 22, 30, 0.72);
  --text-muted: rgba(20, 22, 30, 0.5);
  --card-bg: rgba(255, 255, 255, 0.82);
  --card-border: rgba(20, 22, 30, 0.10);
  --header-bg: rgba(255, 255, 255, 0.78);
  --header-border: rgba(20, 22, 30, 0.08);
  --footer-bg: rgba(240, 242, 246, 0.88);
  --icon-btn-bg: rgba(20, 22, 30, 0.05);
  --icon-btn-bg-hover: rgba(20, 22, 30, 0.10);
  --icon-btn-border: rgba(20, 22, 30, 0.11);
  --input-bg: rgba(255, 255, 255, 0.88);
  --modal-overlay: rgba(20, 22, 30, 0.55);
  --modal-bg: linear-gradient(160deg, #ffffff 0%, #f0f2f6 100%);
  --lab-strip-bg: linear-gradient(120deg, rgba(108,70,214,0.07), rgba(185,98,214,0.05), rgba(42,63,196,0.07));
  --newsletter-bg: rgba(255, 255, 255, 0.82);
  --eyebrow-bg: rgba(20, 22, 30, 0.04);
  --eyebrow-border: rgba(20, 22, 30, 0.10);
  --float-card-bg: rgba(255, 255, 255, 0.94);
  --tag-bg: rgba(20, 22, 30, 0.80);
  --tag-border: rgba(255, 255, 255, 0.2);
  --ruo-bg: rgba(255, 77, 138, 0.06);
  --ruo-border: rgba(255, 77, 138, 0.36);
  --ruo-text: #c43873;
  --compliance-bar-bg: linear-gradient(90deg, rgba(255, 74, 138, 0.06), rgba(77, 200, 212, 0.06));
  --compliance-bar-text: rgba(20, 22, 30, 0.85);
  --product-bg: linear-gradient(135deg, #eef0f4 0%, #e2e6ed 60%, #e8eaef 100%);
  --hero-visual-bg: linear-gradient(135deg, rgba(232,234,239,0.9), rgba(220,224,232,0.9));
  --table-row-alt: rgba(26,15,61,0.025);
  --pill-bg: rgba(77, 200, 212, 0.12);
  --pill-text: #2a8b95;
  --pill-border: rgba(77, 200, 212, 0.4);
  --success-bg: rgba(34, 145, 90, 0.1);
  --success-text: #1f7a4d;
  --success-border: rgba(34, 145, 90, 0.35);
  --warn-bg: rgba(180, 130, 20, 0.08);
  --warn-text: #8a6210;
  --warn-border: rgba(180, 130, 20, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 20% 10%, var(--bg-radial-1) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, var(--bg-radial-2) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 60%, var(--bg-radial-3) 0%, transparent 60%),
    var(--bg-linear);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}

.compliance-bar {
  background: var(--compliance-bar-bg);
  border-bottom: 1px solid var(--header-border);
  padding: 8px 24px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--compliance-bar-text);
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}
.nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { height: 56px; width: auto; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text .name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.04em;
}
.brand-text .sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

nav.primary ul {
  display: flex;
  list-style: none;
  gap: 28px;
}
nav.primary a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: color .2s ease;
  position: relative;
}
nav.primary a:hover,
nav.primary a.active { color: var(--text); }
nav.primary a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--accent-grad);
  border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--icon-btn-bg);
  border: 1px solid var(--icon-btn-border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  position: relative;
  transition: background .2s ease;
  text-decoration: none;
}
.icon-btn:hover { background: var(--icon-btn-bg-hover); }
.icon-btn svg { width: 18px; height: 18px; }
.badge {
  position: absolute;
  top: -4px; right: -4px;
  background: linear-gradient(135deg, #ff4d8a, #b962d6);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  display: grid;
  place-items: center;
}
.badge[data-count="0"] { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #6c46d6 0%, #b962d6 100%);
  color: #fff;
  box-shadow: 0 8px 32px rgba(108, 70, 214, 0.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 40px rgba(185, 98, 214, 0.55); }
.btn-ghost {
  background: var(--icon-btn-bg);
  color: var(--text);
  border: 1px solid var(--icon-btn-border);
}
.btn-ghost:hover { background: var(--icon-btn-bg-hover); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--eyebrow-bg);
  border: 1px solid var(--eyebrow-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero h1 .gradient,
.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--header-border);
}
.stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.1;
  border-radius: 24px;
  overflow: hidden;
  background: var(--hero-visual-bg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  border: 1px solid var(--card-border);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15,8,35,0.55) 100%);
  pointer-events: none;
}
.hero-visual .float-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: var(--float-card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
}
.float-card .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.float-card .icon svg { width: 20px; height: 20px; color: white; }
.float-card .info .title {
  font-weight: 700;
  font-size: 14px;
}
.float-card .info .desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section.tight { padding: 40px 24px; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head.left { text-align: left; }
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-sub {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}
.section-head.left .section-sub { margin: 0; }

/* Page header (smaller) */
.page-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 24px;
}
.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px 0 14px;
  line-height: 1.05;
}
.page-header p {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 720px;
  line-height: 1.55;
}
.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-dim); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .sep { opacity: .5; }

/* Products */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.products.three { grid-template-columns: repeat(3, 1fr); }
.product {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.product:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 20px 50px rgba(108,70,214,0.3);
}
.product .img-wrap {
  aspect-ratio: 1 / 1;
  background: var(--product-bg);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.product .img-wrap img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform .35s ease;
}
.product:hover .img-wrap img { transform: scale(1.05); }
.product .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--tag-bg);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--tag-border);
}
.product .body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product .name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
}
.product .meta {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.product .footer-row {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product .price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
}
.product .price small {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 2px;
}
.product .add-btn {
  background: var(--icon-btn-bg);
  border: 1px solid var(--icon-btn-border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: background .2s ease;
}
.product .add-btn:hover { background: linear-gradient(135deg, #6c46d6, #b962d6); border-color: transparent; color: #fff; }
.product .add-btn.added { background: linear-gradient(135deg, #4dc8d4, #6c46d6); color: #fff; border-color: transparent; }

/* Filter rail (shop) */
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.filter-rail {
  position: sticky;
  top: 96px;
  align-self: start;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 22px;
  backdrop-filter: blur(10px);
}
.filter-rail h4 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  margin: 18px 0 10px;
}
.filter-rail h4:first-child { margin-top: 0; }
.filter-rail .chip {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease, color .15s ease;
}
.filter-rail .chip:hover { background: var(--icon-btn-bg-hover); color: var(--text); }
.filter-rail .chip.active {
  background: var(--icon-btn-bg);
  border-color: var(--icon-btn-border);
  color: var(--text);
}
.filter-rail .chip .count {
  float: right;
  color: var(--text-muted);
  font-size: 12px;
}
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.shop-toolbar .results { color: var(--text-dim); font-size: 14px; }
.shop-toolbar .controls { display: flex; gap: 10px; align-items: center; }
.search-input,
select.input {
  background: var(--input-bg);
  border: 1px solid var(--icon-btn-border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  min-width: 200px;
}
select.input { min-width: 160px; cursor: pointer; }
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus, select.input:focus { outline: 2px solid var(--accent-cyan); outline-offset: 1px; }

/* Product detail */
.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.pd-gallery {
  background: var(--product-bg);
  border-radius: 22px;
  border: 1px solid var(--card-border);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.pd-gallery img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.4));
}
.pd-info .tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pill {
  display: inline-flex;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-text);
  border: 1px solid var(--pill-border);
}
.pill.success { background: var(--success-bg); color: var(--success-text); border-color: var(--success-border); }
.pill.warn { background: var(--warn-bg); color: var(--warn-text); border-color: var(--warn-border); }
.pd-info h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 10px;
}
.pd-info .subtitle { color: var(--text-dim); font-size: 16px; margin-bottom: 22px; }
.pd-info .price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 22px 0;
  padding: 16px 0;
  border-top: 1px solid var(--header-border);
  border-bottom: 1px solid var(--header-border);
}
.pd-info .price-big {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.pd-info .price-row .unit { color: var(--text-muted); font-size: 14px; }
.pd-info p.desc { color: var(--text-dim); line-height: 1.65; margin-bottom: 22px; }
.pd-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.pd-stat {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px;
}
.pd-stat .lbl {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.pd-stat .val { font-weight: 700; font-size: 15px; }
.qty-row { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.qty {
  display: inline-flex;
  border: 1px solid var(--icon-btn-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--input-bg);
}
.qty button {
  width: 40px; height: 44px;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
}
.qty input {
  width: 50px; height: 44px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-actions .btn { flex: 1 1 200px; justify-content: center; }
.pd-meta {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  font-size: 13px;
  color: var(--text-dim);
}
.pd-meta .row { display: flex; gap: 8px; align-items: center; }
.pd-meta svg { width: 16px; height: 16px; color: var(--accent-cyan); }

.pd-tabs {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.pd-tabs .heads {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--header-border);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.pd-tabs .head {
  padding: 14px 18px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
}
.pd-tabs .head:hover { color: var(--text); }
.pd-tabs .head.active {
  color: var(--text);
  border-color: var(--accent-cyan);
}
.pd-tabs .panel { display: none; color: var(--text-dim); line-height: 1.7; max-width: 900px; }
.pd-tabs .panel.active { display: block; }
.pd-tabs .panel h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  margin: 22px 0 10px;
  color: var(--text);
}
.pd-tabs .panel ul { padding-left: 22px; margin: 10px 0; }
.pd-tabs .panel li { margin-bottom: 6px; }

/* Cart / Checkout */
.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.cart-items {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 8px 24px;
  backdrop-filter: blur(10px);
}
.cart-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--header-border);
}
.cart-row:last-child { border-bottom: none; }
.cart-row .thumb {
  width: 80px; height: 80px;
  border-radius: 12px;
  background: var(--product-bg);
  display: grid; place-items: center;
  overflow: hidden;
}
.cart-row .thumb img { width: 80%; height: 80%; object-fit: contain; }
.cart-row .info .name { font-weight: 700; font-size: 16px; }
.cart-row .info a { color: inherit; text-decoration: none; }
.cart-row .info .meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }
.cart-row .price { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; min-width: 80px; text-align: right; }
.cart-row .remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  font-family: inherit;
}
.cart-row .remove:hover { color: var(--accent-pink); }

.cart-summary {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 28px;
  align-self: start;
  position: sticky;
  top: 96px;
  backdrop-filter: blur(10px);
}
.cart-summary h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  margin-bottom: 20px;
}
.cart-summary .line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-dim);
}
.cart-summary .line.total {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--header-border);
  font-size: 18px;
  color: var(--text);
  font-weight: 700;
}
.cart-summary .total-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
}
.cart-summary .btn { width: 100%; justify-content: center; margin-top: 18px; }
.cart-empty {
  background: var(--card-bg);
  border: 1px dashed var(--card-border);
  border-radius: 18px;
  padding: 60px 28px;
  text-align: center;
  backdrop-filter: blur(10px);
}
.cart-empty h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  margin-bottom: 10px;
}
.cart-empty p { color: var(--text-dim); margin-bottom: 20px; }

/* Checkout form */
.checkout-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 32px;
  backdrop-filter: blur(10px);
}
.checkout-form h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  margin-bottom: 18px;
}
.checkout-form h3:not(:first-child) { margin-top: 28px; }
.field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
}
.field input,
.field select,
.field textarea {
  background: var(--input-bg);
  border: 1px solid var(--icon-btn-border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent-cyan); outline-offset: 1px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-options { display: grid; gap: 10px; }
.pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--icon-btn-border);
  background: var(--input-bg);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.pay-option:hover { background: var(--icon-btn-bg-hover); }
.pay-option input { accent-color: #b962d6; }
.pay-option.selected { border-color: var(--accent-cyan); background: var(--icon-btn-bg-hover); }
.pay-option .meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Lab strip / about features */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(10px);
}
.feature .ic {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature .ic svg { width: 22px; height: 22px; color: white; }
.feature h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature p { color: var(--text-dim); font-size: 14px; line-height: 1.5; }

.lab-strip {
  background: var(--lab-strip-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: center;
  backdrop-filter: blur(8px);
}
.lab-strip h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}
.lab-strip p { color: var(--text-dim); margin-bottom: 24px; line-height: 1.6; }
.lab-strip .stats-row { display: flex; flex-direction: column; gap: 24px; }
.lab-stat {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
}
.lab-stat:last-child { border-bottom: none; padding-bottom: 0; }
.lab-stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex-shrink: 0;
  min-width: 90px;
}
.lab-stat .lbl { color: var(--text-dim); font-size: 14px; }

/* COA table */
.data-table {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border-collapse: collapse;
}
.data-table th, .data-table td {
  padding: 16px 18px;
  text-align: left;
  font-size: 14px;
}
.data-table th {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--header-border);
  background: var(--icon-btn-bg);
}
.data-table tbody tr { border-bottom: 1px solid var(--header-border); }
.data-table tbody tr:nth-child(even) { background: var(--table-row-alt); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table td.batch { font-family: 'JetBrains Mono', 'Space Mono', monospace; font-size: 13px; }
.data-table td a { color: var(--accent-cyan); text-decoration: none; font-weight: 600; }
.data-table td a:hover { text-decoration: underline; }

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--text-muted);
  transition: transform .2s ease;
  font-weight: 300;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .answer {
  padding: 0 22px 22px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.contact-info {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 32px;
  backdrop-filter: blur(10px);
}
.contact-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  margin-bottom: 18px;
}
.contact-info .row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--header-border);
}
.contact-info .row:last-child { border-bottom: none; }
.contact-info .row .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-info .row .ic svg { width: 16px; height: 16px; color: #fff; }
.contact-info .row .lbl { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.contact-info .row .val { font-size: 14px; color: var(--text); margin-top: 2px; }

/* Newsletter */
.newsletter {
  background: var(--newsletter-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  backdrop-filter: blur(10px);
}
.newsletter h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}
.newsletter p { color: var(--text-dim); margin-bottom: 28px; }
.newsletter form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--icon-btn-border);
  background: var(--input-bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.newsletter input:focus {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}
.newsletter input::placeholder { color: var(--text-muted); }
.newsletter .brevo-note {
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Legal page */
.legal-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.legal-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px;
  backdrop-filter: blur(10px);
}
.legal-toc a {
  display: block;
  padding: 8px 12px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
  font-weight: 500;
}
.legal-toc a:hover, .legal-toc a.active { background: var(--icon-btn-bg-hover); color: var(--text); }
.legal-content { max-width: 760px; color: var(--text-dim); line-height: 1.75; font-size: 15px; }
.legal-content section { margin-bottom: 44px; }
.legal-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  color: var(--text);
  margin-bottom: 12px;
  scroll-margin-top: 100px;
}
.legal-content h3 { color: var(--text); margin: 18px 0 6px; font-size: 16px; }
.legal-content p { margin-bottom: 12px; }
.legal-content ul { padding-left: 22px; margin: 10px 0 14px; }
.legal-content .updated {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--header-border);
  background: var(--footer-bg);
  padding: 60px 24px 30px;
  margin-top: 80px;
}
.foot {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot h4 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
  font-weight: 700;
}
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s ease;
}
.foot a:hover { color: var(--text); }
.foot .about p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 14px;
}
.foot .about .brand img { height: 48px; }
.legal-bar {
  max-width: 1280px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--header-border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}
.ruo-banner {
  margin-top: 24px;
  padding: 14px 20px;
  background: var(--ruo-bg);
  border: 1px solid var(--ruo-border);
  border-radius: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ruo-text);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--modal-overlay);
  backdrop-filter: blur(20px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal-overlay.hidden { display: none; }
.modal {
  max-width: 520px;
  width: 100%;
  background: var(--modal-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 40px 100px rgba(0,0,0,0.4);
  color: var(--text);
}
.modal img { height: 72px; margin-bottom: 18px; }
.modal h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}
.modal p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.modal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.modal .disclaimer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Toast */
.toast-stack {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--float-card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  backdrop-filter: blur(14px);
  min-width: 240px;
  pointer-events: auto;
  animation: toast-in .25s ease;
}
.toast.exit { animation: toast-out .2s ease forwards; }
.toast .ic {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.toast .ic svg { width: 14px; height: 14px; color: #fff; }
@keyframes toast-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes toast-out {
  to { transform: translateY(8px); opacity: 0; }
}

/* Theme toggle */
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }

/* Mobile menu toggle */
.menu-toggle { display: none; }

/* Responsive */
@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filter-rail { position: static; }
  .filter-rail h4 { display: inline-block; margin-right: 8px; }
  .filter-rail .group-cats { display: flex; gap: 8px; flex-wrap: wrap; }
  .filter-rail .group-cats .chip { width: auto; }
  .pd-grid { grid-template-columns: 1fr; gap: 32px; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; display: flex; gap: 6px; flex-wrap: wrap; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 48px 24px; gap: 40px; }
  .hero-visual { aspect-ratio: 4 / 3; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .products.three { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .lab-strip { grid-template-columns: 1fr; padding: 32px; }
  .foot { grid-template-columns: 1fr 1fr; }
  nav.primary ul { display: none; }
  .menu-toggle { display: grid; }
  .hero-stats { gap: 24px; }
  .stat .num { font-size: 24px; }
  .pd-stats { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .products,
  .products.three { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .newsletter form { flex-direction: column; }
  .newsletter { padding: 32px 24px; }
  .hero h1 { font-size: 40px; }
  .cart-row { grid-template-columns: 64px 1fr; gap: 12px; }
  .cart-row .thumb { width: 64px; height: 64px; }
  .cart-row .price, .cart-row .qty, .cart-row .remove { grid-column: 2 / -1; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(360px, 100%);
  height: 100vh;
  background: var(--bg-deep);
  border-left: 1px solid var(--header-border);
  z-index: 90;
  padding: 24px;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a {
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  background: var(--icon-btn-bg);
}
.mobile-drawer a.active { background: var(--accent-grad); }
.mobile-drawer .close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  margin-bottom: 8px;
  line-height: 1;
}
.scrim {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.scrim.open { opacity: 1; pointer-events: auto; }
