/**
 * Стили для категории Golf Carts
 * Hero images от off-grid, hero content от rv-van + новые элементы
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&family=Montserrat:wght@400;500;600;700&display=swap');

/* CSS переменные */
:root {
  /* Основные брендовые цвета */
  --color-green: #3BB54A;
  --color-green-hover: #32a040;
  --color-blue: #2997FF;
  --color-blue-hover: #1d4ed8;
  --color-blue-active: #0071E3;

  /* Текстовые цвета */
  --color-text-black: #000;
  --color-text-dark: #1D1D1F;
  --color-text-gray-dark: #333;
  --color-text-gray: #666;
  --color-text-gray-medium: #696262;
  --color-text-gray-light: #727272;
  --color-text-gray-muted: #999;

  /* Фоновые цвета */
  --color-white: #fff;
  --color-bg-page: #EFEEEE;
  --color-bg-light: #f5f5f5;
  --color-bg-gray: #E8E8E8;
  --color-bg-gray-hover: #D2D2D7;
  --color-bg-card: #e9e9e9;

  /* Бордеры */
  --color-border: #e0e0e0;

  /* Лейблы карточек */
  --color-label-burgundy: #703543;
  --color-label-blue: #155EA0;
  --color-label-gray: #8A8A8A;

  /* UI элементы */
  --color-arrow-icon: #86868B;
  --color-disabled: #C7C7CC;
}

body:has(:not(.woocommerce-breadcrumb)) .site-content {
  padding-top: 0;
}
.pT-20 {
  padding-top: 20px;
}
.pLR-20 {
  padding-left: 20px;
  padding-right: 20px;
}
.desktop-hide {
  display: none;
}
.shoptimizer-archive {
  background-color: var(--color-bg-page);
}

/* Hero Section */
.category-hero-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: var(--color-white);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

/* Hero Images - 4 картинки как в off-grid */
.category-hero-images {
  display: grid;
  align-content: end;
  grid-template-columns: repeat(4, 1fr);
  /*max-height: 257px;*/
  overflow: hidden;
}

.category-hero-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Content */
.category-hero-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 20px 40px;
}

.category-hero-title-block {
  text-align: center;
  margin-bottom: 30px;
}

.category-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 10px 0;
  color: var(--color-text-black);
}

.category-hero-subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  color: var(--color-text-gray);
}

/* Benefits */
.category-hero-benefits {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.benefit-icon {
  width: 15px;
  height: 15px;
  min-width: 15px;
  background-image: url('../images/golf-carts/checked.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.benefit-text {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-gray-light);
}

/* Nav Buttons */
.category-hero-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.nav-btn {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 32px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--color-blue);
}

/* Filled button (Explore - активная) */
.nav-btn-filled {
  background: var(--color-blue);
  color: var(--color-white);
}

.nav-btn-filled:hover {
  background: var(--color-blue-hover);
  border-color: var(--color-blue-hover);
}

/* Outline buttons */
.nav-btn-outline {
  background: transparent;
  color: var(--color-blue);
}

.nav-btn-outline:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

/* Active state for nav buttons */
.nav-btn.active {
  background: var(--color-blue-active);
  color: var(--color-white);
}

/* Product Info Section */
.product-info-section {
  border-radius: 16px;
  margin-top: 20px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: var(--color-white);
  padding: 40px 0;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.product-info-header {
  display: flex;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
  margin-bottom: 30px;
  justify-content: space-between;
  align-items: center;
}

/* Ссылка "Shop by Voltage" в заголовке секции */
.header-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #0066CC;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.header-nav-link:hover {
  color: #004C99;
}

.header-nav-link svg {
  flex-shrink: 0;
}

.product-info-content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
}

.product-info-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: var(--color-text-black);
}

.product-info-title-image {
  display: flex;
  gap: 20px;
  height: 40px;
  align-items: center;
}

.product-info-title-image img:nth-of-type(2) {
  height: 25px;
}

