/* ================================================
   SLEEP ZM — style.css
   Color system: Deep Navy + Warm Amber/Orange + Soft Ivory
   Mobile-first, minimal, Amazon-style reviews
   ================================================ */

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

:root {
  /* Palette — Navy + Amber + Ivory (completely different from green site) */
  --navy-deep:    #1c2b45;
  --navy-mid:     #243654;
  --navy-light:   #eef1f6;
  --amber-main:   #d4822a;
  --amber-dark:   #b36820;
  --amber-pale:   #fdf3e7;
  --amber-border: #f0d4a8;
  --ivory-bg:     #fdfaf6;
  --white:        #ffffff;
  --text-dark:    #1a1f2e;
  --text-mid:     #374151;
  --text-muted:   #6b7280;
  --text-link:    #0066c0;
  --star-on:      #f0a500;
  --star-off:     #d1d5db;
  --radius-sm:    6px;
  --radius-md:    12px;
  --shadow:       0 3px 16px rgba(28,43,69,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--ivory-bg);
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ================================================
   HEADER
   ================================================ */
.site-header {
  background: var(--navy-deep);
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.22);
  border-bottom: 2px solid var(--amber-main);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.site-name {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-main);
  font-weight: 700;
  margin-bottom: 4px;
}

.header-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  max-width: 660px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .header-title { font-size: 0.86rem; }
}

/* ================================================
   PRODUCT SECTION
   ================================================ */
.product-section {
  padding: 28px 16px 8px;
  max-width: 1100px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--amber-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 768px) {
  .product-card {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* ================================================
   GALLERY (radio-based, no JS)
   ================================================ */
.gallery-col {
  flex: 0 0 auto;
  width: 100%;
  background: var(--amber-pale);
  padding: 18px 14px;
}

@media (min-width: 768px) {
  .gallery-col {
    width: 42%;
    padding: 26px 22px;
    border-right: 1px solid var(--amber-border);
  }
}

.gallery-wrap input[type="radio"] { display: none; }

.slides {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.slide { display: none; }

.slide img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #fff;
}

@media (min-width: 768px) {
  .slide img { height: 350px; }
}

#s1:checked ~ .slides .slide:nth-child(1),
#s2:checked ~ .slides .slide:nth-child(2),
#s3:checked ~ .slides .slide:nth-child(3),
#s4:checked ~ .slides .slide:nth-child(4) {
  display: block;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.thumb {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.18s;
}

.thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .thumb img { width: 64px; height: 64px; }
}

#s1:checked ~ .gallery-thumbs label:nth-child(1),
#s2:checked ~ .gallery-thumbs label:nth-child(2),
#s3:checked ~ .gallery-thumbs label:nth-child(3),
#s4:checked ~ .gallery-thumbs label:nth-child(4) {
  border-color: var(--amber-main);
}

.thumb:hover { border-color: var(--amber-dark); }

/* ================================================
   INFO COLUMN
   ================================================ */
.info-col {
  flex: 1;
  padding: 22px 18px 26px;
}

@media (min-width: 768px) {
  .info-col { padding: 28px 30px 30px; }
}

.brand-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber-main);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .product-title { font-size: 1.22rem; }
}

/* Badges */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.badge {
  background: var(--navy-light);
  color: var(--navy-deep);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #c9d3e3;
}

/* About list */
.about-section { margin-bottom: 18px; }

.about-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  padding-bottom: 7px;
  border-bottom: 1.5px solid var(--amber-border);
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.bullet-num {
  flex-shrink: 0;
  background: var(--amber-main);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  letter-spacing: 0;
}

.about-list strong {
  color: var(--text-dark);
}

/* Note block */
.note-block {
  background: var(--navy-light);
  border-left: 3px solid var(--navy-deep);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 20px;
}

.note-block strong { color: var(--navy-deep); }

/* Inline CTA */
.cta-inline {
  text-align: center;
  margin-top: 4px;
}

/* ================================================
   CTA BUTTON
   ================================================ */
.cta-btn {
  display: inline-block;
  background: var(--amber-main);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 13px 30px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(212,130,42,0.32);
}

.cta-btn:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,130,42,0.42);
  text-decoration: none;
  color: #fff;
}

/* Large standalone CTA */
.cta-section {
  max-width: 1100px;
  margin: 28px auto 0;
  padding: 0 16px;
  text-align: center;
}

.cta-large {
  font-size: 1.15rem;
  padding: 18px 50px;
}

@media (max-width: 480px) {
  .cta-large {
    font-size: 1rem;
    padding: 16px 24px;
    width: 100%;
    text-align: center;
  }
  .cta-btn {
    width: 100%;
    text-align: center;
  }
}

/* ================================================
   REVIEWS SECTION
   ================================================ */
.reviews-section {
  max-width: 1100px;
  margin: 36px auto 0;
  padding: 0 16px 50px;
}

.reviews-wrap {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--amber-border);
  padding: 28px 22px;
}

.reviews-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--amber-border);
}

/* Single review */
.review {
  padding: 22px 0;
  border-bottom: 1px solid #ede8e0;
}

.review:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review:first-of-type { padding-top: 0; }

/* Header row */
.review-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.avatar-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--amber-border);
  background: var(--amber-pale);
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reviewer-info { flex: 1; }

.reviewer-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.stars {
  display: flex;
  gap: 1px;
  margin-bottom: 3px;
}

.star {
  font-size: 1rem;
  line-height: 1;
}

.star.on  { color: var(--star-on); }
.star.off { color: var(--star-off); }

.review-headline {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* Date & attrs */
.review-date {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.review-attrs {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.verified {
  color: var(--amber-dark);
  font-weight: 600;
}

/* Body */
.review-text {
  font-size: 0.87rem;
  color: var(--text-mid);
  line-height: 1.68;
  margin-bottom: 12px;
}

/* Review photos */
.review-imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.review-imgs img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--amber-border);
}

@media (min-width: 480px) {
  .review-imgs img { width: 110px; height: 110px; }
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background: var(--navy-deep);
  border-top: 2px solid var(--amber-main);
  padding: 22px 16px;
  color: #a8b8d0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 10px;
}

.footer-nav a {
  font-size: 0.77rem;
  color: var(--amber-main);
  text-decoration: underline;
  transition: color 0.15s;
}

.footer-nav a:hover { color: #ffffff; }

.sep {
  color: #4a6080;
  font-size: 0.77rem;
}

.footer-copy {
  font-size: 0.7rem;
  color: #4a6080;
}