.pr-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #e8944a;
  font-size: 0.82rem;
  line-height: 1;
}

.pr-stars .bi-star,
.pr-stars .bi-star-fill,
.pr-stars .bi-star-half {
  font-size: 0.82rem;
}

.pr-count {
  color: #666;
  font-size: 0.78rem;
  margin-left: 4px;
}

.pr-card-stars {
  margin: 2px 0 6px;
  text-align: center;
}

.product-wrap.list .pr-card-stars {
  text-align: left;
}

.pr-product-section {
  margin-top: 2rem;
}

.pr-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.pr-all-page {
  max-width: 1100px;
}

/* ---- Stats header ---- */
.pr-stats-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e8e8e8;
}

.pr-reviews-tab {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #333;
  text-transform: uppercase;
}

.pr-reviews-for {
  font-size: 0.95rem;
  color: #555;
}

.pr-stats-panel {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
  margin-bottom: 1.75rem;
}

.pr-stats-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.pr-score-box {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.45rem 0.55rem;
  margin-bottom: 0.35rem;
}

.pr-stats-stars .pr-stars,
.pr-bar-stars .pr-stars {
  color: #e8944a;
  font-size: 0.9rem;
}

.pr-stats-stars .pr-stars .bi-star,
.pr-stats-stars .pr-stars .bi-star-fill,
.pr-bar-stars .pr-stars .bi-star,
.pr-bar-stars .pr-stars .bi-star-fill {
  font-size: 0.9rem;
}

.pr-stats-based {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #666;
}

.pr-stats-bars {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.pr-bar-row {
  display: grid;
  grid-template-columns: 88px 1fr 28px;
  align-items: center;
  gap: 0.5rem;
}

.pr-bar-track {
  display: block;
  height: 14px;
  background: #ececec;
  border-radius: 2px;
  overflow: hidden;
}

.pr-bar-fill {
  display: block;
  height: 100%;
  background: #1f4d2f;
  border-radius: 2px;
  min-width: 0;
}

.pr-bar-num {
  font-size: 0.85rem;
  color: #444;
  text-align: right;
}

/* ---- Masonry waterfall: 3 columns, cards stack without row gaps ---- */
.pr-masonry {
  column-count: 3;
  column-gap: 18px;
  column-fill: balance;
  width: 100%;
  margin-bottom: 1.5rem;
}

.pr-review-card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: inline-block;
  width: 100%;
  min-width: 0;
  margin: 0 0 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid #ececec;
  font-size: 0.88rem;
  color: #222;
}

.pr-review-card-images {
  background: #f5f5f5;
}

.pr-review-photo {
  display: block;
}

.pr-review-photo + .pr-review-photo {
  margin-top: 2px;
}

.pr-review-card-images img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.pr-review-card-body {
  padding: 0.85rem 0.95rem 1rem;
}

.pr-review-author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  line-height: 1.35;
}

.pr-chat-icon {
  color: #111;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.pr-review-author strong {
  color: #111;
  font-size: 0.92rem;
  font-weight: 700;
}

.pr-verified {
  color: #1f7a3f;
  font-style: italic;
  font-size: 0.82rem;
  font-weight: 400;
}

.pr-review-card .pr-review-meta {
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
}

.pr-review-date {
  color: #888;
  font-size: 0.82rem;
}

.pr-product-title {
  margin-top: 0.55rem;
  color: #555;
  font-size: 0.82rem;
  line-height: 1.4;
}

.pr-review-card .pr-review-content {
  margin-top: 0.65rem;
  line-height: 1.55;
  color: #333;
  font-size: 0.88rem;
  word-break: break-word;
}

.pr-view-product {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff !important;
  background: #2b59d3;
  border: 1px solid #2b59d3;
  border-radius: 4px;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pr-view-product:hover,
.pr-view-product:focus {
  background: #2349b8;
  border-color: #2349b8;
  color: #fff !important;
}

/* ---- Compact review form ---- */
.pr-form-wrap.pr-form-compact {
  max-width: 840px;
  width: 100%;
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem auto 0;
  color: #222;
}

.pr-form-compact .pr-form-title {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: #111;
}

.pr-form-compact .pr-form-sub {
  color: #666;
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
}

.pr-form-compact .form-label {
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
  color: #333;
}

.pr-form-compact .form-control {
  font-size: 0.82rem;
}

/* 5-segment star rating (1★ … 5★) */
.pr-rate-input {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}

.pr-rate-input input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.pr-rate-input .pr-rate-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 2.4rem;
  padding: 0.4rem 0.55rem;
  margin: 0;
  cursor: pointer;
  border-right: 1px solid #d8d8d8;
  color: #c4c4c4;
  font-size: 0.72rem;
  line-height: 1;
  transition: color 0.12s ease, background 0.12s ease;
}

