/* ===== Palette: hanji ivory, ginseng amber & clay ===== */
:root {
  --ivory:     #fbf7ef;
  --paper:     #fffdf8;
  --amber-700: #9a5b1e;
  --amber-500: #c98a3d;
  --amber-100: #f5e6cf;
  --clay-700:  #8c3f2b;
  --bark-900:  #3a2a1d;
  --text:      #33271c;
  --muted:     #85735f;
  --line:      #ecdfca;
  --star:      #c98a3d;
}

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

body {
  margin: 0;
  background-color: var(--ivory);
  background-image: radial-gradient(rgba(154, 91, 30, 0.05) 1px, transparent 1px);
  background-size: 18px 18px;
  color: var(--text);
  font-family: 'Sarala', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

.product-title,
.section-subtitle,
.reviews-heading,
.site-name,
.cta-button {
  font-family: 'Rozha One', Georgia, serif;
  font-weight: 400;
}

/* ===== Header ===== */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 80px;
  height: 3px;
  transform: translateX(-50%);
  background: var(--clay-700);
}
.site-name {
  display: block;
  color: var(--bark-900);
  font-size: 1rem;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .site-name { font-size: 1.1rem; }
}

/* ===== Product card ===== */
.product-card {
  background: var(--paper);
  border-radius: 32px 8px 32px 8px;
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 45px rgba(58, 42, 29, 0.07);
}
@media (min-width: 768px) {
  .product-card { padding: 42px; }
}

/* ===== Gallery (radio + CSS) ===== */
.gallery-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 24px 6px 24px 6px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--paper) 0%, var(--amber-100) 100%);
}
.slide {
  display: none;
  position: absolute;
  inset: 0;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#img-1:checked ~ .gallery-main .slide-1,
#img-2:checked ~ .gallery-main .slide-2,
#img-3:checked ~ .gallery-main .slide-3,
#img-4:checked ~ .gallery-main .slide-4 { display: block; }

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--clay-700);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background .2s, color .2s;
  user-select: none;
}
.nav:hover { background: var(--clay-700); color: var(--paper); }
.nav.prev { left: 10px; }
.nav.next { right: 10px; }

.thumb {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background: var(--amber-100);
  border: 2px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { transform: scale(1.04); }

#img-1:checked ~ .gallery-thumbs .thumb-1,
#img-2:checked ~ .gallery-thumbs .thumb-2,
#img-3:checked ~ .gallery-thumbs .thumb-3,
#img-4:checked ~ .gallery-thumbs .thumb-4 {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px var(--amber-100);
}

/* ===== Product info ===== */
.product-title {
  font-size: 1.35rem;
  line-height: 1.55;
  color: var(--bark-900);
}
@media (min-width: 768px) {
  .product-title { font-size: 1.65rem; }
}
.section-subtitle {
  font-size: 1.15rem;
  color: var(--clay-700);
}
.features { list-style: none; padding: 0; margin: 0; }
.features li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 0.97rem;
}
.features li::before {
  content: "❋";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--amber-500);
  font-size: 0.95rem;
}

.info-note {
  background: var(--amber-100);
  border-radius: 18px 4px 18px 4px;
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--bark-900);
}

/* ===== CTA ===== */
.cta-button {
  display: inline-block;
  width: 100%;
  max-width: 480px;
  padding: 20px 32px;
  background: var(--clay-700);
  color: var(--paper);
  font-size: 1.45rem;
  letter-spacing: 0.3px;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 0 0 6px var(--amber-100), 0 14px 30px rgba(140, 63, 43, 0.3);
  transition: background .2s, transform .2s;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--amber-700);
  transform: translateY(-2px);
}
@media (min-width: 768px) {
  .cta-button { font-size: 1.6rem; padding: 22px 44px; }
}

/* ===== Reviews (Amazon-like) ===== */
.reviews {
  max-width: 820px;
  margin: 0 auto;
}
.reviews-heading {
  font-size: 1.55rem;
  color: var(--bark-900);
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.review { padding: 22px 0; }
.review + .review {
  border-top: 1px solid var(--line);
  margin-top: 6px;
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 14px;
  background: var(--amber-100);
}
.review-name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}
.stars {
  color: var(--star);
  font-size: 1.05rem;
  letter-spacing: 1px;
  line-height: 1.3;
}
.review-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 2px;
  color: var(--bark-900);
}
.review-meta {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clay-700);
}
.review-text {
  margin-top: 8px;
  font-size: 0.97rem;
}
.review-photos { margin-top: 12px; }
.review-photos img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px 4px 14px 4px;
  border: 1px solid var(--line);
}
@media (min-width: 768px) {
  .review-photos img { width: 120px; height: 120px; }
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 48px;
  background: var(--bark-900);
  color: #eadcc6;
}
.footer-name {
  font-size: 0.9rem;
  line-height: 1.65;
}
.footer-links a {
  color: var(--amber-500);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-copy { font-size: 0.8rem; opacity: 0.6; }