/* ═══════════════════════════════════════════════════════════
   HELIX NORTH — Dark Biotech Design System
   Navy + Electric Cyan
   ═══════════════════════════════════════════════════════════ */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* === TOKENS === */
:root {
  --bg: #080B12;
  --bg-dark: #080B12;
  --surface: #0F1318;
  --surface-2: #161B22;
  --surface-dark: #0F1318;
  --text: #E8ECF1;
  --text-light: #E8ECF1;
  --text-muted: #8B95A5;
  --text-muted-light: #8B95A5;
  --text-dim: rgba(232,236,241,0.35);
  --accent: #00D4FF;
  --accent-light: #33DFFF;
  --accent-dark: #00A8CC;
  --cyan: #00D4FF;
  --cyan-light: #33DFFF;
  --navy-accent: #1A3A6E;
  --border: rgba(0,212,255,0.15);
  --border-subtle: rgba(232,236,241,0.06);
  --border-dark: rgba(232,236,241,0.06);
  --border-light: rgba(232,236,241,0.06);
  --border-accent: rgba(0,212,255,0.3);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --shadow: 0 2px 16px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-accent: 0 8px 40px rgba(0,212,255,0.12), 0 2px 12px rgba(0,212,255,0.06);
  --shadow-cyan: 0 8px 40px rgba(0,212,255,0.12), 0 2px 12px rgba(0,212,255,0.06);
  --shadow-dark: 0 2px 16px rgba(0,0,0,0.4);
  --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --easing-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --free-shipping-threshold: 150;
  --delivery-fee: 14.99;
}

/* === BASE === */
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* === GRAIN / NOISE TEXTURE === */
.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
}

/* === DARK SECTION === */
.section-dark {
  background: var(--bg);
  color: var(--text);
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5 {
  color: var(--text);
}
.section-dark .section-label {
  color: var(--accent);
}

/* === ACCENT DECORATIVE RULE === */
.accent-rule,
.cyan-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* === ACCENT LINE === */
.accent-line,
.cyan-accent {
  width: 2rem;
  height: 2px;
  background: var(--accent);
}

/* === SCROLLING MARQUEE === */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  background: var(--bg);
}
.marquee-track {
  display: inline-flex;
  animation: marquee-scroll 30s linear infinite;
  color: var(--text-muted);
}
.marquee-track:hover {
  animation-play-state: paused;
}
.marquee .marquee-dot {
  color: var(--accent);
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(232,236,241,0.06);
  background: rgba(8,11,18,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  height: 64px;
  overflow: hidden;
}
@media (min-width: 768px) { .site-nav { height: 72px; } }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
@media (min-width: 1024px) { .nav-inner { padding: 0 2rem; } }

.nav-logo {
  display: flex;
  align-items: center;
  line-height: 1;
  transition: opacity 0.2s ease;
}
.nav-logo-icon {
  height: 72px;
  width: 72px;
  display: block;
  margin: -16px -10px -16px -14px;
  background-color: var(--accent);
  -webkit-mask-image: url('brand_assets/logo/helix-north-icon-alpha.png');
  mask-image: url('brand_assets/logo/helix-north-icon-alpha.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
@media (min-width: 768px) { .nav-logo-icon { height: 88px; width: 88px; margin: -20px -12px -20px -18px; } }
.nav-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1;
}
@media (min-width: 768px) { .nav-logo-text { font-size: 1.4rem; } }
.nav-logo:hover { opacity: 0.8; }
.nav-logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.nav-links {
  display: none;
  align-items: center;
  gap: 2.5rem;
}
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-link {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: color 0.25s ease;
}
.nav-link:hover { color: var(--accent); }
.nav-link--active { color: var(--accent); }
.nav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.nav-link:active { color: #00b8db; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-cart {
  position: relative;
  color: var(--text);
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: var(--radius-sm);
  transition: transform 0.2s var(--easing-spring), opacity 0.2s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.nav-cart:hover {
  border-color: var(--accent);
  background: rgba(0,212,255,0.06);
}
.nav-cart:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius-sm); }
.nav-cart:active { background: rgba(0,212,255,0.12); }

.cart-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.6rem;
  font-weight: 600;
  border-radius: 9999px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
}
@media (min-width: 768px) { .nav-hamburger { display: none; } }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger:hover { color: var(--accent); }
.nav-hamburger:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Mobile overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.nav-mobile-overlay.open { display: flex; }
.nav-mobile-overlay .nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: none;
}
.nav-mobile-overlay .nav-link::after { display: none; }
.nav-mobile-overlay .nav-link:hover { color: var(--accent); }
.nav-mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  transition: color 0.15s ease;
}
.nav-mobile-close:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   SEARCH OVERLAY
   ═══════════════════════════════════════════════════════════ */
