/* =====================================================================
   POG.VN – B10 ĐÁNH GIÁ KHÁCH HÀNG (trang chủ)
   Markup: template-parts/reviews.php · Dữ liệu: inc/home-reviews.php
   Phối màu: nền trắng (sau B9 nền kem) · khối điểm số Navy (số trắng, sao vàng)
             · thẻ đánh giá xám nhạt, dấu ngoặc kép Cam mờ, avatar Navy nhạt.
   Điện thoại: vuốt ngang bằng scroll-snap (không cần JS).
   Cập nhật: 2026-11-18 (B10). Chỉ dùng biến --pog-*.
   ===================================================================== */
.pog-rev {
  padding: var(--pog-section-y) 0;
  background: var(--pog-white);
  font-family: var(--pog-font);
}
.pog-rev svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pog-rev__wrap {
  max-width: var(--pog-container);
  margin: 0 auto;
  padding: 0 var(--pog-gutter);
  box-sizing: border-box;
}

/* ---------- Tiêu đề + điểm số ---------- */
.pog-rev__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--pog-space-5);
  margin-bottom: var(--pog-space-6);
}
.pog-rev__title {
  margin: 6px 0;
  color: var(--pog-dark);
  font-size: var(--pog-fs-h2);
  font-weight: var(--pog-fw-black);
  line-height: var(--pog-lh-tight);
  letter-spacing: var(--pog-ls-tight);
}
.pog-rev__sub {
  margin: 0;
  color: var(--pog-gray);
}
.pog-rev__score {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px 12px 16px;
  border-radius: var(--pog-radius-lg);
  background: linear-gradient(135deg, var(--pog-navy) 0%, var(--pog-navy-dark) 100%);
  box-shadow: 0 12px 26px -10px rgba(var(--pog-navy-rgb), 0.55);
  color: var(--pog-white);
}
.pog-rev__avg {
  font-size: 34px;
  font-weight: var(--pog-fw-black);
  line-height: 1;
  letter-spacing: -0.02em;
}
.pog-rev__avg small {
  margin-left: 2px;
  font-size: 15px;
  font-weight: var(--pog-fw-bold);
  opacity: 0.75;
}
.pog-rev__score-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pog-rev__score-meta small {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  font-weight: var(--pog-fw-medium);
}

/* Sao */
.pog-rev__stars {
  display: inline-flex;
  gap: 2px;
}
.pog-rev__stars span {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.35);
}
.pog-rev__stars span.is-on {
  color: var(--pog-warning);
}
.pog-rev__stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}
.pog-rev__stars--sm span {
  color: var(--pog-border-strong);
}
.pog-rev__stars--sm svg {
  width: 15px;
  height: 15px;
}

/* ---------- Thẻ đánh giá ---------- */
.pog-rev__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--pog-space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.pog-rev__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 22px 22px 18px;
  border: 1px solid var(--pog-border);
  border-radius: var(--pog-radius-lg);
  background: var(--pog-bg-soft);
  transition: background var(--pog-transition-base), box-shadow var(--pog-transition-base);
}
.pog-rev__card::before {
  content: "“";
  position: absolute;
  top: 2px;
  right: 18px;
  color: rgba(var(--pog-primary-rgb), 0.18);
  font: var(--pog-fw-black) 72px/1 Georgia, serif;
  pointer-events: none;
}
.pog-rev__card:hover {
  background: var(--pog-white);
  box-shadow: var(--pog-shadow-md);
}
.pog-rev__quote {
  flex: 1;
  margin: 0;
  padding: 0;
  border: 0;
}
.pog-rev__quote p {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: var(--pog-dark);
  font-size: 14.5px;
  font-style: normal;
  line-height: 1.65;
}
.pog-rev__foot {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pog-rev__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pog-navy-light);
  color: var(--pog-navy);
  font-size: 15px;
  font-weight: var(--pog-fw-black);
}
.pog-rev__who {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.pog-rev__who b {
  color: var(--pog-dark);
  font-size: 14px;
}
.pog-rev__who small {
  color: var(--pog-gray);
  font-size: 12px;
}
.pog-rev__product {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border-radius: var(--pog-radius-md);
  background: var(--pog-white);
  border: 1px solid var(--pog-border);
  color: var(--pog-gray);
  font-size: 12.5px;
  font-weight: var(--pog-fw-semibold);
  text-decoration: none;
  transition: border-color var(--pog-transition-fast), color var(--pog-transition-fast);
}
.pog-rev__product:hover {
  border-color: var(--pog-primary);
  color: var(--pog-primary);
}
.pog-rev__product img {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}
.pog-rev__product span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pog-rev__more {
  display: flex;
  justify-content: center;
  margin-top: var(--pog-space-6);
}
.pog-rev__more .pog-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}
.pog-rev__more .pog-btn:hover {
  border-color: var(--pog-primary);
  background: var(--pog-primary);
  color: var(--pog-white);
}

/* =====================================================================
   KHỔ MÀN HÌNH
   ===================================================================== */
@media (max-width: 1100px) {
  .pog-rev__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Điện thoại & tablet: vuốt ngang */
@media (max-width: 768px) {
  .pog-rev__head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--pog-space-4);
    margin-bottom: var(--pog-space-5);
  }
  .pog-rev__list {
    display: flex;
    gap: 12px;
    margin: 0 calc(var(--pog-gutter) * -1);
    padding: 4px var(--pog-gutter) 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--pog-gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pog-rev__list::-webkit-scrollbar {
    display: none;
  }
  .pog-rev__card {
    flex: 0 0 82%;
    min-width: 0;          /* không để tên sản phẩm dài kéo giãn thẻ */
    max-width: 340px;
    box-sizing: border-box;
    scroll-snap-align: start;
  }
}
@media (max-width: 560px) {
  .pog-rev__avg {
    font-size: 28px;
  }
  .pog-rev__quote p {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pog-rev__card {
    transition: none;
  }
}
