/* ══════════════════════════════════════
   HEALTH KING STAMINA HERB TEA
   assets/css/style.css

   Palette: deep slate-navy + dusty plum + soft cream
   Persona: calm wellness / apothecary
   No green. No amber. No espresso.
   Fonts: Crimson Pro (serif) + DM Sans
══════════════════════════════════════ */

:root {
  /* Background tones */
  --cream:       #F9F7F4;
  --cream-2:     #F1EEE9;
  --cream-3:     #E8E3DC;
  --rule:        #D8D2CA;

  /* Deep tones */
  --navy:        #1C2537;
  --navy-2:      #2E3D58;
  --navy-3:      #445270;

  /* Accent — dusty plum / thistle */
  --plum:        #6E4A6B;
  --plum-lt:     #EDE3EC;
  --plum-mid:    #9B6E97;

  /* Star / highlight */
  --gold:        #B8860B;

  /* Text */
  --ink:         #1C2537;
  --ink-2:       #3C4A5E;
  --ink-3:       #7A8499;
  --white:       #FFFFFF;

  --ff-display:  'Crimson Pro', Georgia, serif;
  --ff-body:     'DM Sans', system-ui, sans-serif;
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink-2);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.72;
}

/* ══ HEADER ══ */
.site-header {
  background: var(--navy);
  padding: 1.35rem 1.5rem 1.2rem;
  text-align: center;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.header-eyebrow {
  font-family: var(--ff-body);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--plum-mid);
}
.header-title {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.header-rule {
  width: 40px;
  height: 1.5px;
  background: var(--plum);
  margin: 0.1rem 0;
}
.header-sub {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.42);
}

/* ══ PRODUCT SECTION ══ */
.product-section {
  padding: 2.75rem 1.25rem 2rem;
}
.product-wrap {
  max-width: 1080px;
  margin: 0 auto;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}
@media (min-width: 780px) {
  .product-card {
    grid-template-columns: 420px 1fr;
  }
}

/* ── GALLERY ── */
.gallery-col {
  background: var(--cream-2);
  border-right: 1px solid var(--rule);
  padding: 1.75rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.g-radio { display: none; }

.gallery-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--rule);
}
.g-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s ease;
}
.g-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 1rem;
}

/* Active slide */
#g1:checked ~ .gallery-stage #slide1,
#g2:checked ~ .gallery-stage #slide2,
#g3:checked ~ .gallery-stage #slide3,
#g4:checked ~ .gallery-stage #slide4 {
  opacity: 1;
  position: relative;
}

/* Thumbnails */
.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.g-thumb {
  width: 60px;
  height: 60px;
  border: 2px solid var(--cream-3);
  overflow: hidden;
  cursor: pointer;
  display: block;
  background: var(--cream);
  transition: border-color 0.14s;
  flex-shrink: 0;
}
.g-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.g-thumb:hover { border-color: var(--plum); }

#g1:checked ~ .gallery-thumbs label[for="g1"],
#g2:checked ~ .gallery-thumbs label[for="g2"],
#g3:checked ~ .gallery-thumbs label[for="g3"],
#g4:checked ~ .gallery-thumbs label[for="g4"] {
  border-color: var(--plum);
  box-shadow: 0 0 0 1px var(--plum);
}

/* ── INFO COL ── */
.info-col {
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.info-brand {
  font-family: var(--ff-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plum);
}
.info-title {
  font-family: var(--ff-display);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.38;
}
.info-stars {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.star {
  color: var(--gold);
  font-size: 1.05rem;
  line-height: 1;
}
.star.half { opacity: 0.45; }
.star-label {
  font-size: 0.78rem;
  color: var(--navy-3);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.info-divider {
  height: 1px;
  background: var(--rule);
}

/* Info blocks */
.info-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.info-block-label {
  font-family: var(--ff-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.info-block-text {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.7;
}
.info-block-text strong { font-weight: 500; color: var(--ink); }
.info-amount {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--ink-3);
}

/* Directions */
.info-directions {
  list-style: none;
  counter-reset: dir-counter;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.info-directions li {
  counter-increment: dir-counter;
  display: flex;
  gap: 0.65rem;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.55;
}
.info-directions li::before {
  content: counter(dir-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--plum-lt);
  color: var(--plum);
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 50%;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Safety */
.info-safety {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: #FFF8EC;
  border: 1px solid #E8D5A0;
  border-left: 3px solid #C89A20;
  padding: 0.7rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 300;
  color: #5A4510;
  line-height: 1.6;
}
.safety-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
  color: #C89A20;
}
.info-safety strong { font-weight: 600; }

/* Legal */
.info-legal {
  font-size: 0.68rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-3);
  line-height: 1.7;
  border-left: 2px solid var(--cream-3);
  padding-left: 0.85rem;
}

/* CTA */
.cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding-top: 0.25rem;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.95rem 2.25rem;
  width: 100%;
  max-width: 360px;
  border: 2px solid var(--navy-2);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.cta-btn:hover {
  background: var(--plum);
  border-color: var(--plum);
}
.cta-icon { font-size: 1rem; }
.cta-note {
  font-size: 0.68rem;
  color: var(--ink-3);
  font-weight: 300;
}

/* ══ REVIEWS SECTION ══ */
.reviews-section {
  padding: 2.5rem 1.25rem 4rem;
}
.reviews-wrap {
  max-width: 780px;
  margin: 0 auto;
}
.reviews-header {
  border-bottom: 2px solid var(--navy);
  padding-bottom: 0.9rem;
  margin-bottom: 0.75rem;
}
.reviews-title {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.reviews-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.rev-stars { color: var(--gold); font-size: 1rem; letter-spacing: 0.05em; }
.rev-avg   { font-weight: 600; font-size: 0.85rem; color: var(--ink-2); }
.rev-count { font-size: 0.78rem; color: var(--ink-3); font-weight: 300; }

/* Single review */
.review {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.review:last-child { border-bottom: none; }

.review-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.3rem;
}
.rev-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream-3);
  border: 1.5px solid var(--rule);
}
.rev-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rev-headmeta {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}
.rev-name {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.rev-stars {
  color: var(--gold);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.rev-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.05rem;
}
.rev-date {
  font-size: 0.72rem;
  color: var(--ink-3);
  font-weight: 300;
}
.rev-attrs {
  font-size: 0.72rem;
  color: var(--ink-3);
  font-weight: 300;
}
.rev-body {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.78;
}
.rev-photos {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}
.rev-photos img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border: 1px solid var(--rule);
  display: block;
}

/* ══ FOOTER ══ */
.site-footer {
  background: var(--navy);
  padding: 2rem 1.5rem;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}
.footer-brand {
  font-family: var(--ff-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--plum-mid);
  letter-spacing: 0.06em;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 0.75rem;
}
.footer-links a {
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--plum-mid); }
.f-sep {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.18);
}
.footer-copy {
  font-size: 0.62rem;
  font-weight: 300;
  color: rgba(255,255,255,0.28);
  line-height: 1.6;
  max-width: 540px;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 779px) {
  .product-card {
    grid-template-columns: 1fr;
  }
  .gallery-col {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 1.5rem 1.25rem 1rem;
  }
  .info-col {
    padding: 1.5rem 1.25rem;
  }
  .cta-btn {
    max-width: 100%;
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }
  .g-thumb {
    width: 52px;
    height: 52px;
  }
  .reviews-wrap {
    max-width: 100%;
  }
}