.product-rating-summary-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-basis: 100%;
  margin-top: 2px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-header_title-container {
  flex-wrap: wrap;
}

.product-rating-summary-average {
  font-weight: 600;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.9);
}

.product-rating-summary-count {
  color: #6c757d;
  font-size: 15px;
}

.product-reviews {
  margin-top: 32px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 24px 32px;
}

@media (max-width: 767px) {
  .product-reviews {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 8px;
  }
}

.product-reviews__title {
  font-size: 20px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.9);
  margin-bottom: 4px;
}

.product-reviews__overview {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-bottom: 1px solid #e9ecef;
}

.product-reviews__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 130px;
  gap: 4px;
}

.product-reviews__score-value {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: rgba(0, 0, 0, 0.9);
}

.product-reviews__total {
  color: #6c757d;
  font-size: 14px;
}

.product-reviews__distribution {
  flex: 1;
  min-width: 220px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-reviews__dist-row {
  display: grid;
  grid-template-columns: 36px 1fr 30px;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6c757d;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.15s ease-out;
}

.product-reviews__dist-row:hover {
  background-color: #f8f9fa;
}

.product-reviews__dist-bar {
  background: #e9ecef;
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
}

.product-reviews__dist-fill {
  display: block;
  height: 100%;
  background: #f5a623;
  border-radius: 99px;
}

.product-reviews__teaser {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0;
}

.product-review-item {
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f3f5;
}

.product-review-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.product-review-item__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.product-review-item__author {
  font-weight: 600;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.9);
}

.product-review-item__date {
  color: #6c757d;
  font-size: 13px;
}

.product-review-item__title {
  font-weight: 600;
  margin: 4px 0;
  color: rgba(0, 0, 0, 0.9);
}

.product-review-item__variant {
  display: block;
  color: #6c757d;
  font-size: 12px;
  margin: 0 0 6px;
}

.product-review-item__comment {
  color: #343a40;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 10px;
}

.product-review-item__media {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-review-item__photo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.product-review-item__vote {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.product-review-item__vote-label {
  font-size: 13px;
  color: #6c757d;
  margin-right: 2px;
}

.review-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid #dee2e6;
  border-radius: 999px;
  background: #fff;
  color: #495057;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.review-vote-btn .material-icons {
  font-size: 16px;
}

.review-vote-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.review-vote-btn.is-active {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(0, 0, 0, 0.03);
  font-weight: 600;
}

.review-vote-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.review-vote-btn__count {
  font-variant-numeric: tabular-nums;
}

.product-reviews__photos-slide {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Cresce com o espaço sobrando do overview em vez de forçar uma largura fixa:
     com cards maiores, uma largura travada empurraria o bloco para a linha de baixo. */
  flex: 1 1 320px;
  min-width: 0;
}

.product-reviews__photos-slide-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-color);
}

.product-reviews__photos-slide-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.product-reviews__photos-slide-track {
  display: flex;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  /* 4 cards visíveis (96px + 8px de gap); acima disso rola. */
  max-width: 408px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.product-reviews__photos-slide-track::-webkit-scrollbar {
  display: none;
}

.product-reviews__photos-slide-item {
  position: relative;
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 0.15s ease-out;
}

.product-reviews__photos-slide-item:hover {
  border-color: var(--primary-color);
}

.product-reviews__photos-slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-reviews__photos-slide-badge {
  position: absolute;
  left: 4px;
  bottom: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 99px;
}

.product-reviews__photos-slide-arrow {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #495057;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.15s ease-out;
}

.product-reviews__photos-slide-arrow:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.review-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#mainReviewFilters {
  padding: 16px 0 4px;
}

.review-filter-chip {
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 13px;
  color: #495057;
  cursor: pointer;
  transition: 0.15s ease-out;
}

.review-filter-chip.active {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #fff6ea;
}

.product-reviews__view-all {
  display: block;
  margin: 8px auto 0;
  background: none;
  border: none;
  color: #6c757d;
  padding: 4px;
  font-weight: 500;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  transition: color 0.2s ease-out;
}

.product-reviews__view-all:hover {
  color: var(--primary-color);
}

.product-reviews__empty {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}

.product-reviews__empty p {
  margin-bottom: 16px;
}

.review-modal-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.review-modal-sort {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  color: #495057;
  background: #fff;
}

.review-modal-loading {
  text-align: center;
  padding: 16px;
  color: #6c757d;
  font-size: 13px;
}

.review-modal-empty {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
  font-size: 14px;
}

.review-star-picker {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.review-star-picker input {
  display: none;
}

.review-star-picker label {
  font-size: 30px;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.1s;
}

.review-star-picker input:checked ~ label,
.review-star-picker label:hover,
.review-star-picker label:hover ~ label {
  color: #f5a623;
}

.write-review-success {
  text-align: center;
  padding: 24px 0;
  color: #198754;
}

.write-review-success .material-icons {
  font-size: 40px;
  margin-bottom: 8px;
}

.write-review-success p {
  font-weight: 600;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.9);
}

.write-review-media-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.write-review-media-preview {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.write-review-media-preview img,
.write-review-media-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.write-review-media-preview__remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.review-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.review-lightbox.show {
  display: flex;
}

.review-lightbox__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
}

.review-lightbox__image-wrapper {
  position: relative;
  z-index: 1;
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-lightbox__image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
}

.review-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 10;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.review-lightbox__close:hover {
  opacity: 1;
}

.review-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
}

.review-lightbox__arrow:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.review-lightbox__arrow--left {
  left: 20px;
}

.review-lightbox__arrow--right {
  right: 20px;
}

.review-lightbox__counter {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 10;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}
