/* ================================================================
   ZELTA PEPTIDES — main.css
   Dark / austere / sharp-edge peptide e-commerce theme
   ================================================================ */

/* ────────────────────────────────────────────────────────────────
   0. CSS VARIABLES
   ──────────────────────────────────────────────────────────────── */

:root {
  /* backgrounds */
  --bg:       #ffffff;
  --bg-1:     #f7f7f7;
  --bg-2:     #eeeeee;
  --bg-3:     #e5e5e5;

  /* lines */
  --line:     #e0e0e0;
  --line-2:   #cccccc;

  /* foreground */
  --fg:       #111111;
  --fg-dim:   #555555;
  --fg-mute:  #999999;

  /* brand */
  --green:       #2E936F;
  --green-dark:  #1B7A56;
  --green-light: #1B7A56;
  --green-glow:  rgba(46, 147, 111, 0.15);

  /* semantic */
  --danger: #c73a28;
  --ok:     #2d8a4f;

  /* typography */
  --font:      "Red Hat Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Red Hat Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Red Hat Mono", "JetBrains Mono", "SF Mono", "Fira Code", monospace;

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* layout */
  --container:     1440px;
  --pad:           48px;
  --pad-mobile:    20px;
  --header-height: 64px;
}


/* ────────────────────────────────────────────────────────────────
   1. RESET & BASE
   ──────────────────────────────────────────────────────────────── */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
a:hover {
  color: var(--green-dark);
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol { list-style: none; }

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

::selection {
  background: var(--green);
  color: var(--bg);
}

::-moz-selection {
  background: var(--green);
  color: var(--bg);
}

/* scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-3);
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--fg-mute);
}

/* firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-3) var(--bg);
}


/* ────────────────────────────────────────────────────────────────
   2. TYPOGRAPHY
   ──────────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--fg);
}

h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3.5vw, 40px); }
h3 { font-size: clamp(18px, 2.5vw, 28px); }
h4 { font-size: clamp(16px, 1.8vw, 22px); }

p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-dim);
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
}

.dim {
  color: var(--fg-mute);
}

small {
  font-size: 13px;
  color: var(--fg-dim);
}


/* ────────────────────────────────────────────────────────────────
   3. SITE HEADER
   ──────────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 10, 10, 0.92);
}

.header-brand {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.header-brand:hover {
  color: var(--green);
}

.brand-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 12px;
  border: 1.5px solid var(--fg);
  line-height: 1.15;
  transition: border-color 0.3s var(--ease);
}
.header-brand:hover .brand-box {
  border-color: var(--green);
}
.brand-line {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
}
.brand-box-lg {
  padding: 14px 28px;
}
.brand-box-lg .brand-line {
  font-size: 16px;
  letter-spacing: 0.24em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header-nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease);
}

.header-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width 0.4s var(--ease);
}

.header-nav a:hover {
  color: var(--fg);
}
.header-nav a:hover::after {
  width: 100%;
}

.header-nav a.active {
  color: var(--green);
}
.header-nav a.active::after {
  width: 100%;
}

/* cart icon */
.cart-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--fg-dim);
  transition: color 0.3s var(--ease);
}
.cart-toggle:hover {
  color: var(--fg);
}
.cart-toggle svg {
  width: 20px;
  height: 20px;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  background: var(--green);
  color: var(--bg);
  line-height: 1;
}
.cart-count:empty {
  display: none;
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav a {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.mobile-nav a:hover {
  color: var(--green);
}


/* ────────────────────────────────────────────────────────────────
   4. AGE GATE OVERLAY
   ──────────────────────────────────────────────────────────────── */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  /* subtle noise grain via repeating gradient */
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.age-gate.dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.age-gate-content {
  text-align: center;
  max-width: 480px;
  padding: 0 var(--pad-mobile);
}

.age-gate-content h1 {
  font-size: clamp(36px, 6vw, 64px);
  margin-bottom: 16px;
  color: var(--fg);
}

.age-gate-content p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-dim);
  margin-bottom: 40px;
}

.age-gate-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.age-gate-actions .btn {
  min-width: 160px;
  padding: 14px 32px;
}


