/* ──────────────────────────────────────────────────────────────
   Product Reviews Section — matches Figma 3660:10486
   Themed bg, eyebrow + heading, horizontal-scroll review cards,
   "Leave a Review" button.
   ────────────────────────────────────────────────────────────── */

.product-reviews {
  --ivory-100: #fefefd;
  --theme-100: #e9edf6;
  --theme-200: #dbe1ef;
  --theme-400: #b7c3e0;
  --theme-700: #626e8b;
  --theme-900: #313745;
  /* Left inset equal to where the inner content starts.
     Matches max-width:1728px + section padding:96px layout. */
  --pr-inset-left: max(96px, calc((100vw - 1728px) / 2 + 96px));

  display: block;
  width: 100%;
  background: var(--ivory-100);
  color: var(--theme-900);
  padding: 96px 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

.product-reviews[data-theme="glacier"] { --theme-100: #e9edf6; --theme-200: #dbe1ef; --theme-400: #b7c3e0; --theme-700: #626e8b; --theme-900: #313745; }
.product-reviews[data-theme="moss"]    { --theme-100: #eef1f0; --theme-200: #e3e8e6; --theme-400: #c8d2ce; --theme-700: #737d79; --theme-900: #393e3c; }
.product-reviews[data-theme="shale"]   { --theme-100: #dddee2; --theme-200: #c6c8ce; --theme-400: #8d919e; --theme-700: #383c49; --theme-900: #1c1e24; }
.product-reviews[data-theme="dune"]    { --theme-100: #f8f6f3; --theme-200: #f3f0eb; --theme-400: #e8e0d8; --theme-700: #938b83; --theme-900: #494641; }
.product-reviews[data-theme="canyon"]  { --theme-100: #f7ece6; --theme-200: #f1dfd6; --theme-400: #e3bfad; --theme-700: #8e6a58; --theme-900: #47352c; }

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

.product-reviews__heading-wrap {
  padding: 0 96px;
  max-width: 1920px;
  margin: 0 auto 96px auto;
}
.product-reviews__footer {
  padding: 0 96px;
  max-width: 1920px;
  margin: 96px auto 0 auto;
  display: flex;
  justify-content: center;
}

/* ── Heading ────────────────────────────────────────────── */
.product-reviews__heading {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
  width: 100%;
}
.product-reviews__eyebrow {
  font-family: 'Lexend Deca', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--theme-700);
  margin: 0;
}
.product-reviews__title {
  font-family: 'Conso Serif', Georgia, serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 56px;
  color: var(--theme-900);
  max-width: 872px;
  margin: 0;
}

/* ── Scrolling cards row ────────────────────────────────── */
.product-reviews {
  /* Allow the row to scroll horizontally off the edges of the viewport */
  overflow-x: clip;
}
.product-reviews__row {
  width: 100%;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-left: var(--pr-inset-left);
  /* Trailing spacer element provides breathing room at end of scroll */
  padding-right: 0;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--pr-inset-left);
  scrollbar-width: thin;
}
.product-reviews__row::-webkit-scrollbar { height: 6px; }
.product-reviews__row::-webkit-scrollbar-thumb {
  background: var(--theme-400);
  border-radius: 3px;
}
.product-reviews__row-spacer {
  flex: 0 0 var(--pr-inset-left);
}

.product-reviews__card {
  flex: 0 0 480px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 48px;
  background: var(--theme-200);
  border-radius: 16px;
  scroll-snap-align: start;
}

.product-reviews__card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.product-reviews__date {
  font-family: 'Lexend Deca', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  color: var(--theme-700);
  margin: 0;
}
.product-reviews__stars {
  display: flex;
  gap: 2px;
  color: var(--theme-700);
}
.product-reviews__stars svg {
  width: 24px;
  height: 24px;
  display: block;
}

.product-reviews__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-reviews__name {
  font-family: 'Conso Serif', Georgia, serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  color: var(--theme-900);
  margin: 0;
}
.product-reviews__quote {
  font-family: 'Lexend Deca', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  color: var(--theme-700);
  margin: 0;
}

/* ── Button ─────────────────────────────────────────────── */
.product-reviews__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: 280px;
  padding: 8px 24px;
  border: 1px solid var(--theme-700);
  border-radius: 8px;
  background: transparent;
  color: var(--theme-700);
  font-family: 'Lexend Deca', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 1.4px;
  text-transform: capitalize;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.product-reviews__cta:hover {
  background: var(--theme-700);
  color: var(--ivory-100);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  .product-reviews {
    padding: 64px 0;
    --pr-inset-left: 64px;
  }
  .product-reviews__heading-wrap { padding: 0 64px; margin-bottom: 64px; }
  .product-reviews__footer { padding: 0 64px; margin-top: 64px; }
  .product-reviews__title { font-size: 40px; line-height: 48px; }
}

@media (max-width: 900px) {
  .product-reviews {
    padding: 48px 0;
    --pr-inset-left: 24px;
  }
  .product-reviews__heading-wrap { padding: 0 24px; margin-bottom: 48px; }
  .product-reviews__footer { padding: 0 24px; margin-top: 48px; }
  .product-reviews__title { font-size: 32px; line-height: 40px; }
  .product-reviews__card {
    flex: 0 0 85%;
    max-width: 85%;
    padding: 32px;
  }
}
