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

.star-label {
  position: relative;
  cursor: pointer;
  font-size: 28px;
  color: #ddd;
  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: #ddd;
}

/* Стили для стрелок карусели */
#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: 999px;
  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;
}

/* Атрибуты товара */
.product-attributes {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  background: #f8f9fa;
}

.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;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

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

.stat-label {
  font-size: 0.75rem;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

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

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

/* Стили для списка преимуществ */
.product-features {
  padding: 12px;
}

.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.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.product-actions .btn-outline-secondary:hover {
  background-color: #20475D;
  border-color: #20475D;
  color: white;
}

.product-actions .btn-outline-secondary.active {
  background-color: #fff5f5;
  border-color: #dc3545;
}

.product-actions .btn-outline-secondary.active:hover {
  background-color: #ffe0e0;
}

.product-actions form {
  display: flex;
}

.product-actions .btn-primary {
  background-color: #20475D;
  border-color: #20475D;
}

.product-actions .btn-primary:hover {
  background-color: #163a4a;
  border-color: #163a4a;
}

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

.payment-methods-title {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.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;
}

