/* ===== Palette: autumn oat, cranberry, apple green & cinnamon ===== */
:root {
  --oat:        #faf4ea;
  --oat-200:    #f0e3cf;
  --cran-800:   #6e1423;
  --cran-600:   #a3203a;
  --cran-100:   #f8dde2;
  --apple-600:  #6c9a2e;
  --apple-100:  #e8f1d8;
  --cinnamon:   #b5652b;
  --text:       #3a2a24;
  --muted:      #7b6a60;
  --line:       #eadcc7;
  --star:       #e69c22;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 100% 0%, var(--cran-100) 0, transparent 340px),
    radial-gradient(circle at 0% 100%, var(--apple-100) 0, transparent 380px),
    var(--oat);
  color: var(--text);
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== Header ===== */
.site-header {
  background: var(--cran-800);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.03) 0 12px,
    transparent 12px 24px
  );
  border-bottom: 4px solid var(--cinnamon);
}
.site-name {
  display: block;
  color: #fff6ec;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.55;
}
@media (min-width: 768px) {
  .site-name { font-size: 1.08rem; }
}

/* ===== Product card ===== */
.product-card {
  background: #fffdf9;
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 26px 52px -28px rgba(110, 20, 35, 0.4);
}
@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: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #fff 0%, var(--oat) 55%, var(--oat-200) 100%);
  border: 1px solid var(--line);
}
.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: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cran-600);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 6px 14px rgba(110, 20, 35, 0.3);
  transition: background .2s;
  user-select: none;
}
.nav:hover { background: var(--apple-600); }
.nav.prev { left: 12px; }
.nav.next { right: 12px; }

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

#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(--cran-600);
  box-shadow: 0 0 0 3px var(--cran-100);
}

/* ===== Product info ===== */
.product-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--cran-800);
}
@media (min-width: 768px) {
  .product-title { font-size: 1.7rem; }
}

.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.specs th,
.specs td {
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.specs th {
  width: 40%;
  padding-right: 12px;
  font-weight: 600;
  color: var(--cinnamon);
}
.specs td { color: var(--muted); }

.section-subtitle {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cran-800);
}
.features { list-style: none; padding: 0; margin: 0; }
.features li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  font-size: 0.97rem;
}
.features li::before {
  /* cranberry */
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e0475f 0%, var(--cran-800) 80%);
}
.features li::after {
  /* apple leaf */
  content: "";
  position: absolute;
  left: 10px;
  top: calc(0.4em - 4px);
  width: 9px;
  height: 6px;
  background: var(--apple-600);
  border-radius: 0 100% 0 100%;
}
.features strong { color: var(--cran-600); font-weight: 600; }

.info-note {
  background: var(--apple-100);
  border-left: 4px solid var(--apple-600);
  border-radius: 0 14px 14px 0;
  padding: 12px 16px;
  font-size: 0.92rem;
  color: #3d5420;
}

/* ===== CTA ===== */
.cta-button {
  display: inline-block;
  width: 100%;
  max-width: 480px;
  padding: 20px 32px;
  background: linear-gradient(180deg, var(--cran-600) 0%, var(--cran-800) 100%);
  color: #fff6ec;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 16px;
  border: 2px solid var(--cinnamon);
  box-shadow: 0 0 0 5px var(--oat-200), 0 20px 36px -14px rgba(110, 20, 35, 0.65);
  transition: transform .2s, filter .2s;
}
.cta-button:hover,
.cta-button:focus {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
@media (min-width: 768px) {
  .cta-button { font-size: 1.7rem; padding: 22px 44px; }
}

/* ===== Reviews (Amazon-like) ===== */
.reviews {
  max-width: 820px;
  margin: 0 auto;
}
.reviews-heading {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--cran-800);
  padding-bottom: 10px;
  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(--oat-200);
}
.review-name {
  font-size: 0.95rem;
  font-weight: 500;
  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: 600;
  line-height: 1.45;
  margin-top: 2px;
  color: var(--cran-800);
}
.review-meta {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--apple-600);
}
.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: 12px;
  border: 1px solid var(--line);
}
@media (min-width: 768px) {
  .review-photos img { width: 120px; height: 120px; }
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 48px;
  background: var(--cran-800);
  color: #f3d9dd;
  border-top: 4px solid var(--cinnamon);
}
.footer-name {
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-links a {
  color: #f6c48f;
  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; }