/* ===== Palette: frost, wild blueberry & grape ===== */
:root {
  --frost:      #f3f5ff;
  --frost-200:  #dfe3fb;
  --berry-900:  #1e2150;
  --berry-700:  #343a96;
  --berry-500:  #5a61d6;
  --grape-600:  #7a3ea3;
  --grape-100:  #efe4f7;
  --leaf-500:   #5aa36a;
  --text:       #22244a;
  --muted:      #676a8f;
  --line:       #e1e3f5;
  --star:       #f3a92a;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle, rgba(90, 97, 214, 0.10) 3px, transparent 4px) 0 0 / 46px 46px,
    linear-gradient(180deg, var(--frost-200) 0%, var(--frost) 360px, #fff 100%);
  color: var(--text);
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  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: 'Sora', 'Figtree', system-ui, sans-serif;
}

/* ===== Header ===== */
.site-header {
  background: linear-gradient(90deg, var(--berry-900) 0%, var(--berry-700) 60%, var(--grape-600) 100%);
}
.site-name {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
}
@media (min-width: 768px) {
  .site-name { font-size: 1.12rem; }
}

/* ===== Product card (frosted) ===== */
.product-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 26px;
  padding: 18px;
  border: 1px solid #fff;
  box-shadow:
    0 0 0 1px var(--frost-200),
    0 30px 60px -30px rgba(30, 33, 80, 0.45);
}
@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: 22px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 25%, #fff 0%, var(--frost) 40%, var(--grape-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: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--berry-700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 6px 16px rgba(52, 58, 150, 0.35);
  transition: background .2s;
  user-select: none;
}
.nav:hover { background: var(--grape-600); }
.nav.prev { left: 12px; }
.nav.next { right: 12px; }

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

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

/* ===== Product info ===== */
.product-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: var(--berry-900);
}
@media (min-width: 768px) {
  .product-title { font-size: 1.8rem; }
}

.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  border-top: 2px solid var(--berry-700);
}
.specs th,
.specs td {
  text-align: left;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.specs th {
  width: 40%;
  padding-right: 12px;
  font-weight: 700;
  color: var(--berry-700);
}
.specs td { color: var(--muted); }

.section-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--berry-900);
}
.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 {
  /* blueberry */
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--berry-500) 0%, var(--berry-900) 75%);
}
.features li::after {
  /* little leaf */
  content: "";
  position: absolute;
  left: 11px;
  top: calc(0.35em - 4px);
  width: 8px;
  height: 6px;
  background: var(--leaf-500);
  border-radius: 0 100% 0 100%;
}
.features strong {
  color: var(--berry-700);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
}

.info-note {
  background: var(--grape-100);
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 0.93rem;
  color: #4a2a63;
}

/* ===== CTA ===== */
.cta-button {
  display: inline-block;
  width: 100%;
  max-width: 480px;
  padding: 20px 32px;
  background: linear-gradient(135deg, var(--berry-500) 0%, var(--berry-700) 50%, var(--grape-600) 100%);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 0 0 6px var(--frost-200), 0 20px 36px -12px rgba(52, 58, 150, 0.6);
  transition: transform .2s, box-shadow .2s;
}
.cta-button:hover,
.cta-button:focus {
  transform: translateY(-3px);
  box-shadow: 0 0 0 6px var(--grape-100), 0 24px 40px -12px rgba(122, 62, 163, 0.6);
}
@media (min-width: 768px) {
  .cta-button { font-size: 1.55rem; padding: 22px 44px; }
}

/* ===== Reviews (Amazon-like) ===== */
.reviews {
  max-width: 820px;
  margin: 0 auto;
}
.reviews-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--berry-900);
  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(--frost-200);
}
.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(--berry-900);
}
.review-meta {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--grape-600);
}
.review-text {
  margin-top: 8px;
  font-size: 0.98rem;
}
.review-photos { margin-top: 12px; }
.review-photos img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}
@media (min-width: 768px) {
  .review-photos img { width: 120px; height: 120px; }
}

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