/* =============================================
   Dr. Lu's Té Feliz para Hombre — style.css
   Aesthetic: Warm earth / natural herbalist
   ============================================= */

:root {
  --cream:       #FAF6EF;
  --parchment:   #F2EAD8;
  --amber:       #C8873A;
  --amber-dark:  #A06828;
  --amber-light: #E8B97A;
  --terracotta:  #C05A3A;
  --bark:        #4A3020;
  --bark-light:  #7A5C3C;
  --muted:       #8A7060;
  --text:        #2E1E10;
  --border:      #DDD0BC;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-ui:      'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ───────────────────────────────── */
.site-header {
  background-color: var(--bark);
  padding: 0.85rem 1.5rem;
  text-align: center;
  border-bottom: 3px solid var(--amber);
}

.site-header .brand {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.5vw, 1.25rem);
  color: var(--amber-light);
  letter-spacing: 0.02em;
  font-weight: 700;
}

/* ── MAIN ─────────────────────────────────── */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* ── PRODUCT SECTION ──────────────────────── */
.product-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

/* ── GALLERY ──────────────────────────────── */
.gallery {
  position: sticky;
  top: 1.5rem;
}
.gallery-main {
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--parchment);
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 12px;
  padding: 1rem;
  background: var(--parchment);
  display: block;
}

.gallery-slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 0;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--parchment);
  scrollbar-width: none;
}
.gallery-slides::-webkit-scrollbar { display: none; }

.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.gallery-slide img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 12px;
  padding: 1rem;
  background: var(--parchment);
  display: block;
}

/* Radio-based gallery (CSS-only switcher) */
.gallery-radios { display: none; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 0.75rem;
}
.gallery-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border);
  border: 1.5px solid var(--amber);
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}

/* Thumbnail strip */
.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
  flex: 0 0 64px;
  height: 64px;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--parchment);
  cursor: pointer;
  transition: border-color 0.2s;
}
.gallery-thumb:hover { border-color: var(--amber); }
.gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 4px;
}

/* ── PRODUCT INFO ─────────────────────────── */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  line-height: 1.3;
  color: var(--bark);
  font-weight: 700;
}

.product-badge {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 0.25rem;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, var(--amber) 0%, transparent 100%);
  opacity: 0.4;
}

.product-description {
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--text);
}

.product-description ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-description li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text);
}
.product-description li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--amber);
  font-size: 0.75rem;
}

.product-description li strong {
  color: var(--bark);
  font-weight: 700;
  display: block;
  margin-bottom: 0.15rem;
}

.keywords-note {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
  padding: 0.85rem 1rem;
  background: var(--parchment);
  border-left: 3px solid var(--amber-light);
  border-radius: 0 8px 8px 0;
}

/* ── CTA BUTTON ───────────────────────────── */
.cta-wrapper {
  text-align: center;
  margin: 2.5rem 0 3.5rem;
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--amber) 0%, var(--terracotta) 100%);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 1rem 2.75rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(200,135,58,0.4);
  transition: transform 0.18s, box-shadow 0.18s;
  border: none;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200,135,58,0.5);
}
.cta-btn:active { transform: translateY(0); }

/* ── REVIEWS SECTION ──────────────────────── */
.reviews-section {
  margin-top: 1rem;
}

.reviews-heading {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--bark);
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--parchment);
}

/* Individual review */
.review {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--border);
}
.review:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.review-avatar {
  flex: 0 0 48px;
}
.review-avatar img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--amber-light);
  display: block;
  background: var(--parchment);
}

.review-body { flex: 1; min-width: 0; }

.review-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.75rem;
  margin-bottom: 0.15rem;
}

.review-author {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bark);
}

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

.review-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--text);
  margin-top: 0.1rem;
}

.review-date {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.35rem 0 0.2rem;
  font-family: var(--font-ui);
}

.review-attrs {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-ui);
  margin-bottom: 0.5rem;
}
.review-attrs .verified {
  color: var(--amber-dark);
  font-weight: 600;
}

.review-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.65;
}

.review-photos {
  display: flex;
  gap: 8px;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.review-photos img {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--parchment);
}

/* ── FOOTER ───────────────────────────────── */
.site-footer {
  background: var(--bark);
  color: var(--amber-light);
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 3px solid var(--amber);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--amber-light);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
}

.footer-links a {
  color: #C8A87A;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--amber-light); }

.footer-sep {
  color: var(--bark-light);
}

.footer-copy {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--bark-light);
  font-family: var(--font-ui);
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 768px) {
  .product-section {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .gallery { position: static; }

  main { padding: 1.5rem 1rem 3rem; }

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

  .cta-btn { font-size: 1rem; padding: 0.9rem 2rem; }

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

@media (max-width: 480px) {
  .gallery-thumbs { gap: 6px; }
  .gallery-thumb { flex: 0 0 52px; height: 52px; }
}