/* AM-BF2-20261125 — единая стабильная шапка (цвет, выравнивание, одинаковый шрифт меню), Чёрная пятница без процента до пятницы. */

/* 1. Единый стабильный вид шапки до и после скролла, на главной и внутренних страницах */
header.header,
header.header.header--black,
header.header:not(.header--black),
header.header.header--sticky,
header.header:hover,
header.header.header--active,
html.am-bf-home header.header,
html.am-bf-home header.header:not(.header--sticky):not(.header--active):not(:hover) {
  background-color: #ffffff !important;
  color: #111111 !important;
  border-bottom: 1px solid #ececec;
  box-shadow: none;
  transition: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
}

.header .logo {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto;
  line-height: 0;
  color: #111111 !important;
}

.header .logo svg {
  display: block;
  height: auto !important;
}

.header .logo svg path,
.header .logo svg g path,
.header .logo svg g text {
  fill: #111111 !important;
}

/* Пункты навигации верхнего уровня — всегда тёмные, hover в фирменный зелёный */
.header .header__nav-list > li:not(.sale) > a.header__list-category-link,
.header .header__nav-list > li:not(.sale) > a.header__nav-link,
.header.header--sticky .header__nav-list > li:not(.sale) > a.header__list-category-link,
.header.header--sticky .header__nav-list > li:not(.sale) > a.header__nav-link,
.header:not(.header--black) .header__nav-list > li:not(.sale) > a.header__list-category-link,
.header:not(.header--black) .header__nav-list > li:not(.sale) > a.header__nav-link {
  color: #111111 !important;
  transition: color 0.2s ease !important;
}

.header .header__nav-list > li:not(.sale) > a.header__list-category-link:hover,
.header .header__nav-list > li:not(.sale) > a.header__list-category-link:focus-visible,
.header .header__nav-list > li:not(.sale) > a.header__nav-link:hover,
.header .header__nav-list > li:not(.sale) > a.header__nav-link:focus-visible,
.header .header__nav-list > li:not(.sale) > a.header__nav-link--active {
  color: #8a9b6e !important;
}

