/* Sanamere test store
   Built to the measured Nectar structure in NICHE-DNA.md, with an original
   health-adjacent palette. Type scale, radius system, container widths and
   section rhythm follow the extracted measurements; colour and copy do not. */

@import url('https://api.fontshare.com/v2/css?f[]=switzer@400,500,600,700&display=swap');

:root {
  /* palette: all pairings verified WCAG AA */
  --pine:      #14342B;
  --pine-deep: #0E2620;
  --clay:      #B4552D;
  --clay-dark: #98431F;
  --bone:      #FBF9F5;
  --oat:       #F2EDE4;
  --border:    #E3DCD0;
  --ink:       #2A2723;
  --muted:     #6B6459;
  --sage:      #4A7C59;
  --white:     #FFFFFF;

  /* geometry: 8px is the system, per measurement */
  --r:      8px;
  --r-pill: 200px;
  --shadow: rgba(0, 0, 0, 0.24) 0 1px 4px;

  --max:     1440px;
  --content: 1144px;
  --text:    768px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Switzer', -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--ink);
  background: var(--bone);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 60px; line-height: 64px; }
h2 { font-size: 28px; line-height: 32px; }
h3 { font-size: 24px; line-height: 28px; }

@media (max-width: 900px) {
  h1 { font-size: 38px; line-height: 42px; }
  h2 { font-size: 24px; line-height: 28px; }
  h3 { font-size: 20px; line-height: 26px; }
}

.wrap    { width: 100%; max-width: var(--content); margin: 0 auto; padding: 0 24px; }
.wrap-lg { width: 100%; max-width: var(--max);     margin: 0 auto; padding: 0 24px; }
.muted   { color: var(--muted); }
.center  { text-align: center; }
.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- focus states ---------- */
/* clay ring on light backgrounds (4.7:1 vs bone/white), bone ring on
   dark pine/pine-deep backgrounds (13.0:1); both clear the 3:1 bar */
a:focus-visible, button:focus-visible, .btn:focus-visible,
.nav-cta:focus-visible, .card:focus-visible, .faq summary:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}
.utility a:focus-visible, .utility button:focus-visible,
.nav a:focus-visible, footer a:focus-visible {
  outline-color: var(--bone);
}

/* ---------- utility bar ---------- */
.utility {
  background: var(--pine-deep);
  color: var(--bone);
  font-size: 13px;
  line-height: 20px;
}
.utility .wrap-lg {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 40px;
}
.rotator { display: flex; align-items: center; gap: 14px; }
.rotator button {
  background: none; border: 0; color: var(--bone);
  cursor: pointer; font-size: 15px; line-height: 1; padding: 4px 6px;
  opacity: .7;
}
.rotator button:hover { opacity: 1; }
.utility-links { display: flex; gap: 22px; }
.utility-links a { text-decoration: none; opacity: .85; }
.utility-links a:hover { opacity: 1; }
@media (max-width: 760px) { .utility-links { display: none; } }

/* ---------- nav ---------- */
.nav { background: var(--pine); color: var(--bone); }
.nav .wrap-lg {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; min-height: 68px;
}
.brand {
  font-size: 24px; font-weight: 600; letter-spacing: -0.02em;
  text-decoration: none; color: var(--bone); white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 26px; flex: 1; }
.nav-links a {
  text-decoration: none; font-size: 15px; font-weight: 500;
  color: var(--bone); opacity: .92; white-space: nowrap;
}
.nav-links a:hover { opacity: 1; }
.tag {
  display: inline-block; margin-left: 8px;
  background: var(--clay); color: var(--white);
  font-size: 10px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 9px; border-radius: var(--r-pill);
  vertical-align: middle;
}
.nav-cta {
  border: 1px solid rgba(251, 249, 245, .45);
  border-radius: var(--r-pill);
  padding: 9px 20px; font-size: 14px; font-weight: 500;
  text-decoration: none; white-space: nowrap;
}
.nav-cta:hover { background: rgba(251, 249, 245, .1); }
.nav-icons { display: flex; gap: 18px; font-size: 14px; }
@media (max-width: 1000px) { .nav-links { display: none; } }

/* ---------- price strip ---------- */
.strip {
  background: var(--oat); border-bottom: 1px solid var(--border);
  text-align: center; font-size: 14px; font-weight: 500;
  padding: 11px 24px; color: var(--ink);
}

