/* ===========================================================
   Moonsight Planner — storefront styles
   Palette pulled from the original Shopify store:
   gold accent, warm cream background, deep charcoal text
   =========================================================== */

/* Montserrat, self-hosted (assets/fonts) so the brand font always
   loads reliably — no dependency on a third-party Google Fonts
   request, which can be blocked by ad blockers / privacy extensions
   or slow networks and silently fall back to a generic system font. */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/montserrat-300.woff2v2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-400.woff2v2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/montserrat-500.woff2v2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-600.woff2v2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-700.woff2v2') format('woff2');
}

:root {
  --gold: #b6923f;
  --gold-dark: #8f7130;
  --gold-light: #e9d9ae;
  --cream: #f7f2e9;
  --cream-2: #fffdf8;
  --charcoal: #2b2b2b;
  --charcoal-light: #636363;
  --purple: #5f5ec4;
  --success: #4caf50;
  --alert: #d32f2f;
  --radius: 14px;
  --max-width: 1180px;
  --shadow: 0 8px 24px rgba(43, 43, 43, 0.08);
  --shadow-hover: 0 14px 32px rgba(43, 43, 43, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--cream-2);
  line-height: 1.6;
}

/* Site-wide light headings, matching the thin/elegant tagline-band look.
   Buttons, badges, prices, nav links, and small labels keep their own
   (heavier) font-weight below for legibility/hierarchy. */
h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
}

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

a { color: var(--gold-dark); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--charcoal);
  color: var(--gold-light);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 8px 16px;
}

/* ---------- Header ---------- */
header.site-header {
  background: var(--cream-2);
  border-bottom: 1px solid #eee2c8;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo img { height: 44px; width: auto; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav.main-nav a:hover { color: var(--gold-dark); }

.cart-note {
  font-size: 13px;
  color: var(--charcoal-light);
}

/* ---------- Hero slideshow ---------- */
.hero-slideshow {
  position: relative;
  height: min(64vw, 520px);
  min-height: 320px;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-slides { position: relative; width: 100%; height: 100%; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 24px 40px;
  background: linear-gradient(to top, rgba(20,17,10,0.55) 0%, rgba(20,17,10,0) 55%);
  display: flex;
  justify-content: center;
}

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  display: inline-block;
}

.hero-dot.active { background: #fff; }

.hero-cta {
  display: inline-block;
  background: var(--gold-dark);
  color: #fff;
  text-decoration: none;
  padding: 14px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}

.hero-cta:hover { background: var(--charcoal); transform: translateY(-2px); }

/* ---------- Tagline band (below hero slideshow) ---------- */
.tagline-band {
  text-align: center;
  padding: 60px 24px 50px;
  background: radial-gradient(ellipse at top, #fbf6ea 0%, var(--cream-2) 70%);
}

.tagline-band h1 {
  font-size: clamp(24px, 3.6vw, 40px);
  margin: 0 0 14px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.3;
}

.tagline-band .gold-word { color: var(--gold-dark); }

.tagline-band p.tagline {
  font-size: 13.5px;
  font-weight: 300;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--charcoal-light);
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- Eyebrow (small kicker text used across sections) ---------- */
.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 10px;
}

/* ---------- Curated product carousels ---------- */
.curated-collection { padding: 50px 24px; }

.collection-head { text-align: center; margin-bottom: 28px; }

.collection-head h2 { font-size: 26px; margin: 0; }

.carousel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
}

.carousel-row-arrow {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #eadfc2;
  background: #fff;
  color: var(--charcoal);
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.carousel-row-arrow:hover { background: var(--cream); }

.carousel-card {
  flex: none;
  width: 240px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #f0e8d4;
  display: flex;
  flex-direction: column;
}

.carousel-card .thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cream);
  cursor: pointer;
  position: relative;
}

.carousel-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.carousel-card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.carousel-card h4 {
  font-size: 14.5px;
  margin: 0;
  cursor: pointer;
  line-height: 1.35;
}

.carousel-card h4:hover { color: var(--gold-dark); }

.carousel-card .price-row { margin: 0; }

.carousel-card .btn { margin-top: auto; }

