/* Wild Root Lab — merchant-ready product page */
:root {
  --forest: #1B3A24;
  --forest-mid: #2F5D3A;
  --sage: #6B7C63;
  --sage-soft: #8A9A82;
  --cream: #F7F3EB;
  --cream-dark: #EDE6D8;
  --amber: #C4A574;
  --amber-deep: #A88854;
  --terracotta: #B56B4A;
  --ink: #1A1F1A;
  --muted: #5C6658;
  --line: #D9D0C0;
  --white: #FFFcf7;
  --success: #2F5D3A;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(27, 58, 36, 0.08);
  --shadow-lg: 0 24px 60px rgba(27, 58, 36, 0.12);
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--forest-mid); text-underline-offset: 3px; }
a:hover { color: var(--forest); }
button, input, select, textarea { font: inherit; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Top trust bar */
.trust-bar {
  background: var(--forest);
  color: #E8F0E6;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.55rem 1rem;
}
.trust-bar strong { color: #fff; font-weight: 600; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 235, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--forest);
}
.brand img, .brand svg { width: 42px; height: 42px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.92rem;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover { color: var(--forest); }
.nav-cta {
  background: var(--forest) !important;
  color: #fff !important;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--forest-mid) !important; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  color: var(--forest);
}

/* Hero product */
.product-hero {
  padding: 2.5rem 0 3.5rem;
}
.product-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: start;
}
.gallery {
  position: sticky;
  top: 5.5rem;
}
.gallery-main {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumbs {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.gallery-thumbs button {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: var(--white);
}
.gallery-thumbs button.active,
.gallery-thumbs button:hover {
  border-color: var(--forest-mid);
}
.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-mid);
  margin-bottom: 0.75rem;
}
.product-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}
.product-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--forest);
  font-weight: 600;
}
.product-sub {
  margin-top: 0.85rem;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 36rem;
}
.rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.stars { color: var(--amber-deep); letter-spacing: 0.08em; }
.price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1rem;
  margin: 1.4rem 0 0.4rem;
}
.price {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--forest);
}
.price-was {
  font-size: 1.1rem;
  color: var(--sage-soft);
  text-decoration: line-through;
}
.price-note {
  font-size: 0.88rem;
  color: var(--sage);
  width: 100%;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.1rem 0 1.4rem;
}
.badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--forest);
  background: var(--cream-dark);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

/* Purchase card */
.buy-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.option-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 0.5rem;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream);
}
.qty-control button {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--forest);
  font-size: 1.15rem;
  font-weight: 600;
}
.qty-control input {
  width: 42px;
  text-align: center;
  border: 0;
  background: transparent;
  font-weight: 600;
  color: var(--ink);
}
.stock {
  font-size: 0.88rem;
  color: var(--success);
  font-weight: 600;
}
.stock::before {
  content: "●";
  margin-right: 0.35rem;
  font-size: 0.65rem;
  vertical-align: middle;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 0.95rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 8px 24px rgba(27, 58, 36, 0.22);
}
.btn-primary:hover { background: var(--forest-mid); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
  margin-top: 0.65rem;
}
.btn-secondary:hover { background: var(--cream-dark); }
.buy-meta {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.buy-meta li {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.buy-meta li::before {
  content: "✓";
  color: var(--forest-mid);
  font-weight: 700;
  flex-shrink: 0;
}
.guarantee-chip {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #F0E8D6, #E8F0E4);
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--forest);
  font-weight: 500;
  text-align: center;
}

/* Sections */
section { padding: 4rem 0; }
.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.section-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 0.55rem;
}
.section-head h2,
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--forest);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.section-head p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* AEO / answer engine blocks */
.aeo-sec {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 0;
}
.aeo-def {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 48rem;
  margin: 0 0 1.75rem;
  padding: 1.15rem 1.25rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--forest-mid);
  border-radius: 0 12px 12px 0;
}
.aeo-def strong { color: var(--forest); }
.aeo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .aeo-grid { grid-template-columns: 1fr 1fr; }
}
.aeo-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}
.aeo-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--forest);
  margin-bottom: 0.45rem;
  font-weight: 600;
  line-height: 1.3;
}
.aeo-answer {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.55;
}
.aeo-answer strong { color: var(--forest); }

/* Benefits */
.benefits {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.benefit-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}
.benefit-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--cream-dark);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}
.benefit-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--forest);
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.benefit-card p { color: var(--muted); font-size: 0.95rem; }

