/* Khối đánh giá dùng chung (trang sản phẩm + landing). Màu lấy từ biến --rv-* do từng trang đặt. */
.rv { position: relative; padding: 72px 0 64px; }
.rv > * { max-width: 1080px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.rv-ribbon { max-width: none; margin: -72px 0 40px; padding: 10px 16px; background: repeating-linear-gradient(-45deg, #fff4d6 0 14px, #ffe9ad 14px 28px);
  color: #6b4500; font-size: 13px; font-weight: 600; text-align: center; border-bottom: 1px solid #f0d58a; }
.rv-head { text-align: center; margin-bottom: 36px; }
.rv-kicker { color: var(--rv-accent); font-weight: 700; font-size: 14px; letter-spacing: .04em; margin: 0 0 6px; }
.rv-head h2 { font-family: var(--rv-head, inherit); font-size: clamp(28px, 4.6vw, 44px); letter-spacing: -.02em; line-height: 1.25; margin: 0; color: var(--rv-text); }
.rv-layout { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.rv-summary { background: var(--rv-surface); border-radius: 24px; padding: 28px; position: sticky; top: 84px; }
.rv-avg { display: flex; align-items: baseline; gap: 8px; }
.rv-avg strong { font-family: var(--rv-head, inherit); font-size: 64px; line-height: 1; letter-spacing: -.04em; color: var(--rv-text); }
.rv-avg span { color: var(--rv-muted); }
.rv-count { color: var(--rv-muted); font-size: 14px; margin: 8px 0 18px; }
.rv-dist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--rv-muted); }
.rv-dist li { display: grid; grid-template-columns: 30px 1fr 24px; gap: 10px; align-items: center; }
.rv-bar { height: 7px; border-radius: 99px; background: var(--rv-line); overflow: hidden; }
.rv-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #f5b301, #ff8a00);
  transition: width 1.1s cubic-bezier(.2, .7, .2, 1) .2s; }
.rv-summary.is-in .rv-bar i, .no-motion .rv-bar i { width: var(--p); }
.rv-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rv-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--rv-line); border-radius: 22px; padding: 22px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px -18px rgba(0, 0, 0, .18); transition: transform .35s, box-shadow .35s; }
.rv-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 22px 40px -20px rgba(0, 0, 0, .25); }
.rv-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rv-ava { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none;
  background: linear-gradient(135deg, hsl(var(--h) 70% 58%), hsl(calc(var(--h) + 40) 70% 44%)); }
.rv-who { display: grid; line-height: 1.3; }
.rv-who strong { color: var(--rv-text); font-size: 15px; }
.rv-who span { color: var(--rv-muted); font-size: 13px; }
.rv-card p { margin: 10px 0 12px; color: var(--rv-text); font-size: 16px; line-height: 1.65; }
.rv-card footer { display: flex; gap: 12px; font-size: 12px; color: var(--rv-muted); }
.rv-ver { color: #1a7f37; font-weight: 600; }
.rv-stamp { position: absolute; top: 14px; right: -34px; transform: rotate(35deg); background: #ffcf4d; color: #5a3b00; font-size: 11px; font-weight: 800;
  letter-spacing: .08em; padding: 4px 40px; text-transform: uppercase; }
.rv-stars { position: relative; display: inline-block; line-height: 0; vertical-align: middle; white-space: nowrap; }
.rv-stars svg { width: var(--s); height: var(--s); margin-right: 2px; }
.rv-stars-bg svg { fill: #e3e3e8; }
.rv-stars-fg { position: absolute; inset: 0 auto 0 0; width: var(--w); overflow: hidden; white-space: nowrap; }
.rv-stars-fg svg { fill: #f5b301; }
@media (max-width: 860px) {
  .rv { padding: 56px 0 48px; }
  .rv-ribbon { margin-top: -56px; }
  .rv-layout { grid-template-columns: 1fr; }
  .rv-summary { position: static; display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; align-items: center; padding: 22px; }
  .rv-summary .rv-avg { grid-row: span 2; flex-direction: column; gap: 0; }
  .rv-summary .rv-avg strong { font-size: 54px; }
  .rv-summary .rv-count { margin: 0; }
  .rv-dist { grid-column: 1 / -1; margin-top: 12px; }
  /* Thẻ trượt ngang trên điện thoại — vuốt như xem comment */
  .rv-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -20px; padding: 4px 20px 16px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rv-cards::-webkit-scrollbar { display: none; }
  .rv-card { flex: 0 0 82%; scroll-snap-align: center; }
}

/* Danh sách đánh giá kiểu sàn TMĐT (landing + trang sản phẩm) */
.fd-head h2 { font-size: 19px; color: var(--rv-text); }
.fd-avg { display: flex; align-items: center; gap: 6px; margin: 4px 0 10px; }
.fd-avg strong { font-family: var(--f-head); font-size: 22px; }
.fd-avg > span { color: var(--rv-muted); }
.fd-chips { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--rv-line); }
.fd-chip { background: #f1f3f5; border-radius: 6px; padding: 5px 10px; font-size: 13px; }
.fd-list { display: grid; }
.fd-item { position: relative; overflow: hidden; padding: 14px 0; border-bottom: 1px solid #eef0f2; }
.fd-item header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.fd-item header strong { font-size: 15px; font-weight: 600; }
.fd-item .rv-ava { width: 34px; height: 34px; font-size: 14px; }
.fd-meta { color: var(--rv-muted); font-size: 13px; margin: 4px 0; }
.fd-body { font-size: 16px; line-height: 1.6; }
.fd-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 120px)); gap: 6px; margin-top: 10px; }

.fd-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #f3f5f8; }
.fd { position: relative; }
.fd .rv-stamp { top: 10px; }