.nav-search-btn {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s var(--easing-spring), border-color 0.25s ease, background-color 0.25s ease;
}
.nav-search-btn:hover {
  border-color: var(--accent);
  background: rgba(0,212,255,0.06);
}
.nav-search-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius-sm); }
.nav-search-btn:active { background: rgba(0,212,255,0.12); }

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}
.search-overlay.open { display: flex; }

.search-overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8,11,18,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.search-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 1rem;
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-cyan), var(--shadow);
  overflow: hidden;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.search-input-wrap svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.01em;
}
.search-input::placeholder { color: var(--text-dim); }
.search-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s ease;
}
.search-close:hover { color: var(--accent); }

.search-results {
  max-height: 60vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.search-results::-webkit-scrollbar { width: 6px; }
.search-results::-webkit-scrollbar-track { background: transparent; }
.search-results::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border-subtle);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--surface-2); }
.search-result-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.search-result-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}
.search-result-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.search-result-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}
.search-result-price {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}
.search-result-category {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
}
.search-result-stock {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.search-result-stock--available { color: #34D399; }
.search-result-stock--unavailable { color: #F87171; }

.search-empty,
.search-hint {
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 0.5rem;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  position: relative;
  background: radial-gradient(ellipse at 50% 100%, rgba(0,212,255,0.03) 0%, transparent 50%), var(--bg);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 1.5rem 2.5rem;
  color: var(--text);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}
.footer-tagline {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.footer-col-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(232,236,241,0.4);
  letter-spacing: 0.04em;
}
.footer-payment {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.footer-payment svg {
  width: 32px;
  height: 20px;
  opacity: 0.4;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
}

/* Cyan outline button (both class names) */
.btn-cyan,
.btn-accent {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  transition: transform 0.25s var(--easing-spring),
              opacity 0.2s ease,
              background-color 0.3s ease,
              color 0.3s ease,
              box-shadow 0.3s ease;
}
.btn-cyan:hover,
.btn-accent:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 4px 24px rgba(0,212,255,0.3), 0 2px 8px rgba(0,212,255,0.15);
}
.btn-cyan:focus-visible,
.btn-accent:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(0,212,255,0.25);
}
.btn-cyan:active,
.btn-accent:active {
  transform: translateY(0) scale(0.97);
  opacity: 0.9;
}

/* Cyan filled button (both class names) */
.btn-cyan-fill,
.btn-accent-fill {
  background: var(--accent);
  color: var(--bg);
  border: 1.5px solid var(--accent);
  transition: transform 0.25s var(--easing-spring),
              opacity 0.2s ease,
              background-color 0.3s ease,
              box-shadow 0.3s ease;
}
.btn-cyan-fill:hover,
.btn-accent-fill:hover {
  transform: translateY(-2px);
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 4px 24px rgba(0,212,255,0.3), 0 2px 8px rgba(0,212,255,0.15);
}
.btn-cyan-fill:focus-visible,
.btn-accent-fill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(0,212,255,0.25);
}
.btn-cyan-fill:active,
.btn-accent-fill:active {
  transform: translateY(0) scale(0.97);
  opacity: 0.9;
}

/* Navy / dark button (both class names) */
.btn-navy,
.btn-dark {
  background: var(--navy-accent);
  color: var(--text);
  border: 1.5px solid var(--navy-accent);
  transition: transform 0.25s var(--easing-spring),
              opacity 0.2s ease,
              background-color 0.3s ease,
              box-shadow 0.3s ease;
}
.btn-navy:hover,
.btn-dark:hover {
  transform: translateY(-2px);
  background: #224B8A;
  border-color: #224B8A;
  box-shadow: 0 4px 24px rgba(26,58,110,0.3);
}
.btn-navy:focus-visible,
.btn-dark:focus-visible {
  outline: 2px solid var(--navy-accent);
  outline-offset: 3px;
}
.btn-navy:active,
.btn-dark:active {
  transform: translateY(0) scale(0.97);
  opacity: 0.9;
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.68rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 0.78rem; }
.btn-full { width: 100%; }

/* ═══════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--easing-spring), box-shadow 0.35s ease;
}
.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-cyan);
}

/* Image treatment overlay */
.img-treatment {
  position: relative;
  overflow: hidden;
}
.img-treatment::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,11,18,0.7) 0%, rgba(8,11,18,0.3) 40%, rgba(0,212,255,0.08) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Product image name overlay */
.img-label {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  padding: 0.35rem 0.6rem;
  background: rgba(8,11,18,0.7);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0,212,255,0.3);
  pointer-events: none;
  line-height: 1.3;
  text-align: center;
  max-width: 40%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ═══════════════════════════════════════════════════════════
   SECTION UTILITIES
   ═══════════════════════════════════════════════════════════ */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.section-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.75;
}