/* «ЧЁРНАЯ ПЯТНИЦА» — чёрная плашка с белым жирным текстом (размер шрифта единый с остальными пунктами) */
.header .header__nav-list > li.sale > a.header__list-category-link,
.header.header--sticky .header__nav-list > li.sale > a.header__list-category-link,
.header:not(.header--black):not(.header--sticky):not(:hover) .header__nav-list > li.sale > a.header__list-category-link {
  background: #111111 !important;
  color: #ffffff !important;
  border: 1px solid #111111 !important;
  font-weight: 700 !important;
  transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

.header .header__nav-list > li.sale > a.header__list-category-link:hover,
.header .header__nav-list > li.sale > a.header__list-category-link:focus-visible {
  background: #2b2b2b !important;
  color: #ffffff !important;
  border-color: #2b2b2b !important;
}

/* Правые иконки и подписи — всегда #111111, выровнены по центру оси */
.header .header__menu {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto;
}

.header .header__menu-list {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end;
  margin: 0 !important;
  padding: 0 !important;
}

.header .header__menu-list > li {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0 !important;
}

.header .header__menu-link,
.header.header--sticky .header__menu-link,
.header:not(.header--black) .header__menu-link,
.header .header__menu-list personal-menu-component > a,
.header .header__menu-list header-cart-component > a {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  color: #111111 !important;
}

.header .header__menu-link span,
.header.header--sticky .header__menu-link span,
.header:not(.header--black) .header__menu-link span,
.header .header__menu-list personal-menu-component span,
.header .header__menu-list header-cart-component span {
  color: #111111 !important;
  transition: color 0.2s ease !important;
}

.header .header__menu-link .header__icon--counter,
.header .header__menu-list header-cart-component .header__icon--counter {
  color: #ffffff !important;
}

.header .header__menu-link:hover,
.header .header__menu-link:hover span {
  color: #8a9b6e !important;
}

.header .header__menu-link .header__icon {
  fill: #111111 !important;
  color: #111111 !important;
}

.header .header__menu-list li:first-child svg path,
.header .header__menu-list li:nth-child(2) svg path,
.header .header__menu-list li:nth-child(5) svg path {
  fill: #111111 !important;
}

.header .header__menu-list li:nth-child(3) svg path,
.header .header__menu-list li:nth-child(4) svg path,
.header .header__menu-list li:nth-child(4) svg rect {
  stroke: #111111 !important;
  fill: none !important;
}

/* 2. Десктопная сетка шапки (от 1025px): без бургера, без наложений, единый шрифт и равные отступы */
@media (min-width: 1025px) {
  header.header {
    padding: 13px clamp(16px, 2.4vw, 48px) !important;
    gap: clamp(14px, 1.5vw, 32px) !important;
    min-height: 70px;
  }

  .header .logo svg {
    width: clamp(148px, 12vw, 224px) !important;
  }

  .header .header__menu-list > li:last-child {
    display: none !important;
  }

  .header .header__nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .header .header__nav-list {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: clamp(7px, 0.82vw, 18px) !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .header .header__nav-list > li {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
  }

  /* Единый шрифт и размер для ВСЕХ верхних пунктов меню */
  .header .header__nav-list > li > a.header__list-category-link,
  .header .header__nav-list > li > a.header__nav-link {
    font-family: var(--baseFontFamily, "Montserrat"), Arial, sans-serif !important;
    font-size: clamp(10px, 0.86vw, 13.5px) !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    letter-spacing: 0.025em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .header .header__nav-list > li.sale > a.header__list-category-link {
    font-weight: 700 !important;
    padding: 5px 10px !important;
  }

  .header .header__menu-list {
    gap: clamp(12px, 1.25vw, 22px) !important;
  }

  .header .header__menu-list .header__icon {
    width: 21px !important;
    height: 21px !important;
  }

  .header .header__menu-list .header__icon.icon-lg {
    width: 26px !important;
    height: 21px !important;
  }

  .header .header__menu-link span,
  .header .header__menu-list personal-menu-component span,
  .header .header__menu-list header-cart-component span {
    font-family: var(--baseFontFamily, "Montserrat"), Arial, sans-serif !important;
    font-size: clamp(9.5px, 0.7vw, 11px) !important;
    line-height: 1.15 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
  }
}

@media (min-width: 1360px) {
  .header .header__nav-list {
    gap: clamp(11px, 1.05vw, 20px) !important;
  }

  .header .header__nav-list > li > a.header__list-category-link,
  .header .header__nav-list > li > a.header__nav-link {
    font-size: clamp(12px, 0.88vw, 13.5px) !important;
    letter-spacing: 0.03em !important;
  }
}

/* 3. Планшетная и мобильная шапка (до 1024px): ровная ось, единый шрифт внутри бургера */
@media (max-width: 1024px) {
  header.header {
    padding: 12px clamp(16px, 3vw, 32px) !important;
    min-height: 58px;
  }

  .header .logo svg {
    width: clamp(142px, 34vw, 204px) !important;
  }

  .header .header__menu-list {
    gap: clamp(10px, 2.5vw, 22px) !important;
  }

  .header .header__menu-list > li:last-child {
    display: inline-flex !important;
  }

  .header .header__menu-list > li > a.header__menu-link,
  .header .header__menu-list header-cart-component,
  .header .header__menu-list personal-menu-component,
  .header .header__menu-list header-cart-component > a,
  .header .header__menu-list personal-menu-component > a {
    gap: 0 !important;
  }

  .header .header__menu-list .header__icon {
    width: 20px !important;
    height: 20px !important;
  }

  .header .header__menu-list .header__icon.icon-lg {
    width: 25px !important;
    height: 20px !important;
  }

  .header .header__nav {
    top: 100% !important;
    background-color: #ffffff !important;
  }

  .header .header__nav--active {
    top: 100% !important;
    height: calc(100vh - 58px) !important;
    max-height: calc(100vh - 58px) !important;
    padding: 18px 20px 96px !important;
    background-color: #ffffff !important;
  }

  .header .header__nav--active .header__nav-list {
    gap: 0 !important;
  }

  .header .header__nav--active .header__nav-list > li {
    padding: 12px 0 !important;
    border-bottom: 1px solid #dadada !important;
    margin: 0 !important;
  }

  .header .header__nav--active .header__nav-item::after {
    top: 18px !important;
  }

  .header .header__nav-list > li > a.header__list-category-link,
  .header .header__nav-list > li > a.header__nav-link {
    font-family: var(--baseFontFamily, "Montserrat"), Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    padding-left: 0 !important;
  }

  .header .header__nav-list > li.sale > a.header__list-category-link {
    font-weight: 700 !important;
    padding: 8px 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    margin: 0 !important;
  }
}