/* ────────────────────────────────────────────────────────────────
   5. HERO SECTION
   ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-height) + 80px) var(--pad) 0;
  background: var(--bg);
  overflow: hidden;
}

.hero-content {
  max-width: 900px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--green);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* stats bar */
.hero-stats {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.hero-stat {
  flex: 1;
  padding: 28px 0;
  text-align: center;
  border-right: 1px solid var(--line);
}
.hero-stat:last-child {
  border-right: none;
}

.hero-stat-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--fg);
  margin-bottom: 4px;
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
}


/* ────────────────────────────────────────────────────────────────
   6. PRODUCT GRID
   ──────────────────────────────────────────────────────────────── */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 32px 28px 28px;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 40px rgba(46, 147, 111, 0.08);
  transform: translateY(-2px);
  z-index: 1;
}

.product-card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--green);
}
.product-card-icon svg {
  width: 24px;
  height: 24px;
}

.product-card-name {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 8px;
}

.product-card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-dim);
  margin-bottom: 24px;
  flex: 1;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.product-card-price {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green);
}

.product-card-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: transparent;
  transition: all 0.3s var(--ease);
}
.product-card-btn:hover {
  color: var(--bg);
  background: var(--green);
  border-color: var(--green);
}


/* ────────────────────────────────────────────────────────────────
   7. FILTERS
   ──────────────────────────────────────────────────────────────── */

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 4px 0;
}
.filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  padding: 8px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg-dim);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
}

.filter-chip:hover {
  border-color: var(--green);
  color: var(--fg);
}

.filter-chip.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--bg);
}


/* ────────────────────────────────────────────────────────────────
   8. PRODUCT DETAIL MODAL
   ──────────────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 48px;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease);
}
.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-mute);
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
}
.modal-close:hover {
  color: var(--fg);
  border-color: var(--fg-mute);
}

.modal-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 12px;
}

.modal-name {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 8px;
}

.modal-price {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 32px;
}

.modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 32px;
}

.modal-spec {
  padding: 16px 20px;
  background: var(--bg);
}

.modal-spec-key {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
  margin-bottom: 6px;
}

.modal-spec-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}

.modal-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-dim);
  margin-bottom: 32px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}


/* ────────────────────────────────────────────────────────────────
   9. CART SIDEBAR
   ──────────────────────────────────────────────────────────────── */

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 3001;
  width: 420px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-1);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
}
.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.cart-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg);
}

.cart-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-mute);
  transition: color 0.3s var(--ease);
}
.cart-close:hover {
  color: var(--fg);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 4px;
}

.cart-item-variant {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
  margin-bottom: 12px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg-dim);
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
}
.cart-item-qty button:hover {
  color: var(--fg);
  border-color: var(--fg-mute);
}

.cart-item-qty span {
  width: 36px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cart-item-price {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  padding-top: 2px;
}

.cart-item-remove {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
  margin-top: 8px;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.cart-item-remove:hover {
  color: var(--danger);
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 28px;
  text-align: center;
}
.cart-empty p {
  font-size: 14px;
  color: var(--fg-mute);
}

.cart-footer {
  border-top: 1px solid var(--line);
  padding: 24px 28px;
}

.cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cart-subtotal-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
}

.cart-subtotal-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
}

.cart-checkout {
  width: 100%;
}


/* ────────────────────────────────────────────────────────────────
   10. HOW IT WORKS
   ──────────────────────────────────────────────────────────────── */

.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.how-step {
  padding: 48px 36px;
  background: var(--bg);
}

.how-step-num {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green);
  margin-bottom: 24px;
  line-height: 1;
}

.how-step-title {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 12px;
}

.how-step-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg-dim);
}


/* ────────────────────────────────────────────────────────────────
   11. RESEARCH DISCLAIMER
   ──────────────────────────────────────────────────────────────── */

.disclaimer-section {
  padding: 80px var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  text-align: center;
}

.disclaimer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--fg-mute);
}
.disclaimer-icon svg {
  width: 28px;
  height: 28px;
}

.disclaimer-heading {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg);
  margin-bottom: 20px;
}

