/* Стили для рейтинга звездочками */
.star-rating-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.star-label {
  position: relative;
  cursor: pointer;
  color: #000;
  transition: color 0.2s;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.star-rating-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.star-label i {
  display: block;
  color: inherit;
}

.star-label.selected i {
  color: #ffc107;
}

.star-label:not(.selected) i {
  color: #000;
}

/* Стили для стрелок карусели */
#productCarousel .carousel-control-prev,
#productCarousel .carousel-control-next {
  background-color: rgba(32, 71, 93, 0.7);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: opacity 0.3s, background-color 0.3s;
}

#productCarousel .carousel-control-prev {
  left: 15px;
}

#productCarousel .carousel-control-next {
  right: 15px;
}

#productCarousel .carousel-control-prev:hover,
#productCarousel .carousel-control-next:hover {
  background-color: rgba(32, 71, 93, 1);
  opacity: 1;
}

#productCarousel .carousel-control-prev-icon,
#productCarousel .carousel-control-next-icon {
  filter: brightness(0) invert(1);
  width: 20px;
  height: 20px;
}

/* Стили для кликабельных изображений в карусели */
.carousel-image-clickable {
  transition: opacity 0.2s;
}

.carousel-image-clickable:hover {
  opacity: 0.9;
}

/* Стили для вертикальных миниатюр */
.product-thumbnails-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.product-thumbnails-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 110px;
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 4px;
}

.product-thumbnails-vertical::-webkit-scrollbar {
  width: 6px;
}

.product-thumbnails-vertical::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.product-thumbnails-vertical::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.product-thumbnails-vertical::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.product-thumbnail {
  width: 110px;
  height: 110px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid #ddd;
  border-radius: 6px;
  opacity: 0.7;
  transition: all 0.3s;
  flex-shrink: 0;
}

.product-thumbnail.active {
  border-color: #007bff;
  opacity: 1;
}

.product-thumbnail:hover {
  opacity: 1;
  border-color: #007bff;
}

/* Стили для кнопок навигации миниатюр */
.thumb-nav-btn {
  width: 36px;
  height: 36px;
  border: none;
  background-color: rgba(32, 71, 93, 0.7);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  padding: 0;
}

.thumb-nav-btn:hover {
  background-color: rgba(32, 71, 93, 1);
}

.thumb-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.thumb-nav-btn i {
  font-size: 16px;
}

/* Стили для контрола количества */
.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #adb5bd;
  border-radius: none;
  overflow: hidden;
  background: #fff;
}

.quantity-btn {
  border: none;
  background: transparent;
  width: 38px;
  height: 38px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  color: #20475d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background: rgba(32, 71, 93, 0.1);
}

.quantity-input {
  width: 60px;
  border: none;
  text-align: center;
  font-weight: 600;
  color: #20475d;
  font-size: 16px;
  padding: 0;
  margin: 0;
  outline: none;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-input[type=number] {
  -moz-appearance: textfield;
}

.attribute-chip {
  border: 1px dashed #adb5bd;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #20475d;
}

.attribute-chip input {
  display: none;
}

.attribute-chip.active {
  background-color: #20475d;
  color: #fff;
  border-color: #20475d;
}

.attribute-chip span {
  white-space: nowrap;
}

/* Стили для статистики товара */
.product-stats {
  padding: 0px 0px;
}

.stat-item {
  text-align: left;
  flex: 1;
  min-width: 80px;
}

.stat-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  line-height: 150%;
  letter-spacing: 0;
  leading-trim: none;
  margin-bottom: 2px;
  text-transform: none;
}

.stat-value {
  font-size: 1rem;
  color: #20475D;
}

.stat-value .text-warning {
  font-size: 0.875rem;
}

/* Стили для списка преимуществ */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.feature-list li:last-child {
  margin-bottom: 0;
}

