/* ===== Palette: tropical sand, pineapple, strawberry & palm ===== */
:root {
  --sand:        #fffaf0;
  --sand-200:    #fdecc8;
  --pine-400:    #ffc93c;
  --pine-500:    #f5b301;
  --pine-50:     #fff6d6;
  --berry-500:   #e8365d;
  --berry-600:   #c9244a;
  --berry-100:   #fde0e7;
  --palm-700:    #1f7a5a;
  --palm-900:    #124a37;
  --palm-100:    #d9f0e6;
  --text:        #2c2a24;
  --muted:       #776f5f;
  --line:        #f1e3c4;
  --star:        #f5a50a;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 8%, var(--pine-50) 0, transparent 320px),
    radial-gradient(circle at 8% 60%, var(--berry-100) 0, transparent 300px),
    radial-gradient(circle at 92% 92%, var(--palm-100) 0, transparent 320px),
    var(--sand);
  color: var(--text);
  font-family: 'Nunito', 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: 'Fredoka', 'Nunito', system-ui, sans-serif;
}

/* ===== Header ===== */
.site-header {
  background: var(--pine-400);
  position: relative;
}
.site-header::after {
  /* scalloped edge */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 12px;
  background: radial-gradient(circle at 12px 0, var(--pine-400) 12px, transparent 12.5px) repeat-x;
  background-size: 24px 12px;
}
.site-name {
  display: block;
  color: var(--palm-900);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
}
@media (min-width: 768px) {
  .site-name { font-size: 1.3rem; }
}

/* ===== Product card ===== */
.product-card {
  background: #fff;
  border-radius: 32px;
  padding: 18px;
  border: 3px solid var(--palm-900);
  box-shadow: 8px 8px 0 var(--pine-400);
  margin-top: 8px;
}
@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: 26px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--pine-50) 0%, #fff 45%, var(--berry-100) 100%);
  border: 2px 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: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--berry-500);
  color: #fff;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 6px 14px rgba(232, 54, 93, 0.35);
  transition: background .2s, transform .2s;
  user-select: none;
}
.nav:hover { background: var(--palm-700); }
.nav.prev { left: 12px; }
.nav.next { right: 12px; }

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

#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(--berry-500);
}

/* ===== Product info ===== */
.product-title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--palm-900);
}
@media (min-width: 768px) {
  .product-title { font-size: 2rem; }
}

.specs {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.93rem;
  border: 2px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.specs th,
.specs td {
  text-align: left;
  padding: 8px 14px;
  border-bottom: 2px solid var(--line);
}
.specs tr:last-child th,
.specs tr:last-child td { border-bottom: 0; }
.specs th {
  width: 40%;
  font-weight: 700;
  color: var(--palm-700);
  background: var(--pine-50);
}
.specs td { color: var(--muted); }

.section-subtitle {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  background: var(--berry-500);
  padding: 2px 16px;
  border-radius: 999px;
}
.features { list-style: none; padding: 0; margin: 0; }
.features li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  font-size: 0.97rem;
}
.features li::before {
  /* strawberry */
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 16px;
  height: 18px;
  background: var(--berry-500);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background-image: radial-gradient(circle, #ffe8a3 1px, transparent 1.5px);
  background-size: 5px 5px;
  background-color: var(--berry-500);
}
.features li::after {
  /* leaf top */
  content: "";
  position: absolute;
  left: 4px;
  top: calc(0.45em - 3px);
  width: 12px;
  height: 5px;
  background: var(--palm-700);
  border-radius: 50%;
}
.features strong { color: var(--palm-900); font-weight: 700; }

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

/* ===== CTA ===== */
.cta-button {
  display: inline-block;
  width: 100%;
  max-width: 480px;
  padding: 20px 32px;
  background: var(--berry-500);
  color: #fff;
  font-size: 1.55rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  border: 3px solid var(--palm-900);
  box-shadow: 6px 6px 0 var(--pine-400);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--berry-600);
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--pine-400);
}
@media (min-width: 768px) {
  .cta-button { font-size: 1.75rem; padding: 22px 44px; }
}

/* ===== Reviews (Amazon-like) ===== */
.reviews {
  max-width: 820px;
  margin: 0 auto;
}
.reviews-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--palm-900);
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 3px dotted var(--pine-400);
}
.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(--pine-50);
  border: 2px solid var(--pine-400);
}
.review-name {
  font-size: 0.95rem;
  font-weight: 600;
  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(--palm-900);
}
.review-meta {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--berry-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: 18px;
  border: 2px solid var(--line);
}
@media (min-width: 768px) {
  .review-photos img { width: 120px; height: 120px; }
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 48px;
  background: var(--palm-900);
  color: #d4ebe0;
  border-top: 6px solid var(--pine-400);
}
.footer-name {
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-links a {
  color: var(--pine-400);
  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; }