/* AM-BF-20261125 — Чёрная пятница 27.11–03.12: полоса-объявление, меню, слайдер, /black-friday-rules/.
   Не изменяет стили полей количества в корзине (ux-cartqty-20261125) и ux-d2c-20261125. */

/* 1. Убираем старую плашку прогресса доставки из am-ux-m2 */
.am-ux-m2-ship {
  display: none !important;
}

/* 2. Тонкая чёрная полоса-объявление с датами и ссылкой на правила акции */
.am-ux-m2-strip.am-ux-bf-strip {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--am-ux-d2c-header-h, 71px);
  z-index: 19;
  box-sizing: border-box;
  width: 100%;
  padding: 7px 16px;
  background: #0d0d0d;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--baseFontFamily, "Montserrat"), Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px 12px;
}
.am-ux-m2-strip.am-ux-bf-strip.is-on,
body.am-ux-m2-cart .am-ux-m2-strip.am-ux-bf-strip.is-on {
  display: flex !important;
}
.am-ux-bf-strip__main {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
}
.am-ux-bf-strip__title {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.am-ux-bf-strip__cta {
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.am-ux-bf-strip__cta:hover {
  opacity: 0.85;
}
.am-ux-bf-strip__rules {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 500;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.am-ux-bf-strip__rules:hover {
  color: #ffffff !important;
}

@media (max-width: 600px) {
  .am-ux-m2-strip.am-ux-bf-strip {
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.3;
    gap: 2px 8px;
  }
  .am-ux-bf-strip__rules {
    font-size: 10.5px;
  }
}

/* Главная страница: чтобы шапка не сливалась с белым фоном при сдвиге .main вниз под полосу */
html.am-bf-home .header:not(.header--sticky):not(.header--active):not(:hover) {
  background-color: #000000;
  color: #ffffff;
}
html.am-bf-home.am-ux-m2-hasstrip .main {
  margin-top: calc(var(--am-ux-d2c-header-h, 71px) + var(--am-ux-m2-strip-h, 34px)) !important;
}

/* 3. Пункт меню «ЧЁРНАЯ ПЯТНИЦА» (.top.menu.php -> li.sale) */
@media (min-width: 1025px) {
  .header__nav-list li.sale {
    display: inline-flex;
    align-items: center;
  }
  .header__nav-list li.sale > a.header__list-category-link {
    background: #111111 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    padding: 6px 12px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.04em !important;
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap;
    border: 1px solid #111111;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }
  .header:not(.header--black):not(.header--sticky):not(:hover) .header__nav-list li.sale > a.header__list-category-link {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.55);
  }
  .header__nav-list li.sale > a.header__list-category-link:hover,
  .header__nav-list li.sale > a.header__list-category-link:focus-visible {
    background: #2b2b2b !important;
    color: #ffffff !important;
  }
}
@media (max-width: 1024px) {
  .header__nav-list li.sale > a.header__list-category-link {
    background: #111111 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    padding: 10px 14px !important;
    display: inline-block !important;
    width: auto !important;
    line-height: 1.25 !important;
    letter-spacing: 0.04em !important;
    margin: 4px 0;
  }
}

/* 4. Главный слайдер: кликабельный слайд, «Правила акции», аккуратные точки и стрелки */
.index_big_top_slider {
  position: relative;
}
.index_big_top_slider .swiper-slide {
  position: relative;
}
.index_big_top_slider .banner {
  position: relative;
}
.am-bf-slide-link {
  display: block;
  width: 100%;
  text-decoration: none;
}
.am-bf-slide-rules {
  position: absolute;
  left: 96px;
  bottom: 20px;
  z-index: 4;
  font-family: var(--baseFontFamily, "Montserrat"), Arial, sans-serif;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86) !important;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 9px;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.am-bf-slide-rules:hover,
.am-bf-slide-rules:focus-visible {
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.8);
}
.am-bf-slider-dots {
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
}
.am-bf-slider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.am-bf-slider-dot.is-active {
  background: #ffffff;
  transform: scale(1.15);
}
.am-bf-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.am-bf-slider-btn:hover {
  background: rgba(0, 0, 0, 0.78);
}
.am-bf-slider-btn--prev { left: 16px; }
.am-bf-slider-btn--next { right: 16px; }

@media (max-width: 927px) {
  .am-bf-slide-rules {
    left: 48px;
    bottom: 16px;
    font-size: 11.5px;
  }
  .am-bf-slider-dots {
    right: 16px;
    bottom: 16px;
  }
  .am-bf-slider-btn {
    display: none;
  }
}
@media (max-width: 510px) {
  .am-bf-slide-rules {
    left: 16px;
    bottom: 12px;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.65);
  }
  .am-bf-slider-dots {
    right: 14px;
    bottom: 14px;
    gap: 6px;
  }
  .am-bf-slider-dot {
    width: 8px;
    height: 8px;
  }
  .am-bf-slider-btn {
    display: none;
  }
}

/* 5. Страница /black-friday-rules/ */
.am-bf-rules {
  padding: 28px 0 72px;
  color: #222222;
  font-family: var(--baseFontFamily, "Montserrat"), Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
.am-bf-rules .wrapper {
  max-width: 820px;
}
.am-bf-rules__title {
  margin: 0 0 24px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  color: #000000;
}
.am-bf-rules__list {
  margin: 0;
  padding-left: 24px;
}
.am-bf-rules__list > li {
  list-style: decimal;
  margin: 0 0 16px;
  padding-left: 6px;
}
.am-bf-rules__list > li p {
  margin: 8px 0 0;
}
.am-bf-rules a {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.am-bf-rules__back {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e6e6e6;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 15px;
}
@media (max-width: 767px) {
  .am-bf-rules {
    padding: 14px 0 48px;
    font-size: 15px;
    line-height: 1.6;
  }
  .am-bf-rules__title {
    font-size: 21px;
    margin-bottom: 18px;
  }
  .am-bf-rules__list {
    padding-left: 20px;
  }
}
