/* ==========================================================================
   Base
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  background-color: #f6faf7;
  color: #1f2d24;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background-color: #1f6d3b;
  border-bottom: 3px solid #164e2a;
}

.header-name {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Product section
   ========================================================================== */
.product-section {
  padding: 32px 0 8px;
}

.product-wrapper {
  background: #ffffff;
  border: 1px solid #dce8de;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(31, 109, 59, 0.06);
}

/* ---------- Gallery ---------- */
.gallery-main {
  position: relative;
}

.gallery-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gallery-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f0f5f1;
  border: 1px solid #e1ebe3;
  border-radius: 10px;
  overflow: hidden;
}

.gallery-slide {
  margin: 0;
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* show slide 1 by default (checked) */
.slide-1 {
  display: flex;
}

#img1:checked ~ .gallery-slides .slide-1,
#img2:checked ~ .gallery-slides .slide-2,
#img3:checked ~ .gallery-slides .slide-3,
#img4:checked ~ .gallery-slides .slide-4 {
  display: flex;
}

#img2:checked ~ .gallery-slides .slide-1,
#img3:checked ~ .gallery-slides .slide-1,
#img4:checked ~ .gallery-slides .slide-1 {
  display: none;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.thumb-label {
  display: block;
  border: 2px solid #dce8de;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  transition: border-color 0.15s ease;
}

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

.thumb-label:hover {
  border-color: #4c9a68;
}

#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: #1f6d3b;
}

/* ---------- Product info ---------- */
.product-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #164e2a;
  margin: 0 0 6px;
}

.product-subtitle {
  font-size: 0.98rem;
  color: #3c4a41;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6efe8;
}

.description-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f6d3b;
  margin: 0 0 12px;
}

.description-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.description-list li {
  font-size: 0.95rem;
  color: #263528;
}

.wellness-note {
  font-size: 0.9rem;
  color: #4b5c50;
  background: #eef6f0;
  border-left: 3px solid #4c9a68;
  padding: 12px 14px;
  border-radius: 6px;
  margin: 0;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-section {
  margin: 36px 0;
}

.cta-button {
  display: inline-block;
  background-color: #1f6d3b;
  color: #ffffff !important;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 18px 48px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(31, 109, 59, 0.28);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.cta-button:hover {
  background-color: #164e2a;
  transform: translateY(-1px);
}

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews-section {
  padding-bottom: 48px;
}

.reviews-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: #164e2a;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #dce8de;
}

.review {
  padding: 20px 0;
  border-bottom: 1px solid #e6efe8;
}

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

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

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #dce8de;
}

.review-name {
  font-weight: 700;
  color: #1f2d24;
  margin: 0 0 2px;
  font-size: 0.95rem;
}

.review-stars {
  color: #1f6d3b;
  font-size: 1rem;
  letter-spacing: 2px;
  margin: 0 0 2px;
}

.review-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1f2d24;
  margin: 0;
}

.review-meta {
  font-size: 0.82rem;
  color: #6b7a70;
  margin: 8px 0 2px;
}

.review-attributes {
  font-size: 0.82rem;
  color: #6b7a70;
  margin: 0 0 10px;
}

.review-text {
  font-size: 0.95rem;
  color: #263528;
  margin: 0;
}

.review-photo {
  margin-top: 12px;
  max-width: 220px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e1ebe3;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #164e2a;
  color: #eaf3ec;
}

.footer-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 14px;
  max-width: 640px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-links a {
  font-size: 0.85rem;
  color: #cfe6d6;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* ==========================================================================
   Responsive (mobile-first: photos on top, description below)
   ========================================================================== */
@media (max-width: 767px) {
  .product-wrapper {
    padding: 16px;
  }

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

  .cta-button {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.05rem;
  }
}

@media (min-width: 768px) {
  .gallery-thumbs {
    gap: 12px;
  }
}