/* ===== Palette: twilight, midnight & chamomile ===== */
:root {
  --twilight:   #f4f3fb;
  --dusk-100:   #e6e5f7;
  --peri-300:   #b9bdea;
  --midnight:   #1b2340;
  --night-700:  #2f3a66;
  --chamomile:  #f6d77a;
  --cham-600:   #d9ae2f;
  --cham-50:    #fff8e2;
  --text:       #232741;
  --muted:      #686d8a;
  --line:       #e1e0f0;
  --star:       #f2b62b;
}

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

body {
  margin: 0;
  background: linear-gradient(180deg, var(--dusk-100) 0%, var(--twilight) 420px);
  color: var(--text);
  font-family: 'Mulish', 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: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
}

/* ===== Header (night sky) ===== */
.site-header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1.5px 1.5px at 12% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 70%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 45% 20%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 65%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 35%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 75%, #fff 50%, transparent 51%),
    linear-gradient(180deg, var(--midnight) 0%, var(--night-700) 100%);
}
.site-header::after {
  /* crescent moon */
  content: "";
  position: absolute;
  top: 14px;
  right: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: -7px 4px 0 0 var(--chamomile);
  opacity: 0.9;
}
.site-name {
  display: block;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1.35;
}
@media (min-width: 768px) {
  .site-name { font-size: 1.55rem; }
}

/* ===== Product card ===== */
.product-card {
  background: #fff;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 28px 60px -30px rgba(27, 35, 64, 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: 20px;
  overflow: hidden;
  background: radial-gradient(circle at 70% 20%, var(--cham-50) 0%, #fff 35%, var(--dusk-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: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--midnight);
  color: var(--chamomile);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s, color .2s;
  user-select: none;
}
.nav:hover { background: var(--chamomile); color: var(--midnight); }
.nav.prev { left: 12px; }
.nav.next { right: 12px; }

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

#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(--night-700);
  box-shadow: 0 0 0 3px var(--chamomile);
}

/* ===== Product info ===== */
.product-title {
  font-size: 1.85rem;
  line-height: 1.2;
  color: var(--midnight);
}
@media (min-width: 768px) {
  .product-title { font-size: 2.3rem; }
}

.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.specs th,
.specs td {
  text-align: left;
  padding: 8px 12px;
}
.specs tr:nth-child(odd) { background: var(--twilight); }
.specs th {
  width: 42%;
  font-weight: 700;
  color: var(--night-700);
  border-radius: 8px 0 0 8px;
}
.specs td { border-radius: 0 8px 8px 0; }

.section-subtitle {
  font-size: 1.55rem;
  color: var(--midnight);
}
.features { list-style: none; padding: 0; margin: 0; }
.features li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 0.98rem;
}
.features li::before {
  content: "☾";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cham-600);
  font-size: 1.05rem;
}
.features strong { color: var(--night-700); }

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

/* ===== CTA ===== */
.cta-button {
  display: inline-block;
  width: 100%;
  max-width: 480px;
  padding: 18px 32px;
  background: var(--chamomile);
  color: var(--midnight);
  font-size: 1.8rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 0 0 6px var(--cham-50), 0 18px 36px -12px rgba(217, 174, 47, 0.7);
  transition: background .2s, color .2s, transform .2s;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--midnight);
  color: var(--chamomile);
  transform: translateY(-2px);
}
@media (min-width: 768px) {
  .cta-button { font-size: 2rem; padding: 20px 44px; }
}

/* ===== Reviews (Amazon-like) ===== */
.reviews {
  max-width: 820px;
  margin: 0 auto;
}
.reviews-heading {
  font-size: 2rem;
  line-height: 1.2;
  color: var(--midnight);
  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(--dusk-100);
}
.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(--midnight);
}
.review-meta {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--night-700);
}
.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: 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(--midnight);
  color: #c9cce6;
}
.footer-name {
  font-size: 0.92rem;
  line-height: 1.6;
}
.footer-links a {
  color: var(--chamomile);
  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; }