:root {
  --navy: #0a1628;
  --deep: #050d18;
  --gold: #f4a261;
  --orange: #e76f51;
  --text: #e8eef7;
  --muted: #9ab0c8;
  --line: #1e3a5f;
  --card: rgba(10, 22, 40, 0.92);
  --photo-bg: #1c1e22;
  --danger: #e76f51;
  --radius: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--deep) url("bg.jpg") center top / cover fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); }
a:hover { color: #ffc089; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--deep);
  padding: 8px 12px;
  z-index: 2000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ——— Age gate ——— */
.age-gate {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(5, 13, 24, 0.97);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.age-box {
  background: var(--navy);
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 420px;
  text-align: center;
}
.age-box h2 { color: var(--gold); margin-bottom: 12px; }
.age-box p { margin: 12px 0; color: var(--muted); }
.age-box p strong { color: var(--text); }
.age-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ——— Top nav ——— */
.topnav {
  position: sticky;
  top: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(5, 13, 24, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-height: 44px;
}
.brand:hover { color: var(--gold); }
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  background: #fff;
}
.brand-rest { font-weight: 600; color: var(--muted); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a, .cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--gold);
}
.cart-btn {
  border: 1px solid var(--line);
  background: rgba(13, 33, 55, 0.9);
  color: var(--gold);
  gap: 8px;
  font-weight: 600;
}
.cart-btn:hover { border-color: var(--gold); }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ——— Heroes ——— */
.hero {
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0.12) 0%, rgba(10, 22, 40, 0.22) 42%, rgba(5, 13, 24, 0.48) 75%, rgba(5, 13, 24, 0.72) 100%),
    url("header-bg.jpg") center 70% / cover no-repeat;
  min-height: 380px;
  padding: 48px 20px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}
.hero h1 span { color: var(--orange); }
.tag {
  letter-spacing: 3px;
  color: var(--gold);
  font-size: 0.85rem;
  margin-top: 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.page-hero {
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0.18) 0%, rgba(5, 13, 24, 0.58) 100%),
    url("header-bg.jpg") center 70% / cover no-repeat;
  min-height: 160px;
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}

/* ——— Layout ——— */
.container { max-width: 1000px; margin: 0 auto; padding: 30px 16px; }
.banner {
  background: rgba(10, 22, 40, 0.9);
  border: 1px solid var(--orange);
  padding: 16px;
  margin: 20px 0;
  text-align: center;
  font-weight: 600;
  border-radius: 4px;
}
.banner .sub {
  display: block;
  margin-top: 6px;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ——— Categories & cards ——— */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
  justify-content: center;
}
.cat-btn {
  background: rgba(13, 33, 55, 0.9);
  border: 1px solid var(--line);
  color: var(--gold);
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.9rem;
  min-height: 44px;
}
.cat-btn:hover, .cat-btn.active { background: var(--orange); color: #fff; border-color: var(--orange); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--photo-bg);
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
}
.card-media img, .modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  background: var(--photo-bg);
}
.card h3 {
  color: var(--gold);
  margin-bottom: 4px;
  cursor: pointer;
  font-size: 1.05rem;
}
.card h3:hover { text-decoration: underline; }
.card .strength { color: var(--muted); font-size: 0.95rem; }
.price { color: var(--orange); font-weight: 700; margin: 6px 0 12px; }
.card .btn { margin-top: auto; width: 100%; }

.badge-blend {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 8px;
  border-radius: 3px;
  z-index: 1;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  background: var(--orange);
  color: #fff;
}
.btn:hover { filter: brightness(1.08); color: #fff; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; filter: none; }
.btn-secondary {
  background: rgba(13, 33, 55, 0.95);
  border: 1px solid var(--line);
  color: var(--gold);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); filter: none; }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}