.product-info-main {
  max-width: 1500px;
  margin: 0 auto 40px;
  padding: 0 20px;
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.product-info-content-wrap {
  width: 50%;
  display: flex;
  padding: 0;
}

.product-info-left {
  column-gap: 10px;
  grid-template-columns: 190px 1fr;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.product-info-left img {
  width: 100%;
  max-width: 350px;
  align-self: center;
  height: auto;
  border-radius: 8px;
}

.product-info-image-placeholder {
  max-width: 300px;
  height: auto;
}

.product-info-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-info-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.product-info-features li {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text-black);
  position: relative;
  margin-bottom: 8px;
}

.product-info-params {
  column-gap: 10px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  margin-left: 0;
}

.product-info-params li {
  align-items: center;
  display: flex;
  list-style: none;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-green);
  text-transform: uppercase;
}

.product-info-params li:before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('../images/product-info-params-icon.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 5px;
}

.product-info-description {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-black);
  margin: 10px 0;
}

.product-info-btn {
  margin-top: auto;
  align-self: stretch;
  display: flex;
  justify-content: center;
  width: 100%;
  background: var(--color-green);
  color: var(--color-white);
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: bold;
  padding: 12px 40px;
  border-radius: 16px;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s ease;
  box-shadow: 0 2px 5px 0 rgb(1 1 1 / 71%);
}

.product-info-btn:hover {
  background: var(--color-green-hover);
  color: var(--color-white);
}

.product-info-right {
  width: 50%;
  padding: 5px;
  position: relative;
  overflow: hidden;
}

.product-info-right img {
  width: 100%;
  height: 360px;
  border-radius: 16px;
  object-fit: cover;
  object-position: right center;
  display: block;
}

/* Product Slider Styles */
.product-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 5px 0 rgb(1 1 1 / 71%);
}

.product-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  border-radius: 16px;
  object-fit: cover;
  object-position: center center;
}

.product-slider .slide.active {
  opacity: 1;
  z-index: 1;
}

.product-info-overlay {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  color: var(--color-white);
}

.product-info-overlay h3 {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px 0;
  color: var(--color-white);
}

.product-info-overlay p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* Product Info Specs */
.product-info-specs {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.product-info-spec-item {
  text-align: left;
}

.spec-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.3;
  margin: 0 0 5px 0;
  color: var(--color-text-black);
}

.spec-title span {
  color: var(--color-text-gray-medium);
}

.spec-description {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  color: var(--color-text-gray-medium);
}

/* Product Cards */
.product-info-cards {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
}

.custom-products-grid {
  gap: 40px !important;
}

/* Explore Carousel */
.explore-carousel-wrapper {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.explore-carousel {
  overflow: hidden;
  position: relative;
}

.explore-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  cursor: grab;
  padding-left: max(20px, calc((100vw - 1500px) / 2 + 20px));
  padding-right: max(20px, calc((100vw - 1500px) / 2 + 20px));
}

.explore-carousel-track:active {
  cursor: grabbing;
}

.explore-card {
  flex-shrink: 0;
  width: 372px;
  height: 680px;
  background: var(--color-bg-card);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

/* Scroll-snap для секции explore */
#section-explore .explore-carousel {
  overflow-x: scroll;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(20px, calc((100vw - 1500px) / 2 + 20px));
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#section-explore .explore-carousel::-webkit-scrollbar {
  display: none;
}

#section-explore .explore-carousel-track {
  transition: none;
  cursor: default;
  padding-right: 0;
}

#section-explore .explore-carousel-track::after {
  content: '';
  flex-shrink: 0;
  width: max(20px, calc((100vw - 1500px) / 2 + 20px));
}

#section-explore .explore-card {
  scroll-snap-align: start;
}

