/* Определяем цветовую палитру - идентично странице категории */
:root {
  --primary-orange: #FF6B35;
  --primary-orange-hover: #E85A2A;
  --primary-orange-light: rgba(255, 107, 53, 0.1);
  --primary-orange-glass: rgba(255, 107, 53, 0.05);
  --primary-dark: #1A1A1A;
  --secondary-dark: #2D2D2D;
  --text-primary: #1A1A1A;
  --text-secondary: #666666;
  --text-light: #999999;
  --text-tertiary: #999999;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --bg-primary: #FFFFFF;
  --border-light: #E5E7EB;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-orange: 0 8px 32px rgba(255, 107, 53, 0.15);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius-lg: 12px;
  --success-green: #10B981;
  --success-green-light: rgba(16, 185, 129, 0.1);
}

/* ===== СТИЛИ ДЛЯ УВЕДОМЛЕНИЙ ===== */

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--success-green);
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  z-index: 9999;
  max-width: 400px;
}

.notification.error {
  background: #EF4444;
}

.notification.show {
  transform: translateX(0);
}

.notification svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.notification-message {
  font-size: 14px;
  opacity: 0.9;
}

.notification-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.notification-close:hover {
  opacity: 1;
}

/* Анимация вращения для индикатора загрузки */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

/* Стили для кнопки в состоянии загрузки */
.btn-order:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-order svg.animate-spin {
  margin-right: 0.5rem;
}

/* Убираем отступы у main для плотного прилегания секций */
main {
  padding: 0;
}

/* Hero секция - стили со страницы категории */
.product-hero {
  background: linear-gradient(135deg, #1A1A1A 0%, #0D0D0D 100%);
  padding: 2rem 0 3rem;
  position: relative;
  overflow: hidden;
}

/* Анимированный фон как на странице категории */
.product-hero::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FF6B35' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: backgroundMove 30s linear infinite;
  z-index: 0;
}

@keyframes backgroundMove {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(60px, 60px) rotate(360deg); }
}

/* Хлебные крошки внутри hero - идентично категории */
.breadcrumbs-wrapper {
  position: relative;
  z-index: 100;
  margin-bottom: 2rem;
}

.breadcrumbs-container {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.breadcrumbs-container::-webkit-scrollbar {
  display: none;
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  opacity: 0;
  transform: translateY(-10px);
  animation: breadcrumbFadeIn 0.3s ease-out forwards;
}

.breadcrumb-item:nth-child(1) { animation-delay: 0s; }
.breadcrumb-item:nth-child(2) { animation-delay: 0.05s; }
.breadcrumb-item:nth-child(3) { animation-delay: 0.1s; }
.breadcrumb-item:nth-child(4) { animation-delay: 0.15s; }

@keyframes breadcrumbFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.breadcrumb-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  transition: var(--transition-fast);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.breadcrumb-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
}

.breadcrumb-separator svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
}

/* Hero контент */
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 3rem;
}

/* Галерея изображений */
.product-gallery {
  position: relative;
  width: 280px;
  height: 280px;
  flex-shrink: 0;
  overflow: hidden;
}

.gallery-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.3s ease;
}

.gallery-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.main-image-wrapper {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem;
  overflow: hidden;
  position: relative;
  animation: fadeInUp 0.6s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Анимация с перемещающейся точкой для галереи */
.main-image-wrapper::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    #FF6B35 30deg,
    #E85A2A 60deg,
    #FF6B35 90deg,
    transparent 120deg,
    transparent 360deg
  );
  border-radius: 8px;
  z-index: -1;
  animation: rotateGradient 3s linear infinite;
}

@keyframes rotateGradient {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Стили для характеристик товара */
.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-item {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-label {
  flex: 0 0 30%;
  padding-right: 20px;
  color: #666;
  font-weight: normal;
}

.feature-value {
  flex: 0 0 70%;
  color: #333;
  font-weight: normal;
}

.feature-label,
.feature-value {
  font-size: 16px;
  line-height: 1.5;
}

/* Маска для создания эффекта границы */
.main-image-wrapper::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 6px;
  z-index: -1;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.main-image-wrapper:hover .product-image {
  transform: scale(1.05);
}

/* Кнопки навигации галереи для десктопа */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-base);
  z-index: 10;
  opacity: 0;
}

.product-gallery:hover .gallery-nav {
  opacity: 1;
}

