/* =========================================================
УТИЛИТЫ / БАЗА
========================================================= */
.container{
  max-width: 1322px;
  margin-inline: auto;
  padding: 0;
}
.site-header {
  margin: 8px;
  position: sticky;
  top: 20px;                           /* отступ сверху 20px */
  z-index: 200;                        /* чтобы была поверх контента */
}
.search-panel__mv-top { display: none; }
.action-cart { position: relative; }
.actions__item { position: relative; }
.actions__badge { position:absolute; top:-6px; right:-8px; font-size: 12px; background:#FF0000; color:white; border-radius:10px; padding:0 6px; line-height:18px; display:inline-block; text-align:center; }
.actions__badge-mv { right: -1px; }
.action-fav { position: relative; }
.mini-fav { position:absolute; right:0; top:100%; margin-top:10px; width:360px; max-height:420px; overflow:auto; background:#fff; border:1px solid #e5e5e5; border-radius:12px; box-shadow:0 10px 40px rgba(0,0,0,0.12); z-index:2000; }
.mini-fav__head { display:flex; justify-content:space-between; align-items:center; padding:17px 19px; border-bottom:1px solid #eee; font-weight:600; }
.mini-fav__close { background:none; border:0; font-size:18px; cursor:pointer; line-height:1; }
.mini-fav__body { padding:17px 19px; display:flex; flex-direction:column; gap:10px; }
.mini-fav__empty { padding:12px; color:#666; font-size:14px; padding-left: 0;}
.mini-fav__item { display:grid; grid-template-columns: 56px 1fr auto; gap:10px; align-items:center; }
.mini-fav__img img { width:56px; height:56px; object-fit:cover; border-radius:8px; background:#f5f5f5; }
.mini-fav__name { font-size:14px; color:#222; text-decoration:none; display:block; line-height:1.3; }
.mini-fav__price { font-size:14px; font-weight:600; margin-top:4px; color:#242C6E; }
.mini-fav__remove { width:18px; height:18px; background:none; border:0; cursor:pointer; position:relative; }
.mini-fav__remove:before, .mini-fav__remove:after { content:''; position:absolute; top:50%; left:50%; width:12px; height:2px; background:#999; }
.mini-fav__remove:before { transform:translate(-50%,-50%) rotate(45deg); }
.mini-fav__remove:after { transform:translate(-50%,-50%) rotate(-45deg); }
.mini-fav__footer { padding:17px 19px; border-top:1px solid #eee; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.mini-fav__footer .btn { width: auto; }
.mini-fav__go {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.b24-widget-button-wrapper {display: none !important;}

.profile-placeholder {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}
.profile-placeholder[hidden] {
  display: none !important;
}
.profile-placeholder__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.profile-placeholder__dialog {
  position: relative;
  z-index: 1;
  width: min(480px, calc(100vw - 32px));
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.16);
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-placeholder__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.profile-placeholder__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1d202a;
}
.profile-placeholder__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #3c4250;
}
.profile-placeholder__actions {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
}

body.profile-modal-open {
  overflow: hidden;
}
.mini-cart { position:absolute; right:0; top:100%; margin-top:10px; width:360px; max-height:420px; overflow:auto; background:#fff; border:1px solid #e5e5e5; border-radius:12px; box-shadow:0 10px 40px rgba(0,0,0,0.12); z-index:2000; }
.mini-cart__head { display:flex; justify-content:space-between; align-items:center; padding:17px 19px; border-bottom:1px solid #eee; font-weight:600; }
.mini-cart__close { background:none; border:0; font-size:18px; cursor:pointer; line-height:1; }
.mini-cart__body { padding:17px 19px; display:flex; flex-direction:column; gap:10px; }
.mini-cart__empty { padding:12px; color:#666; font-size:14px; padding-left: 0;}
.mini-cart__item { display:grid; grid-template-columns: 56px 1fr auto auto; gap:10px; align-items:center; }
.mini-cart__img img { width:56px; height:56px; object-fit:cover; border-radius:8px; background:#f5f5f5; }
.mini-cart__name { font-size:14px; color:#222; text-decoration:none; display:block; line-height:1.3; }
.mini-cart__price { font-size:14px; font-weight:600; margin-top:4px; }
.mini-cart__qty { display:flex; align-items:center; gap:6px; }
.mini-cart__btn { width:26px; height:26px; border:1px solid #ddd; background:#f7f7f7; border-radius:6px; cursor:pointer; }
.mini-cart__input { width:46px; text-align:center; border:1px solid #ddd; border-radius:6px; height:28px; }
.mini-cart__remove { width:18px; height:18px; background:none; border:0; cursor:pointer; position:relative; }
.mini-cart__remove:before, .mini-cart__remove:after { content:''; position:absolute; top:50%; left:50%; width:12px; height:2px; background:#999; }
.mini-cart__remove:before { transform:translate(-50%,-50%) rotate(45deg); }
.mini-cart__remove:after { transform:translate(-50%,-50%) rotate(-45deg); }
.mini-cart__footer { padding:17px 19px; border-top:1px solid #eee; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.mini-cart__total { display:flex; align-items:center; gap:8px; font-weight:700; }
.mini-cart__actions { display:flex; gap:8px; }

@media (max-width: 960px){
  .site-header {
    margin: 8px
  }
}

@media (max-width: 640px) {
  .mini-cart { width: calc(100vw - 20px); left:0; right:0; margin:10px auto 0; }
  .mini-fav { width: calc(100vw - 20px); left:0; right:0; margin:10px auto 0; }
}

.site-header::before {
  content: "";
  position: absolute;
  top: -20px;                          /* поднимаем на величину отступа */
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;                    /* белый фон за шапкой */
  z-index: -1;
  /* border-radius: 8px; */
  /* box-shadow: 0 4px 14px rgba(0,0,0,0.06);  лёгкая тень для отделения */
}

.btn {
  cursor: pointer;
}


.catalogItemCard__cta-h {
  height: 36px;
  border: 0;
  background: #242C6E;
  color: #fff;
  border-radius: 4px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.catalogItemCard__cta-h:hover { background: #4E58A5; }
.catalogItemCard__cta--outline-h {
  background: transparent;
  color: #242C6E;
  border: 1px solid #242C6E;
}
.catalogItemCard__cta--outline-h:hover { background: #F3FAFF; }

@media (max-width: 1024px) {
  .catalogItemCard__cta-h { width: 100%; }
}


/* Holiday topbar */
.holiday-topbar {
  position: relative;
  z-index: 320;
  background: linear-gradient(90deg, #b25a16 0%, #f3a03c 50%, #f5c36b 100%);
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.holiday-topbar__inner {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 20px;
  text-align: center;
  flex-wrap: wrap;
}

.holiday-topbar__text {
  font-weight: 400;
  letter-spacing: 0.3px;
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  flex: 1 1 100%;
  text-align: left;
}

.holiday-topbar__marquee {
  display: inline-block;
  padding-left: 100%;
  animation: holiday-marquee 14s linear infinite;
  will-change: transform;
}

@keyframes holiday-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .holiday-topbar__marquee {
    animation: none;
    padding-left: 0;
  }
}

.holiday-topbar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.8px solid #fff;
  color: #fff;
  background: transparent;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.holiday-topbar__btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

@media (max-width: 750px) {
  .holiday-topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    height: auto;
    padding: 14px 16px;
    gap: 12px;
  }

  .holiday-topbar__text {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    width: 100%;
  }

  .holiday-topbar__btn {
    width: 100%;
    border: 1.8px solid #fff;
    padding: 10px 0;
  }

  .holiday-topbar__btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: none;
  }
}

/* =========================================================
ВЕРХНЯЯ УЗКАЯ ЛИНИЯ (TOPBAR)
========================================================= */
.topbar {
  position: relative;
  color: var(--c-gray-700);
  font-size: var(--fs-p2);
  z-index: 300;
}
.topbar__row{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
  padding:12px 30px !important;
}
.topbar__links { display: flex; align-items: center; gap: 40px; }
.topbar__contacts { display: flex; align-items: center; }
.topbar__link, .topbar__phone, .topbar__address {
  display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none;
}
.topbar__email {
  margin-left: 18px;
  color: #242C6E;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 21px;
  letter-spacing: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
/* .topbar__email:hover { color: #9A9A9A; } */
.topbar__email + .topbar__address { margin-left: 40px; }
.topbar__address:hover {
  color: #9A9A9A;
}
.topbar__link:hover { color: #9A9A9A; }
.topbar__link:hover .i,
.topbar__address:hover .i,
.topbar__phone:hover .i {
  filter: brightness(1.2);
}

.topbar .i { width: 18px; height: 18px; fill: currentColor; opacity: .9; }
.topbar__phone {
  font-size: 20px;
  font-weight: 700;
  color: #242C6E;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar__phone .i {
  width: 14px;
  height: 26px;
  fill: currentColor;
}

/* =========================================================
ОСНОВНАЯ ПОЛОСА ШАПКИ (LAYOUT)
========================================================= */
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 30px !important;
  background: var(--c-dark-blue);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  min-height: 81px;
  position: relative;
  z-index: 1; 
}
.site-header__center {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: center;
}

/* =========================================================
ПОИСК (СПЕЦИФИКА ДЛЯ .site-header)
========================================================= */
.site-header .search {
  display: grid !important;
  grid-template-columns: 1fr 51px;
  align-items: center;
  width: 100%;
  max-width: 607px;
  height: 51px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

/* базово — крестик скрыт */
.site-header .search__close {
  display: none;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  justify-self: center;
  align-self: center;
  place-items: center;
}

.site-header .search__close img {
  width: 16px;
  height: 16px;
  display: block;
}


/* когда открыт search-panel — добавляем колонку под крестик */
body:has(#searchPanel:not([hidden])) .site-header .search {
  grid-template-columns: 1fr 38px 51px;
}

/* показываем крестик при открытом search-panel */
body:has(#searchPanel:not([hidden])) .site-header .search__close {
  display: grid;
}

/* у тебя это уже есть — оставить */
body:has(#searchPanel:not([hidden])) .site-header .search__btn {
  background:#242C6E;
  color:#fff;
}

.site-header .search__input {
  min-width: 0;
  padding: 0 15px !important;
  height: 100%;
  border: 0;
  outline: none;
  font-size: var(--fs-p1);
  color: var(--c-dark-blue);
}
.site-header .search__input::placeholder{ color: var(--c-gray-600); }
.site-header .search__btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  justify-self: center;
  color: var(--c-dark-blue);
  transition: background .15s ease, color .15s ease;
}
.site-header .search__btn .i {
  width: 23px;
  height: 23px;
  fill: currentColor;
  opacity: 1;
}

.site-header .search__input:focus + .search__btn { background:#242C6E; color:#fff; }


.site-header .search__btn { color: var(--c-dark-blue); }
.site-header .search__btn .i { fill: currentColor; }

/* === ЗАТЕМНЕНИЕ ФОНА ПРИ ОТКРЫТОМ МЕНЮ === */
.site-header::after{
  content: "";
  position: absolute;
  top: -20px;                /* покрываем тот самый зазор + нижнюю область */
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;   /* в обычном состоянии прозрачный */
  z-index: 0;                /* выше ::before (-1), но ниже контента (1) */
  pointer-events: none;
  transition: background .25s ease;
}

/* 3) Активируем локальное затемнение при открытом меню */
body.menu-open .site-header::after{
  background: rgba(0,0,0,0.45);
}

/* На всякий случай: выключаем старую версию оверлея, если она осталась */
.site-header_old_overlay_fix::after { content: none !important; }

/* затемнение фона при открытом меню — поверх страницы, но ниже шапки и меню */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 150;              /* ниже .site-header (200), .mega (1000), выше контента */
  pointer-events: none;
}
body.menu-open::before{
  opacity: 1;
  visibility: visible;
}

/* =========================================================
ЛОГОТИП
========================================================= */
.logo{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}
.logo__svg{
  height:61px;
  width:auto;
  display:block;
  max-width:224px;
}
.logo__i { width: 40px; height: 40px; }
.logo__text { font-weight: 700; letter-spacing: .2px; }
.logo__dot { color: var(--c-lime); }

/* =========================================================
ГАМБУРГЕР
========================================================= */
.hamburger{
  width:51px; height:51px; padding:0; border:0; background:transparent;
  display:inline-grid; place-items:center; cursor:pointer;
}
.hamburger__img { opacity: 1 !important; transition: filter 0.2s ease; }
.hamburger:hover .hamburger__img { filter: brightness(0.8); }
.hamburger--svg { background: transparent; }
.hamburger.is-open { filter: brightness(0.98); }

/* =========================================================
ПОИСК (ОБЩИЙ КОМПОНЕНТ)
========================================================= */
.search {
  display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: 0;
  background: #fff; border-radius: 8px; overflow: hidden;
}
.search__input {
  padding: 12px 14px; border: 0; outline: none;
  font-size: var(--fs-p1); color: var(--c-dark-blue);
}
.search__input::placeholder { color: var(--c-gray-600); }
.search__btn {
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  display: inline-grid; place-items: center;
}
.search__btn .i { width: 20px; height: 20px; fill: var(--c-dark-blue); opacity: .9; }

/* =========================================================
ИКОНКИ СПРАВА (ДЕЙСТВИЯ)
========================================================= */
.actions {
  display: flex;
  align-items: center;
  gap: 38px;
}
.actions__item { color: #fff; text-decoration: none; display: inline-flex; flex-direction: column; align-items: center; gap: 3px; font-size: var(--fs-p3); opacity: .95; }
.actions__i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.15) 0 100%);
  fill: #fff;
  opacity: .92;
  box-sizing: content-box;
}

/* =========================================================
МЕГА-МЕНЮ: РАЗМЕЩЕНИЕ И КОНТЕЙНЕРЫ
========================================================= */
.mega{
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: min(1020px, calc(100vw - 60px));
  max-height: 560px;
  background: #ECEFF3;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  overflow: auto;
  z-index: 1000;
}
.mega__inner { padding: 0; }
.mega__grid{
  display: grid;
  grid-template-columns: 280px 1fr 300px;
  max-height: 560px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  height: clamp(420px, 70vh, 560px);
}

/* =========================================================
МЕГА-МЕНЮ: ЛЕВАЯ КОЛОНКА (MEGA-NAV)
========================================================= */
.mega-nav{
  background:#fff;
  /* было: overflow:auto; */
  overflow-y: auto;
  overflow-x: hidden;

  /* было: padding: 25px; — убираем правый внутренний отступ, чтобы скролл прилип к границе */
  padding: 25px;

  /* чтобы не проскроллить всю страницу колесом */
  overscroll-behavior: contain;

  /* Firefox стиль скроллбара */
  scrollbar-width: none;
  scrollbar-color: #E8E8E8 transparent;/* цвет бегунка */
}
/* WebKit (Chrome/Edge/Safari) стиль скроллбара */
.mega-nav::-webkit-scrollbar{
  width: 3px;             /* ширина 3 */
}
.mega-nav::-webkit-scrollbar-track{
  background: transparent;
}
.mega-nav::-webkit-scrollbar-thumb{
  background-color: #E8E8E8;  /* цвет бегунка */
  border-radius: 3px;
}
.mega-nav__list{ list-style:none; margin:0; padding:0; }
.mega-nav__item{ margin:0; }
.mega-nav__item > a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-radius:6px;
  border:1px solid transparent;
  text-decoration:none;
  color:#1F2937;
  font-size:14px;
  line-height:1.4;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.mega-nav__item > a:hover,
.mega-nav__item.is-active > a{
  background:#EBEEFF;
  border-color:#D1D6FA;
  color:#111827;
}
.mega-nav__arrow{
  width:11px;
  height:11px;
  flex:0 0 11px;
  opacity:0;
  transition:opacity .15s ease;
  color:#242C6E;
}
.mega-nav__item > a:hover .mega-nav__arrow,
.mega-nav__item.is-active > a .mega-nav__arrow{
  opacity:1;
}

/* =========================================================
МЕГА-МЕНЮ: ЦЕНТР (MEGA-SUB)
========================================================= */
.mega-sub{
  background:#fff;
  border-inline:1px solid #ECEFF3;
  padding:25px;
  overflow: auto;
  scrollbar-width: none;      
}
.mega-sub::-webkit-scrollbar{           /* Chrome/Edge/Safari */
  width: 0;
  height: 0;
}
.mega-sub__title{
  margin:6px 0 18px !important;
  font-size:18px;
  font-weight:700;
  color:#111827;
}
.mega-sub__list{
  columns: initial !important;
  display: grid !important;
  grid-template-columns: 1fr;
  row-gap: 6px;                        /* интервал между пунктами */
  padding: 0 !important;
  margin: 0 !important;
}
.mega-sub__list li{ margin: 0; }
.mega-sub__list a{
  position: relative;
  display: block;
  padding: 10px 12px 10px 0;            /* слева = 0, текст по линии заголовка */
  border: none;                         /* фон/бордер не на самом <a> */
  font-size: 14px;
  line-height: 1.35;
  color: #1F2937;
  text-decoration: none;
  transition: color .15s ease;
  z-index: 0; 
}
.mega-sub__list a::before{
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: -12px;                          /* выступ влево */
  right: -12px;                         /* и симметрично вправо */
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease;
  pointer-events: none;                 /* клики проходят сквозь фон */
  z-index: -1; 
}

.mega-sub__list a:hover{
  color: #111827;
}

.mega-sub__list a:hover::before{
  background: #EBEEFF;
  border-color: #D1D6FA;
}

/* =========================================================
МЕГА-МЕНЮ: ПРАВАЯ КОЛОНКА (MEGA-ASIDE)
========================================================= */
.mega-aside{
  display: flex;
  flex-direction: column;
  background:#F4F4FF;
  padding:25px;
  overflow:auto;
}
.mega-aside__menu{
  list-style:none; margin:0; padding:0;
  display:grid; gap:25px;
  flex: 0 0 auto;
  overflow: visible; 
}
.mega-aside__menu a{
  display:flex; align-items:center; gap:10px;
  text-decoration:none; color:#1F2937;
  font-size:14px; overflow: visible;
}
.mega-aside__menu a:hover{ color:#0B57D0; }
.mega-aside .i{ width:20px; height:20px; flex-shrink: 0; fill:currentColor; opacity:.85; }
.mega-aside__divider{
  height:1px; background:#E5E7EB; margin:16px 0;
  margin-top: auto;
}
.mega-aside__contacts{ font-style:normal; color:#374151; font-size:14px; flex: 0 0 auto;  padding-top: 12px;}
.mega-aside__addr{ margin-bottom:10px; }
.mega-aside__phone{
  display:inline-block; margin:6px 0 10px;
  color:#000000; font-weight:700; text-decoration:none;
}
.mega-aside__hours{ display:grid; gap:4px; }

/* =========================================================
МЕГА-МЕНЮ: СБРОС СПИСКОВ (ДУБЛЬ ДЛЯ ПОВЕРХ СТИЛЕЙ)
========================================================= */
.mega ul, .mega li { list-style:none !important; margin:0; padding:0; }
.mega li::before, .mega li::after{ content:none !important; }
.mega li::before,
.mega li::after {
  content: none !important;
  display: none !important;
}
.mega ul,
.mega li {
  margin: 0;
  padding: 0;
  list-style: none !important;
}

/* =========================================================
МЕГА-МЕНЮ: АЛЬТЕРНАТИВНЫЕ СТИЛИ КАТЕГОРИЙ
========================================================= */
.mega__col--categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mega__col--categories li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.4;
  transition: background-color .15s ease, border-color .15s ease;
}
.mega__col--categories li:hover {
  background: #EBEEFF;
  border: 1px solid #D1D6FA;
}
.mega__col--categories li::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 11px;
  background: url('/local/templates/centino-heat/assets_new/sprites/icons.svg#arrowright') no-repeat center / contain;
  opacity: 0;
  transition: opacity .15s ease;
}
.mega__col--categories li:hover::after {
  opacity: 1;
}

/* =========================================================
МЕГА-МЕНЮ: СТАБ/ЗАГЛУШКА
========================================================= */
.mega__stub{
  height: 300px;
  display: grid;
  place-items: center;
  color: #242C6E;
  font-weight: 600;
}

/* =========================================================
СОСТОЯНИЯ, АНИМАЦИИ, ВИДИМОСТЬ
========================================================= */
.mega[hidden] { display: none !important; }
.mega { animation: megaIn .16s ease-out; }
@keyframes megaIn {
  from { transform: translateX(-50%) translateY(-6px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}


/* =========================================================
ВЫПАДАЮЩИЙ ПОИСК
========================================================= */
.search-panel{
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: min(1020px, calc(100vw - 60px));
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  z-index: 1000;
}
.search-panel[hidden]{ display: none !important; }

.search-panel__inner{ padding: 0; }
.search-panel__grid{
  display: grid;
  grid-template-columns: 1fr 420px;    /* левая + товары */
  grid-template-rows: 1fr auto;        /* 1) прокручиваемая зона  2) баннер */
  height: clamp(520px, 80vh, 700px);   /* фиксируем высоту всего блока */
  background: #fff;
  border-radius: 10px;
  overflow: visible;                    /* не прячем баннер */
}

/* Левая колонка */
.sp-left{
  padding: 22px 24px;
  min-height: 0;        /* важно для grid + overflow */
  overflow: auto;
  scrollbar-width: none;
}
.sp-left::-webkit-scrollbar{ width:0; height:0; }

.sp-section + .sp-section{ margin-top: 18px; }
.sp-title{
  margin: 0 0 25px 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}
.sp-list{ margin: 0; padding: 0; list-style: none; }
.sp-list li + li{ margin-top: 5px; }

.sp-query{
  position: relative;               /* нужно для псевдофона */
  display: flex;
  align-items: center;              /* иконка строго по центру текста */
  gap: 10px;

  padding: 10px 12px 10px 0;        /* без левого паддинга — выравниваем по тексту */
  font-size: 14px;
  line-height: 1.35;
  color: #1F2937;
  text-decoration: none;
  border: none;                     /* бордер рисуем на псевдоэлементе */
  transition: color .15s ease;
  z-index: 0;
}

.sp-query .i{
  display: block;                   /* убираем влияние базовой линии */
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: currentColor;
  opacity: .9;
}

/* Псевдофон, который выступает влево, но не влияет на выравнивание текста */
.sp-query::before{
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: -12px;                      /* лёгкий «выступ» влево */
  right: -12px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  pointer-events: none;
  transition: background-color .15s ease, border-color .15s ease;
  z-index: -1;
}

/* Ховер-состояние */
.sp-query:hover{
  color: #111827;
}
.sp-query:hover::before{
  background: #EBEEFF;
  border-color: #D1D6FA;
}

/* Правая колонка (товары) */
.sp-right{
  padding: 0 24px 22px;
  border-left: 1px solid #ECEFF3;
  min-height: 0;        /* важно для grid + overflow */
  overflow: auto;
  scrollbar-width: none;
  margin-top: 18px;
}
.sp-right::-webkit-scrollbar{ width:0; height:0; }

.sp-right .sp-title{
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  margin-bottom: 0;
  padding-top: 22px;
  padding-bottom: 25px;
}

.sp-products{ margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.sp-product{ display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start; }
.sp-product__img{ height: 55px; object-fit: contain; border-radius: 6px; max-width: 60px; }
.sp-product__name{ display:block; font-size:14px; color:#1F2937; text-decoration:none; margin-bottom:8px; }
.sp-product__name:hover{ color:#0B57D0; }

.sp-product__price{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.sp-price{ color:#1F2937; font-weight:700; }
.sp-old{ color:#8A8A8A; text-decoration: line-through; text-decoration-color:#09A934; }
.sp-sale{ background:#09A934; color:#fff; border-radius:4px; padding:6px 10px; font-size:12px; line-height:1; }

.sp-products__more{ margin: 50px 0 !important; }
.sp-products__more-btn{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #0B57D0;
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
  transition: color .15s ease;
}
.sp-products__more-btn:hover{
  color: #0840A6;
}
.sp-products__more-btn:focus-visible{
  outline: 2px solid #C7D2FE;
  outline-offset: 2px;
}
.sp-products__more-icon{
  width: 20px;
  height: 17px;
}

.sp-btn{
  display:inline-block;
  padding:10px 12px;
  border-radius:8px;
  background:#242C6E;        /* цвет кнопок */
  color:#fff; text-decoration:none;
  font-size:14px; font-weight:600;
}

/* Баннер внизу */
.sp-banner{
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 0px;
  margin-left: 0px;
  padding: 14px 18px;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
  background: #FBFEE0;        /* заливка */
  border: 1px solid #E5F07F;  /* обводка */
  color: #5D6700;             /* заголовок и текст */
  position: relative;
  overflow: visible;                 /* даём «выглянуть» картинке за край */
  padding-right: clamp(110px, 18vw, 230px); /* место справа под картинку */
}
/* картинка кабеля в правом нижнем углу */
.sp-banner__pic{
  position: absolute;
  right: 6px;
  bottom: -6px;                      /* лёгкий выход за нижний край */
  width: clamp(120px, 20vw, 260px);  /* адаптивная ширина */
  height: auto;
  z-index: 0;                        /* под текстом и кнопкой */
  pointer-events: none;
  user-select: none;
}
.sp-banner > * { position: relative; z-index: 1; }
.sp-banner__icon .i{ width:34px; height:45px; fill:#5D6700; }
.sp-banner__title{ font-weight:700; }
.sp-banner__desc{ font-size:14px; opacity:.9; }
.sp-banner__cta{
  display: inline-block;
  background: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  color: #838383;                /* серый текст */
  text-decoration-line: underline;
  text-decoration-style: dashed; /* пунктир */
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;    /* отступ от текста */

  transition: color .15s ease, text-decoration-color .15s ease;
}

/* ховер/фокус — слегка темнее и сплошная линия */
.sp-banner__cta:hover,
.sp-banner__cta:focus-visible{
  color: #5D6700;
  text-decoration-style: solid;
  outline: none;
}

/* Search panel skeleton */
.sp-skeleton__list,
.sp-products-skeleton {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-panel.is-loading [data-search-categories],
.search-panel.is-loading [data-popular-search] {
  display: block !important;
}

.search-panel.is-loading [data-search-history],
.search-panel.is-loading .sp-products {
  display: none !important;
}

.search-panel.is-loading [data-search-categories] .sp-skeleton__list,
.search-panel.is-loading [data-popular-search] .sp-skeleton__list,
.search-panel.is-loading .sp-products-skeleton {
  display: grid;
}

.search-panel.is-loading [data-search-categories] .sp-list,
.search-panel.is-loading [data-popular-search] .sp-list {
  display: none;
}

.sp-skeleton__list { gap: 10px; }
.sp-skeleton__item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sp-skeleton__block {
  position: relative;
  overflow: hidden;
  background: #E6E6E6;
  border-radius: 6px;
}
.sp-skeleton__block::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  animation: spSkeletonShimmer 1.2s ease-in-out infinite;
}
.sp-skeleton__icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex: 0 0 16px;
}
.sp-skeleton__line {
  height: 12px;
  border-radius: 6px;
}
.sp-skeleton__line--xl { width: 85%; }
.sp-skeleton__line--lg { width: 70%; }
.sp-skeleton__line--md { width: 55%; }
.sp-skeleton__line--sm { width: 40%; }

.sp-products-skeleton {
  margin: 12px 0 0;
  gap: 16px;
}
.sp-skeleton__product {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
}
.sp-skeleton__thumb {
  width: 72px;
  height: 55px;
  border-radius: 6px;
}
.sp-skeleton__meta {
  display: grid;
  gap: 8px;
}

@keyframes spSkeletonShimmer {
  100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .sp-skeleton__block::after { animation: none; }
}



/* === Сброс точек у списков в выпадающем поиске === */
.search-panel ul,
.search-panel li { 
  list-style: none !important;
  margin: 0;
  padding: 0;
}
.search-panel li::marker { content: "" !important; }   /* Safari/Firefox */
.search-panel li::before,
.search-panel li::after { content: none !important; }  /* если тема рисует буллеты псевдоэлементами */

/* Для наших списков явно */
.sp-list,
.sp-products { list-style: none !important; margin: 0; padding: 0; }
.sp-list li,
.sp-products li { list-style: none !important; }
.sp-list li::marker,
.sp-products li::marker { content: "" !important; }



/* --- ЯВНО включаем видимость картинок внутри выпадающего поиска --- */
.search-panel img,
.sp-product__img,
.sp-banner__pic {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* На всякий случай уберём возможные эффекты лэйзи-лоадеров */
.search-panel img[data-src],
.search-panel img.lazyload,
.search-panel img.b-lazy {
  filter: none !important;
  transition: none !important;
}

/* Баннерная картинка: поверх фона и не перекрывает текст */
.sp-banner { position: relative; overflow: visible; padding-right: clamp(110px, 18vw, 230px); }
.sp-banner__pic{
  position: absolute;
  right: -2px;
  bottom: 0px;
  width: 87px;
  height: auto;
  z-index: 1;                 /* выше фона баннера */
  pointer-events: none;
  user-select: none;
}
/* контент баннера поверх картинки, если нужно — оставь 2 */
.sp-banner__icon,
.sp-banner__text,
.sp-banner__cta { position: relative; z-index: 2; }




.sp-history-item { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.sp-history-remove {
  border:0; background:transparent; cursor:pointer; color:#9da3af;
  width:20px; height:20px; border-radius:50%; line-height:18px; font-size:16px;
}
.sp-history-remove:hover { color:#111827; background:rgba(0,0,0,0.06); }


.sp-title-mv {
  margin: 0 0 12px 0 !important;
}

.sp-title-mvs{ 
  margin-top: 18px !important;  
}


/* =========================================================
АДАПТИВ
========================================================= */
.mega__mv { display: none; }

@media (max-width: 768px) {
  .mega {
    position: fixed;
    inset: 0;
    transform: none;
    width: 100vw;
    height: 100vh;
    max-height: none;
    border-radius: 0;
    background: #f7f8fb;
    box-shadow: none;
    animation: none;
    overflow-y: auto;
  }
  .mega__inner { padding: 16px 16px 24px; min-height: 100%; box-sizing: border-box; }
  .mega__grid { display: none; }
  .mega__mv { display: flex; flex-direction: column; gap: 20px; }

  .mega__mv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 0px; }
  .mega__mv-head--inner { border-bottom: 1px solid #E5E7EB; padding-bottom: 8px; margin-bottom: 8px; }
  .mega__mv[data-screen="catalog"] > .mega__mv-head {
    display: none;
  }
  .mega__mv[data-screen="catalog"] > .mega__mv-divider {
    display: none;
  }
  .mega__mv-title { font-size: 20px; font-weight: 600; color: #111; }
  .mega__mv-close, .mega__mv-back {
    border: 0; background: transparent; width: 32px; height: 32px;
    display: grid; place-items: center; color: #0f172a; font-size: 20px;
  }
  .mega__mv-back .i { transform: rotate(180deg); height: 17px; width: 17px;}

  .mega__mv-screen { display: flex; flex-direction: column; gap: 24px; }
  .mega__mv-screen[hidden] { display: none !important; }
  .mega__mv-catalog {
    width: 100%;
    height: 55px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px;
    border: 0; border-radius: 8px;
    background: #C3FF00;
    color: #0f172a;
    font-size: 16px; font-weight: 700;
  }
  .mega__mv-catalog .i { width: 14px; height: 14px; color: inherit; }

  .mega__mv-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
  .mega__mv-links a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 4px;
    color: #1F2937; text-decoration: none; font-size: 18px;
    font-weight: 400;
  }
  .mega__mv-links .i { width: 20px; height: 20px; flex: 0 0 20px; fill: currentColor; opacity: .9; }

  .mega__mv-divider { height: 1px; background: #E5E7EB; margin: 6px 0; }

  .mega__mv-contact { font-style: normal; font-size: 18px; color: #111; display: grid; gap: 18px; }
  .mega__mv-phone { font-weight: 700; color: #111; text-decoration: none; }
  .mega__mv-hours { color: #374151; }

  .mega__mv-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
  .mega__mv-cats a {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 10px 0;
    color: #0f172a; text-decoration: none; font-size: 16px;
    border-bottom: 1px solid #E5E7EB;
  }
  .mega__mv-cats li:last-child a { border-bottom: 0; }
  .mega__mv-cats .i { width: 12px; height: 12px; color: #6b7280; }



  .search-panel {
    position: fixed;
    inset: 0;
    transform: none;
    width: 100vw;
    height: 100vh;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    z-index: 2000;
    overflow-y: auto;
    padding: 0;
  }
  .search-panel__inner { padding: 12px 14px 24px; }

  .search-panel__mv-top {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 12px;
    margin-bottom: 12px;
    background: #fff;
    z-index: 2;
  }
  .search-panel__mv-back {
    width: 32px;
    height: 32px;
    border: 0;
    background: none;
    display: grid;
    place-items: center;
    color: #111827;
    transform: rotate(180deg);
  }
  .search-panel__mv-back .i { width: 16px; height: 16px; }

  .search-panel__mv-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f1f2f4;
    border-radius: 10px;
    height: 50px;
  }
  .search-panel__mv-input .i { width: 16px; height: 16px; color: #4b5563; }
  .search-panel__mv-control {
    width: 100%;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 16px;
    color: #0f172a;
  }

  /* Мобильная колонка — в столбик, баннер скрыть */
  .search-panel__grid { display: flex; flex-direction: column; gap: 18px; height: auto; }
  .sp-left { padding: 0; overflow: visible; }
  .sp-right { padding: 0; border: 0; margin: 0; overflow: visible; }
  .sp-title { font-size: 16px; margin-bottom: 25px; }
  .sp-title-mobile { margin-bottom: 25px; margin-top: 25px; }
  .sp-right .sp-title{
    position: static;
    top: auto;
    background: transparent;
    margin-bottom: 25px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .sp-section + .sp-section { margin-top: 16px; }
  .sp-products { gap: 12px; }
  .sp-product { grid-template-columns: 64px 1fr; gap: 10px; }
  .sp-product__img { width: 64px; height: 64px; }
  .sp-product__price { font-size: 15px; }
  .catalogItemCard__cta-h { height: 34px; padding: 0 12px; }
  .sp-banner { display: none; }

  .sp-query {
    padding: 10px 12px 20px 0;
  }

  .sp-products {
    gap: 40px;
  }

  .sp-products-skeleton { gap: 40px; }
  .sp-skeleton__product { grid-template-columns: 64px 1fr; gap: 10px; }
  .sp-skeleton__thumb { width: 64px; height: 64px; }

}







.site-header__phone {
  display: none;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}
.site-header__phone .i { width: 16px; height: 26px; fill: currentColor; opacity: .95; }


@media (max-width: 835px){
  .topbar { display: none !important; }
}

@media (max-width: 768px){
  .site-header { margin: 8px; border-radius: 12px; top: 8px}
  .site-header::before { 
    top: -8px; 
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
    background: #fff; 
  }
  .site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px 12px !important;
  }

  /* верхняя строка */
  .logo { grid-column: 1; grid-row: 1; }
  .logo__svg { width: 165px; height: 55px; }
  .site-header__phone { grid-column: 2; grid-row: 1; justify-self: end; display: inline-flex; }

  /* нижняя строка: отдельный грид для бургера и поиска */
  .site-header__center {
    grid-column: 1 / span 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: 51px 1fr;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .hamburger {
    width: 51px; height: 51px;
    border-radius: 10px;
    background: #C3FF00;
    display: inline-grid; place-items: center;
  }

  .site-header .search {
    width: 100%;
    max-width: none;
    height: 51px;
  }
  .site-header .search__input { font-size: 16px; }

  .site-header__phone {
    width: 149px;
    min-height: 14px;
    font-size: 15px;
    line-height: 14px;
    gap: 6px;
    justify-self: end;
    font-weight: 500;
  }
  .site-header__phone .i {
    width: 15px;
    height: 28px;
    fill: currentColor;
    stroke: currentColor;
  }

  .site-header.is-scrolled .logo,
  .site-header.is-scrolled .site-header__phone {
    display: none !important;
  }

  .site-header.is-scrolled .site-header__inner {
    grid-template-rows: auto;
    gap: 0;
  }

  .site-header.is-scrolled .site-header__center {
    grid-row: 1;
  }
}

@media (max-width: 900px){
  .search-panel__grid{ grid-template-columns: 1fr; }
  .sp-right{ border-left: 0; border-top: 1px solid #ECEFF3; }
}

@media (max-width: 1024px){
  /* .site-header__inner { grid-template-columns: auto 44px 1fr; } */
  .actions { display: none; }
}

@media (min-width: 319px) and (max-width: 424px) {
  .site-header__phone .i {
    display: none;
  }

  .site-header__phone {
      width: 112px;
      font-size: 13px;
  }
}