/* Мобильные карточки section-explore */
@media (max-width: 734px) {
  #section-explore .explore-card {
    width: 320px;
    height: 585px;
    border-radius: 20px;
  }
  #section-explore .explore-card-video {
    border-radius: 20px;
  }
  #section-explore .explore-carousel-track {
    gap: 12px;
  }
  /* Уменьшаем отступы и шрифты контента */
  #section-explore .explore-card-content {
    top: 20px;
    left: 20px;
    right: 20px;
  }
  #section-explore .explore-card-label {
    font-size: 15px;
  }
  #section-explore .explore-card-title {
    font-size: 22px;
  }
  #section-explore .explore-card-plus {
    width: 32px;
    height: 32px;
    bottom: 16px;
    right: 12px;
  }
}

/* StaggeredFadeIn */

/* Начальное состояние: карточки невидимы и смещены вниз */
.staggered-fade-in .explore-card,
.staggered-fade-in .voltage-card {
  opacity: 0;
  transform: translateY(30px);
}

/* Состояние "видимо": плавное появление + подъём */
.staggered-fade-in .explore-card.staggered-visible,
.staggered-fade-in .voltage-card.staggered-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.9s ease-in-out,
    transform 0.7s ease-in-out;
}

/* После завершения анимации сбрасываем transform, чтобы hover scale работал */
.staggered-fade-in .voltage-card.staggered-done {
  transform: none;
  transition: transform .3s cubic-bezier(0, 0, 0.5, 1);
}

.staggered-fade-in .voltage-card.staggered-done:hover {
  transform: scale(1.0161290322580645);
}

/* Задержки для каждой карточки (шаг 0.15s) */
.staggered-fade-in :nth-child(1).staggered-visible { transition-delay: 0s; }
.staggered-fade-in :nth-child(2).staggered-visible { transition-delay: 0.15s; }
.staggered-fade-in :nth-child(3).staggered-visible { transition-delay: 0.30s; }
.staggered-fade-in :nth-child(4).staggered-visible { transition-delay: 0.45s; }
.staggered-fade-in :nth-child(5).staggered-visible { transition-delay: 0.60s; }
.staggered-fade-in :nth-child(6).staggered-visible { transition-delay: 0.75s; }
.staggered-fade-in :nth-child(7).staggered-visible { transition-delay: 0.90s; }

/* Отключаем анимацию для пользователей с reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .staggered-fade-in .explore-card,
  .staggered-fade-in .voltage-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.explore-card-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}

/* Контент карточки (заголовок и лейбл) */
.explore-card-content {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
}

.explore-card-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-black);
  margin-bottom: 4px;
}

/* Цвета для лейблов карточек */
.label-burgundy { color: var(--color-label-burgundy); }
.label-blue { color: var(--color-label-blue); }
.label-green { color: var(--color-green); }
.label-gray { color: var(--color-label-gray); }

.explore-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text-black);
  margin: 0;
  line-height: 1.2;
}

/* Кнопка плюс */
.explore-card-plus {
  padding: 0;
  position: absolute;
  bottom: 20px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.explore-card-plus:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.explore-card-plus img {
  min-width: 15px;
  width: 15px;
  height: 15px;
}

/* Стрелки управления */
.explore-carousel-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.carousel-arrow {
  padding: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: var(--color-bg-gray);
  color: var(--color-arrow-icon);
}

.carousel-arrow img {
  min-width: 9px;
  width: 9px;
  height: auto;
}

.carousel-arrow-prev img {
  transform: rotate(180deg);
}

.carousel-arrow:hover {
  background: var(--color-bg-gray-hover);
  color: var(--color-text-dark);
}

.carousel-arrow:disabled {
  color: var(--color-disabled);
  cursor: not-allowed;
}

.carousel-arrow-next {
  background: var(--color-bg-gray);
  color: var(--color-text-dark);
}

/* Section Voltage */
#section-voltage {
  border-radius: 0;
  background: #F5F5F7;
}

/* Разрешаем overflow по вертикали для hover эффекта карточек */
#section-voltage .explore-carousel {
  overflow: visible;
}

/* Voltage Cards */
.voltage-card {
  flex-shrink: 0;
  width: 372px;
  height: 544px;
  background: var(--color-white);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(0, 0, 0.5, 1);
}

