/*
Theme Name: Woodmart Child
Template: woodmart
Version: 1.0.0
*/

/* Общие настройки страницы (можно подстроить под ваш сайт) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Arial", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #0f1916;
}

.wrap-title {
  text-align: center;
max-width: 920px;
margin: 0 auto;
margin-bottom: 74px;

}
.hs-hero__subtitle {
  font-size: 25px;
  font-weight: 500;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0;
}


/* Корневой блок: на всю ширину, но содержимое максимум 1920px */
.hs-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #ffffff;
  height: 720px;
  display: flex;
  align-items: center;
}
@media (max-width:1024px) {
  .hs-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    color: #ffffff;
    height: unset;
  }
  
}

/* Фон */
.hs-hero__bg {
  position: absolute;
  inset: 0;
  background: url("bg.webp") center center / cover no-repeat;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Вертикальное видео по центру на всю высоту */
.hs-hero__video {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
}

/* Внутренний контейнер */
.hs-hero__inner {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
  padding: 70px 60px 80px;
  flex: 1;
  box-sizing: border-box;
  z-index: 1;
}

/* Заголовок */
.hs-hero__title {
  text-align: center;
  font-family: var(--e-global-typography-54d5472-font-family), Sans-serif;
  font-size: var(--e-global-typography-54d5472-font-size);
  font-weight: var(--e-global-typography-54d5472-font-weight);
  text-transform: var(--e-global-typography-54d5472-text-transform);
  line-height: var(--e-global-typography-54d5472-line-height);
  color: #fff;
  margin: 0 0 60px;
}

/* Основная сетка */
.hs-hero__content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  column-gap: 40px;
  position: relative;
  z-index: 1;
  max-width: 1560px;
  margin: 0 auto;
  width: 100%;
}

/* Центральная колонка */
.hs-hero__center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hs-hero__bottle {
  max-height: 480px;
  width: auto;
  display: block;
}

/* Колонки слева/справа */
.hs-hero__col {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 286px;
  font-size: 14px;
  line-height: 1.4;
}

/* Элемент списка с попапом */
.hs-feature {
  position: relative;
  max-width: 286px;
}
.hs-feature__trigger img {
  margin-top: 5px;
}
.hs-feature__trigger {
  all: unset;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}
.hs-feature__trigger:hover {
  background-color: unset !important;
  color: #fff;
}

.hs-feature__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hs-feature__text {
  text-align: left;
}

/* Попап */
.hs-feature__popup {
  position: absolute;
  top: -20px;
  left: 50px;
  min-width: 260px;
  max-width: 280px;
  padding: 22px 26px;
  border-radius: 24px;
  /* полностью непрозрачный фон, чтобы не было видно текста под попапом */
  background-color: #ffffff;
  color: #1a2724;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s;
  pointer-events: none !important;
}

/* Начальное смещение для левой колонки на десктопе */
.hs-feature:not(.hs-feature--right) .hs-feature__popup {
  transform: translateY(-14px) translateX(35%);
}

.hs-feature--right .hs-feature__popup {
  left: auto;
  right: 50px;
  /* начальное смещение для правой колонки на десктопе */
  transform: translateY(-14px) translateX(-59%);
}

/* Псевдо‑стрелочка */
.hs-feature__popup::before {
  content: "";
  position: absolute;
  top: 36px;
  left: -12px;
  width: 24px;
  height: 24px;
  background: inherit;
  transform: rotate(45deg);
}

.hs-feature--right .hs-feature__popup::before {
  left: auto;
  right: -12px;
}
.hs-hero__col--left {
    /* margin-left: auto; */
}
.hs-hero__col--right {
    margin-left: auto;
  
}
/* Текст попапа */
.hs-feature__popup-title {
  margin-bottom: 10px !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hs-feature__popup-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

/* Показываем попап по hover/focus */
.hs-feature:hover .hs-feature__popup,
.hs-feature:focus-within .hs-feature__popup,
.hs-feature.is-open .hs-feature__popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* При наведении для левой колонки своё смещение попапа на десктопе */
.hs-feature:not(.hs-feature--right):hover .hs-feature__popup,
.hs-feature:not(.hs-feature--right):focus-within .hs-feature__popup,
.hs-feature:not(.hs-feature--right).is-open .hs-feature__popup {
  transform: translateY(-14px) translateX(77%);
}

/* При наведении для правой колонки своё смещение попапа на десктопе */
.hs-feature--right:hover .hs-feature__popup,
.hs-feature--right:focus-within .hs-feature__popup,
.hs-feature--right.is-open .hs-feature__popup {
  transform: translateY(-14px) translateX(-89%);
}

/* Немного адаптива */
@media (max-width: 1200px) {
  .hs-hero__inner {
    padding-inline: 30px;
  }

  .hs-hero__content {
    column-gap: 40px;
  }

  .hs-hero__bottle {
    max-height: 420px;
  }
}

@media (max-width: 900px) {
  .hs-hero__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 25px;
    align-items: flex-start;
  }

   .hs-hero__col {
    gap: 25px;
   }

   /* На мобильных скрываем триггер (иконка + короткий текст)
      и оставляем только большие карточки‑попапы */
   .hs-feature__trigger {
     display: none;
   }

  .hs-hero__center {
     order: -1;
     grid-column: 1 / -1;
  }

  .hs-hero__col {
    align-items: flex-start;
  }

  .hs-feature {
    max-width: 100%;
  }

  .hs-feature__popup,
  .hs-feature:not(.hs-feature--right) .hs-feature__popup,
  .hs-feature--right .hs-feature__popup {
    position: static;
     margin-top: 0;
     margin-left: auto;
     margin-right: auto;
     max-width: 500px;
     width: 100%;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }

  .hs-feature__popup::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .hs-hero__content {
    grid-template-columns: 1fr;
  }

  .hs-hero__col {
    max-width: 100%;
    margin-inline: 0;
    align-items: unset;
  }

  /* На мобильных попапы на всю ширину контейнера */
  .hs-feature__popup,
  .hs-feature:not(.hs-feature--right) .hs-feature__popup,
  .hs-feature--right .hs-feature__popup {
    max-width: none;
    width: 100%;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    transform: none !important;
    pointer-events: none;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
}



@media (min-width: 1024px) {
  .hs-feature__text {
    font-size: 22px;
    text-transform: uppercase;
  }
}

/* ── Каталог: кнопки-фильтры ───────────────────────────────────────────────── */

.hs-catalog-wrap {
  width: 100%;
}

.hs-catalog-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1.5px solid #2b4340;
  border-radius: 100px;
  background: transparent;
  overflow: hidden;
}

