/* ============================================
   Product Reviews & Ratings
   ============================================ */

.reviews-summary-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 100px;
}

.reviews-summary-card__score {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f3f5;
}

.reviews-summary-card__score strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: #1b4332;
  line-height: 1;
}

.reviews-summary-card__score .rbi-stars {
  font-size: 1.15rem;
  display: block;
  margin: 8px 0;
}

.reviews-summary-card__score p {
  margin: 0;
  color: #6c757d;
  font-size: 0.9rem;
}

.reviews-breakdown .review-bar {
  display: grid;
  grid-template-columns: 58px 1fr 36px;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: #495057;
}

.reviews-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.reviews-sort {
  max-width: 240px;
  border-radius: 10px;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reviews-empty {
  background: #fff;
  border: 1px dashed #dee2e6;
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  color: #6c757d;
}

.reviews-empty i {
  font-size: 2.2rem;
  color: #c9a227;
  display: block;
  margin-bottom: 10px;
}

.review-card-v2 {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 22px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.review-card-v2:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.review-card-v2__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d6a4f, #40916c);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-card-v2__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 6px;
}

.review-card-v2__top h3 {
  font-size: 1.05rem;
  margin: 0 0 4px;
}

.review-card-v2__meta {
  font-size: 0.82rem;
  color: #8a8a8a;
}

.review-card-v2__top time {
  font-size: 0.8rem;
  color: #8a8a8a;
  white-space: nowrap;
}

.review-card-v2__stars {
  margin-bottom: 8px;
}

.review-card-v2__body h4 {
  font-size: 1rem;
  margin: 0 0 8px;
  color: #1a1f2e;
}

.review-card-v2__body p {
  margin: 0;
  color: #495057;
  font-size: 0.94rem;
  line-height: 1.65;
}

.review-form-wrap {
  margin-top: 56px;
}

.review-form-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
  max-width: 860px;
  margin: 0 auto;
}

.review-form-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.review-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.star-picker {
  display: flex;
  gap: 6px;
}

.star-picker__btn {
  border: none;
  background: none;
  padding: 4px;
  font-size: 1.8rem;
  color: #ced4da;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.star-picker__btn:hover,
.star-picker__btn.is-hover,
.star-picker__btn.is-active {
  color: #c9a227;
  transform: scale(1.08);
}

@media (max-width: 767.98px) {
  .reviews-summary-card {
    position: static;
  }

  .review-card-v2 {
    grid-template-columns: 1fr;
  }

  .review-card-v2__avatar {
    width: 48px;
    height: 48px;
    font-size: 0.9rem;
  }

  .review-form-card {
    padding: 24px;
  }

  .review-card-v2__top {
    flex-direction: column;
  }
}