.btn-ghost:hover { color: var(--text); }
.btn-danger { background: transparent; color: #f0a0a0; border: 1px solid #5a2a2a; }
.btn-danger:hover { background: #3a1515; color: #fff; }

/* ——— Modal ——— */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1600;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-content {
  background: var(--navy);
  max-width: 640px;
  width: 100%;
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--line);
}
.modal-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 360px;
  margin: 0 auto 16px;
  background: var(--photo-bg);
  border-radius: 4px;
  overflow: hidden;
}
.modal-media img { object-position: center 40%; }
.close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  color: var(--gold);
  background: transparent;
  border: none;
  z-index: 2;
  line-height: 1;
}
.section { margin: 14px 0; }
.section h4 { color: var(--gold); margin-bottom: 6px; font-size: 1rem; }
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}
.modal-actions .btn { flex: 1; min-width: 160px; }

.qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.qty-ctrl button {
  width: 44px;
  min-height: 44px;
  background: rgba(13, 33, 55, 0.9);
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: 1.2rem;
}
.qty-ctrl button:hover { background: rgba(30, 58, 95, 0.9); }
.qty-ctrl input, .qty-ctrl .qty-val {
  width: 48px;
  min-height: 44px;
  text-align: center;
  background: rgba(5, 13, 24, 0.8);
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--text);
}

/* ——— Cart drawer ——— */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1800;
}
.cart-overlay.open { display: block; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: var(--navy);
  border-left: 1px solid var(--line);
  z-index: 1900;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 20px;
  border-bottom: 1px solid var(--line);
}
.cart-head h2 { font-size: 1.15rem; color: var(--gold); }
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}
.cart-empty { color: var(--muted); text-align: center; padding: 40px 12px; }
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  object-position: center 40%;
  background: var(--photo-bg);
  border-radius: 4px;
}
.cart-item h3 { font-size: 0.95rem; color: var(--gold); margin-bottom: 2px; }
.cart-item .meta { color: var(--muted); font-size: 0.85rem; }
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cart-foot {
  border-top: 1px solid var(--line);
  padding: 16px;
  background: rgba(5, 13, 24, 0.6);
}
.totals { margin-bottom: 12px; }
.totals-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin: 6px 0;
  color: var(--muted);
}
.totals-row span:last-child {
  text-align: right;
  max-width: 65%;
  min-width: 0;
  overflow-wrap: break-word;
}
.totals-row.total {
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 10px;
}
.cart-foot .btn { width: 100%; }
.cart-note { font-size: 0.8rem; color: var(--muted); margin-top: 8px; text-align: center; }

/* ——— Footer ——— */
footer {
  text-align: center;
  padding: 30px 16px 40px;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(5, 13, 24, 0.9);
  border-top: 1px solid var(--line);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  justify-content: center;
  margin-bottom: 14px;
}
.footer-links a {
  color: var(--gold);
  text-decoration: none;
  min-height: 44px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover { text-decoration: underline; }
.footer-legal { color: var(--text); margin: 8px 0; }
.footer-disclaim { max-width: 720px; margin: 8px auto 0; }

/* ——— Policy / content pages ——— */
.prose {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 16px 60px;
  background: rgba(10, 22, 40, 0.88);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.prose .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }
.prose h2 { color: var(--gold); margin: 28px 0 10px; font-size: 1.2rem; }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 12px; }
.prose a { word-break: break-word; }