/* Page hero (short, for inner pages) */
.page-hero {
  padding: 7rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(ellipse at 50% 80%, rgba(0,212,255,0.06) 0%, transparent 60%), var(--bg);
}
.page-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.page-hero-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-input, .form-textarea, .form-select {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { appearance: none; cursor: pointer; }

/* --- Validation error state --- */
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #D44D4D;
}
.form-error {
  font-size: 0.72rem;
  color: #D44D4D;
  margin-top: 0.25rem;
}

/* --- Submit error banner --- */
.submit-error-banner {
  display: none;
  padding: 1rem 1.25rem;
  background: rgba(212,77,77,0.08);
  border: 1px solid rgba(212,77,77,0.3);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: #D44D4D;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.submit-error-banner.visible {
  display: block;
}

/* --- Honeypot — invisible to real users --- */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
  tab-index: -1;
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-fade-up {
  animation: fadeUp 0.8s var(--easing-smooth) both;
}

/* Scroll reveal — progressive enhancement.
   Elements are visible by default. JS adds .will-reveal
   to hide them, then .visible to animate them in. */
.will-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--easing-smooth), transform 0.6s var(--easing-smooth);
}
.will-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Coupon Popup Modal */
.coupon-popup-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.coupon-popup-modal.open {
  display: flex;
}
.coupon-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.coupon-popup-content {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-cyan);
  max-width: 440px;
  width: 100%;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  animation: couponFadeIn 0.3s var(--easing-smooth) both;
}
@keyframes couponFadeIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.coupon-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.coupon-popup-close:hover { border-color: var(--border); color: var(--text); }
.coupon-popup-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.coupon-popup-body { display: flex; flex-direction: column; align-items: center; }
.coupon-popup-icon {
  color: var(--accent);
  margin-bottom: 1rem;
}
.coupon-popup-icon--success { color: #34D399; }
.coupon-popup-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.coupon-popup-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 340px;
}
.coupon-popup-text strong { color: var(--accent); font-weight: 600; }
.coupon-popup-form { width: 100%; }
.coupon-popup-input-wrap { margin-bottom: 1rem; text-align: left; }
.coupon-popup-input { width: 100%; }
.coupon-popup-input--error { border-color: #EF4444 !important; }
.coupon-popup-error {
  font-size: 0.78rem;
  color: #EF4444;
  margin-top: 0.35rem;
  min-height: 1.1em;
}
.coupon-popup-dismiss {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 1rem;
  padding: 0.25rem 0;
  transition: color 0.15s ease;
}
.coupon-popup-dismiss:hover { color: var(--text-muted); }
.coupon-popup-dismiss:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.coupon-popup-code-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 2px dashed var(--border-accent);
  border-radius: var(--radius);
  background: rgba(0,212,255,0.04);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
}
.coupon-popup-code {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
}
.coupon-popup-copy {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,212,255,0.1);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.coupon-popup-copy:hover { background: rgba(0,212,255,0.18); border-color: var(--accent); }
.coupon-popup-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.coupon-popup-shop { margin-top: 0; }