.feature-list li i {
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.feature-list li span {
  color: #333;
}

/* Стили для кнопок действий */
.product-actions .btn {
  font-weight: 500;
}

.product-actions .btn-outline-secondary {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(276.57deg, #2d5ac2 5.1%, #688cdf 99.39%);
  border: 0;
  color: #fff;
  border-radius: 8px;
}

.product-actions .btn-outline-secondary i {
  font-size: 1.25rem;
}

.product-actions .btn-outline-secondary:hover {
  background: linear-gradient(276.57deg, #2d5ac2 5.1%, #688cdf 99.39%);
  filter: brightness(1.06);
  color: white;
}

.product-actions .btn-outline-secondary.active {
  background: linear-gradient(276.57deg, #2d5ac2 5.1%, #688cdf 99.39%);
  color: #fff;
}

.product-actions .btn-outline-secondary.active:hover {
  background: linear-gradient(276.57deg, #2d5ac2 5.1%, #688cdf 99.39%);
  filter: brightness(1.06);
}

.product-actions form {
  display: flex;
}

.product-actions .btn-primary {
  background: linear-gradient(276.57deg, #2d5ac2 5.1%, #688cdf 99.39%);
  border: 0;
  color: #fff;
  border-radius: 8px;
}

.product-actions .btn-primary:hover,
.product-actions .btn-primary:focus {
  background: linear-gradient(276.57deg, #2d5ac2 5.1%, #688cdf 99.39%);
  filter: brightness(1.06);
  color: #fff;
}

.product-actions .btn-primary:active {
  background: linear-gradient(276.57deg, #2d5ac2 5.1%, #688cdf 99.39%);
  filter: brightness(0.92);
  color: #fff;
}

/* Стили для блока способов оплаты */
.payment-methods {
  margin-top: .5rem;
  padding-top: 1rem;
}

.payment-methods-icons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.payment-icon {
  min-width: 70px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  cursor: default;
}

.payment-icon.sbp {
  background-color: #00B956;
}

.payment-icon.visa {
  background-color: #1434CB;
}

.payment-icon.mastercard {
  background: linear-gradient(135deg, #EB001B 0%, #F79E1B 100%);
}

.payment-icon.bitcoin {
  background-color: #F7931A;
}

.review-summary-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
}

.review-summary-link {
  color: #20475d;
  text-decoration: underline;
  text-underline-offset: 3px;
  line-height: 1;
  font-weight: 400;
}

.review-summary-votes {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.review-summary-vote {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #111;
  line-height: 1;
}

.reviews-section {
  border-radius: 24px;
  padding: 32px 28px;
}

.reviews-section__title {
  line-height: 1.1;
  font-weight: 700;
  color: #2f2f2f;
}

.reviews-section__count {
  line-height: 1.1;
  font-weight: 400;
  color: #5f5f5f;
}

.reviews-section__list {
  max-height: 680px;
  overflow-y: auto;
  padding-right: 18px;
  scrollbar-width: thin;
  scrollbar-color: #164e68 #e5e5e5;
}

.reviews-section__list::-webkit-scrollbar {
  width: 8px;
}

.reviews-section__list::-webkit-scrollbar-track {
  background: #e5e5e5;
  border-radius: 10px;
}

.reviews-section__list::-webkit-scrollbar-thumb {
  background: #164e68;
  border-radius: 10px;
}

.review-item + .review-item {
  margin-top: 34px;
}

.review-item__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.review-item__left {
  min-width: 0;
  flex: 1 1 auto;
}

.review-item__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.review-item__reaction {
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.review-item__reaction--like {
  color: #67c52f;
}

.review-item__reaction--dislike {
  color: #d84b1f;
}

.review-item__date {
  font-size: 18px;
  color: #6d6d6d;
  font-weight: 400;
}

.review-item__text {
  line-height: 1.35;
  color: #3a3a3a;
  font-weight: 400;
}

.review-item__rating {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  min-width: 190px;
  justify-content: flex-end;
}

.review-item__rating i {
  color: #1f1f1f;
}

.review-item__rating i.active {
  color: #f5a623;
}

@media (max-width: 991.98px) {
  .reviews-section {
    padding: 24px 20px;
  }

  .reviews-section__title,
  .reviews-section__count {
    font-size: 30px;
  }

  .review-item__row {
    flex-direction: column;
    gap: 10px;
  }

  .review-item__rating {
    min-width: auto;
    justify-content: flex-start;
    padding-top: 0;
  }

  .review-item__text {
    font-size: 22px;
  }
}

@media (max-width: 575.98px) {
  .reviews-section__title,
  .reviews-section__count {
    font-size: 24px;
  }

  .review-item__reaction {
    font-size: 28px;
  }

  .review-item__date {
    font-size: 16px;
  }

  .review-item__text {
    font-size: 18px;
  }

  .review-item__rating i {
    font-size: 20px;
  }
}

