/* Holy Fizz Reviews — v1.3.0
   ---------------------------------------------------------------------------
   Typography and colour are matched to holyfizzthailand.com as measured on the
   live site, not guessed:
     headings    Playfair Display 700   #2C2A27
     body copy   Poppins                #8FA878 (sage)
     card labels Inria Serif 700        #2C2A27
   The theme already loads all three, so nothing is fetched here.
   The site is light-only, so this stylesheet is light-only too - a dark mode
   would fight the brand rather than serve it. */

.hfr {
  /* --- brand tokens: the only things to change if the brand shifts --- */
  --hfr-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --hfr-font-body:    Poppins, -apple-system, "Segoe UI", sans-serif;
  --hfr-font-label:   "Inria Serif", Georgia, serif;

  --hfr-ink:        #2C2A27;   /* headings + review text */
  --hfr-sage:       #8FA878;   /* the brand's body-copy green */
  --hfr-accent:     #6E8C58;   /* deeper sage, for figures and fills */
  --hfr-accent-2:   #EEF3E8;
  --hfr-star:       #D9A227;
  --hfr-surface:    #FFFFFF;
  --hfr-ground:     #F8FAF5;
  --hfr-line:       #E6EBDE;
  --hfr-radius:     14px;

  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 20px;
  color: var(--hfr-ink);
  font-family: var(--hfr-font-body);
  -webkit-font-smoothing: antialiased;
}

/* ---------- header ---------- */
.hfr__head { text-align: center; margin-bottom: 30px; }

.hfr .hfr__title {
  margin: 0 0 10px;
  font-family: var(--hfr-font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--hfr-ink);
  text-wrap: balance;
}
.hfr .hfr__sub {
  margin: 0;
  font-family: var(--hfr-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--hfr-sage);
}

/* ---------- stats ---------- */
.hfr__stats {
  display: grid;
  grid-template-columns: minmax(180px, 230px) 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  background: var(--hfr-ground);
  border: 1px solid var(--hfr-line);
  border-radius: var(--hfr-radius);
  padding: clamp(18px, 3vw, 28px);
  margin-bottom: 28px;
}
@media (max-width: 640px) {
  .hfr__stats { grid-template-columns: 1fr; text-align: center; }
}
.hfr__score { text-align: center; }
.hfr__score-num {
  display: block;
  font-family: var(--hfr-font-display);
  font-weight: 700;
  font-size: 46px;
  line-height: 1;
  color: var(--hfr-accent);
  font-variant-numeric: tabular-nums;
}
.hfr__score .hfr__stars { margin: 8px 0 4px; }
.hfr__score-count { display: block; font-size: 13px; color: var(--hfr-sage); }