.disclaimer-text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--fg-dim);
  max-width: 640px;
  margin: 0 auto;
}


/* ────────────────────────────────────────────────────────────────
   12. FOOTER
   ──────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.footer-nav {
  display: flex;
  gap: 28px;
}

.footer-nav a {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.footer-nav a:hover {
  color: var(--fg);
}

.footer-disclaimer {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
}


/* ────────────────────────────────────────────────────────────────
   13. UTILITIES
   ──────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.section-header {
  margin-bottom: 64px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--fg);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 14px 32px;
  background: var(--green);
  color: var(--bg);
  border: 1px solid var(--green);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--bg);
}
.btn:active {
  transform: scale(0.98);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 14px 32px;
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn-outline:hover {
  background: var(--green);
  color: var(--bg);
}
.btn-outline:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 10px;
}

.btn-lg {
  padding: 18px 44px;
  font-size: 12px;
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: #a83020;
  border-color: #a83020;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--fg-dim);
}
.btn-ghost:hover {
  border-color: var(--fg-mute);
  color: var(--fg);
  background: transparent;
}

/* reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible,
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* staggered reveal children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.6s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.7s; }
.reveal-stagger.visible > *:nth-child(9) { transition-delay: 0.8s; }
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* text utils */
.text-green  { color: var(--green); }
.text-dim    { color: var(--fg-dim); }
.text-mute   { color: var(--fg-mute); }
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* spacing utils */
.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 8px; }
.mt-2  { margin-top: 16px; }
.mt-3  { margin-top: 24px; }
.mt-4  { margin-top: 32px; }
.mt-5  { margin-top: 48px; }
.mt-6  { margin-top: 64px; }
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 8px; }
.mb-2  { margin-bottom: 16px; }
.mb-3  { margin-bottom: 24px; }
.mb-4  { margin-bottom: 32px; }
.mb-5  { margin-bottom: 48px; }

/* display */
.hidden        { display: none; }
.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;
}

/* flex helpers */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

/* divider */
.divider {
  width: 100%;
  height: 1px;
  background: var(--line);
}


/* ────────────────────────────────────────────────────────────────
   14. PAGE HERO (Shop / Category Pages)
   ──────────────────────────────────────────────────────────────── */

.page-hero {
  padding: calc(var(--header-height) + 60px) var(--pad) 60px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.page-hero .label {
  margin-bottom: 12px;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 14px;
  color: var(--fg-dim);
  max-width: 540px;
}


/* ────────────────────────────────────────────────────────────────
   15. SEARCH BAR
   ──────────────────────────────────────────────────────────────── */

.search-bar {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.search-bar-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--fg-mute);
  pointer-events: none;
}

.search-bar input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease);
}

.search-bar input::placeholder {
  color: var(--fg-mute);
}

.search-bar input:focus {
  border-color: var(--green);
}


/* ────────────────────────────────────────────────────────────────
   17. CATALOG BAR
   ──────────────────────────────────────────────────────────────── */

.catalog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  flex-wrap: wrap;
}

.catalog-bar .search-bar {
  flex-shrink: 0;
}

.catalog-bar .filters {
  flex: 1;
  justify-content: flex-end;
}


/* ────────────────────────────────────────────────────────────────
   18. NOTIFICATION TOAST
   ──────────────────────────────────────────────────────────────── */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.hide {
  transform: translateX(120%);
  opacity: 0;
}

.toast-icon {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
}

.toast-message {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
}

.toast-dismiss {
  margin-left: auto;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-mute);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.3s var(--ease);
}
.toast-dismiss:hover {
  color: var(--fg);
}


/* ────────────────────────────────────────────────────────────────
   19. SALE BADGE
   ──────────────────────────────────────────────────────────────── */

.sale-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  background: var(--green);
  color: var(--bg);
  position: absolute;
  top: 16px;
  right: 16px;
}


/* ────────────────────────────────────────────────────────────────
   20. TIER SELECTOR
   ──────────────────────────────────────────────────────────────── */

