/* ============================================================
   SERENE MOM STUDIO — product.css
   Styles for individual product landing pages
   Mobile-first · Conversion-focused
   ============================================================ */

/* ── Product page body ──────────────────────────────────────── */
.product-page { background: var(--white); }

/* ── PRODUCT HERO ───────────────────────────────────────────── */
.prod-hero {
  padding: 40px 0 56px;
  background: var(--white);
}

.prod-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* ── Gallery ────────────────────────────────────────────────── */
.prod-hero__gallery { width: 100%; }

.prod-gallery__main {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--beige);
  margin-bottom: 12px;
}
.prod-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.prod-gallery__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.prod-gallery__thumbs::-webkit-scrollbar { display: none; }

.thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: 7px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--beige);
  padding: 0;
  transition: border-color var(--transition), transform var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.thumb--active { border-color: var(--green); }
.thumb:hover   { transform: scale(1.05); }

/* ── Product copy ───────────────────────────────────────────── */
.prod-hero__copy { width: 100%; }

.prod__eyebrow {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.prod__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}
.prod__title span {
  font-size: 0.65em;
  display: block;
  color: var(--brown);
  font-style: italic;
}

.prod__tagline {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 460px;
}

.prod__micro {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 12px;
  text-align: center;
}

.prod__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 20px;
}
.prod__trust span {
  font-size: 0.8rem;
  color: var(--brown-dark);
  background: rgba(163,177,138,0.12);
  border-radius: 50px;
  padding: 6px 14px;
  font-weight: 700;
}

/* ── Sticky bottom CTA ──────────────────────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  border-top: 1px solid rgba(142,124,110,0.15);
  padding: 12px 20px 16px;
  z-index: 90;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  /* safe area for iPhones with home bar */
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.sticky-cta.visible { transform: translateY(0); }

/* ── Shared product sections ────────────────────────────────── */
.prod-section {
  padding: 64px 0;
}
.prod-section__inner {
  max-width: 860px;
  margin: 0 auto;
}
.prod-section__inner--narrow {
  max-width: 580px;
}
.prod-section .section-title { margin-bottom: 36px; }

/* ── Pain points grid ───────────────────────────────────────── */
.pain__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 36px;
}
.pain__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--beige);
  border-radius: var(--radius);
  padding: 20px;
}
.pain__icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.pain__item p {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.65;
}
.prod-what__bridge {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--brown-dark);
  font-style: italic;
}

/* ── What's inside grid ─────────────────────────────────────── */
.inside__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.inside__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid rgba(142,124,110,0.15);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(142,124,110,0.06);
}
.inside__num {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-dark);
  min-width: 52px;
  flex-shrink: 0;
}
.inside__item p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

/* ── Steps (how it works) ───────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.step {
  text-align: center;
  padding: 28px 24px;
  background: var(--beige);
  border-radius: var(--radius);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.step h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 8px;
}
.step p {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ── Faith / verse section ──────────────────────────────────── */
.prod-faith { text-align: center; }
.verse__icon { font-size: 2rem; margin-bottom: 20px; }
.verse {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 10px;
  border: none;
  padding: 0;
}
.verse__ref {
  font-size: 0.85rem;
  color: var(--green-dark);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: block;
}
.verse__body {
  font-size: 0.97rem;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 460px;
  margin: 0 auto;
}

/* ── Bottom CTA section ─────────────────────────────────────── */
.prod-cta-section {
  background: var(--beige);
  padding: 72px 0 80px;
}
.prod-cta-section__sub {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (min-width: 600px) {
  .pain__grid       { grid-template-columns: repeat(2, 1fr); }
  .inside__grid     { grid-template-columns: repeat(2, 1fr); }
  .steps            { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 800px) {
  .prod-hero__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 56px;
  }
  .prod-hero__gallery { flex: 1 1 48%; }
  .prod-hero__copy    { flex: 1 1 48%; padding-top: 12px; }

  /* Hide sticky CTA on desktop — hero button always visible */
  .sticky-cta { display: none; }

  .prod__micro { text-align: left; }
  .steps  { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 960px) {
  .inside__grid { grid-template-columns: repeat(3, 1fr); }
}
