/* ═══════════════════════════════════════════════════
   FreshDrinkUS — style.css
   Green minimalist, mobile-first
═══════════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --green-900: #14532d;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-100: #dcfce7;
  --green-50:  #f0fdf4;

  --gray-800: #1f2937;
  --gray-600: #4b5563;
  --gray-400: #9ca3af;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;

  --amber-500: #f59e0b;
  --amber-400: #fbbf24;

  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 1px 4px rgba(0,0,0,.08), 0 4px 24px rgba(0,0,0,.06);

  --font: 'Inter', system-ui, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
}

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

body {
  font-family: var(--font);
  background: var(--green-50);
  color: var(--gray-800);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
.site-header {
  background: var(--green-900);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--white);
}

/* ═══════════════════════════════════════
   PRODUCT SECTION
═══════════════════════════════════════ */
.product-section {
  padding: 32px 16px 24px;
}

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

@media (min-width: 900px) {
  .product-card {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* ─── GALLERY COLUMN ─── */
.gallery-col {
  position: relative;
  background: var(--gray-50);
  padding: 20px;
  flex: 0 0 auto;
  width: 100%;
}

@media (min-width: 900px) {
  .gallery-col {
    width: 46%;
    position: sticky;
    top: 64px;       /* below header */
    align-self: flex-start;
  }
}

/* Hide radios */
.gallery-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0; height: 0;
}

/* Slides container */
.gallery-main {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
}

.gallery-slides {
  display: flex;
  transition: none;
}

/* Each slide */
.gallery-slide {
  min-width: 100%;
  aspect-ratio: 1 / 1;
  display: none;        /* hidden by default, shown via radio state */
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

/* Show the correct slide based on checked radio */
#g1:checked ~ .gallery-main .gallery-slides #slide-1,
#g2:checked ~ .gallery-main .gallery-slides #slide-2,
#g3:checked ~ .gallery-main .gallery-slides #slide-3,
#g4:checked ~ .gallery-main .gallery-slides #slide-4 {
  display: flex;
}

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

.thumb-label {
  cursor: pointer;
  width: calc(25% - 6px);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .18s;
  flex-shrink: 0;
}

.thumb-label img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

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

/* Active thumb state */
#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-600);
  box-shadow: 0 0 0 2px rgba(22,163,74,.25);
}

/* ─── INFO COLUMN ─── */
.info-col {
  padding: 28px 28px 32px;
  flex: 1;
  min-width: 0;
}

@media (max-width: 899px) {
  .info-col {
    padding: 20px 20px 28px;
    border-top: 1px solid var(--border);
  }
}

/* Product title (H1) */
.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--gray-800);
  margin-bottom: 14px;
}

@media (min-width: 640px) {
  .product-title { font-size: 1.45rem; }
}

/* Badges */
.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
}

.badge-green {
  background: var(--green-100);
  color: var(--green-900);
  border: 1px solid #bbf7d0;
}

/* Description */
.product-description {}

.desc-heading {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-600);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

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

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

.desc-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Keyword note */
.keyword-note {
  font-size: .85rem;
  color: var(--gray-600);
  line-height: 1.65;
  background: var(--green-50);
  border-left: 3px solid var(--green-500);
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 8px;
}

/* ═══════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════ */
.cta-section {
  display: flex;
  justify-content: center;
  padding: 32px 16px 36px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green-600);
  color: var(--white);
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 16px 48px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(22,163,74,.35);
  transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
  min-width: 260px;
  text-align: center;
}

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

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

@media (max-width: 480px) {
  .cta-button {
    font-size: 1.05rem;
    padding: 15px 32px;
    min-width: 220px;
    width: 100%;
    max-width: 360px;
  }
}

/* ═══════════════════════════════════════
   REVIEWS SECTION
═══════════════════════════════════════ */
.reviews-section {
  background: var(--white);
  border-top: 3px solid var(--green-100);
  padding: 36px 16px 48px;
}

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

.reviews-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* ─── SINGLE REVIEW ─── */
.review-item {
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--border);
}

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

/* Header row: avatar + meta */
.review-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

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

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

/* Meta: name, stars, title */
.review-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.review-name {
  font-weight: 700;
  font-size: .93rem;
  color: var(--green-700);
  white-space: nowrap;
}

.review-stars {
  font-size: 1rem;
  line-height: 1;
}

.stars-filled {
  color: var(--amber-500);
}

.stars-empty {
  color: var(--gray-400);
}

.review-title {
  font-size: .93rem;
  font-weight: 600;
  color: var(--gray-800);
}

/* Date & attributes */
.review-date {
  font-size: .8rem;
  color: var(--gray-600);
  margin-bottom: 3px;
}

.review-attr {
  font-size: .78rem;
  color: var(--gray-400);
  margin-bottom: 12px;
}

/* Body text */
.review-body {
  font-size: .9rem;
  color: var(--gray-800);
  line-height: 1.7;
  margin-bottom: 14px;
}

.review-body p + p {
  margin-top: 10px;
}

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

.review-photos img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: opacity .18s;
}

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

@media (min-width: 480px) {
  .review-photos img {
    width: 120px;
    height: 120px;
  }
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,.75);
  padding: 24px 20px;
  text-align: center;
}

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

.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .04em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .78rem;
}

.footer-nav a {
  color: #86efac;    /* green-300 */
  transition: color .18s;
}

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

.footer-sep {
  color: rgba(255,255,255,.3);
}

.footer-copy {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
}