/* Star rating */
.stars {
  display: flex;
  gap: 2px;
  color: var(--accent);
}
.stars svg { width: 16px; height: 16px; fill: currentColor; }

/* Quantity control */
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty-control button {
  width: 36px;
  height: 36px;
  background: var(--surface);
  border: none;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.qty-control button:hover { background: var(--surface-2); color: var(--accent); }
.qty-control button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.qty-control input {
  width: 48px;
  height: 36px;
  text-align: center;
  background: var(--bg);
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
}
.qty-control input:focus { outline: none; }

/* Variant selector pills */
.variant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.variant-pill {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.variant-pill:hover { border-color: var(--accent); color: var(--text); }
.variant-pill.active {
  border-color: var(--accent);
  background: rgba(0,212,255,0.1);
  color: var(--accent);
}
.variant-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Free shipping bar */
.shipping-bar {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.shipping-bar-track {
  height: 3px;
  background: var(--surface-2);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}
.shipping-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s var(--easing-smooth);
}

/* ═══════════════════════════════════════════════════════════
   NEW COMPONENTS — HELIX NORTH
   ═══════════════════════════════════════════════════════════ */

/* --- Purity Badge --- */
.purity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--accent);
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,212,255,0.06);
  white-space: nowrap;
}
.purity-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  flex-shrink: 0;
}

/* --- Certificate of Analysis Link --- */
.coa-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(0,212,255,0.4);
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.coa-link:hover {
  border-color: var(--accent);
  opacity: 0.85;
}
.coa-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.coa-link:active { opacity: 0.7; }
.coa-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* --- Trust Signal Grid --- */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}
.trust-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.trust-grid-item:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-cyan);
}
.trust-grid-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.trust-grid-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.trust-grid-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --- Molecular / Hexagonal Background Pattern --- */
.molecular-bg {
  position: relative;
}
.molecular-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 34L0 84V50l28-16 28 16v34L28 100z' fill='none' stroke='%2300D4FF' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}

