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

:root {
  --green-900: #14532d;
  --green-800: #166534;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-100: #dcfce7;
  --green-50:  #f0fdf4;
  --white:     #ffffff;
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-400:  #9ca3af;
  --gray-600:  #4b5563;
  --gray-800:  #1f2937;
  --star:      #f59e0b;
  --radius:    10px;
  --shadow:    0 2px 12px rgba(0,0,0,0.08);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--green-50);
  color: var(--gray-800);
  line-height: 1.65;
  min-height: 100vh;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: var(--green-800);
  color: var(--white);
  padding: 18px 16px 14px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

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

.header-brand {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-100);
  margin-bottom: 6px;
}

.site-header h1.header-title {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--white);
  max-width: 820px;
  margin: 0 auto;
}

/* =============================================
   PRODUCT SECTION
   ============================================= */
.product-section {
  padding: 36px 16px 20px;
}

.product-card {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: row;
  gap: 0;
  overflow: hidden;
}

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

.gallery-block {
  flex: 0 0 420px;
  max-width: 420px;
  background: var(--gray-50);
  padding: 24px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--gray-200);
}

.gallery-slides {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  display: flex;
}

.gallery-slide {
  flex: 0 0 100%;
  display: none;
}

.gallery-slide img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
}

/* Show active slide via radio */
#img1:checked ~ .gallery-slides .gallery-slide:nth-child(1),
#img2:checked ~ .gallery-slides .gallery-slide:nth-child(2),
#img3:checked ~ .gallery-slides .gallery-slide:nth-child(3),
#img4:checked ~ .gallery-slides .gallery-slide:nth-child(4) {
  display: block;
}

/* Dots */
.gallery-dots {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-200);
  cursor: pointer;
  transition: background 0.2s;
  display: block;
}

#img1:checked ~ .gallery-dots .gallery-dot:nth-child(1),
#img2:checked ~ .gallery-dots .gallery-dot:nth-child(2),
#img3:checked ~ .gallery-dots .gallery-dot:nth-child(3),
#img4:checked ~ .gallery-dots .gallery-dot:nth-child(4) {
  background: var(--green-600);
}

/* Thumbnails */
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-thumbs label {
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  display: block;
}

.gallery-thumbs label img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  display: block;
}

#img1:checked ~ .gallery-thumbs label:nth-child(1),
#img2:checked ~ .gallery-thumbs label:nth-child(2),
#img3:checked ~ .gallery-thumbs label:nth-child(3),
#img4:checked ~ .gallery-thumbs label:nth-child(4) {
  border-color: var(--green-600);
}

/* =============================================
   PRODUCT INFO
   ============================================= */
.product-info {
  flex: 1;
  padding: 28px 28px 28px;
}

.product-title {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.4;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--green-100);
  padding-bottom: 14px;
}

.desc-heading {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-700);
  margin-bottom: 14px;
}

.desc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.desc-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--gray-800);
  line-height: 1.6;
}

.bullet-icon {
  color: var(--green-600);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.desc-list strong {
  color: var(--green-800);
}

.keywords-note {
  font-size: 0.82rem;
  color: var(--gray-600);
  background: var(--green-50);
  border-left: 3px solid var(--green-500);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  line-height: 1.6;
  margin-top: 8px;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  text-align: center;
  padding: 36px 16px;
}

.cta-button {
  display: inline-block;
  background: var(--green-600);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 18px 52px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.cta-button:hover {
  background: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(22, 163, 74, 0.45);
}

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

/* =============================================
   REVIEWS SECTION
   ============================================= */
.reviews-section {
  max-width: 820px;
  margin: 0 auto 48px;
  padding: 0 16px;
}

.reviews-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 24px;
  border-bottom: 2px solid var(--green-100);
  padding-bottom: 10px;
}

.review-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
}

.review-item:last-child {
  border-bottom: none;
}

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

.review-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--green-100);
  border: 2px solid var(--green-200, #bbf7d0);
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reviewer-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-800);
}

.review-stars {
  color: var(--star);
  font-size: 1rem;
  letter-spacing: 1px;
}

.review-title-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-800);
}

.review-date {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.review-attrs {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-bottom: 10px;
}

.review-body {
  font-size: 0.88rem;
  color: var(--gray-800);
  line-height: 1.65;
  margin-bottom: 14px;
}

.review-photos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.review-photos img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--green-900);
  color: var(--green-100);
  padding: 28px 16px;
  text-align: center;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.footer-brand {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 4px;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--green-100);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-sep {
  color: var(--green-700);
  font-size: 0.78rem;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--green-100);
  opacity: 0.7;
}

/* =============================================
   RESPONSIVE – TABLET
   ============================================= */
@media (max-width: 860px) {
  .gallery-block {
    flex: 0 0 340px;
    max-width: 340px;
  }

  .gallery-slide img {
    height: 260px;
  }

  .product-info {
    padding: 22px 20px;
  }
}

/* =============================================
   RESPONSIVE – MOBILE
   ============================================= */
@media (max-width: 640px) {
  .product-card {
    flex-direction: column;
  }

  .gallery-block {
    flex: none;
    max-width: 100%;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 16px 14px;
  }

  .gallery-slide img {
    height: 250px;
  }

  .gallery-thumbs label img {
    width: 56px;
    height: 56px;
  }

  .product-info {
    padding: 20px 16px;
  }

  .product-title {
    font-size: 0.98rem;
  }

  .cta-button {
    font-size: 1rem;
    padding: 16px 32px;
    width: 100%;
    max-width: 360px;
  }

  .review-photos img {
    width: 76px;
    height: 76px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .footer-sep {
    display: none;
  }
}