.pr-rate-input .pr-rate-option:last-of-type {
  border-right: none;
}

.pr-rate-input .pr-rate-option .bi-star-fill {
  font-size: 0.72rem;
}

.pr-rate-input input[type="radio"]:checked + .pr-rate-option,
.pr-rate-input .pr-rate-option:hover {
  color: #e31c23;
  background: #fff5f5;
}

.pr-form-compact .pr-rate-input label {
  font-size: 0.72rem;
}

.pr-form-compact .pr-btn-submit {
  background: #2b59d3 !important;
  border-color: #2b59d3 !important;
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1.25rem;
  border-radius: 4px;
}

.pr-form-compact .pr-btn-submit:hover,
.pr-form-compact .pr-btn-submit:focus {
  background: #2349b8 !important;
  border-color: #2349b8 !important;
  color: #fff !important;
}

.pr-load-more-wrap {
  text-align: center;
  margin: 0 0 1.75rem;
}

.pr-btn-load-more {
  background: #2b59d3 !important;
  border-color: #2b59d3 !important;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55rem 1.75rem;
  border-radius: 4px;
}

.pr-btn-load-more:hover,
.pr-btn-load-more:focus {
  background: #2349b8 !important;
  border-color: #2349b8 !important;
  color: #fff !important;
}

.pr-btn-load-more:disabled {
  opacity: 0.7;
  cursor: wait;
}

.pr-image-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.pr-image-preview-list .pr-image-item,
#pr-image-list .pr-image-item {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.pr-image-preview-list .pr-image-item img,
#pr-image-list .pr-image-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  display: block;
}

.pr-image-placeholder {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f3f3;
  color: #888;
  font-size: 11px;
  text-align: center;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  padding: 4px;
}

.pr-remove-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 0 4px 0 4px;
  background: #dc3545;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 991px) {
  .pr-masonry {
    column-count: 2;
  }

  .pr-stats-panel {
    grid-template-columns: 1fr;
  }

  .pr-form-wrap.pr-form-compact {
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  .pr-masonry {
    column-count: 1;
  }

  .pr-bar-row {
    grid-template-columns: 72px 1fr 24px;
  }
}

/* Product detail: rating below price */
.page-product .pr-detail-rating {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}

.page-product .pr-detail-rating .pr-stars {
  font-size: 1rem;
  gap: 2px;
}

.page-product .pr-detail-rating .pr-stars .bi-star,
.page-product .pr-detail-rating .pr-stars .bi-star-fill,
.page-product .pr-detail-rating .pr-stars .bi-star-half {
  font-size: 1rem;
}

.page-product .pr-detail-review-link {
  color: #1a7a6d;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.page-product .pr-detail-review-link:hover {
  color: #145f55;
  text-decoration: underline;
}

/* Hide brand row on product detail (keep in DOM) */
.page-product .product-brand-row,
.page-product .peoduct-info .stock-and-sku > .d-lg-flex:has(a[href*="/brands/"]) {
  display: none !important;
}

/* Product detail: trust badges below model */
.page-product .pr-trust-badges {
  border-bottom: 1px solid #e5e5e5;
  border-top: 1px solid #e5e5e5;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: space-between;
  margin: 16px 0 18px;
  padding: 14px 0;
}

.page-product .pr-trust-item {
  align-items: center;
  color: #333;
  display: inline-flex;
  flex: 1 1 160px;
  font-size: 0.92rem;
  font-weight: 500;
  gap: 8px;
  line-height: 1.3;
}

.page-product .pr-trust-item i {
  color: #1a7a6d;
  flex-shrink: 0;
  font-size: 1.15rem;
}

@media (max-width: 767px) {
  .page-product .pr-trust-badges {
    flex-direction: column;
    gap: 12px;
  }

  .page-product .pr-trust-item {
    flex: 1 1 auto;
  }
}
