/* ============================================
   ПОПУЛЯРНЫЕ ТОВАРЫ - ИНДУСТРИАЛЬНЫЙ СТИЛЬ
   ============================================ */

/* Секция популярных товаров */
.popular-products-industrial {
  padding: 4rem 0;
  background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 100%);
  position: relative;
  overflow: visible;
}

.popular-products-industrial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0.3;
}

/* Заголовок секции */
.section-header-industrial {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-header-content {
  flex: 1;
  min-width: 15.625rem;
}

.section-title-industrial {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem 0;
  position: relative;
  display: inline-block;
}

.section-decorative-line {
  height: 0.25rem;
  width: 5rem;
  background: var(--gradient-fire);
  border-radius: 0.125rem;
  position: relative;
  box-shadow: 0 0 0.625rem rgba(255, 107, 53, 0.5);
}

.section-decorative-line::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 0.625rem var(--color-primary);
}

/* Кнопка "Весь каталог" */
.btn-view-all-industrial {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-fire);
  color: white;
  border: 0.125rem solid rgba(255, 255, 255, 0.2);
  border-radius: 0.375rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0.25rem 0.75rem rgba(255, 107, 53, 0.3);
}

.btn-view-all-industrial::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-base);
}

.btn-view-all-industrial:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.375rem 1rem rgba(0, 0, 0, 0.3);
  border-color: var(--color-primary);
  color: white;
  text-decoration: none;
}

.btn-view-all-industrial:hover::before {
  left: 100%;
}

.btn-view-all-industrial svg {
  transition: transform var(--transition-base);
}

.btn-view-all-industrial:hover svg {
  transform: translateX(0.25rem);
}

/* Контейнер слайдера */
.products-swiper-container-industrial {
  position: relative;
  padding: 1rem 0;
  overflow: visible;
}

/* Карточка товара - индустриальный стиль */
.product-card-industrial {
  background: white;
  border-radius: 0.75rem;
  overflow: visible;
  position: relative;
  transition: all var(--transition-base);
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 0.0625rem solid #e2e8f0;
}

.product-card-industrial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-metal);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  z-index: 0;
}


/* Бейдж скидки с искрами */
.product-badge-industrial {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--gradient-fire);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 0.25rem 0.75rem rgba(255, 107, 53, 0.4);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    box-shadow: 0 0.25rem 0.75rem rgba(255, 107, 53, 0.4);
  }
  50% {
    box-shadow: 0 0.25rem 1rem rgba(255, 107, 53, 0.6), 0 0 1.25rem rgba(255, 107, 53, 0.3);
  }
}

.badge-spark {
  animation: rotate-spark 3s linear infinite;
}

@keyframes rotate-spark {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Обертка изображения с металлической рамкой */
.product-image-wrapper-industrial {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  overflow: hidden;
  padding: 0.5rem;
  border-radius: 0.75rem 0.75rem 0 0;
}

.industrial-frame {
  background-color: #fff;
  width: 100%;
  height: calc(100% - 1rem);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.5rem solid #e1e1e161;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all var(--transition-base);
}

.industrial-frame .product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-base);
}



/* Контент карточки */
.product-content-industrial {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  position: relative;
  z-index: 3;
}

.product-title-industrial {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-secondary);
  line-height: 1.4;
  margin: 0;
  min-height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.product-title-link {
  text-decoration: none;
}

.product-title-link:hover .product-title-industrial {
  color: var(--color-primary);
}

/* Варианты товара */
.product-variants-industrial {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.375rem 0.625rem;
  border-radius: 0.25rem;
  width: fit-content;
}

.product-variants-industrial svg {
  opacity: 0.7;
}

/* Цена - индустриальный акцент */
.product-price-industrial {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 0.0625rem solid #e2e8f0;
}

.price-current-industrial {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.price-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.025em;
}

.price-currency {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
}

.price-old-industrial {
  font-size: 0.875rem;
  color: #94a3b8;
  text-decoration: line-through;
}

/* Кнопка "В корзину" с эффектом искры */
.btn-add-cart-industrial {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: var(--gradient-fire);
  border: none;
  border-radius: 0.5rem;
  color: white;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 0.25rem 0.75rem rgba(255, 107, 53, 0.3);
  text-decoration: none;
}

.btn-add-cart-industrial::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-add-cart-industrial:hover::before {
  width: 18.75rem;
  height: 18.75rem;
}

.btn-add-cart-industrial:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1.25rem rgba(255, 107, 53, 0.4);
  text-decoration: none;
  color: white;
}

.btn-add-cart-industrial:active {
  transform: translateY(0);
}