.hs-catalog-tabs::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 100px;
  background: #2b4340;
  z-index: 0;
  transition: transform 0.25s ease;
  pointer-events: none;
}

.hs-catalog-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0px;
  border: none;
  border-radius: 100px;
  background: transparent !important;
  color: #2b4340;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
  overflow: hidden;
  width: 132px;
}

.hs-catalog-tab span {
  position: relative;
  z-index: 1;
}

.hs-catalog-tab.is-active {
  color: #fff;
  background: transparent !important;
}

/* Явно отключаем любые hover-стили от темы для наших кнопок */
.hs-catalog-tab:hover,
.hs-catalog-tab:focus {
  color: #2b4340;
  background: transparent !important;
}

.hs-catalog-tab.is-active:hover,
.hs-catalog-tab.is-active:focus {
  color: #fff;
  background: transparent !important;
}

/* Анимация перемещения фоновой «таблетки» между двумя кнопками.
   Основано на :has, поддерживается современными браузерами. */
.hs-catalog-tabs:has(.hs-catalog-tab:nth-child(2).is-active)::before {
  transform: translateX(100%);
}

/* ── Каталог: контейнер и состояние загрузки ──────────────────────────────── */

.hs-catalog-container {
  min-height: 100px;
}

.hs-catalog-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.hs-catalog-loading::after {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #2b4340;
  border-radius: 50%;
  animation: hsCatalogSpin 0.7s linear infinite;
}

@keyframes hsCatalogSpin {
  to { transform: rotate(360deg); }
}

.hs-catalog-empty {
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 40px 0;
}

/* ── Каталог: группы и карточки товаров ───────────────────────────────────── */

.hs-catalog-group {
  margin-bottom: 48px;
}

.hs-catalog-group__title {
  font-size: 25px;
  font-weight: 700;
  color: #2B4340;
  margin: 0 0 24px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hs-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  min-width: 0;
}

.hs-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  overflow: visible !important;
  border-radius: 16px;
  overflow: hidden;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hs-product-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.hs-product-card__image-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.hs-product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hs-product-card__caption {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 10px 16px 0;
  padding: 0;
  line-height: 1.4;
}

.hs-product-card__title {
  font-size: 15px;
  font-weight: 600;
  margin: 10px 16px 0;
  padding: 0;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hs-product-card__above-price {
  font-size: 13px;
  margin: 8px 16px 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.8);
}

.hs-product-card__price {
  margin: 8px 16px 16px;
  font-size: 16px;
  font-weight: 700;
}

/* ── Аккордеон ────────────────────────────────────────────────────────────── */

.hs-catalog-accordion {
  width: 100%;
}

.hs-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hs-accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.hs-accordion-trigger {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #2b4340;
  background: transparent;
  box-sizing: border-box;
  transition: background 0.2s ease, color 0.2s ease;
  font-size: 25px;
}

.hs-accordion-trigger:hover {
  background: transparent;
}

.hs-accordion-trigger[aria-expanded="true"] {
  background: transparent;
}

.hs-accordion-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.hs-accordion-trigger[aria-expanded="true"] .hs-accordion-icon {
  transform: rotate(180deg);
}

.hs-accordion-content {
  padding: 0 20px;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.hs-accordion-content:not([hidden]) {
  padding: 12px 0;
}

.hs-accordion-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hs-accordion-list__item a {
  color: #2B4340;
  text-decoration: none;
  font-size: 20px;
  transition: color 0.15s ease;
}

.hs-accordion-list__item a:hover {
  color: #2B4340;
}

/* ── Режим списка («По проблеме») ─────────────────────────────────────────── */

.hs-catalog-list--by-problem .hs-accordion-list__item-wrap {
  margin-bottom: 4px;
}

.hs-problem-trigger {
  padding: 0;
  background: none;
  border: none;
  text-align: left;
  font-size: inherit;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

.hs-problem-trigger:hover,
.hs-problem-trigger.is-active {
  color: inherit;
}

.hs-catalog-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hs-catalog-list__group {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 20px;
}

.hs-catalog-list__title {
  margin: 0 0 12px;
  font-size: 25px;
  font-weight: 600;
  color: #2b4340;
}

.hs-catalog-list .hs-accordion-list {
  margin: 0;
  padding: 0;
}

@media (max-width: 600px) {
  .hs-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hs-product-card__caption,
  .hs-product-card__title,
  .hs-product-card__above-price,
  .hs-product-card__price {
    margin-left: 10px;
    margin-right: 10px;
  }

  .hs-catalog-tab {
    padding: 8px 16px;
    font-size: 14px;
  }
}