.gallery-nav:hover {
  background: rgba(255, 107, 53, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav svg {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 2;
}

.gallery-nav.prev {
  left: -20px;
}

.gallery-nav.next {
  right: -20px;
}

/* Индикаторы галереи */
.gallery-indicators {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.gallery-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition-base);
}

.gallery-indicator.active {
  background: var(--primary-orange);
  width: 24px;
  border-radius: 4px;
}

/* Информация о товаре - с относительным позиционированием для кнопки */
.product-hero-info {
  flex: 1;
  color: white;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px; /* Соответствует высоте изображения */
}

.product-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  animation: fadeInUp 0.6s ease-out;
  color: var(--primary-orange);
}

.product-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.6;
  animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

/* Блок с ценой */
.price-block {
  margin-bottom: 4rem; /* Увеличенный отступ, чтобы кнопка не налезала */
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.price-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
}

.price-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-orange);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price-unit {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}

/* Кнопка заявки в hero - привязана к правому нижнему углу на десктопе */
.hero-cta-button {
  position: absolute;
  bottom: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: var(--primary-orange);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.hero-cta-button:hover {
  background: var(--primary-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
  color: white;
}

/* Основной контент */
.content-wrapper {
  background: var(--bg-light);
  padding: 3rem 0;
}

/* Система табов */
.tabs-section {
  margin-bottom: 3rem;
  margin-top: 3rem;
}

.tabs-nav {
  display: flex;
  gap: 2rem;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-button {
  background: none;
  border: none;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: var(--transition-base);
  white-space: nowrap;
}

.tab-button:hover {
  color: var(--text-primary);
}

.tab-button.active {
  color: var(--primary-orange);
}

.tab-button::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-orange);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tab-button.active::after {
  transform: scaleX(1);
}

.tab-content {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease-out;
  /* Важно: убеждаемся что контент внутри табов */
  position: relative;
  width: 100%;
  height: 100%;
}

.tab-pane.active {
  display: block;
}

/* Защита от проблемного контента */
.tab-pane > * {
  position: relative;
  z-index: 1;
}

/* Внутренний контейнер для изоляции контента */
.tab-pane-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Защита контента из базы данных */
.ck-content {
  position: relative;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

/* Сброс стилей для импортированного контента */
.ck-content * {
  position: relative !important;
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Стили для содержимого табов */
.description-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

/* Дополнительная изоляция для проблемного контента */
.tab-pane h2:first-child {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.ck-content {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.8;
}

.ck-content p {
  margin-bottom: 1rem;
}

.ck-content ul, .ck-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.ck-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
}

/* Характеристики */
.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-item {
  display: flex;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-label {
  font-size: 1rem;
  color: var(--text-secondary);
  min-width: 200px;
}

.feature-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* Документация */
.documents-table {
  width: 100%;
  border-collapse: collapse;
}

.document-row {
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-base);
}

.document-row:last-child {
  border-bottom: none;
}

.document-row:hover {
  background: var(--bg-light);
}

.document-row td {
  padding: 1.5rem 0;
}

.document-name {
  font-size: 1rem;
  color: var(--primary-orange);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-base);
}

.document-name:hover {
  text-decoration: underline;
}

.document-type {
  text-align: right;
}

.file-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  background: var(--primary-orange-light);
  color: var(--primary-orange);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

.file-badge svg {
  width: 16px;
  height: 16px;
}

/* Производители в табе */
.manufacturers-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.manufacturer-item {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-base);
  border: 1px solid var(--border-light);
}

.manufacturer-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-orange);
}

.manufacturer-item-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.manufacturer-item-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.manufacturer-item-logo-placeholder {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  color: var(--text-light);
}

.manufacturer-item-info {
  flex: 1;
}

.manufacturer-item-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.manufacturer-item-name a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-base);
}

.manufacturer-item-name a:hover {
  color: var(--primary-orange);
}

.manufacturer-item-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.manufacturer-item-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary-orange);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition-base);
  white-space: nowrap;
}