.tier-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.tier-option {
  flex: 1;
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.tier-option:hover {
  border-color: var(--fg-mute);
}

.tier-option.active {
  border-color: var(--green);
  background: var(--green-glow);
}

.tier-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tier-indicator {
  width: 16px;
  height: 16px;
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: border-color 0.3s var(--ease);
}
.tier-option.active .tier-indicator {
  border-color: var(--green);
}
.tier-option.active .tier-indicator::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--green);
}

.tier-name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg);
  margin-bottom: 4px;
}

.tier-desc {
  font-size: 12px;
  color: var(--fg-dim);
  margin-bottom: 12px;
}

.tier-price {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--green);
}


/* ────────────────────────────────────────────────────────────────
   16. RESPONSIVE
   ──────────────────────────────────────────────────────────────── */

/* ── 1024px ── */
@media (max-width: 1024px) {
  :root {
    --pad: 32px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-it-works {
    grid-template-columns: repeat(2, 1fr);
  }
  .how-step:last-child {
    grid-column: 1 / -1;
  }

  .hero-title {
    font-size: clamp(40px, 7vw, 72px);
  }

  .hero-stats {
    flex-wrap: wrap;
  }
  .hero-stat {
    flex: 1 1 50%;
    min-width: 50%;
    border-right: none;
  }
  .hero-stat:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
  .hero-stat:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

  .section {
    padding: 80px 0;
  }

  .modal {
    padding: 36px;
  }
}

/* ── 720px ── */
@media (max-width: 720px) {
  :root {
    --pad: 20px;
    --header-height: 56px;
  }

  /* show hamburger, hide desktop nav */
  .hamburger {
    display: flex;
  }
  .header-nav {
    display: none;
  }
  .mobile-nav {
    display: flex;
  }

  .hero {
    min-height: calc(100vh - 80px);
    min-height: calc(100dvh - 80px);
    padding-top: calc(var(--header-height) + 48px);
  }

  .hero-content {
    align-items: flex-start;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }
  .hero-cta .btn,
  .hero-cta .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
  }
  .hero-stat {
    flex: none;
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
    text-align: left;
    padding-left: var(--pad);
  }
  .hero-stat:nth-child(odd) {
    border-right: none;
  }
  .hero-stat:last-child {
    border-bottom: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .how-it-works {
    grid-template-columns: 1fr;
  }
  .how-step:last-child {
    grid-column: auto;
  }

  .section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .catalog-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .catalog-bar .search-bar {
    max-width: 100%;
  }
  .catalog-bar .filters {
    justify-content: flex-start;
  }

  .modal-specs {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 28px 20px;
    max-height: 90vh;
  }

  .modal-actions {
    flex-direction: column;
  }
  .modal-actions .btn,
  .modal-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .cart-sidebar {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 28px var(--pad);
  }
  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .disclaimer-section {
    padding: 60px var(--pad);
  }

  .tier-selector {
    flex-direction: column;
  }

  .age-gate-actions {
    flex-direction: column;
    gap: 12px;
  }
  .age-gate-actions .btn {
    width: 100%;
  }

  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }
  .toast {
    width: 100%;
  }
}

/* ── 480px ── */
@media (max-width: 480px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 12px;
  }

  .hero-label {
    font-size: 10px;
  }

  .page-hero {
    padding: calc(var(--header-height) + 40px) var(--pad) 40px;
  }
  .page-hero h1 {
    font-size: 24px;
  }

  .section {
    padding: 48px 0;
  }

  .product-card {
    padding: 24px 20px 20px;
  }

  .how-step {
    padding: 32px 20px;
  }

  .btn, .btn-outline {
    padding: 12px 24px;
    font-size: 10px;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 11px;
  }

  .modal-name {
    font-size: 22px;
  }

  .modal-price {
    font-size: 18px;
  }
}


/* ────────────────────────────────────────────────────────────────
   PRINT
   ──────────────────────────────────────────────────────────────── */

@media print {
  .site-header,
  .site-footer,
  .age-gate,
  .cart-sidebar,
  .cart-overlay,
  .toast-container,
  .modal-overlay {
    display: none !important;
  }
  body {
    background: #fff;
    color: #111;
  }
  .product-card {
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}