.btn-icon,
.btn-text {
  position: relative;
  z-index: 1;
}

.btn-spark {
  position: absolute;
  width: 0.375rem;
  height: 0.375rem;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: spark-fly 1.5s infinite;
}

@keyframes spark-fly {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(3.125rem, -3.125rem) scale(1);
  }
}

/* Навигация слайдера - индустриальный стиль */
.products-swiper-prev-industrial,
.products-swiper-next-industrial {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  border-radius: 0.5rem;
  border: 0.125rem solid rgba(255, 255, 255, 0.2);
}

.products-swiper-prev-industrial {
  left: 0.5rem;
}

.products-swiper-next-industrial {
  right: 0.5rem;
}

.nav-industrial-bg {
  position: absolute;
  inset: 0;
  background: rgba(38, 57, 64, 0.95);
  border-radius: 0.5rem;
  opacity: 1;
  transition: all var(--transition-base);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

.products-swiper-prev-industrial svg,
.products-swiper-next-industrial svg {
  position: relative;
  z-index: 1;
  fill: white;
  transition: transform var(--transition-fast);
}

.products-swiper-prev-industrial:hover .nav-industrial-bg,
.products-swiper-next-industrial:hover .nav-industrial-bg {
  background: var(--gradient-fire);
  box-shadow: 0 0.5rem 1.25rem rgba(255, 107, 53, 0.4);
}

.products-swiper-prev-industrial:hover svg,
.products-swiper-next-industrial:hover svg {
  transform: scale(1.2);
}

.products-swiper-prev-industrial.swiper-button-disabled,
.products-swiper-next-industrial.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.products-swiper-prev-industrial::after,
.products-swiper-next-industrial::after {
  display: none;
}

/* Пагинация */
.swiper-pagination-industrial {
  position: relative;
  margin-top: 2rem;
  bottom: auto !important;
}

.swiper-pagination-industrial .swiper-pagination-bullet {
  width: 0.75rem;
  height: 0.75rem;
  background: #cbd5e0;
  opacity: 1;
  transition: all var(--transition-base);
  margin: 0 0.25rem;
  /* Увеличиваем область прикосновения для доступности (минимум 48x48px) */
  position: relative;
}

.swiper-pagination-industrial .swiper-pagination-bullet::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3rem;
  height: 3rem;
  min-width: 48px;
  min-height: 48px;
}

.swiper-pagination-industrial .swiper-pagination-bullet-active {
  background: var(--gradient-fire);
  width: 2rem;
  border-radius: 0.375rem;
  box-shadow: 0 0 0.625rem rgba(255, 107, 53, 0.5);
}

/* Адаптивность */
@media (max-width: 991px) {
  .popular-products-industrial {
    padding: 3rem 0;
  }

  .section-header-industrial {
    margin-bottom: 2rem;
  }

  .products-swiper-prev-industrial,
  .products-swiper-next-industrial {
    width: 2.5rem;
    height: 2.5rem;
  }

  .products-swiper-prev-industrial {
    left: 0;
  }

  .products-swiper-next-industrial {
    right: 0;
  }
}

@media (max-width: 767px) {
  .popular-products-industrial {
    padding: 2rem 0;
  }

  .section-header-industrial {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .btn-view-all-industrial {
    width: 100%;
    justify-content: center;
  }

  .products-swiper-prev-industrial,
  .products-swiper-next-industrial {
    display: none;
  }

  .swiper-pagination-industrial {
    margin-top: 1.5rem;
  }

  .price-value {
    font-size: 1.5rem;
  }

  .price-currency {
    font-size: 1.125rem;
  }
}

@media (max-width: 575px) {
  .product-content-industrial {
    padding: 1rem;
  }

  .btn-add-cart-industrial {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

/* ============================================
   СЛАЙДЕРЫ РАСПРОДАЖИ ПО КАТЕГОРИЯМ
   ============================================ */

.sale-category-slider {
  position: relative;
  margin-bottom: 3rem;
}

.sale-category-slider .swiper {
  position: relative;
  padding: 1rem 0;
  overflow: visible;
}

.sale-category-slider .products-swiper-prev-industrial,
.sale-category-slider .products-swiper-next-industrial {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  border-radius: 0.5rem;
  border: 0.125rem solid rgba(255, 255, 255, 0.2);
}

.sale-category-slider .products-swiper-prev-industrial {
  left: 0.5rem;
}

.sale-category-slider .products-swiper-next-industrial {
  right: 0.5rem;
}

@media (max-width: 767px) {
  .sale-category-slider .products-swiper-prev-industrial,
  .sale-category-slider .products-swiper-next-industrial {
    display: none;
  }
}
