/* Customer reviews on the home page (before the perfumes). Colours come from style.css. */
.reviews {
  max-width: 1480px;
  margin: 0 auto;
  padding: 44px 0 6px;
}
.reviews-head { text-align: center; padding: 0 20px; margin-bottom: 22px; }
.reviews-eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--accent);
  font-weight: 700;
}
.reviews-head h2 {
  margin: 4px 0 0;
  font-size: clamp(1.25rem, 3.6vw, 1.6rem);
  font-weight: 500;
  color: var(--ink);
}
.reviews-head h2::after {
  content: "";
  display: block;
  width: 44px;
  margin: 14px auto 0;
  border-top: 2px solid var(--accent);
}

.reviews-wrap { position: relative; }
.r-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-62%);
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(30, 35, 41, .16);
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.r-arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.r-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.r-arrow[hidden] { display: none; }
.r-left { left: 10px; }
.r-right { right: 10px; }
@media (max-width: 640px) {
  .r-arrow { width: 34px; height: 34px; }
  .r-left { left: 4px; }
  .r-right { right: 4px; }
}

.reviews-track {
  list-style: none;
  margin: 0;
  padding: 6px 20px 22px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 20px;
  -webkit-overflow-scrolling: touch;
  justify-content: safe center;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.reviews-track:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 12px; }

.r-card {
  position: relative;
  flex: 0 0 min(82vw, 310px);
  scroll-snap-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 20px 22px;
  box-shadow: 0 8px 22px rgba(30, 35, 41, .06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.r-card::before {                      /* big soft quotation mark behind the text */
  content: "\201D";
  position: absolute;
  inset-block-start: -14px;
  inset-inline-end: 14px;
  font-family: var(--serif);
  font-size: 110px;
  line-height: 1;
  color: var(--soft);
  pointer-events: none;
}
.r-top { display: flex; align-items: center; gap: 12px; position: relative; }
.r-avatar {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .94);
  box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--line);
}
.r-who { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.r-name { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.r-city { font-size: .85rem; color: var(--muted); }
.r-stars { display: flex; gap: 2px; color: var(--line); font-size: 1.05rem; letter-spacing: 0; position: relative; direction: ltr; justify-content: flex-end; }
.r-stars .on { color: #e0a526; }
.r-text {
  margin: 0;
  color: var(--ink);
  font-size: .98rem;
  line-height: 1.85;
  font-weight: 300;
  position: relative;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

@media (min-width: 900px) {
  .reviews { padding-top: 56px; }
  .r-card { flex-basis: 320px; }
}
@media (prefers-reduced-motion: no-preference) {
  .r-card { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
  .r-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30, 35, 41, .10); }
}

/* with reviews: scrolling to the perfumes keeps the bottom of the review cards visible above them */
.has-reviews .catalog { scroll-margin-top: 150px; }
.rev-chip {
  display: flex; width: fit-content; align-items: center; gap: 8px;
  margin: 0 auto 14px; padding: 7px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); font-size: .88rem; text-decoration: none;
  box-shadow: 0 3px 10px rgba(30, 35, 41, .06);
  transition: background .2s, color .2s, border-color .2s;
}
.rev-chip[hidden] { display: none; }
.rc-stars { color: #e0a526; letter-spacing: 1px; font-size: .8rem; }
.rev-chip:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