/* Ingredients */
.ingredients-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.ingredient-list { display: grid; gap: 0.85rem; }
.ingredient {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}
.ingredient-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--forest-mid);
  margin-top: 0.35rem;
}
.ingredient h3 {
  font-size: 1rem;
  color: var(--forest);
  margin-bottom: 0.2rem;
}
.ingredient p { font-size: 0.9rem; color: var(--muted); }
.facts-card {
  background: var(--forest);
  color: #E8F0E6;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.facts-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.35rem;
}
.facts-card .facts-sub {
  font-size: 0.85rem;
  color: #B8C9B4;
  margin-bottom: 1rem;
}
.facts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.facts-table th,
.facts-table td {
  text-align: left;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.facts-table th { color: #fff; font-weight: 600; }
.facts-table td { color: #D5E2D2; }
.facts-table tr:last-child th,
.facts-table tr:last-child td { border-bottom: 0; }
.facts-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: #A8BAA4;
  line-height: 1.5;
}

/* How it works / About strip */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.split-media {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.steps { display: grid; gap: 1rem; margin-top: 1.25rem; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.step h3 {
  font-size: 1rem;
  color: var(--forest);
  margin-bottom: 0.15rem;
}
.step p { font-size: 0.92rem; color: var(--muted); }

/* About */
.about {
  background: linear-gradient(180deg, var(--cream) 0%, #E8EFE4 100%);
}
.about-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}
.about-card h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--forest);
  margin-bottom: 0.85rem;
}
.about-card p { color: var(--muted); margin-bottom: 0.85rem; }
.about-meta {
  background: var(--cream);
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid var(--line);
}
.about-meta dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-top: 0.85rem;
}
.about-meta dt:first-child { margin-top: 0; }
.about-meta dd {
  color: var(--forest);
  font-weight: 600;
  margin-top: 0.2rem;
  font-size: 0.98rem;
}
.about-meta a { color: var(--forest); text-decoration: none; }
.about-meta a:hover { text-decoration: underline; }

/* Shipping / policies preview */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.policy-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}
.policy-card h3 {
  font-family: var(--font-serif);
  color: var(--forest);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.policy-card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 0.85rem;
}
.policy-card a {
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--forest-mid);
}
.policy-card a:hover { text-decoration: underline; }

/* FAQ */
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-weight: 600;
  color: var(--forest);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--amber-deep);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .a {
  padding: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Contact */
.contact {
  background: var(--forest);
  color: #E8F0E6;
}
.contact .section-kicker { color: var(--amber); }
.contact h2 { color: #fff; }
.contact .section-head p { color: #B8C9B4; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}
.contact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1.35rem;
}
.contact-card h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.contact-card p, .contact-card li {
  color: #C5D4C1;
  font-size: 0.95rem;
}
.contact-card a { color: #F0E0C0; }
.contact-card ul { margin: 0.65rem 0 0 1.1rem; }
.contact-card li + li { margin-top: 0.3rem; }
.contact-form {
  display: grid;
  gap: 0.85rem;
}
.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #D5E2D2;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.18);
  color: #fff;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #8FA88A; }
.contact-form .btn-primary {
  background: var(--amber);
  color: var(--forest);
  box-shadow: none;
}
.contact-form .btn-primary:hover { background: #D4B888; color: var(--forest); }
.form-note {
  font-size: 0.8rem;
  color: #A8BAA4;
}
.form-success {
  display: none;
  background: rgba(232, 240, 228, 0.12);
  border: 1px solid rgba(196, 165, 116, 0.4);
  border-radius: 12px;
  padding: 1rem;
  color: #E8F0E6;
}

/* Disclaimer */
.disclaimer {
  padding: 1.5rem 0 0;
}
.disclaimer-box {
  background: var(--cream-dark);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Footer */
.site-footer {
  background: #132818;
  color: #A8BAA4;
  padding: 3rem 0 1.75rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-brand .brand { color: #fff; }
.footer-brand p { max-width: 22rem; line-height: 1.6; }
.footer-col h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.footer-col a {
  display: block;
  color: #A8BAA4;
  text-decoration: none;
  margin-bottom: 0.45rem;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* Legal pages */
.legal-page { padding: 3rem 0 4rem; }
.legal-page .wrap { width: min(44rem, calc(100% - 2rem)); }
.legal-page h1 {
  font-family: var(--font-serif);
  color: var(--forest);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0.4rem 0 0.75rem;
}
.legal-page .meta {
  color: var(--sage);
  font-size: 0.88rem;
  margin-bottom: 1.75rem;
}
.legal-page h2 {
  font-family: var(--font-serif);
  color: var(--forest);
  font-size: 1.2rem;
  margin: 1.75rem 0 0.55rem;
}
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page p + p { margin-top: 0.75rem; }
.legal-page ul { margin: 0.65rem 0 0 1.2rem; }
.legal-page li + li { margin-top: 0.35rem; }
.legal-page code {
  font-family: ui-monospace, "IBM Plex Mono", monospace;
  font-size: 0.88em;
  color: var(--forest-mid);
  background: var(--cream-dark);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--forest);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transition: transform 0.25s ease;
  max-width: calc(100% - 2rem);
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .product-grid,
  .ingredients-grid,
  .split,
  .about-card,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .gallery { position: static; }
  .benefit-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    gap: 0.75rem;
  }
  .nav-toggle { display: inline-flex; }
  .header-inner { position: relative; }
}

@media (max-width: 520px) {
  .price { font-size: 1.85rem; }
  .gallery-thumbs button { width: 60px; height: 60px; }
}