/* --- Age Gate / Research Verification Modal --- */
.age-gate-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.age-gate-modal.open {
  display: flex;
}
.age-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.age-gate-content {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-cyan);
  max-width: 480px;
  width: 100%;
  padding: 2.5rem 2rem;
  text-align: center;
}
.age-gate-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.5rem;
}
.age-gate-logo-icon {
  height: 72px;
  width: 72px;
  margin: -12px -8px -12px -12px;
  background-color: var(--accent);
  -webkit-mask-image: url('brand_assets/logo/helix-north-icon-alpha.png');
  mask-image: url('brand_assets/logo/helix-north-icon-alpha.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.age-gate-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.age-gate-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.age-gate-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.age-gate-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.age-gate-actions .btn {
  min-width: 140px;
}

/* --- Disclaimer Bar --- */
.disclaimer-bar {
  background: rgba(245,183,42,0.1);
  border-top: 1px solid rgba(245,183,42,0.25);
  border-bottom: 1px solid rgba(245,183,42,0.25);
  padding: 0.65rem 1.5rem;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #F5B72A;
  line-height: 1.5;
}
.disclaimer-bar a {
  color: #F5B72A;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.15s ease;
}
.disclaimer-bar a:hover { opacity: 0.75; }
.disclaimer-bar a:focus-visible { outline: 2px solid #F5B72A; outline-offset: 2px; border-radius: 2px; }

/* --- Disclaimer Top Offset (below fixed nav) --- */
.disclaimer-top {
  margin-top: 64px;
}
@media (min-width: 768px) {
  .disclaimer-top {
    margin-top: 72px;
  }
}

/* --- Scrolling Disclaimer Marquee --- */
.disclaimer-marquee {
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(90deg, rgba(245,183,42,0.12) 0%, rgba(245,183,42,0.06) 50%, rgba(245,183,42,0.12) 100%);
  border-top: 1px solid rgba(245,183,42,0.25);
  border-bottom: 1px solid rgba(245,183,42,0.25);
  padding: 0.75rem 0;
}
.disclaimer-marquee-track {
  display: inline-flex;
  animation: disclaimer-scroll 28s linear infinite;
}
.disclaimer-marquee-track:hover {
  animation-play-state: paused;
}
.disclaimer-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 2.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F5B72A;
}
.disclaimer-marquee-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #F5B72A;
  opacity: 0.5;
  flex-shrink: 0;
}
@keyframes disclaimer-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Specification Table --- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
}
.spec-table th,
.spec-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.spec-table thead th {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.spec-table tbody tr {
  transition: background 0.15s ease;
}
.spec-table tbody tr:hover {
  background: var(--surface);
}
.spec-table tbody td {
  color: var(--text);
}
.spec-table tbody td:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Accordion --- */
.accordion {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--border-subtle);
}
.accordion-item:last-child {
  border-bottom: none;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: none;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.accordion-trigger:hover {
  background: var(--surface-2);
  color: var(--accent);
}
.accordion-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.accordion-trigger:active {
  opacity: 0.85;
}
.accordion-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.3s var(--easing-smooth), color 0.15s ease;
}
.accordion-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
  color: var(--accent);
}
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--easing-smooth);
}
.accordion-item.open .accordion-panel {
  max-height: 600px;
}
.accordion-panel-inner {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Breadcrumb Navigation --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0;
  margin: 0;
}
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  display: inline-block;
  margin: 0 0.5rem;
  color: var(--text-dim);
  font-weight: 300;
}
.breadcrumb-item a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.breadcrumb-item a:hover {
  color: var(--accent);
}
.breadcrumb-item a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.breadcrumb-item:last-child {
  color: var(--text);
  font-weight: 500;
}
.breadcrumb-item:last-child a {
  color: var(--text);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE OPTIMIZATIONS
   ═══════════════════════════════════════════════════════════ */

/* --- Phase 1: Prevent iOS Safari auto-zoom on input focus --- */
@media (max-width: 768px) {
  .form-input,
  .form-textarea,
  .form-select,
  .qty-control input {
    font-size: 16px;
  }
}

/* --- Phase 2: Touch targets ≥ 44px on mobile --- */
@media (max-width: 767px) {
  .nav-hamburger {
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }
  .nav-mobile-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .search-close {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .btn-sm {
    min-height: 44px;
    padding: 0.65rem 1.25rem;
  }
  .qty-control button {
    width: 44px;
    height: 44px;
  }
  .qty-control input {
    height: 44px;
  }
  .form-input,
  .form-select {
    min-height: 44px;
  }
  .coupon-popup-close {
    width: 44px;
    height: 44px;
  }
}

/* --- Phase 3: Modal padding on small phones --- */
@media (max-width: 400px) {
  .coupon-popup-content {
    padding: 2rem 1.25rem 1.5rem;
  }
  .coupon-popup-heading {
    font-size: 1.5rem;
  }
  .age-gate-content {
    padding: 2rem 1.25rem;
  }
  .age-gate-title {
    font-size: 1.25rem;
  }
}
