/* Страница товара */
.product-page {
  min-height: calc(100vh - 120px);
}

/* Галерея */
.product-gallery {
  position: sticky;
  top: 20px;
}

.main-image {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  padding: 1rem;
}

.main-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  transition: all 0.2s ease;
}

.thumbnail:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.thumbnail.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.5);
}

/* Информация о товаре */
.price {
  color: #d32f2f;
}

.product-specs .table {
  margin-bottom: 0;
}

.product-specs .table td {
  padding: 0.75rem;
  vertical-align: middle;
}

.thumbnail-container {
  position: relative;
  z-index: 10;
  padding-bottom: 2rem;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.faq-item h4 {
  color: #0d6efd;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.thumbnail {
  cursor: pointer;
  transition: all 0.2s ease;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: #0d6efd;
  transform: scale(1.05);
}

.compatibility-badge {
  font-size: 0.85rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.feature-icon {
  color: #0d6efd;
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.compatibility-section {
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.advantage-card {
  border-left: 4px solid #0d6efd;
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.engine-model {
  background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  display: inline-block;
  margin: 0.25rem;
  font-weight: bold;
}

.method-badge {
  background: linear-gradient(135deg, #20c997 0%, #198754 100%);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  margin: 0.2rem;
}

.maz-badge {
  background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
  color: white;
}

.russian-badge {
  background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
  color: white;
}

/* Адаптивность */
@media (max-width: 991.98px) {
  .product-gallery {
    position: static;
    margin-bottom: 2rem;
  }

  .main-image {
    height: 300px;
  }
}

@media (max-width: 575.98px) {
  .main-image {
    height: 250px;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
  }
}

/* Плавные переходы для галереи */
#mainProductImage {
  transition: opacity 0.3s ease;
}

/* Стили для миниатюр */
.thumbnail {
  cursor: pointer;
  transition: transform 0.2s;
}

.thumbnail:hover {
  transform: scale(1.05);
}

.thumbnail.active {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

/* Обновленные стили уведомлений */
.alert {
  padding: 1.25rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  border-left: 5px solid;
}

.alert-info {
  border-color: #4dabf7;
  color: #1864ab;
}

.alert-warning {
  background-color: #fff9db;
  border-color: #ffd43b;
  color: #8a6d04;
}

.alert-danger {
  background-color: #ffe3e3;
  border-color: #ff8787;
  color: #c92a2a;
}

.alert-success {
  background-color: #ebfbee;
  border-color: #40c057;
  color: #2b8a3e;
}