.hfr__dist { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.hfr__dist li { display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 10px; }
.hfr__dist-label,
.hfr__dist-n { font-size: 12px; color: var(--hfr-sage); font-variant-numeric: tabular-nums; }
.hfr__dist-n { text-align: right; }
.hfr__bar { display: block; height: 8px; border-radius: 99px; background: var(--hfr-accent-2); overflow: hidden; }
.hfr__bar i { display: block; height: 100%; border-radius: 99px; background: var(--hfr-accent); }

/* ---------- stars ---------- */
.hfr__stars { display: inline-flex; gap: 2px; line-height: 1; font-size: 15px; font-style: normal; }
.hfr__stars i { font-style: normal; color: #DAE0D2; }
.hfr__stars i.is-full { color: var(--hfr-star); }
.hfr__stars i.is-half {
  background: linear-gradient(90deg, var(--hfr-star) 50%, #DAE0D2 50%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- filter chips ---------- */
.hfr__filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.hfr .hfr__chip {
  appearance: none;
  font-family: var(--hfr-font-body);
  border: 1px solid var(--hfr-line);
  background: var(--hfr-surface);
  color: var(--hfr-sage);
  border-radius: 99px;
  padding: 7px 16px;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.hfr .hfr__chip:hover { border-color: var(--hfr-accent); color: var(--hfr-accent); }
.hfr .hfr__chip.is-on { background: var(--hfr-accent); border-color: var(--hfr-accent); color: #fff; }

/* ---------- list ---------- */
.hfr__list {
  display: grid;
  /* auto-fit + justify-content so a part-filled row centres instead of leaving a
     gap on the right. A product with two reviews should look composed, not broken. */
  grid-template-columns: repeat(auto-fit, minmax(290px, 360px));
  justify-content: center;
  gap: 16px;
}
.hfr[data-layout="carousel"] .hfr__list {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  gap: 16px;
  padding: 2px 2px 14px;
}
.hfr[data-layout="carousel"] .hfr__card {
  flex: 0 0 min(320px, 80vw);
  scroll-snap-align: start;
}
/* a slim, always-visible track so the clipped card reads as "scroll me" */
.hfr[data-layout="carousel"] .hfr__list::-webkit-scrollbar { height: 6px; }
.hfr[data-layout="carousel"] .hfr__list::-webkit-scrollbar-track {
  background: var(--hfr-accent-2); border-radius: 99px;
}
.hfr[data-layout="carousel"] .hfr__list::-webkit-scrollbar-thumb {
  background: var(--hfr-sage); border-radius: 99px;
}
.hfr[data-layout="carousel"] .hfr__list {
  scrollbar-width: thin;
  scrollbar-color: var(--hfr-sage) var(--hfr-accent-2);
}

/* ---------- card ---------- */
.hfr .hfr__card {
  background: var(--hfr-surface);
  border: 1px solid var(--hfr-line);
  border-radius: var(--hfr-radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow .2s, transform .2s;
}
.hfr .hfr__card:hover { box-shadow: 0 6px 22px rgba(44, 42, 39, .07); transform: translateY(-2px); }
.hfr .hfr__card[hidden] { display: none; }

.hfr__card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hfr .hfr__badge {
  font-family: var(--hfr-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--hfr-accent-2);
  color: var(--hfr-accent);
  white-space: nowrap;
}
.hfr .hfr__badge--shopee { background: #FDEDE7; color: #C2461F; }
.hfr .hfr__badge--tiktok { background: #ECEEF1; color: #2A2A31; }
.hfr .hfr__badge--lazada { background: #EAEAF7; color: #3B3BA8; }

/* Themes style <blockquote> heavily - Astra gives it a 5px rule and italics.
   Reset it here with enough specificity to win without !important. */
.hfr .hfr__card blockquote.hfr__text {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  quotes: none;
  font-family: var(--hfr-font-body);
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--hfr-ink);
  overflow-wrap: anywhere;
}
.hfr .hfr__card blockquote.hfr__text::before,
.hfr .hfr__card blockquote.hfr__text::after { content: none; display: none; }
.hfr .hfr__card blockquote.hfr__text br { line-height: inherit; }

.hfr__thumbs { display: flex; gap: 6px; }
.hfr__thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--hfr-line); }

/* ---------- meta ---------- */
.hfr .hfr__meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--hfr-line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-family: var(--hfr-font-body);
  font-size: 12px;
  color: var(--hfr-sage);
}
.hfr .hfr__author {
  font-family: var(--hfr-font-label);
  font-weight: 700;
  font-size: 15px;
  color: var(--hfr-ink);
  flex: 1 1 100%;
}
.hfr .hfr__verified { color: var(--hfr-accent); font-weight: 600; }
.hfr .hfr__product { color: var(--hfr-sage); }
.hfr .hfr__meta time { color: var(--hfr-sage); font-variant-numeric: tabular-nums; }

.hfr .hfr__disclaimer {
  margin: 26px auto 0;
  max-width: 68ch;
  font-family: var(--hfr-font-body);
  font-size: 12px;
  line-height: 1.65;
  color: var(--hfr-sage);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .hfr .hfr__card { transition: none; }
  .hfr .hfr__card:hover { transform: none; }
}

/* Score block standing alone, when the figure comes from the marketplace and
   there is no distribution of our own to draw. */
.hfr .hfr__stats--solo {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  padding: clamp(20px, 3vw, 26px);
}
.hfr .hfr__score-note {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--hfr-sage);
}
