/* =============================================
   BASE RESET & TOKENS
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:   #1b5e3a;
  --green-mid:    #2f8d5b;
  --green-light:  #e7f5ec;
  --green-pale:   #f4faf6;
  --green-accent: #3aa86c;
  --text-main:    #1a2420;
  --text-muted:   #5a6b62;
  --text-light:   #8a988f;
  --border:       #d3e9dc;
  --white:        #ffffff;
  --star:         #e0a512;
  --font:         'Inter', system-ui, sans-serif;
  --radius:       10px;
  --shadow:       0 2px 12px rgba(0,0,0,0.06);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--green-pale);
  color: var(--text-main);
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: var(--green-dark);
  padding: 18px 24px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.header-inner { max-width: 1200px; margin: 0 auto; }

.header-title {
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

/* =============================================
   PRODUCT SECTION
   ============================================= */
.product-section {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

/* =============================================
   GALLERY
   ============================================= */
.gallery-radio { display: none; }

.gallery-wrap {
  background: var(--green-light);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gallery-main {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  aspect-ratio: 1 / 1;
}

.gallery-slide { display: none; width: 100%; height: 100%; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }

#g1:checked ~ .gallery-main #slide1,
#g2:checked ~ .gallery-main #slide2,
#g3:checked ~ .gallery-main #slide3,
#g4:checked ~ .gallery-main #slide4 { display: block; }

.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }

.thumb-label {
  width: 60px; height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  background: var(--white);
}

.thumb-label img { width: 100%; height: 100%; object-fit: cover; }

#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(--green-mid); }

.thumb-label:hover { border-color: var(--green-accent); }

/* =============================================
   PRODUCT INFO
   ============================================= */
.product-info {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.product-title {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.35;
}

.product-description { display: flex; flex-direction: column; gap: 12px; }

.desc-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  border-bottom: 2px solid var(--green-light);
  padding-bottom: 6px;
  margin-top: 8px;
}

.desc-subheading {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green-mid);
  margin-top: 10px;
}

.desc-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.desc-list li { padding-left: 20px; position: relative; font-size: 0.92rem; color: var(--text-main); }
.desc-list li::before {
  content: '✦';
  position: absolute; left: 0; top: 4px;
  color: var(--green-accent);
  font-size: 0.7rem;
}

.desc-text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

.desc-note {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
  border-left: 3px solid var(--green-accent);
  padding-left: 12px;
  margin-top: 8px;
  line-height: 1.6;
}

/* =============================================
   CTA BUTTON
   ============================================= */
.cta-section {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 0 20px;
  display: flex;
  justify-content: center;
}

.cta-btn {
  display: inline-block;
  background: var(--green-mid);
  color: var(--white);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 20px 56px;
  border-radius: 50px;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 18px rgba(47,141,91,0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-align: center;
}

.cta-btn:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,94,58,0.4);
}

.cta-btn:active { transform: translateY(0); }

/* =============================================
   REVIEWS
   ============================================= */
.reviews-section {
  max-width: 860px;
  margin: 56px auto 0;
  padding: 0 20px;
}

.reviews-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.review-item { padding: 24px 0 28px; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: none; }

.review-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 10px; }

.review-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--green-light);
  background: var(--green-light);
}

.review-meta { display: flex; flex-direction: column; gap: 2px; }
.review-name { font-size: 0.9rem; font-weight: 700; color: var(--green-dark); }
.review-stars { color: var(--star); font-size: 1rem; letter-spacing: 1px; }
.review-title-text { font-size: 0.95rem; font-weight: 600; color: var(--text-main); }
.review-date { font-size: 0.82rem; color: var(--text-light); margin-bottom: 4px; }
.review-attributes { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }
.review-body { font-size: 0.9rem; color: var(--text-main); line-height: 1.75; margin-bottom: 14px; }

.review-photo { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.review-photo img { max-width: 110px; border-radius: 6px; border: 1px solid var(--border); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--green-dark);
  color: #a8d5ba;
  padding: 36px 24px;
  text-align: center;
  margin-top: 64px;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 16px; }
.footer-links a { color: #a8d5ba; text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-copy { font-size: 0.78rem; color: #7db896; }

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 900px) {
  .product-card { grid-template-columns: 1fr; }
  .gallery-wrap { padding: 20px; }
  .gallery-main { aspect-ratio: 4 / 3; }
  .product-info { padding: 24px 24px 28px; }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 600px) {
  .site-header { padding: 14px 16px; }
  .product-section { padding: 0 12px; margin-top: 20px; }
  .gallery-main { aspect-ratio: 1 / 1; }
  .thumb-label { width: 50px; height: 50px; }
  .product-info { padding: 18px 16px 22px; gap: 14px; }
  .product-title { font-size: 1.05rem; }
  .cta-section { padding: 0 16px; }
  .cta-btn { font-size: 1rem; padding: 16px 32px; width: 100%; text-align: center; }
  .reviews-section { padding: 0 12px; }
  .review-avatar { width: 38px; height: 38px; }
  .review-photo img { max-width: 90px; }
}