.voltage-card:hover {
  transform: scale(1.0161290322580645);
}

.voltage-card-content {
  padding: 30px 30px 0 30px;
  display: flex;
  flex-direction: column;
}

.voltage-card-subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-black);
  margin: 0 0 8px 0;
}

.voltage-card-title {
  font-family: 'Roboto', sans-serif;
  font-size: 25px;
  font-weight: 700;
  color: var(--color-text-black);
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.voltage-card-text {
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--color-text-black);
  margin: 0;
  line-height: 1.4;
}

.voltage-card-text a {
  color: var(--color-blue);
  text-decoration: none;
  font-weight: bold;
}

.voltage-card-text a:hover {
  text-decoration: underline;
}

.voltage-card-image {
  margin-top: auto;
  width: 100%;
  flex-grow: 1;
  display: flex;
  align-items: flex-end;
}

.voltage-card-image img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

/* Стили картинок для каждой карточки */
.voltage-card:nth-child(1) .voltage-card-image {
  align-items: center;
  justify-content: center;
}

.voltage-card:nth-child(2) .voltage-card-image {
  align-items: center;
  justify-content: center;
}

.voltage-card:nth-child(4) .voltage-card-image {
  align-items: center;
  justify-content: center;
}

.voltage-card:nth-child(7) .voltage-card-image {
  align-items: center;
  justify-content: center;
}

/* Иконка-кнопка (стрелка или плюс) */
.voltage-card-action {
  padding: 0;
  position: absolute;
  bottom: 20px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-text-dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.voltage-card-action:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.voltage-card-action img {
  min-width: 15px;
  width: 15px;
  height: 15px;
}

/* Стрелка повёрнута вправо */
.voltage-card-action--arrow img {

}

/* Tooltip меню для кнопки плюс */
.voltage-card-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: #fff;
  border-radius: 12px;
  padding: 8px 0;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 10;
  text-align: left;
}

.voltage-card-tooltip.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.voltage-card-tooltip-item {
  display: block;
  padding: 12px 16px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-black);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease;
}

.voltage-card-tooltip-item:last-child {
  border-bottom: none;
}

.voltage-card-tooltip-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Тултип с двумя строками: label + contact */
.tooltip-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  margin-bottom: 2px;
}

.tooltip-contact {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-blue);
}

/* Voltage Filter */
#shop-by-voltage .product-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.voltage-filter-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.voltage-filter-buttons .nav-btn {
  padding: 10px 24px;
  font-size: 14px;
}

/* Грид для карточек товаров с напряжением */
.voltage-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.voltage-product-wrapper {
  /* Обёртка для каждого товара с data-voltage */
}

/* Убираем стандартный грид из шорткода внутри обёртки */
.voltage-product-wrapper .custom-products-grid {
  display: contents;
}

@media (max-width: 768px) {
  #shop-by-voltage .product-info-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .voltage-filter-buttons {
    width: 100%;
    justify-content: flex-start;
  }

  .voltage-filter-buttons .nav-btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  .voltage-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .voltage-products-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Video Cards */
#section-accessories {
  border-radius: 0;
  background: var(--color-white);
}

.video-carousel-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Обёртка для flex выравнивания promo и карусели */
.video-content-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

/* Серый статичный блок */
.video-promo-block {
  position: relative;
  flex-shrink: 0;
  width: 480px;
  height: 480px;
  background: #F5F5F7;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  z-index: 5;
  margin-right: -40px; /* Карусель заходит под блок */
}

.video-promo-text {
  font-family: 'Roboto', sans-serif;
  font-size: 29px;
  font-weight: 700;
  color: var(--color-text-black);
  line-height: 1.3;
  margin: 0 0 24px 0;
}

.video-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-text-dark);
  color: var(--color-white);
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  font-weight: 400;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.video-promo-btn:hover {
  background: var(--color-text-black);
  color: var(--color-white);
}