.manufacturer-item-link:hover {
  background: var(--primary-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.no-data {
  text-align: center;
  color: var(--text-secondary);
  padding: 3rem;
  font-size: 1rem;
}

/* Отзывы */
.no-reviews {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.no-reviews svg {
  width: 64px;
  height: 64px;
  stroke: var(--border-light);
  margin-bottom: 1rem;
}

/* Секция поставщиков */
.suppliers-section {
  margin-bottom: 3rem;
}

.suppliers-section:first-child {
  margin-top: 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out;
}

/* ===== НОВЫЕ СТИЛИ ДЛЯ УЛУЧШЕННЫХ КАРТОЧЕК ОФФЕРОВ ===== */

/* Карточка офера поставщика - улучшенная версия */
.supplier-offer-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

/* Усиленная интерактивность при наведении */
.supplier-offer-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

/* Кликабельная шапка компании */
.card-header-link {
  display: block;
  text-decoration: none;
  transition: var(--transition-base);
}

.card-header-company {
  background: var(--bg-light);
  padding: 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-base);
  cursor: pointer;
}

/* При наведении на шапку */
.card-header-link:hover .card-header-company {
  background: linear-gradient(135deg, var(--primary-orange-light) 0%, rgba(255, 107, 53, 0.05) 100%);
  border-bottom-color: var(--primary-orange);
}

/* Стрелка в шапке */
.company-arrow {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
  transition: var(--transition-base);
  opacity: 0.5;
}

.card-header-link:hover .company-arrow {
  stroke: var(--primary-orange);
  opacity: 1;
  transform: translateY(-50%) translateX(3px);
}

/* Название компании в шапке */
.card-header-company .card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  transition: var(--transition-fast);
  /* Ограничиваем одной строкой */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 2rem; /* Место для стрелки */
}

.card-header-link:hover .card-title {
  color: var(--primary-orange);
}

/* Детали компании в шапке */
.card-header-company .company-details {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

/* Тело карточки */
.supplier-offer-card .card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

/* Бейджик "В наличии" */
.stock-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: var(--success-green-light);
  color: var(--success-green);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stock-badge svg {
  width: 14px;
  height: 14px;
}

/* Информация об офере */
.offer-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-top: 2rem; /* Отступ для бейджика */
}

/* Цена */
.price-info {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price-info .price-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-orange);
  letter-spacing: -0.02em;
}