/* ——— Forms & checkout ——— */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}
.panel {
  background: rgba(10, 22, 40, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.panel h2 { color: var(--gold); font-size: 1.15rem; margin-bottom: 16px; }
.form-row { margin-bottom: 14px; }
.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.95rem; }
label .req { color: var(--orange); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: rgba(5, 13, 24, 0.85);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
}
textarea { min-height: 120px; resize: vertical; }
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 16px 0;
}
.check input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin-top: 2px;
  accent-color: var(--orange);
}
.check label { font-weight: 500; margin: 0; }
.form-error, .form-status[data-kind="error"] { color: #ffb4a8; font-size: 0.9rem; margin-top: 8px; }
.form-status[data-kind="ok"] { color: #b7e4c7; }

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.summary-item .name { color: var(--text); }
.summary-item .meta { color: var(--muted); font-size: 0.85rem; }

.confirm-box {
  display: none;
  text-align: center;
  padding: 28px 16px;
}
.confirm-box.open { display: block; }
.confirm-box h2 { color: var(--gold); margin-bottom: 12px; }
.confirm-box p { color: var(--muted); margin-bottom: 10px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.contact-meta p { margin-bottom: 8px; }
.contact-meta a { font-weight: 600; }

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  border: 1px solid var(--gold);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 4px;
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ——— Responsive ——— */
@media (max-width: 800px) {
  .checkout-grid, .contact-grid { grid-template-columns: 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero { min-height: 260px; padding: 28px 16px 24px; }
  .hero h1 { font-size: 2rem; }
  .logo { width: 80px; height: 80px; }
  .logo-wrap { gap: 12px; }
  .page-hero { min-height: 120px; }
  .page-hero h1 { font-size: 1.6rem; }
  .banner { font-size: 0.95rem; padding: 12px; }
  .cat-btn { font-size: 0.85rem; padding: 12px 14px; }
  .product-grid { grid-template-columns: 1fr; }
  .modal-content { padding: 16px; }
  .modal-media { max-height: 280px; }
  .brand-rest { display: none; }
}
@media (max-width: 640px) {
  .brand > span { display: none; }
  .nav-links { gap: 2px; }
  .nav-links a, .cart-btn { padding: 8px 10px; }
}
@media (max-width: 480px) {
  .hero { min-height: 260px; padding: 24px 12px 20px; }
  .hero h1 { font-size: 1.7rem; }
  .container { padding: 20px 12px; }
  .topnav { padding: 8px 10px; }
  .nav-links a { padding: 8px 10px; }
}

/* ——— Trust bar ——— */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 4px;
  padding: 10px 16px;
  background: rgba(10, 22, 40, 0.94);
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
}
.trust-bar .sep {
  color: var(--muted);
  padding: 0 10px;
  font-weight: 400;
}

/* ——— Age-gate terms checkbox ——— */
.age-agree {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  margin: 18px 0 0;
  color: var(--text);
  font-weight: 500;
}
.age-agree input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin-top: 2px;
  accent-color: var(--orange);
}
.age-btns .yes:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}

/* ——— Strength / variant picker ——— */
.variant-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}
.variant-btn {
  min-height: 44px;
  padding: 8px 12px;
  background: rgba(13, 33, 55, 0.9);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}
.variant-btn:hover { border-color: var(--gold); }
.variant-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ——— Spec table ——— */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th {
  color: var(--muted);
  font-weight: 600;
  width: 42%;
  padding-right: 12px;
}

/* ——— COA list ——— */
.coa-list { display: grid; gap: 10px; }
.coa-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.coa-row h3 { color: var(--gold); font-size: 1rem; }
.coa-row .meta { color: var(--muted); font-size: 0.9rem; }
.coa-status {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}
.coa-status a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
}
.coa-status a:hover { text-decoration: underline; }

.age-btns button {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
}
.age-btns .no { background: #333; color: #ccc; }
.age-btns .no:hover { background: #444; }


/* ——— COA images and cards ——— */
.coa-images {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.coa-shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  max-width: 220px;
}
.coa-shot img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  background: #fff;
}
.coa-shot:hover { border-color: var(--gold); }
.coa-zoom { color: var(--gold); }
.coa-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 8px;
}
.coa-card {
  display: grid;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.coa-card h3 { color: var(--gold); font-size: 1.05rem; }
.coa-card .meta { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.coa-pending-heading {
  color: var(--gold);
  font-size: 1.15rem;
  margin: 28px 0 8px;
}
#mcoa .coa-images { justify-content: flex-start; }

/* ——— Literature sections ——— */
.lit-compound { margin: 0 0 12px; }
.lit-compound h5 {
  color: var(--text);
  font-size: 0.95rem;
  margin: 0 0 6px;
}
.lit-list {
  margin: 0;
  padding-left: 18px;
}
.lit-list li { margin: 0 0 6px; }
.lit-list a {
  color: var(--gold);
  text-decoration: none;
}
.lit-list a:hover { text-decoration: underline; }