/* Карусель видео - до правого края браузера */
.video-carousel-wrapper {
  flex: 1;
  width: auto;
  left: auto;
  right: auto;
  margin-left: 0;
  margin-right: calc(-50vw + 750px - 20px); /* Выход за контейнер до правого края */
}

.video-carousel-wrapper .explore-carousel {
  max-width: calc(100vw - 500px); /* Viewport минус promo block (~380px) и отступы */
}

.video-carousel-wrapper .explore-carousel-track {
  padding-left: 60px; /* Отступ от promo block */
  padding-right: 0;
}

/* Псевдоэлемент для отступа справа (padding-right не работает в flex scroll) */
.video-carousel-wrapper .explore-carousel-track::after {
  content: '';
  flex-shrink: 0;
  width: calc(50vw - 750px + 40px); /* Компенсация выхода за viewport + отступ */
}

.video-card {
  flex-shrink: 0;
  width: 749px;
  height: 421px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

/* YouTube embed внутри карточки */
.video-card-embed {
  cursor: default;
}

.video-card-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover img {
  transform: scale(1.05);
}

/* Иконка play поверх карточки */
.video-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.video-card:hover .video-card-play {
  background: rgba(0, 0, 0, 0.8);
}

.video-card-play::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

/* Попап для видео */
.video-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.video-popup-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
}

.video-popup-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

.video-popup-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.video-popup-close::before,
.video-popup-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  background: #fff;
}

.video-popup-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.video-popup-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.video-popup-close:hover::before,
.video-popup-close:hover::after {
  background: #ccc;
}

/* Kit Cards */
.kit-card {
  flex-shrink: 0;
  width: 372px;
  height: 680px;
  background: var(--color-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.kit-card-link-full {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

/* Scroll-snap для секции kits */
#section-kits .explore-carousel {
  overflow-x: scroll;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(20px, calc((100vw - 1500px) / 2 + 20px));
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#section-kits .explore-carousel::-webkit-scrollbar {
  display: none;
}

#section-kits .explore-carousel-track {
  transition: none;
  cursor: default;
  padding-right: 0;
}

#section-kits .explore-carousel-track::after {
  content: '';
  flex-shrink: 0;
  width: max(20px, calc((100vw - 1500px) / 2 + 20px));
}

#section-kits .kit-card {
  scroll-snap-align: start;
}

/* Мобильные карточки section-kits */
@media (max-width: 734px) {
  #section-kits .kit-card {
    width: 320px;
    height: 585px;
  }
  #section-kits .explore-carousel-track {
    gap: 12px;
  }
  #section-kits .kit-card-image {
    height: 275px;
    padding: 16px;
  }
  #section-kits .kit-card-content {
    padding: 20px;
  }
  #section-kits .kit-card-title {
    font-size: 22px;
  }
  #section-kits .kit-card-subtitle,
  #section-kits .kit-card-sku,
  #section-kits .kit-card-tagline,
  #section-kits .kit-card-price {
    font-size: 15px;
  }
  #section-kits .kit-card-btn {
    font-size: 15px;
    padding: 10px 24px;
  }
}

.kit-card-image {
  border: 1px solid #D9D9D9;
  width: 100%;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.kit-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.kit-card-content {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.kit-card-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 8px;
  height: 25px;
}

/* Цвета лейблов */
.kit-label-green { color: var(--color-green); }
.kit-label-burgundy { color: var(--color-label-burgundy); }
.kit-label-blue { color: var(--color-blue); }

.kit-card-title {
  font-family: 'Roboto', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text-black);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.kit-card-subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-label-gray);
  margin: 0 0 8px 0;
}

.kit-card-sku {
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--color-text-gray-dark);
  margin: 0 0 12px 0;
}

.kit-card-tagline {
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  color: var(--color-text-gray-dark);
  margin: 0 0 12px 0;
}

.kit-card-price {
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-black);
  margin: 0 0 16px 0;
}

.kit-card-price strong {
  color: var(--color-text-black);
}