/* ---------- Image + text feature blocks ---------- */
.feature-block { padding: 60px 24px; }

.feature-block-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-block.reverse .feature-block-inner { direction: rtl; }
.feature-block.reverse .feature-block-inner > * { direction: ltr; }

.feature-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-text h3 {
  font-size: 26px;
  margin: 0 0 14px;
  line-height: 1.3;
}

.feature-text p { color: var(--charcoal-light); font-size: 15.5px; line-height: 1.65; }

/* ---------- Single-product spotlight ---------- */
.spotlight { padding: 20px 24px 60px; }

.spotlight-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 40px;
}

.spotlight-image { position: relative; cursor: pointer; }

.spotlight-image img { width: 100%; border-radius: 10px; box-shadow: var(--shadow); }

.spotlight-content .desc { color: var(--charcoal-light); font-size: 15px; margin: 0 0 16px; }

.spotlight-content h3 { font-size: 24px; margin: 0 0 6px; }

/* ---------- Brand ethos block ---------- */
.ethos-block {
  text-align: center;
  padding: 60px 24px;
  background: var(--cream-2);
}

.ethos-text {
  max-width: 680px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.6;
  color: var(--charcoal);
}

/* ---------- Newsletter ---------- */
.newsletter-block {
  text-align: center;
  padding: 60px 24px;
  background: var(--charcoal);
  color: #fff;
}

.newsletter-block h3 { font-size: 24px; margin: 0 0 10px; }

.newsletter-block p { color: #cfcfcf; max-width: 520px; margin: 0 auto 24px; }

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-family: inherit;
}

.newsletter-form .btn { width: auto; padding: 12px 22px; }

.newsletter-note {
  margin: 16px auto 0;
  font-size: 12px;
  color: #9a9a9a;
  max-width: 420px;
}

/* ---------- Sitewide testimonial carousel ---------- */
.rating-summary-large {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: 6px;
}

.rating-summary-large span { color: var(--charcoal-light); font-weight: 500; }

.testimonial-card {
  flex: none;
  width: 280px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid #f0e8d4;
  box-shadow: var(--shadow);
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.testimonial-product { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }

.testimonial-product img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex: none;
}

.testimonial-product-name {
  font-size: 11.5px;
  color: var(--charcoal-light);
  line-height: 1.3;
}

.testimonial-title { font-weight: 600; font-size: 14px; }

