/*
Theme Name: Anakin Labs
Theme URI: https://anakinlab.com
Author: Anakin Labs
Description: Custom WooCommerce theme for Anakin Labs — research-grade peptides. Dark premium clinical aesthetic.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: anakin-labs
*/

/* ============================================================
   DESIGN TOKENS — Anakin Labs
   ============================================================ */
:root {
  --color-primary:      #232026;
  --color-primary-dk:   #0f0e11;
  --color-accent:       #b1272d;
  --color-accent-dk:    #8a1f25;
  --color-bg:           #141218;
  --color-surface:      #1d1b21;
  --color-surface-alt:  #26232b;
  --color-border:       rgba(237,229,231,0.08);
  --color-text:         #ede5e7;
  --color-text-muted:   #8b8c90;
  --color-text-dim:     #6a6a70;

  --font-heading: 'Roboto', system-ui, sans-serif;
  --font-body:    'Roboto', system-ui, sans-serif;

  --radius: 0px;
  --radius-sm: 0px;

  --container: 1280px;
  --container-narrow: 960px;

  --shadow-none: none;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-text); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-accent); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p  { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: inline-block;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: .875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-dk);
  border-color: var(--color-accent-dk);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(237,229,231,0.18);
}
.btn-secondary:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}
.btn-sm { padding: 10px 18px; font-size: .75rem; }

/* ============================================================
   DISCLAIMER BAR + HEADER
   ============================================================ */
.disclaimer-bar {
  background: #000;
  color: var(--color-text-muted);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--color-border);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header .container { position: relative; }
.site-logo {
  position: relative;
  display: block;
  flex-shrink: 0;
  height: 48px;
  width: 220px;
}
.site-logo img {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  max-height: 140px;
  width: auto;
  display: block;
}
@media (max-width: 600px) {
  .site-logo { height: 40px; width: 170px; }
  .site-logo img { max-height: 110px; }
}
.site-logo .logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .04em;
  color: var(--color-text);
}
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  align-items: center;
}
.primary-nav a {
  font-size: .82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-text);
}
.primary-nav a:hover { color: var(--color-accent); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-cart,
.header-account {
  position: relative;
  color: var(--color-text);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.header-cart:hover,
.header-account:hover {
  color: var(--color-accent);
  border-color: var(--color-border);
}
.header-cart .count {
  background: var(--color-accent);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 6px;
  min-width: 18px;
  text-align: center;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--color-text);
  font-size: 1.4rem;
  cursor: pointer;
}
@media (max-width: 900px) {
  .primary-nav { display: none; }
  .primary-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-primary);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
  }
  .primary-nav.open ul { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nav-toggle { display: inline-flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(177,39,45,0.12), transparent 55%),
    linear-gradient(180deg, var(--color-primary) 0%, var(--color-bg) 100%);
  padding: 120px 0 100px;
  border-bottom: 1px solid var(--color-border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.25rem, 5.4vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.hero h1 .accent { color: var(--color-accent); }
.hero p.lead {
  font-size: 1.08rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art {
  aspect-ratio: 1/1;
  background:
    linear-gradient(135deg, var(--color-surface), var(--color-primary));
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(177,39,45,0.25), transparent 60%);
}
.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 48px;
}
@media (max-width: 900px) {
  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 420px; margin: 0 auto; }
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item .label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}
.trust-item .value {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  font-size: 1.05rem;
}
@media (max-width: 700px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   FEATURE GRID
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 36px 32px;
}
.feature-card h3 { margin-bottom: .6rem; }
.feature-card p { color: var(--color-text-muted); margin: 0; }
.feature-card .num {
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--color-accent);
  margin-bottom: 12px;
  display: block;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SECTION HEAD
   ============================================================ */
.section-head { margin-bottom: 48px; max-width: 680px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--color-text-muted); font-size: 1.05rem; }