.kit-card-btn {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--color-blue-active);
  color: var(--color-white);
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  font-weight: 400;
  padding: 12px 32px;
  border-radius: 24px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.kit-card-btn:hover {
  background: var(--color-blue-hover);
  color: var(--color-white);
}

/* Footer Section */
.section-footer {
  border-radius: 0;
  margin-bottom: 0;
}

.section-footer-title {
  font-family: 'Roboto', sans-serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1em;
  color: var(--color-text-black);
}

.section-footer-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 40px;
}

.section-footer-left {
  flex: 1;
}

section-footer-left p {
  font-size: 15px;
}

.section-footer-right {
  width: 100%;
  max-width: 600px;
  flex-shrink: 0;
}

/* Mobile Styles */
@media (max-width: 1024px) {
  .product-info-params {
    grid-template-columns: 1fr;
    margin-bottom: 8px;
  }
}

@media (max-width: 768px) {
  .desktop-hide {
    display: block;
  }
  .mobile-hide {
    display: none;
  }

  .video-promo-text {
    font-size: 14px;
    font-weight: bold;
  }

  /* Hero Images Mobile */
  .category-hero-images {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
    max-height: fit-content;
  }

  .category-hero-content {
    padding: 40px 20px 30px;
  }

  .category-hero-title-block {
    margin-bottom: 20px;
  }

  .category-hero-title {
    font-size: 32px;
  }

  .category-hero-subtitle {
    font-size: 14px;
  }

  /* Benefits Mobile */
  .category-hero-benefits {
    gap: 12px 20px;
    margin-bottom: 24px;
  }

  .benefit-text {
    font-size: 12px;
  }

  .benefit-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
  }

  /* Nav Buttons Mobile */
  .category-hero-nav-buttons {
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-btn {
    font-size: 14px;
    padding: 10px 20px;
  }

  /* Product Info Section Mobile */
  .product-info-section {
    padding: 40px 0;
  }

  .product-info-header {
    margin-bottom: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .product-info-header .header-nav-link {
    align-self: flex-end;
  }

  .product-info-title {
    font-size: 24px;
  }

  .product-info-main {
    flex-direction: column;
    margin-bottom: 20px;
    gap: 1em;
  }

  .product-info-content-wrap {
    width: 100%;
    padding: 0;
  }

  .product-info-left {
    width: 100%;
  }

  .product-info-left img {
    max-width: 250px;
  }

  .product-info-btn {
    width: 100%;
    padding: 14px 30px;
    font-size: 16px;
    margin-top: 10px;
  }

  .product-info-right {
    width: 100%;
    margin-top: 0;
  }

  .product-info-right img {
    height: 280px;
  }

  .product-info-overlay {
    bottom: 20px;
    left: 20px;
    right: 20px;
  }

  .product-info-overlay h3 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .product-info-overlay p {
    font-size: 12px;
  }

  .product-info-specs {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .spec-title {
    font-size: 14px;
  }

  .spec-description {
    font-size: 12px;
  }

  .custom-products-grid {
    gap: 20px !important;
  }

  /* Video Section Mobile - See for yourself */
  .video-content-wrapper {
    flex-direction: column-reverse;
    gap: 20px;
  }

  .video-promo-block {
    width: 100%;
    height: auto;
    padding: 30px 20px;
    margin-right: 0;
  }

  /* Сброс десктопных стилей для video-carousel-wrapper */
  /* Выход за пределы контейнера на всю ширину экрана */
  .video-carousel-wrapper {
    width: 100vw;
    margin-left: -20px;
    margin-right: -20px;
  }

  .video-carousel-wrapper .explore-carousel {
    max-width: 100%;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .video-carousel-wrapper .explore-carousel::-webkit-scrollbar {
    display: none;
  }

  .video-carousel-wrapper .explore-carousel-track {
    padding-left: 20px;
    padding-right: 20px;
    transition: none;
    cursor: default;
  }

  /* Отключаем pointer-events на iframe для работы свайпа */
  .video-card-embed iframe {
    pointer-events: none;
  }

  /* Включаем pointer-events при тапе на карточку */
  .video-card-embed.active iframe {
    pointer-events: auto;
  }

  .video-card {
    width: calc(100vw - 40px);
    height: auto;
    aspect-ratio: 16 / 9;
    scroll-snap-align: start;
  }

  /* Footer Section Mobile */
  .section-footer-container {
    flex-direction: column;
    gap: 30px;
  }

  .section-footer-right {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .category-hero-benefits {
    gap: 8px 16px;
  }

  .benefit-text {
    font-size: 11px;
  }

  .nav-btn {
    font-size: 12px;
    padding: 8px 16px;
  }

  .product-info-specs {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Попап для карточек */

/* Overlay - затемнённый фон */
.gc-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gc-popup-overlay.active {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(20px);
}

/* Попап контейнер */
.gc-popup {
  background: var(--color-white);
  border-radius: 20px;
  max-width: 1330px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 40px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.gc-popup-overlay.active .gc-popup {
  transform: scale(1);
}

/* Кнопка закрытия */
.gc-popup-close {
  padding: 0;
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--color-text-dark);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10;
}

.gc-popup-close:hover {
  background: var(--color-border);
}

.gc-popup-close img {
  min-width: 15px;
  width: 15px;
  height: 15px;
}

/* Заголовок попапа */
.gc-popup-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-black);
  margin: 0 0 30px 0;
  padding-right: 50px;
}

/* Основной контент - 2 колонки */
.gc-popup-content {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 40px;
  margin-bottom: 30px;
}

/* Левая колонка */
.gc-popup-left {
  display: flex;
  flex-direction: column;
}

/* Верхний ряд: картинка + список преимуществ */
.gc-popup-top-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.gc-popup-image {
  text-align: center;
}

.gc-popup-image img {
  max-width: 130px;
  height: auto;
}

/* Список преимуществ - 2 колонки */
.gc-popup-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.gc-popup-features li {
  display: flex;
  align-items: center;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-green);
  text-transform: uppercase;
}

.gc-popup-features li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  background-image: url('../images/product-info-params-icon.png');
  background-size: contain;
  background-repeat: no-repeat;
}

/* Описание */
.gc-popup-description {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-gray);
  margin: 0 0 20px 0;
  flex-grow: 1;
}

/* CTA кнопка */
.gc-popup-cta {
  display: inline-flex;
  justify-content: center;
  background: var(--color-green);
  color: var(--color-white);
  font-family: 'Roboto', sans-serif;
  font-size: 26px;
  font-weight: bold;
  padding: 7px 40px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.3s ease;
  box-shadow: 0 2px 8px rgba(59, 181, 74, 0.3);
}

.gc-popup-cta:hover {
  background: var(--color-green-hover);
  color: var(--color-white);
}

/* Правая колонка - картинка с размерами */
.gc-popup-right {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 480px;
}

.gc-popup-right img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

/* Футер со спецификациями */
.gc-popup-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 25px;
}

.gc-popup-spec .spec-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: var(--color-text-black);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.spec-label > span {
  color: #696262;
  font-weight: bold;
}

.gc-popup-spec .spec-value {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-gray-medium);
  line-height: 1.2;
}

/* Попап - мобильные стили */
@media (max-width: 768px) {
  .gc-popup {
    padding: 30px 20px;
    max-height: 85vh;
  }

  .gc-popup-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .gc-popup-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .gc-popup-image img {
    max-width: 200px;
  }

  .gc-popup-features {
    grid-template-columns: 1fr;
  }

  .gc-popup-specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .gc-popup-icons {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .gc-popup-close {
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
  }

  .gc-popup-title {
    font-size: 20px;
    padding-right: 40px;
  }

  .gc-popup-cta {
    width: 100%;
    text-align: center;
  }

  .gc-popup-spec .spec-value {
    font-size: 18px;
  }
}
