/* ===== Customer Reviews Section ===== */
.reviews-section {
  padding: var(--space-3xl) 0;
  background: var(--color-surface);
}

.reviews-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

/* Rating Summary */
.reviews-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.reviews-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
}

.score-number {
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  font-family: var(--font-display);
}

.score-stars {
  display: flex;
  gap: 4px;
  margin: var(--space-sm) 0;
  font-size: 1.5rem;
}

.score-stars .star-filled {
  color: #f59e0b;
}

.score-stars .star-half {
  color: #f59e0b;
  position: relative;
}

.score-stars .star-empty {
  color: #d1d5db;
}

.score-count {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Rating Bars */
.rating-bars {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.rating-bar-label {
  width: 30px;
  text-align: right;
  flex-shrink: 0;
  font-weight: 500;
  color: var(--color-text);
}

.rating-bar-track {
  flex: 1;
  height: 8px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.rating-bar-count {
  width: 20px;
  text-align: left;
  flex-shrink: 0;
}

/* Review Form Card */
.review-form-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.review-form-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

/* Star Input */
.star-input {
  display: flex;
  gap: 6px;
  margin-top: var(--space-xs);
}

.star-btn {
  font-size: 2rem;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.1s ease;
  line-height: 1;
  user-select: none;
}

.star-btn:hover,
.star-btn.hovered,
.star-btn.selected {
  color: #f59e0b;
}

.star-btn:active {
  transform: scale(0.9);
}

/* Reviews List */
.reviews-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.review-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: box-shadow 0.2s ease;
}

.review-card:hover {
  box-shadow: var(--shadow-md);
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.review-meta {
  flex: 1;
}

.review-author {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}

.review-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-sm);
  font-size: 1rem;
}

.review-stars .star-filled {
  color: #f59e0b;
}

.review-stars .star-empty {
  color: #d1d5db;
}

.review-comment {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.reviews-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-2xl);
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .reviews-layout {
    grid-template-columns: 1fr;
  }

  .reviews-list {
    grid-template-columns: 1fr;
  }
}
