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

:root {
  /* Warm rose-burgundy palette for hibiscus/hawthorn */
  --crimson:        #9b2335;
  --crimson-dark:   #6d1826;
  --crimson-mid:    #c03a4a;
  --rose-light:     #f4b8c1;
  --rose-pale:      #fdf0f1;
  --rose-xpale:     #fff7f8;
  --hibiscus:       #d94f6b;
  --green-leaf:     #4a7c59;
  --green-pale:     #e8f2eb;

  --text-dark:      #1a1a1a;
  --text-mid:       #444444;
  --text-light:     #6b7280;
  --border-color:   #e8d8db;
  --white:          #ffffff;
  --star-color:     #e8a000;

  --radius-sm:      6px;
  --radius-md:      10px;
  --shadow-sm:      0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:      0 4px 20px rgba(155,35,53,0.10);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background-color: var(--rose-xpale);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

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

/* ===========================
   HEADER
   =========================== */
.site-header {
  background: linear-gradient(135deg, var(--crimson-dark) 0%, var(--crimson) 60%, var(--hibiscus) 100%);
  color: var(--white);
  padding: 16px 16px 14px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(109,24,38,0.30);
}

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

.site-name {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-light);
  margin: 0 0 5px;
}

.site-header h1.header-title {
  font-size: clamp(1rem, 2.4vw, 1.28rem);
  font-weight: 700;
  color: var(--white);
  margin: 0;
  line-height: 1.35;
}

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

.product-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===========================
   GALLERY
   =========================== */
.gallery-col {
  padding: 20px;
  background: var(--rose-pale);
  border-bottom: 1px solid var(--border-color);
}

.gallery-wrapper {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}

.gallery-radio {
  display: none;
}

.gallery-main {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--white);
  margin-bottom: 12px;
}

.gallery-slides {
  display: flex;
  width: 400%;
}

.gallery-slide {
  width: 25%;
  flex-shrink: 0;
  display: none;
}

.gallery-slide img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 10px;
}

/* Show active slide */
#img1:checked ~ .gallery-main .gallery-slides .slide-1,
#img2:checked ~ .gallery-main .gallery-slides .slide-2,
#img3:checked ~ .gallery-main .gallery-slides .slide-3,
#img4:checked ~ .gallery-main .gallery-slides .slide-4 {
  display: block;
}

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

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

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

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

#img1:checked ~ .gallery-thumbs label[for="img1"],
#img2:checked ~ .gallery-thumbs label[for="img2"],
#img3:checked ~ .gallery-thumbs label[for="img3"],
#img4:checked ~ .gallery-thumbs label[for="img4"] {
  border-color: var(--crimson);
  box-shadow: 0 0 0 1px var(--crimson);
}

/* ===========================
   PRODUCT INFO
   =========================== */
.product-info-col {
  padding: 24px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-title {
  font-size: clamp(1.05rem, 2.3vw, 1.32rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin: 0;
}

/* Stars + rating */
.product-stars {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-stars .stars {
  color: var(--star-color);
  font-size: 1.35rem;
  letter-spacing: 2px;
  line-height: 1;
}

.rating-text {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

/* Badges row */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

.badge-organic  { background: #d4edda; color: #1a5c2e; border: 1px solid #a8d5b5; }
.badge-nonGmo   { background: #e8f4d4; color: #3a6b14; border: 1px solid #b8d880; }
.badge-kosher   { background: #e8eaf6; color: #3949ab; border: 1px solid #c5cae9; }
.badge-caff     { background: #fce4ec; color: #c2185b; border: 1px solid #f8bbd0; }
.badge-bcorp    { background: #fff3e0; color: #bf6000; border: 1px solid #ffe082; }

/* Description */
.desc-heading {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--crimson-dark);
  margin: 0 0 10px;
}

.desc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.desc-list li {
  font-size: 0.93rem;
  color: var(--text-mid);
  padding-left: 18px;
  position: relative;
  line-height: 1.58;
}

.desc-list li::before {
  content: "•";
  color: var(--hibiscus);
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 0;
}

.desc-list li strong {
  color: var(--text-dark);
}

/* Keywords block */
.keywords-block {
  background: var(--rose-pale);
  border-left: 3px solid var(--hibiscus);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
}

.keywords-block p {
  font-size: 0.87rem;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.62;
}

/* ===========================
   CTA BUTTON
   =========================== */
.cta-button {
  display: block;
  background: var(--crimson);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 3px 14px rgba(155,35,53,0.38);
  max-width: 380px;
  width: 100%;
  margin: 4px auto 0;
}

.cta-button:hover,
.cta-button:focus {
  background: var(--crimson-dark);
  box-shadow: 0 5px 20px rgba(109,24,38,0.46);
  transform: translateY(-1px);
}

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

/* ===========================
   BOTTOM CTA SECTION
   =========================== */
.bottom-cta-section {
  padding: 12px 16px 40px;
  display: flex;
  justify-content: center;
}

/* ===========================
   REVIEWS SECTION
   =========================== */
.reviews-section {
  padding: 12px 16px 8px;
  background: var(--white);
  border-top: 1px solid var(--border-color);
}

.reviews-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 0 8px;
}

.reviews-heading {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--rose-light);
}

/* Single review */
.review-item {
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--border-color);
}

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

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

.review-avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--rose-light);
  background: var(--rose-pale);
}

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

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

.reviewer-name {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

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

.review-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.4;
}

.review-date {
  font-size: 0.81rem;
  color: var(--text-light);
  margin: 0 0 3px;
}

.review-attrs {
  font-size: 0.81rem;
  color: var(--text-light);
  margin: 0 0 10px;
}

.review-body p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.68;
  margin: 0 0 10px;
}

.review-body p:last-child {
  margin-bottom: 0;
}

/* Review photos */
.review-photos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.review-photos img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  transition: opacity 0.2s;
}

.review-photos img:hover {
  opacity: 0.82;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: linear-gradient(135deg, var(--crimson-dark) 0%, var(--crimson) 100%);
  color: var(--rose-light);
  padding: 22px 16px 18px;
  margin-top: 6px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  justify-content: center;
  align-items: center;
  font-size: 0.79rem;
}

.footer-links a {
  color: var(--rose-light);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-sep {
  color: rgba(244,184,193,0.45);
  font-size: 0.75rem;
}

.footer-copy {
  font-size: 0.74rem;
  color: rgba(244,184,193,0.70);
  margin: 0;
}

/* ===========================
   RESPONSIVE – TABLET / DESKTOP
   =========================== */
@media (min-width: 768px) {

  .product-card {
    flex-direction: row;
    align-items: stretch;
  }

  .gallery-col {
    flex: 0 0 380px;
    max-width: 380px;
    border-bottom: none;
    border-right: 1px solid var(--border-color);
    padding: 24px;
  }

  .gallery-wrapper {
    max-width: 100%;
  }

  .product-info-col {
    flex: 1;
    padding: 28px 28px 32px;
  }

  .cta-button {
    font-size: 1.12rem;
    padding: 17px 40px;
  }

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

  .thumb-label {
    width: 68px;
    height: 68px;
  }
}

@media (min-width: 1024px) {
  .product-section {
    padding: 36px 24px 20px;
  }

  .gallery-col {
    flex: 0 0 420px;
    max-width: 420px;
  }
}