/* ---------- hero ---------- */
.hero { background: var(--bone); padding: 72px 0 56px; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.eyebrow {
  display: inline-block; background: var(--pine); color: var(--bone);
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding: 7px 14px;
  border-radius: var(--r-pill); margin-bottom: 20px;
}
.hero p.lede {
  font-size: 18px; line-height: 28px; color: var(--muted);
  max-width: 520px; margin: 20px 0 28px;
}
.from {
  margin-top: 20px; font-size: 15px; font-weight: 600; color: var(--clay);
}
.hero-img {
  border-radius: var(--r); overflow: hidden;
  background: var(--oat); border: 1px solid var(--border);
}
.hero-img img { width: 100%; height: 440px; object-fit: contain; padding: 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--clay); color: var(--white);
  font-size: 16px; font-weight: 600; text-decoration: none;
  padding: 15px 34px; border-radius: var(--r); border: 0; cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: var(--clay-dark); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-ghost {
  background: transparent; color: var(--pine);
  border: 1px solid var(--pine);
}
.btn-ghost:hover { background: var(--pine); color: var(--bone); }

/* ---------- trust row ---------- */
.trust { background: var(--white); border-block: 1px solid var(--border); padding: 30px 0; }
.trust-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
@media (max-width: 900px) { .trust-row { grid-template-columns: repeat(2, 1fr); } }
.trust-item svg { width: 34px; height: 34px; margin: 0 auto 10px; display: block; }
.trust-item span { font-size: 13px; font-weight: 500; line-height: 18px; display: block; }

/* ---------- proof bar ---------- */
.proof {
  background: var(--pine); color: var(--bone);
  padding: 16px 0; font-size: 14px; font-weight: 500;
}
.proof .wrap-lg {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; text-align: center;
}

/* ---------- sections ---------- */
section.band     { padding: 76px 0; }
section.band.alt { background: var(--oat); }
.section-head { max-width: var(--text); margin: 0 0 40px; }
.section-head p { color: var(--muted); font-size: 17px; line-height: 27px; margin: 12px 0 0; }

/* ---------- product grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 1050px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: box-shadow .15s ease;
}
.card:hover { box-shadow: var(--shadow); }
.card-img { background: var(--oat); height: 210px; display: grid; place-items: center; }
.card-img img { max-height: 180px; width: auto; object-fit: contain; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 16px; font-weight: 600; line-height: 22px; }
.card-note  { font-size: 13px; color: var(--muted); line-height: 19px; flex: 1; }
.price { display: flex; align-items: baseline; gap: 9px; }
.price .now  { font-size: 20px; font-weight: 600; }
.price .was  { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.stock { font-size: 12px; font-weight: 600; color: var(--sage); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 30px;
}
.step .n {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--pine); color: var(--bone);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600; margin-bottom: 16px;
}
.step p { color: var(--muted); margin: 10px 0 0; font-size: 15px; line-height: 24px; }

/* ---------- table ---------- */
table.cmp {
  width: 100%; border-collapse: collapse;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; font-size: 15px;
}
table.cmp th, table.cmp td {
  padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border);
}
table.cmp caption {
  text-align: left; font-size: 14px; line-height: 20px;
  color: var(--muted); padding: 0 4px 12px;
}
table.cmp thead th { background: var(--pine); color: var(--bone); font-weight: 600; }
table.cmp tbody th { font-weight: 600; }
table.cmp tbody tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

/* ---------- faq ---------- */
.faq { max-width: var(--text); }
.faq details {
  border-bottom: 1px solid var(--border); padding: 20px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 17px; list-style: none;
  display: flex; justify-content: space-between; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--clay); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq p { color: var(--muted); margin: 12px 0 0; line-height: 26px; }

/* ---------- PDP ---------- */
.pdp { padding: 44px 0 76px; }
.pdp-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; }
@media (max-width: 980px) { .pdp-grid { grid-template-columns: 1fr; gap: 32px; } }
.gallery-main {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); display: grid; place-items: center; padding: 24px;
}
.gallery-main img { max-height: 460px; object-fit: contain; }
.thumbs { display: flex; gap: 12px; margin-top: 12px; }
.thumbs img {
  width: 84px; height: 84px; object-fit: contain; padding: 6px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); cursor: pointer;
}
.thumbs img:hover { border-color: var(--clay); }
.pdp h1 { font-size: 40px; line-height: 46px; }
@media (max-width: 900px) { .pdp h1 { font-size: 30px; line-height: 36px; } }
.pdp .price { margin: 18px 0; }
.pdp .price .now { font-size: 32px; }
.save {
  background: var(--oat); color: var(--clay); font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: var(--r-pill);
}
ul.bullets { padding-left: 0; list-style: none; margin: 22px 0; }
ul.bullets li {
  padding: 10px 0 10px 28px; position: relative;
  border-bottom: 1px solid var(--border); font-size: 15px; line-height: 23px;
}
ul.bullets li::before {
  content: ''; position: absolute; left: 4px; top: 18px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--clay);
}
.ship-note {
  background: var(--oat); border: 1px solid var(--border); border-radius: var(--r);
  padding: 16px 18px; font-size: 14px; line-height: 22px; margin-top: 20px;
}
table.spec { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 12px; }
table.spec td,
table.spec th { padding: 12px 0; border-bottom: 1px solid var(--border); }
table.spec th { color: var(--muted); width: 42%; font-weight: 400; text-align: left; }

/* ---------- footer ---------- */
footer { background: var(--pine); color: var(--bone); padding: 56px 0 28px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
/* h3 is the correct level after the h2 sections; h4 kept in the selector so the
   pre-WP3 product-cap.html footer keeps its styling until reconciliation */
footer h3, footer h4 { margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
footer a { display: block; text-decoration: none; opacity: .82; font-size: 15px; padding: 5px 0; }
footer a:hover { opacity: 1; }
footer .soon { display: block; opacity: .82; font-size: 15px; padding: 5px 0; }
.foot-note {
  border-top: 1px solid rgba(251, 249, 245, .18);
  margin-top: 40px; padding-top: 22px;
  font-size: 12.5px; line-height: 20px; opacity: .72; max-width: 900px;
}
