/* ===========================================================
   SOJOS RETRO AVIATOR SUNGLASSES — Landing Page Styles
   Palette: warm paper background, espresso noir + champagne gold
   =========================================================== */

:root {
  --noir-950: #1c1210;
  --noir-800: #2c1e1a;
  --noir-700: #3d2a24;
  --noir-600: #4f3830;
  --champagne-600: #bb8a34;
  --champagne-500: #d9a84c;
  --champagne-100: #f7ead0;
  --champagne-50:  #fbf2e2;
  --paper:     #faf7f2;
  --ink:       #201812;
  --ink-soft:  #6e6153;
  --line:      #ece2d5;
  --star:      #d9a84c;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(28, 18, 16, 0.06);
  --shadow-md: 0 8px 24px rgba(28, 18, 16, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--noir-950);
  color: #fff;
  padding: 18px 20px;
  text-align: center;
  border-bottom: 3px solid var(--champagne-500);
}

.site-header__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.35;
}

.site-header__title span {
  color: var(--champagne-500);
}

/* ---------- Main layout ---------- */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

.product-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (min-width: 900px) {
  .product-card {
    flex-direction: row;
    padding: 36px;
    gap: 40px;
  }
}

/* ---------- Gallery (no JS, radio-driven) ---------- */
.gallery {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery__viewer {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--champagne-50);
  border: 1px solid var(--line);
}

.gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

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

#img1:checked ~ .gallery__viewer .gallery__slide.slide-1,
#img2:checked ~ .gallery__viewer .gallery__slide.slide-2,
#img3:checked ~ .gallery__viewer .gallery__slide.slide-3,
#img4:checked ~ .gallery__viewer .gallery__slide.slide-4 {
  opacity: 1;
  z-index: 2;
}

.gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery__thumbs label {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--line);
  cursor: pointer;
  display: block;
  transition: border-color 0.2s ease;
}

.gallery__thumbs label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#img1:checked ~ .gallery__thumbs label[for="img1"],
#img2:checked ~ .gallery__thumbs label[for="img2"],
#img3:checked ~ .gallery__thumbs label[for="img3"],
#img4:checked ~ .gallery__thumbs label[for="img4"] {
  border-color: var(--noir-700);
}

/* ---------- Product info ---------- */
.product-info {
  flex: 1 1 55%;
}

.product-info h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--noir-950);
  margin: 0 0 6px;
  line-height: 1.3;
}

.product-info__sub {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.badge {
  display: inline-block;
  background: var(--champagne-100);
  color: var(--champagne-600);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.description-heading {
  font-weight: 700;
  color: var(--noir-800);
  margin: 22px 0 10px;
  font-size: 1.05rem;
}

.description-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.description-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-size: 0.95rem;
}

.description-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--champagne-500);
}

.wellness-note {
  margin-top: 20px;
  padding: 12px 14px;
  background: var(--champagne-50);
  border-left: 3px solid var(--champagne-500);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- CTA ---------- */
.cta-section {
  text-align: center;
  margin: 44px auto;
}

.cta-button {
  display: inline-block;
  background: var(--noir-800);
  color: var(--champagne-500);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 18px 48px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(28, 18, 16, 0.35);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.cta-button:hover {
  background: var(--champagne-500);
  color: var(--noir-950);
  transform: translateY(-2px);
}

/* ---------- Reviews ---------- */
.reviews-section {
  margin-top: 50px;
}

.reviews-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--noir-950);
  margin-bottom: 22px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
}

.review {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

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

.review__top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.review__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.review__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review__name {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}

.review__stars {
  color: var(--star);
  letter-spacing: 1px;
  font-size: 0.95rem;
  margin: 2px 0;
}

.review__title {
  font-weight: 600;
  color: var(--noir-950);
  font-size: 0.98rem;
  margin-top: 2px;
}

.review__meta {
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin: 8px 0 2px;
}

.review__attrs {
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.review__body {
  font-size: 0.93rem;
  color: var(--ink);
}

.review__photos {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.review__photo {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}

.review__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--noir-950);
  color: var(--champagne-100);
  text-align: center;
  padding: 28px 16px;
  margin-top: 60px;
}

.site-footer__name {
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  font-size: 1rem;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  font-size: 0.82rem;
}

.site-footer__links a {
  color: var(--champagne-100);
  text-decoration: underline;
}

.site-footer__links a:hover {
  color: #fff;
}

/* ---------- Mobile-first tweaks ---------- */
@media (max-width: 899px) {
  .product-card {
    padding: 18px;
  }
  .gallery {
    order: 1;
  }
  .product-info {
    order: 2;
  }
}