.testimonial-text {
  font-size: 13.5px;
  color: var(--charcoal-light);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-meta { font-size: 12px; color: var(--charcoal-light); margin-top: auto; }

/* ---------- Section headings ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.section-head p { color: var(--charcoal-light); }

section.shop { padding: 70px 24px 90px; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
  border: 1px solid #f0e8d4;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.product-card .thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cream);
  cursor: pointer;
  position: relative;
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .thumb img { transform: scale(1.05); }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.badge.free { background: var(--purple); }

.product-card .body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  cursor: pointer;
}

.product-card h3:hover { color: var(--gold-dark); }

.product-card p.desc {
  font-size: 13.5px;
  color: var(--charcoal-light);
  flex: 1;
  margin: 0 0 16px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.price {
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
}

.price.free { color: var(--purple); }

.compare {
  font-size: 14px;
  color: #aaa;
  text-decoration: line-through;
}

.btn {
  display: inline-block;
  text-align: center;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.btn-buy {
  background: var(--gold-dark);
  color: #fff;
  width: 100%;
}

.btn-buy:hover { background: var(--charcoal); }

.btn-buy[data-missing-link="true"] {
  opacity: 0.6;
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--gold-dark);
  color: var(--gold-dark);
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 26, 18, 0.55);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  z-index: 100;
}

.modal-overlay.open { display: flex; }

.modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 780px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--cream);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: var(--charcoal);
}

.modal img.modal-img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: var(--cream);
  border-radius: 10px;
  margin-bottom: 0;
  display: block;
}

/* ---------- Modal photo gallery ---------- */
.modal-gallery {
  margin-bottom: 20px;
}

.modal-gallery-viewport {
  position: relative;
}

.modal-gallery-viewport .modal-img {
  margin-bottom: 0;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: var(--charcoal);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.gallery-arrow:hover { background: #fff; }

.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.gallery-count {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(30, 26, 18, 0.6);
  color: #fff;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 20px;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.gallery-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--gold);
  cursor: pointer;
  display: inline-block;
}

.gallery-dot.active {
  background: var(--gold);
}

.modal h2 { margin-top: 0; font-size: 26px; }

.modal .price-row { margin: 16px 0 20px; }

.modal .modal-desc h2,
.modal .modal-desc h3 { font-size: 18px; margin: 20px 0 8px; }
.modal .modal-desc p { margin: 0 0 12px; font-size: 14.5px; }
.modal .modal-desc ul { padding-left: 20px; margin: 0 0 12px; }
.modal .modal-desc li { margin-bottom: 6px; font-size: 14.5px; }

/* ---------- About / trust section ---------- */
.trust {
  background: var(--cream);
  padding: 60px 24px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.trust-grid .icon { font-size: 30px; margin-bottom: 10px; }
.trust-grid h4 { margin: 0 0 6px; font-size: 15px; }
.trust-grid p { margin: 0; font-size: 13.5px; color: var(--charcoal-light); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--charcoal);
  color: #d9d4c8;
  padding: 50px 24px 30px;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

footer.site-footer h5 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 14px;
}

footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 8px; font-size: 13.5px; }
footer.site-footer a { color: #d9d4c8; text-decoration: none; }
footer.site-footer a:hover { color: var(--gold-light); }

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 12px;
  color: #8b8677;
}

/* ---------- Countdown timer ---------- */
.countdown-timer {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--alert);
  background: #fdecea;
  border-radius: 6px;
  padding: 6px 10px;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.countdown-timer.countdown-ended {
  color: var(--charcoal-light);
  background: var(--cream);
}

/* ---------- Per-product rating summary + reviews ---------- */
.rating-summary {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-dark);
  margin: -2px 0 8px;
}

.rating-summary span {
  font-weight: 500;
  color: var(--charcoal-light);
}

.product-reviews {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #eee2c8;
}

.product-reviews h3 { margin: 0 0 14px; font-size: 17px; }

.product-reviews-list {
  display: grid;
  gap: 14px;
}

.product-reviews .review-card { box-shadow: none; border: 1px solid #f0e8d4; padding: 16px 18px; }

.no-reviews {
  font-size: 13.5px;
  color: var(--charcoal-light);
  font-style: italic;
}

.reviews-sample-note {
  margin: -8px 0 14px;
  font-size: 12.5px;
  color: var(--charcoal-light);
  font-style: italic;
}

/* ---------- Reviews ---------- */
section.reviews { padding: 70px 24px; background: var(--cream); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.review-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  border: 1px solid #f0e8d4;
}

.review-card.is-placeholder { border: 1px dashed var(--gold); }

.placeholder-flag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.stars {
  color: var(--gold-dark);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.review-text {
  font-size: 14.5px;
  color: var(--charcoal);
  margin: 0 0 14px;
}

.review-meta {
  font-size: 12.5px;
  color: var(--charcoal-light);
}

/* ---------- Recent activity popup ---------- */
.activity-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 300px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  border: 1px solid #f0e8d4;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s, opacity 0.3s;
  z-index: 80;
}

.activity-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon { font-size: 20px; }

.toast-when {
  color: var(--charcoal-light);
  font-size: 11.5px;
}

.toast-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--charcoal-light);
}

@media (max-width: 500px) {
  .activity-toast { left: 16px; right: 16px; max-width: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  nav.main-nav { display: none; }
  .header-inner { justify-content: center; }
  .tagline-band { padding: 44px 20px 40px; }
  .hero-slideshow { height: 60vw; min-height: 260px; }
  .feature-block-inner { grid-template-columns: 1fr; gap: 24px; }
  .feature-block.reverse .feature-block-inner { direction: ltr; }
  .feature-block.reverse .feature-image { order: -1; }
  .spotlight-inner { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .carousel-row-arrow { display: none; }
  .ethos-text { font-size: 17px; }
}