.price-info .price-unit {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Локация */
.location-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.location-info svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Остаток на складе */
.offer-info .stock-info {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Две кнопки действий */
.offer-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

/* Кнопка "Сообщение" */
.btn-message {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-message svg {
  width: 18px;
  height: 18px;
  transition: var(--transition-base);
}

.btn-message:hover {
  background: var(--bg-light);
  border-color: var(--text-secondary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Кнопка "Заказать" */
.btn-order {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--primary-orange);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.btn-order svg {
  width: 18px;
  height: 18px;
  transition: var(--transition-base);
}

.btn-order:hover {
  background: var(--primary-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

/* Анимация появления карточек */
.supplier-offer-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.supplier-offer-card:nth-child(1) { animation-delay: 0s; }
.supplier-offer-card:nth-child(2) { animation-delay: 0.05s; }
.supplier-offer-card:nth-child(3) { animation-delay: 0.1s; }
.supplier-offer-card:nth-child(4) { animation-delay: 0.15s; }
.supplier-offer-card:nth-child(5) { animation-delay: 0.2s; }
.supplier-offer-card:nth-child(6) { animation-delay: 0.25s; }
.supplier-offer-card:nth-child(7) { animation-delay: 0.3s; }
.supplier-offer-card:nth-child(8) { animation-delay: 0.35s; }
.supplier-offer-card:nth-child(9) { animation-delay: 0.4s; }

/* Градиентная линия под заголовком секции */
.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-orange) 0%, var(--primary-orange-hover) 100%);
  margin-top: 1rem;
  border-radius: 2px;
  animation: scaleIn 0.6s ease-out 0.3s backwards;
}

@keyframes scaleIn {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
  }
}

/* CTA секция - обновленная в стиле страницы категории */
.cta-section {
  background: linear-gradient(135deg, #1A1A1A 0%, #0D0D0D 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  color: white;
  text-align: center;
}

/* Анимированный фон для CTA - такой же как в hero */
.cta-section::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FF6B35' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: backgroundMove 30s linear infinite;
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease-out;
}

.cta-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.cta-features {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin: 3rem 0;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.cta-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.cta-feature-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  transition: var(--transition-base);
}

.cta-feature:hover .cta-feature-icon {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.cta-feature-icon svg {
  width: 30px;
  height: 30px;
  stroke: white;
  stroke-width: 2;
}

.cta-feature-text {
  font-size: 1rem;
  font-weight: 600;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: var(--primary-orange);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-button:hover {
  background: var(--primary-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
  color: white;
}

.cta-button:hover::before {
  width: 400px;
  height: 400px;
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Пагинация */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.page-item {
  list-style: none;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 1rem;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-base);
}

.page-link:hover {
  background: var(--primary-orange-light);
  border-color: var(--primary-orange);
  color: var(--primary-orange);
}

.page-item.disabled .page-link {
  background: var(--bg-light);
  color: var(--text-light);
  cursor: not-allowed;
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивность - количество колонок */
@media (max-width: 1200px) {
  .supplier-offer-card .card-body {
    padding: 1.25rem;
  }
}

@media (max-width: 1024px) {
  .hero-content {
    gap: 2rem;
  }
  
  .product-gallery {
    width: 220px;
    height: 220px;
  }
  
  .product-title {
    font-size: 2rem;
  }
  
  .tabs-nav {
    gap: 1.5rem;
  }
  
  .tab-content {
    padding: 1.7rem;
  }
}

@media (max-width: 992px) {
  /* На планшетах - 2 колонки */
  .suppliers-section .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  .product-hero {
    padding: 1.5rem 0 2rem;
  }
  
  .hero-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  
  /* Галерея на мобильных */
  .product-gallery {
    width: 100%;
    height: 300px;
    margin-bottom: 1rem;
  }
  
  .main-image-wrapper {
    border-radius: 12px;
    padding: 1rem;
  }
  
  .main-image-wrapper::before {
    border-radius: 12px;
  }
  
  .main-image-wrapper::after {
    border-radius: 10px;
  }
  
  .gallery-nav {
    display: none;
  }
  
  .gallery-indicators {
    position: static;
    margin-top: 1rem;
    transform: none;
    justify-content: center;
  }
  
  /* Информация о товаре */
  .product-hero-info {
    min-height: auto;
    position: relative; /* Сохраняем relative для мобильных */
    padding: 0;
  }
  
  .product-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  .product-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .price-block {
    margin-bottom: 1.5rem; /* Уменьшенный отступ для мобильных */
  }
  
  .price-value {
    font-size: 1.75rem;
  }
  
  .price-unit {
    font-size: 0.875rem;
  }
  
  .hero-cta-button {
    position: static; /* Убираем абсолютное позиционирование */
    width: 100%;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  /* Адаптация карточек для мобильных */
  .card-header-company {
    padding: 1rem;
  }
  
  .card-header-company .card-title {
    font-size: 1rem;
  }
  
  .stock-badge {
    position: static;
    margin-bottom: 1rem;
    align-self: flex-start;
  }
  
  .offer-info {
    padding-top: 0;
  }
  
  .price-info .price-value {
    font-size: 1.5rem;
  }
  
  /* CTA секция */
  .cta-features {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .cta-feature {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }
  
  .cta-feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .cta-feature-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .cta-feature-text {
    text-align: left;
    flex: 1;
  }
  
  .cta-buttons {
    flex-direction: row;
    gap: 0.75rem;
  }
  
  .cta-button {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  
  /* Производители и другие элементы */
  .manufacturer-item {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .manufacturer-item-header {
    flex-direction: column;
  }
  
  .manufacturer-item-link {
    width: 100%;
    justify-content: center;
  }
  
  .cta-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  .breadcrumbs {
    font-size: 0.8125rem;
    gap: 0.25rem;
  }
  
  .breadcrumb-link {
    padding: 0.125rem 0.5rem;
  }
  
  .breadcrumb-separator svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 576px) {
  /* На мобильных - 1 колонка */
  .suppliers-section .col-lg-4,
  .suppliers-section .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
  }
  
  .supplier-offer-card .card-body {
    padding: 1rem;
  }
  
  .price-info .price-value {
    font-size: 1.25rem;
  }
  
  /* Кнопки на мобильных */
  .offer-actions {
    gap: 0.5rem;
  }
  
  .btn-message,
  .btn-order {
    padding: 0.625rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .btn-message svg,
  .btn-order svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .product-hero {
    padding: 1rem 0 1.5rem;
  }
  
  .product-gallery {
    height: 250px;
  }
  
  .main-image-wrapper {
    padding: 0.75rem;
  }
  
  .product-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .product-description {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }
  
  .hero-cta-button {
    padding: 0.625rem 1.5rem;
    font-size: 0.8125rem;
  }

  .price-value {
    font-size: 1.5rem;
  }
  
  .price-label {
    font-size: 0.75rem;
    margin-bottom: 0.125rem;
  }

  .price-block {
    padding: 0;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .cta-section {
    padding: 3rem 0;
  }
  
  .cta-title {
    font-size: 1.5rem;
  }
  
  .cta-description {
    font-size: 0.8rem;
  }
  
  .cta-feature-icon {
    width: 40px;
    height: 40px;
  }
  
  .cta-feature-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .cta-feature-text {
    font-size: 0.875rem;
  }
  
  .cta-buttons {
    flex-direction: row;
    align-items: stretch;
  }
  
  .tab-content {
    padding: 1.5rem;
  }
  
  .feature-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .manufacturer-item-logo,
  .manufacturer-item-logo-placeholder {
    width: 80px;
    height: 80px;
  }
  
  .manufacturer-item {
    padding: 1rem;
  }
  
  .manufacturer-item-name {
    font-size: 1.125rem;
  }
  
  .manufacturer-item-description {
    font-size: 0.875rem;
  }
}