/* ============================================================
   PRODUCT CARDS (WC override friendly)
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 768px)  { .products-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px)  { .products-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: border-color .2s ease, transform .2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.product-card .image {
  aspect-ratio: 1/1;
  background: var(--color-primary-dk);
  position: relative;
  overflow: hidden;
}
.product-card .image img {
  width: 100%; height: 100%; object-fit: contain; padding: 18px;
}
.product-card .coa-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,0,0,0.7);
  color: var(--color-accent);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  padding: 4px 8px;
  text-transform: uppercase;
  border: 1px solid var(--color-accent);
}
.product-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .title { font-weight: 600; font-size: 1rem; color: var(--color-text); margin: 0; }
.product-card .sku { font-size: .72rem; color: var(--color-text-dim); letter-spacing: .06em; }
.product-card .price { font-size: 1.1rem; font-weight: 700; color: var(--color-accent); margin-top: auto; }
.product-card .card-cta { margin-top: 14px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--color-accent);
  transition: transform .2s ease;
}
details[open] .faq-q::after { content: "–"; }
.faq-a { color: var(--color-text-muted); padding-top: 14px; line-height: 1.7; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-surface) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.cta-band .inner {
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 .2em; }
.cta-band p { margin: 0; color: var(--color-text-muted); }

/* ============================================================
   COA GRID
   ============================================================ */
.coa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.coa-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 18px;
  text-align: center;
  transition: border-color .2s ease;
}
.coa-card:hover { border-color: var(--color-accent); }
.coa-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  margin-bottom: 12px;
}
.coa-card .name { font-weight: 600; font-size: .92rem; color: var(--color-text); }

/* ============================================================
   COA LIST (download-only)
   ============================================================ */
.coa-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--color-border);
}
.coa-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.coa-row:last-child { border-bottom: 0; }
.coa-row-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.coa-name { font-weight: 600; color: var(--color-text); font-size: 1rem; }
.coa-sku {
  font-size: .72rem;
  color: var(--color-text-dim);
  letter-spacing: .12em;
  text-transform: uppercase;
}
@media (max-width: 560px) {
  .coa-row { padding: 16px; }
  .coa-row .btn { padding: 10px 14px; font-size: .7rem; }
}

/* ============================================================
   STICKY MOBILE ADD-TO-CART BAR (single product only)
   ============================================================ */
.mobile-atc-bar { display: none; }
@media (max-width: 768px) {
  body.single-product .mobile-atc-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 90;
    background: var(--color-primary-dk);
    border-top: 1px solid var(--color-border);
    padding: 10px 14px;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
  }
  body.single-product .mobile-atc-bar .info { min-width: 0; flex: 1; }
  body.single-product .mobile-atc-bar .name {
    font-size: .85rem;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.single-product .mobile-atc-bar .price {
    font-size: .95rem;
    font-weight: 700;
    color: var(--color-accent);
  }
  body.single-product .mobile-atc-bar .btn {
    flex-shrink: 0;
    padding: 12px 18px;
    font-size: .78rem;
    min-height: 48px;
  }
  body.single-product { padding-bottom: 72px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-primary-dk);
  border-top: 1px solid var(--color-border);
  padding: 72px 0 24px;
  color: var(--color-text-muted);
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand img { max-height: 40px; margin-bottom: 16px; }
.footer-brand p { max-width: 320px; font-size: .88rem; }
.footer-col h4 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--color-text-muted); font-size: .88rem; }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
  color: var(--color-text-dim);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   AGE GATE
   ============================================================ */
.age-gate {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15,14,17,0.96);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.age-gate.hidden { display: none; }
.age-gate .box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  max-width: 480px;
  width: 100%;
  padding: 40px;
  text-align: center;
}
.age-gate h2 { margin-bottom: .5em; }
.age-gate p { color: var(--color-text-muted); }
.age-gate .actions { margin-top: 24px; display: flex; gap: 12px; justify-content: center; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mb-0 { margin-bottom: 0; }
.mt-xl { margin-top: 48px; }
