/* ===== Palette: notebook paper, indigo ink & coral highlighter ===== */
:root {
  --paper:     #fdfdfb;
  --grid:      rgba(55, 48, 163, 0.06);
  --indigo-900:#1e1b4b;
  --indigo-700:#3730a3;
  --indigo-100:#e0e7ff;
  --coral-500: #ff6b5b;
  --coral-600: #ec5242;
  --coral-100: #ffe3df;
  --text:      #22223a;
  --muted:     #6b6b85;
  --line:      #e6e6f0;
  --star:      #f5a524;
}

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

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text);
  font-family: 'Palanquin', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

.product-title,
.section-subtitle,
.reviews-heading,
.site-name,
.cta-button {
  font-family: 'Kalam', 'Palanquin', cursive;
  font-weight: 700;
}

/* ===== Header ===== */
.site-header {
  background: var(--indigo-700);
  border-bottom: 4px dashed var(--coral-500);
}
.site-name {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.55;
}
@media (min-width: 768px) {
  .site-name { font-size: 1.2rem; }
}

/* ===== Product card ===== */
.product-card {
  position: relative;
  background: #fff;
  border-radius: 6px;
  padding: 26px 18px 18px;
  border: 2px solid var(--indigo-900);
  box-shadow: 6px 8px 0 var(--indigo-100);
}
.product-card::before {
  /* "tape" strip */
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 120px;
  height: 26px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(255, 107, 91, 0.35);
  border-radius: 2px;
}
@media (min-width: 768px) {
  .product-card { padding: 44px 40px 40px; }
}

/* ===== Gallery (radio + CSS) ===== */
.gallery-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--indigo-100);
  border: 2px solid var(--indigo-900);
}
.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: #fff;
  color: var(--indigo-900);
  border: 2px solid var(--indigo-900);
  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(--coral-500); color: #fff; }
.nav.prev { left: 10px; }
.nav.next { right: 10px; }

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

#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(--coral-500);
  box-shadow: 3px 3px 0 var(--indigo-900);
}

/* ===== Product info ===== */
.product-title {
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--indigo-900);
}
@media (min-width: 768px) {
  .product-title { font-size: 1.7rem; }
}
.section-subtitle {
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--indigo-900);
}
.section-subtitle span {
  background: linear-gradient(transparent 55%, rgba(255, 107, 91, 0.45) 55%);
  padding: 0 4px;
}
.features { list-style: none; padding: 0; margin: 0; }
.features li {
  padding: 10px 0 10px 14px;
  margin-bottom: 4px;
  border-left: 3px solid var(--indigo-100);
  font-size: 0.97rem;
  transition: border-color .2s;
}
.features li:hover { border-left-color: var(--coral-500); }
.features strong {
  display: block;
  color: var(--indigo-700);
  font-weight: 700;
}

.info-note {
  background: var(--coral-100);
  border: 2px dashed var(--coral-500);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.92rem;
  color: var(--indigo-900);
}

/* ===== CTA ===== */
.cta-button {
  display: inline-block;
  width: 100%;
  max-width: 480px;
  padding: 18px 32px 14px;
  background: var(--coral-500);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1.2;
  text-decoration: none;
  border: 3px solid var(--indigo-900);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--indigo-900);
  transform: rotate(-1deg);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--coral-600);
  transform: rotate(0deg) translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--indigo-900);
}
@media (min-width: 768px) {
  .cta-button { font-size: 1.95rem; padding: 20px 44px 16px; }
}

/* ===== Reviews (Amazon-like) ===== */
.reviews {
  max-width: 820px;
  margin: 0 auto;
}
.reviews-heading {
  font-size: 1.8rem;
  line-height: 1.3;
  color: var(--indigo-900);
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--indigo-900);
}
.review { padding: 22px 0; }
.review + .review {
  border-top: 1px dashed var(--indigo-100);
  margin-top: 6px;
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 14px;
  background: var(--indigo-100);
  border: 2px solid var(--indigo-900);
}
.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(--indigo-900);
}
.review-meta {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--coral-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: 6px;
  border: 2px solid var(--indigo-900);
}
@media (min-width: 768px) {
  .review-photos img { width: 120px; height: 120px; }
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 48px;
  background: var(--indigo-900);
  color: #d4d6f5;
  border-top: 4px dashed var(--coral-500);
}
.footer-name {
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-links a {
  color: #ffb3aa;
  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; }