/* ══════════════════════════════════════
   TEST-TEA — style.css
   Palette: parchment + deep amber + espresso
   Persona: warm editorial commerce
   No green. No JS.
══════════════════════════════════════ */

:root {
  --parchment:    #FAF6F0;
  --parchment-2:  #F2EBE0;
  --parchment-3:  #E8DDD0;
  --amber:        #B06A20;
  --amber-dk:     #8A4F14;
  --amber-lt:     #F5E6D3;
  --espresso:     #1E1410;
  --espresso-2:   #3D2E20;
  --espresso-3:   #6B5444;
  --rule:         #DDD0C0;
  --star:         #C87A20;
  --white:        #FFFFFF;

  --ff-head:  'Libre Baskerville', Georgia, serif;
  --ff-body:  'Barlow', system-ui, sans-serif;
}

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

body {
  background: var(--parchment);
  color: var(--espresso-2);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.7;
}

/* ── HEADER ── */
.site-header {
  background: var(--espresso);
  padding: 1.25rem 1.5rem 1.1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 3px solid var(--amber);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.header-brand {
  font-family: var(--ff-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.2rem;
}
.header-title {
  font-family: var(--ff-head);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1.1;
}
.header-sub {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-top: 0.2rem;
}

/* ── PRODUCT SECTION ── */
.product-section {
  padding: 3rem 1.25rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
}
@media (min-width: 768px) {
  .product-card {
    grid-template-columns: 460px 1fr;
  }
}

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

/* Radio inputs hidden */
.g-radio { display: none; }

/* Stage */
.gallery-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 3px;
  background: var(--parchment);
}
.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Show active slide via sibling selector */
#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;
  flex-wrap: wrap;
}
.g-thumb {
  width: 64px;
  height: 64px;
  border: 2px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  display: block;
  transition: border-color 0.15s;
  background: var(--parchment);
}
.g-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.g-thumb:hover { border-color: var(--amber); }

/* Active thumb highlight */
#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(--amber);
  box-shadow: 0 0 0 1px var(--amber);
}

/* ── PRODUCT INFO ── */
.product-info-col {
  padding: 2rem 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.product-brand-tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}
.product-title {
  font-family: var(--ff-head);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 700;
  color: var(--espresso);
  line-height: 1.4;
}
.product-stars {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.star {
  color: var(--star);
  font-size: 1.15rem;
  line-height: 1;
}
.star-count {
  font-size: 0.78rem;
  color: var(--amber-dk);
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}

.product-divider {
  height: 1px;
  background: var(--rule);
  margin: 0.25rem 0;
}

/* Bullets */
.product-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.product-bullets li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--espresso-2);
  line-height: 1.65;
}
.bullet-icon {
  color: var(--amber);
  font-size: 0.5rem;
  margin-top: 0.55rem;
  flex-shrink: 0;
}
.product-bullets strong {
  font-weight: 600;
  color: var(--espresso);
}

/* Keyword note */
.product-keyword-note {
  font-size: 0.82rem;
  font-weight: 300;
  font-style: italic;
  color: var(--espresso-3);
  line-height: 1.7;
  border-left: 3px solid var(--amber-lt);
  padding-left: 0.85rem;
}
.product-keyword-note em {
  font-style: normal;
  font-weight: 600;
  color: var(--amber-dk);
}

/* CTA */
.cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0 0.5rem;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
  color: var(--white);
  text-decoration: none;
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.95rem 2.5rem;
  border-radius: 3px;
  border: 2px solid var(--amber-dk);
  width: 100%;
  max-width: 340px;
  text-align: center;
  transition: background 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 2px 8px rgba(176,106,32,0.25);
}
.cta-btn:hover {
  background: var(--amber-dk);
  border-color: var(--espresso-2);
}
.cta-sub {
  font-size: 0.7rem;
  color: var(--espresso-3);
  font-weight: 300;
}

/* ══ REVIEWS SECTION ══ */
.reviews-section {
  padding: 3rem 1.25rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}
.reviews-inner {
  max-width: 760px;
}
.reviews-heading {
  font-family: var(--ff-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--espresso);
  margin-bottom: 0.65rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--rule);
}
.reviews-summary-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
}
.reviews-avg {
  color: var(--star);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}
.reviews-avg-num {
  font-weight: 600;
  color: var(--espresso-2);
}
.reviews-count {
  color: var(--espresso-3);
  font-weight: 300;
}

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

.review-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.25rem;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--parchment-3);
  border: 1px solid var(--rule);
}
.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.review-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.review-username {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--espresso);
}
.review-stars {
  color: var(--star);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  line-height: 1;
}
.review-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--espresso);
  margin-top: 0.1rem;
}
.review-date {
  font-size: 0.75rem;
  color: var(--espresso-3);
  font-weight: 300;
}
.review-attrs {
  font-size: 0.75rem;
  color: var(--espresso-3);
  font-weight: 300;
}
.review-body {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--espresso-2);
  line-height: 1.75;
}
.review-body p { margin-bottom: 0.5rem; }

/* Review photos */
.review-photos {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.review-photos img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--rule);
  display: block;
}

/* ══ FOOTER ══ */
.site-footer {
  background: var(--espresso);
  border-top: 3px solid var(--amber);
  padding: 2rem 1.5rem;
  margin-top: 1rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}
.footer-brand {
  font-family: var(--ff-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.06em;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.75rem;
}
.footer-links a {
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--amber); }
.footer-sep {
  color: rgba(255,255,255,0.25);
  font-size: 0.72rem;
}
.footer-copy {
  font-size: 0.65rem;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
}

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

@media (min-width: 768px) and (max-width: 1023px) {
  .product-card {
    grid-template-columns: 380px 1fr;
  }
}