/* Homepage "Customer Reviews" wall — layered on top of the section's inline styles.
   Selectors are scoped to .luxe-shower so they beat the per-card inline <style>. */

/* ---------- Section backdrop ---------- */
.luxe-shower::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 45%, #000 0%, transparent 75%);
          mask-image: radial-gradient(60% 55% at 50% 45%, #000 0%, transparent 75%);
  pointer-events: none;
}
.luxe-shower .luxe-shower__glow { left: 50%; opacity: 0.2; width: 900px; }

/* ---------- Heading ---------- */
.luxe-shower .luxe-head__title {
  font-family: "Clash Display", var(--font-body, system-ui, sans-serif);
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.55) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* ---------- Rating summary ---------- */
.rv-summary {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 1.75rem auto 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(var(--accent-rgb, 186, 151, 251), 0.12) 0%, transparent 60%),
    rgba(255, 255, 255, 0.025);
  box-shadow: 0 20px 50px -30px rgba(var(--accent-rgb, 186, 151, 251), 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  overflow: hidden;
}
/* light sweep once the numbers count up */
.rv-summary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 30%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.rv-summary.is-in::after { animation: rv-sweep 1.6s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes rv-sweep { to { left: 120%; } }

.rv-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 26px;
}
.rv-stat + .rv-stat { border-left: 1px solid rgba(255, 255, 255, 0.07); }
.rv-stat__num {
  font-family: "Clash Display", var(--font-body, system-ui, sans-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.rv-stat__label { font-size: 12px; font-weight: 500; color: var(--text-muted, #8a8a90); white-space: nowrap; }
.rv-stat--score { flex-direction: row; gap: 12px; }
.rv-stat--score .rv-stat__num { font-size: 34px; min-width: 2.1ch; }
.rv-stat__stars { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.rv-stars { display: inline-flex; gap: 2px; color: var(--cl-accent, var(--accent, #ba97fb)); filter: drop-shadow(0 0 6px rgba(var(--accent-rgb, 186, 151, 251), 0.6)); }
.rv-stars svg { width: 16px; height: 16px; }
.rv-summary.is-in .rv-stars svg { animation: rv-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.rv-summary.is-in .rv-stars svg:nth-child(2) { animation-delay: 0.08s; }
.rv-summary.is-in .rv-stars svg:nth-child(3) { animation-delay: 0.16s; }
.rv-summary.is-in .rv-stars svg:nth-child(4) { animation-delay: 0.24s; }
.rv-summary.is-in .rv-stars svg:nth-child(5) { animation-delay: 0.32s; }

/* ---------- Wall: fix side clipping ----------
   Columns used overflow:hidden, which cut the card borders and the hover lift.
   The wall clips vertically instead, and columns get breathing room on the sides. */
.luxe-shower .luxe-shower__wall {
  overflow: hidden;
  margin-left: -12px;
  margin-right: -12px;
  padding: 0 12px;
  gap: 1rem;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.luxe-shower .luxe-shower__col { overflow: visible; padding: 0 2px; }
.luxe-shower .luxe-shower__track { gap: 1rem; padding-top: 6px; }
/* JS drives the scroll (so hover can ease it to a stop); turn the CSS loop off then */
.luxe-shower.rv-js .luxe-shower__track { animation: none; }

/* ---------- Cards ---------- */
.luxe-shower .feedback-card {
  --mx: 50%;
  --my: 0%;
  isolation: isolate;
  border-radius: 18px;
  border-color: rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.5s ease;
}
/* cursor spotlight */
.luxe-shower .feedback-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(var(--accent-rgb, 186, 151, 251), 0.15), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
/* accent line on top edge */
.luxe-shower .feedback-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb, 186, 151, 251), 0.9), transparent);
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.luxe-shower .feedback-card:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb, 186, 151, 251), 0.3);
  box-shadow: 0 16px 34px -20px rgba(var(--accent-rgb, 186, 151, 251), 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.luxe-shower .feedback-card:hover::before { opacity: 1; }
.luxe-shower .feedback-card:hover::after { opacity: 1; transform: scaleX(1); }

.luxe-shower .feedback-content { padding: 16px 18px; }

/* header: product + date */
.rv-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.luxe-shower .rv-head .product-images { gap: 0; }
.luxe-shower .rv-head .product-image {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 18px -8px rgba(var(--accent-rgb, 186, 151, 251), 0.7);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.luxe-shower .rv-head .product-image + .product-image { margin-left: -12px; box-shadow: 0 0 0 2px #151518; }
.luxe-shower .feedback-card:hover .rv-head .product-image { transform: scale(1.06) rotate(-3deg); }
.rv-product { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.rv-product__row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rv-product__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.rv-product__more {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--cl-accent, var(--accent, #ba97fb));
  background: rgba(var(--accent-rgb, 186, 151, 251), 0.12);
}
.rv-product__variant {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-muted, #8a8a90);
}
.luxe-shower .rv-head .feedback-time {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 11.5px;
  opacity: 0.7;
}

/* rating row */
.luxe-shower .feedback-top {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.luxe-shower .feedback-rating { gap: 8px; }
.luxe-shower .star-filled { filter: drop-shadow(0 0 5px rgba(var(--accent-rgb, 186, 151, 251), 0.55)); }
.luxe-shower .feedback-card:hover .star-filled { animation: rv-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.luxe-shower .feedback-card:hover .star-filled:nth-child(2) { animation-delay: 0.05s; }
.luxe-shower .feedback-card:hover .star-filled:nth-child(3) { animation-delay: 0.1s; }
.luxe-shower .feedback-card:hover .star-filled:nth-child(4) { animation-delay: 0.15s; }
.luxe-shower .feedback-card:hover .star-filled:nth-child(5) { animation-delay: 0.2s; }
@keyframes rv-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.35) rotate(-8deg); }
  100% { transform: scale(1); }
}
.luxe-shower .verified-badge {
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
}
.rv-auto {
  font-size: 11.5px;
  color: var(--text-muted, #8a8a90);
  white-space: nowrap;
}
.rv-auto::before { content: "·"; margin-right: 8px; opacity: 0.6; }

/* written review */
.luxe-shower .feedback-message.rv-quote {
  position: relative;
  margin-top: 12px;
  padding: 10px 12px 10px 38px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: rgba(var(--accent-rgb, 186, 151, 251), 0.07);
  border: 1px solid rgba(var(--accent-rgb, 186, 151, 251), 0.16);
}
.rv-quote__mark {
  position: absolute;
  left: 11px;
  top: 10px;
  width: 18px;
  height: 18px;
  color: var(--cl-accent, var(--accent, #ba97fb));
  opacity: 0.8;
}
.rv-quote__mark svg { width: 100%; height: 100%; }

/* ---------- Button ---------- */
.luxe-shower__actions .dshero-btn { position: relative; overflow: hidden; }
.luxe-shower__actions .dshero-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.luxe-shower__actions .dshero-btn:hover::after { left: 130%; }
.luxe-shower__actions .dshero-btn .arrow { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.luxe-shower__actions .dshero-btn:hover .arrow { transform: translateX(4px); }

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
  .luxe-shower .luxe-shower__wall { overflow: visible; margin-left: 0; margin-right: 0; padding: 0; }
}
@media (max-width: 575.98px) {
  .rv-stat { padding: 12px 16px; }
  .rv-stat--score .rv-stat__num { font-size: 28px; }
  .rv-stat__num { font-size: 22px; }
}
@media (max-width: 420px) {
  .rv-summary { width: 100%; }
  .rv-stat--score { flex: 1 1 100%; }
  .rv-stat--score + .rv-stat { border-left: 0; }
  .rv-stat:not(.rv-stat--score) { flex: 1 1 33%; border-top: 1px solid rgba(255, 255, 255, 0.07); }
}

/* =====================================================================
   Header v2: accent title, staggered entrance, richer summary box
   ===================================================================== */

/* "Reviews" in an accent gradient that slowly shimmers */
.luxe-shower .luxe-head__title .rv-accent {
  background: linear-gradient(100deg,
    var(--cl-accent, var(--accent, #ba97fb)) 0%,
    #fff 45%,
    var(--cl-accent, var(--accent, #ba97fb)) 60%,
    color-mix(in srgb, var(--cl-accent, var(--accent, #ba97fb)) 70%, #000 30%) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(var(--accent-rgb, 186, 151, 251), 0.35));
  animation: rv-shimmer 6s ease-in-out infinite;
}
@keyframes rv-shimmer {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0% 0; }
}

/* Staggered entrance for badge → title → subtitle → summary */
.rv-head-anim > *,
.rv-head-anim + .rv-summary {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.9s ease;
}
.rv-head-anim.is-in > *,
.rv-head-anim.is-in + .rv-summary { opacity: 1; transform: none; filter: none; }
.rv-head-anim.is-in > :nth-child(2) { transition-delay: 0.1s; }
.rv-head-anim.is-in > :nth-child(3) { transition-delay: 0.18s; }
.rv-head-anim.is-in > :nth-child(4) { transition-delay: 0.26s; }
.rv-head-anim.is-in + .rv-summary { transition-delay: 0.34s; }

/* ---------- Summary box ---------- */
.rv-summary {
  --mx: 50%;
  --my: 50%;
  isolation: isolate;
  margin-top: 2rem;
  border-radius: 20px;
  border-color: transparent;
  background:
    radial-gradient(260px circle at var(--mx) var(--my), rgba(var(--accent-rgb, 186, 151, 251), 0.14), transparent 70%),
    radial-gradient(120% 140% at 50% 0%, rgba(var(--accent-rgb, 186, 151, 251), 0.1) 0%, transparent 60%),
    rgba(255, 255, 255, 0.03);
}
/* rotating light around the border */
.rv-summary__ring {
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background:
    conic-gradient(from var(--rv-angle, 0deg), transparent 0%, rgba(var(--accent-rgb, 186, 151, 251), 0.9) 10%, transparent 22%, transparent 50%, rgba(var(--accent-rgb, 186, 151, 251), 0.5) 60%, transparent 72%),
    rgba(255, 255, 255, 0.08);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: rv-orbit 7s linear infinite;
  pointer-events: none;
}
@property --rv-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rv-orbit { to { --rv-angle: 360deg; } }

.rv-stat {
  position: relative;
  gap: 5px;
  padding: 16px 28px;
  transition: background-color 0.35s ease;
}
.rv-stat + .rv-stat { border-left: 0; }
.rv-stat + .rv-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}
.rv-stat:hover { background: rgba(255, 255, 255, 0.03); }

.rv-stat__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 2px;
  border-radius: 9px;
  color: var(--cl-accent, var(--accent, #ba97fb));
  background: rgba(var(--accent-rgb, 186, 151, 251), 0.1);
  border: 1px solid rgba(var(--accent-rgb, 186, 151, 251), 0.2);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.rv-stat__icon svg { width: 15px; height: 15px; }
.rv-stat:hover .rv-stat__icon {
  transform: translateY(-2px) rotate(-8deg) scale(1.1);
  box-shadow: 0 0 16px rgba(var(--accent-rgb, 186, 151, 251), 0.5);
}
.rv-stat__num { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.rv-stat:hover .rv-stat__num { transform: scale(1.06); }

/* big score */
.rv-stat--score { padding-right: 32px; }
.rv-stat--score .rv-stat__num {
  font-size: 42px;
  background: linear-gradient(180deg, #fff 35%, rgba(255, 255, 255, 0.6));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.rv-stat--score .rv-stars svg { width: 17px; height: 17px; }
/* stars fill from grey one by one */
.rv-summary .rv-stars svg { color: rgba(255, 255, 255, 0.15); transition: color 0.4s ease; }
.rv-summary.is-in .rv-stars svg { color: var(--cl-accent, var(--accent, #ba97fb)); }
.rv-summary.is-in .rv-stars svg:nth-child(1) { transition-delay: 0.3s; }
.rv-summary.is-in .rv-stars svg:nth-child(2) { transition-delay: 0.4s; }
.rv-summary.is-in .rv-stars svg:nth-child(3) { transition-delay: 0.5s; }
.rv-summary.is-in .rv-stars svg:nth-child(4) { transition-delay: 0.6s; }
.rv-summary.is-in .rv-stars svg:nth-child(5) { transition-delay: 0.7s; }
.rv-summary.is-in .rv-stars svg { animation-delay: calc(0.3s + var(--i, 0) * 0.1s); }

/* five-star fill bar */
.rv-stat__bar {
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.rv-stat__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--cl-accent, var(--accent, #ba97fb)) 60%, #fff 40%), var(--cl-accent, var(--accent, #ba97fb)));
  box-shadow: 0 0 10px rgba(var(--accent-rgb, 186, 151, 251), 0.8);
  transition: width 1.4s 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.rv-summary.is-in .rv-stat__fill { width: var(--w, 0%); }

@media (max-width: 575.98px) {
  .rv-stat { padding: 12px 14px; }
  .rv-stat--score .rv-stat__num { font-size: 32px; }
}
@media (max-width: 420px) {
  .rv-stat:not(.rv-stat--score)::before { display: none; }
  .rv-stat--score { justify-content: center; }
}
