.review-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}

.review-item:last-child {
    border-bottom: none;
}

.review-item__header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.review-item__avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--gold, #d4af37);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.review-item__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.review-item__name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text, #1a1a1a);
}

.review-item__date {
    font-size: 12px;
    color: var(--text-muted, rgba(0, 0, 0, 0.45));
}

/* ── Star icons (the actual bug) ── */
.review-item__stars,
#ratingStars,
#avgRatingStars,
#starPicker {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--gold, #d4af37);
}

.review-item__stars svg,
#ratingStars svg,
#avgRatingStars svg,
#starPicker svg,
.star-pick svg {
    display: inline-block;
    /* overrides any global svg{display:block} reset */
    flex-shrink: 0;
}

.review-item__verified {
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.review-item__title {
    font-size: 15px;
    font-weight: 600;
    margin: 6px 0 4px;
    color: var(--text, #1a1a1a);
}

.review-item__body {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text, #1a1a1a);
}

/* ── Rating breakdown bars (5★ / 4★ / 3★ / 2★ / 1★) ── */
#ratingBreakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0 24px;
}

.breakdown-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breakdown-star {
    flex: 0 0 36px;
    font-size: 13px;
    color: var(--text-muted, rgba(0, 0, 0, 0.5));
}

.breakdown-bar {
    flex: 1;
    height: 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    background: var(--gold, #d4af37);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.breakdown-count {
    flex: 0 0 24px;
    text-align: right;
    font-size: 13px;
    color: var(--text-muted, rgba(0, 0, 0, 0.5));
}

/* ── "Write a Review" star picker buttons ── */
.star-pick {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: rgba(0, 0, 0, 0.25);
}

.star-pick--active,
.star-pick--hover {
    color: var(--gold, #d4af37);
}

/* ─────────────────────────────────────────────
   REVIEW ITEMS (user fix — JS class match)
───────────────────────────────────────────── */
.review-item {
    padding: 24px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.review-item:last-child {
    border-bottom: none;
}

.review-item__header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.review-item__avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--color-brand-gold, #C9A96E);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.review-item__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.review-item__name {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text-primary, #0A0A0A);
}

.review-item__date {
    font-size: 12px;
    color: var(--color-text-muted, #8A8A8A);
}

.review-item__stars,
#ratingStars,
#avgRatingStars,
#starPicker {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--color-star, #F59E0B);
}

.review-item__stars svg,
#ratingStars svg,
#avgRatingStars svg,
#starPicker svg,
.star-pick svg {
    display: inline-block;
    flex-shrink: 0;
}

.review-item__verified {
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.review-item__title {
    font-size: 15px;
    font-weight: 600;
    margin: 6px 0 4px;
    color: var(--color-text-primary, #0A0A0A);
}

.review-item__body {
    font-size: 14px;
    line-height: 1.65;
    color: var(--color-text-secondary, #4A4A4A);
}

/* ─── Rating breakdown ─── */
#ratingBreakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0 24px;
}

.breakdown-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breakdown-star {
    flex: 0 0 36px;
    font-size: 13px;
    color: var(--color-text-muted, #8A8A8A);
}

.breakdown-bar {
    flex: 1;
    height: 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    background: var(--color-star, #F59E0B);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.breakdown-count {
    flex: 0 0 24px;
    text-align: right;
    font-size: 13px;
    color: var(--color-text-muted, #8A8A8A);
}

/* ─── Star picker ─── */
.star-pick {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: rgba(0, 0, 0, 0.2);
}

.star-pick--active,
.star-pick.is-active,
.star-pick--hover {
    color: var(--color-star, #F59E0B);
}

/* ============================================================
   ADD PHOTOS BUTTON
   ============================================================ */

/* Asli file input chhupa do (keyboard/screen reader ke liye maujood rehta hai) */
#reviewsSection #reviewImageInput.photo-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Button */
.photo-upload__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 44px;
  padding: 0 22px;
  background: #fff;
  color: #111;
  border: 1.5px solid #111;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.photo-upload__btn svg {
  flex-shrink: 0;
}

.photo-upload__btn:hover {
  background: #111;
  color: #fff;
}

.photo-upload__btn:active {
  transform: scale(0.98);
}

/* Keyboard se focus aaye to ring dikhao */
.photo-upload__input:focus-visible + .photo-upload__btn {
  outline: 2px solid #111;
  outline-offset: 2px;
}

/* Mobile: full width button, touch ke liye aasaan */
@media (max-width: 680px) {
  .photo-upload__btn {
    align-self: stretch;
    width: 100%;
    min-height: 48px;
  }

  /* Touch screen par hover atka na rahe */
  .photo-upload__btn:hover {
    background: #fff;
    color: #111;
  }

  .photo-upload__btn:active {
    background: #111;
    color: #fff;
  }
}

/* ── Reviews: cream hatao, saaf safed ── */
#reviewsSection {
  background: #fff;
}

#reviewsSection .review-item__avatar {
  background: #111;
  color: #fff;
}

/* "No reviews yet" ka text (pehle safed tha, nazar nahi aata tha) */
#reviewsList p {
  color: #888;
}