/* Split from headernew.css: mobile header / mobile megamenu / mobile hub */

/* 8) Mobile header & modals (как было, кратко) */

.header-mobile{
  display: none;
}

.mobile-nav{
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1100;
  width: auto;
  height: 50vh;
  max-height: 50vh;
  min-height: 270px;
  background: rgba(35,39,59,.97);
  border-radius: 0 0 26px 26px;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform .33s cubic-bezier(.33,1.34,.42,1), opacity .27s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-nav.open{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-content{
  padding: 24px 7vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: auto;
}
/* МОБИЛЬНАЯ */

/* ---------- 0. Общие утилиты ---------- */

.body-locked{
  overflow: hidden !important;
}

.icon-24{
  width: 24px;
  height: 24px;
  display: block;
}

/* Кнопка-иконка (бургер, back, close) */

.icon-btn,
.games-megamenu-close.mobile{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #1b1b1b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #232323;
  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
}

.icon-btn:hover,
.games-megamenu-close.mobile:hover{
  opacity: .9;
}

.icon-btn:active,
.games-megamenu-close.mobile:active{
  transform: translateY(1px);
}

/* ---------- 1. Compact header (≤900) ---------- */

.header-desktop{
  display: flex;
}

.header-compact{
  display: none;
  position: sticky;
  top: 0;
  z-index: 1100;
  height: 56px;
  background: #111;
  border-bottom: 1px solid #202020;
  padding-inline: 14px;
  align-items: center;
  justify-content: space-between;
}

.header-compact .logo{
  display: flex;
  align-items: center;
  justify-content: center;
}

/* burger icon */

.icon-burger, .icon-burger::before, .icon-burger::after{
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.icon-burger{
  position: relative;
}

.icon-burger::before{
  position: absolute;
  top: -6px;
  left: 0;
}

.icon-burger::after{
  position: absolute;
  top: 6px;
  left: 0;
}

@media (max-width:900px){
  .header-desktop{
    display: none !important;
  }

  .header-compact{
    display: flex !important;
  }
}

@media (max-width:600px){
  .header-compact{
    height: 54px;
  }
}

/* ---------- 2. Mobile Mega (общие) ---------- */

/* контейнер мегаменю */

#gamesMegaMenuMobileDropdown{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0f0f0f;
  color: #fff;
  overflow: hidden;
}

#gamesMegaMenuMobileDropdown.open{
  display: block;
}

/* шапка мегаменю */

.games-megamenu-mobile-header{
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0f0f0f;
  padding: 16px 16px 8px;
  border-bottom: 1px solid #222;
}

.mm-head-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  letter-spacing: .06em;
  font-size: 16px;
  color: #fff;
}

.mm-section-title{
  margin: 8px 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  color: #8e95a3;
  text-transform: uppercase;
}

/* мини-поиск */

.mm-search{
  padding: 10px 0 12px;
}

.search-form.mini{
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  border-radius: 14px;
  background: #1a1a1a;
  border: 1px solid #262626;
  padding-left: 40px;
}

.search-form.mini::before{
  content: "";
  position: absolute;
  left: 12px;
  width: 20px;
  height: 20px;
  opacity: .8;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") center/contain no-repeat;
}

.search-form.mini input{
  flex: 1;
  height: 100%;
  border: 0;
  outline: none;
  color: #fff;
  background: transparent;
  font-size: 16px;
  padding-right: 44px;
}

.search-form.mini .search-btn{
  position: absolute;
  right: 4px;
  width: 36px;
  height: 36px;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #222;
  border-radius: 10px;
  color: #fff;
}

.search-form.mini .search-enter-btn{
  display: none !important;
}

/* скрываем «Enter» из setupSearchForm */

/* тело мегаменю (колонки живут здесь) */

.mm-body{
  padding: 16px;
  background: transparent !important;
}

/* ---------- 3. Игры (левая колонка) ---------- */

.games-megamenu-mobile-list{
  padding: 16px;
  overflow-y: auto;
}

.games-megamenu-mobile-game{
  list-style: none;
}

.games-megamenu-mobile-game + .games-megamenu-mobile-game{
  margin-top: 10px;
}

.games-megamenu-mobile-game .games-megamenu-mobile-game-link{
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 16px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  background: #141414;
  border: 1px solid #1e1e1e;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}

.games-megamenu-mobile-game .games-megamenu-mobile-game-link:active{
  transform: scale(.98);
}

.games-megamenu-mobile-game .title{
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
}

.games-megamenu-mobile-game .nav-svg{
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.games-megamenu-mobile-game .nav-svg svg,
.games-megamenu-mobile-game .nav-svg img,
.games-megamenu-mobile-game .nav-svg .nav-svg-img{
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

/* активная игра — фиолетовый pill */

.games-megamenu-mobile-game.is-active .games-megamenu-mobile-game-link{
  background: linear-gradient(90deg, #6a33ff 0%, #8a2be2 100%);
  border-color: transparent;
}

@media (hover:hover){
  .games-megamenu-mobile-game .games-megamenu-mobile-game-link:hover{
    border-color: #343434;
    background: #171717;
  }
}

/* ---------- 4. Категории (правая колонка) ---------- */

.games-megamenu-side{
  background: #0f0f0f;
}

.games-megamenu-side .side-head{
  padding-top: 6px;
}

#gmSideTitle{
  margin: 4px 0 0px 0px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  opacity: .9;
  color: #fff;
}

.games-megamenu-side .side-body{
  padding: 0 0 8px 0;
}

.games-megamenu-side .side-body .mm-cat{
  padding: 10px 0 14px;
  border-bottom: 1px solid #1f1f1f;
}

.games-megamenu-side .side-body .mm-cat h4{
  margin: 0 0 8px;
  padding-left: 2px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.games-megamenu-side .side-body .mm-sub{
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px 24px;
  padding-right: 8px;
}

.games-megamenu-side .side-body a{
  color: #cfd5df;
  text-decoration: none;
  font-weight: 600;
  opacity: .9;
}

.games-megamenu-side .side-body a:hover{
  opacity: 1;
  color: #fff;
  text-decoration: underline;
}

/* ---------- 5. Модалка категорий (≤600) ---------- */

.mm-cats-modal[hidden]{
  display: none !important;
}

.mm-cats-modal{
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: #0f0f0f;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.mm-cats-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
  border-bottom: 1px solid #222;
  background: #0f0f0f;
}

.mm-cats-title{
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  font-size: 18px;
  flex: 1;
}

.mm-cats-search{
  position: sticky;
  top: 56px;
  z-index: 1;
  background: #0f0f0f;
  padding: 10px 12px;
  border-bottom: 1px solid #222;
}

/* Контент: категории — сетка с разделителями и явной иерархией */

.mm-cats-body{
  position: absolute;
  inset: 112px 0 0 0;
  overflow: auto;
  padding: 16px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0,1fr));
}

@media (max-width:480px){
  .mm-cats-body{
    grid-template-columns: 1fr;
  }
}

@media (max-width:480px){
  .mm-cats-body .mm-sub{
    grid-template-columns: 1fr;
  }
}

.mm-cats-body a{
  color: #cfd5df;
  text-decoration: none;
  font-weight: 600;
}

.mm-cats-body a:hover{
  color: #fff;
  text-decoration: underline;
}

.mm-cats-body a:active{
  transform: scale(.98);
}

/* =========================================================
   РЕЖИМЫ
   ========================================================= */

/* ≤600 — одна колонка (только игры) */

@media (max-width:600px){
  .mm-body{
    padding: 16px;
  }

  #gamesMegaMenuMobileList{
    overflow-y: auto;
    max-height: calc(100vh - 122px);
  }

  /* 56 head + ~66 search */

  #gamesMegaMenuSide{
    display: none !important;
  }
}

/* 601–900 — две независимые колонки со своим скроллом */

@media (min-width:601px) and (max-width:900px){
  .mm-body{
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-template-rows: 1fr;
    gap: 0;
    padding: 16px 0 16px 16px;
    height: calc(100vh - 80px);
  }

  #gamesMegaMenuMobileList{
    grid-column: 1;
    grid-row: 1;
    padding-right: 8px;
    border-right: 1px solid #181818;
    overflow-y: auto;
    height: 100%;
  }

  #gamesMegaMenuSide{
    grid-column: 2;
    grid-row: 1;
    padding: 0 16px 0 8px;
    border-left: 1px solid #232323;
    border-radius: 0 14px 14px 0;
    overflow-y: auto;
    height: 100%;
  }

  .games-megamenu-side .side-head{
    position: sticky;
    top: 0;
    z-index: 1;
    background: #0f0f0f;
    padding: 10px 0 8px;
  }
}

/* ===========================
   Mobile Hub — base
   =========================== */

.mobile-hub[hidden]{
  display: none !important;
}

.mobile-hub{
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,.55);
  height: 100dvh;
}

.mobile-hub__sheet{
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #141414;
  color: #fff;
}

.mobile-hub.open > .mobile-hub__sheet{
  transform: translateY(0);
}

/* Закрыть (верхняя правая кнопка) */

.mobile-hub__top-row{
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 16px 16px 8px;
}

.mobile-hub__close{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1b1b1b;
  color: #fff;
  border: 1px solid #232323;
  cursor: pointer;
  transition: transform .12s ease,opacity .12s ease;
}

/* ===========================
   Tokens (radius/gaps)
   =========================== */

:root{
  --hub-radius: 18px;
  --hub-gap-v: 12px;
}

/* ===========================
   Cards / panels
   =========================== */

.hub-panel{
  background: #1f1f1f;
  border: 1px solid #2a2a2a;
  border-radius: var(--hub-radius);
  padding: 16px 18px;
  margin: var(--hub-gap-v) 18px;
  box-sizing: border-box;
}

.hub-panel--row{
  padding: 0 18px;
  margin: var(--hub-gap-v) 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Единая «строка-бокс» (Currency / Cart) */

.hub-row{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 58px;
  padding: 16px 18px;
  width: 100%;
  background: #1f1f1f;
  border: 1px solid #2a2a2a;
  border-radius: var(--hub-radius);
  margin: var(--hub-gap-v) 0;
  box-sizing: border-box;
}

/* ===========================
   Profile card
   =========================== */

.hub-profile__row{
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.hub-profile__name{
  font-size: 22px;
  font-weight: 800;
}

.hub-profile__balance{
  display: flex;
  align-items: center;
  gap: 12px;
}

.hub-profile__badge{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 0% 0%,#541cff 0%,#8d30ff 60%,#281aff 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hub-profile__badge svg{
  width: 22px;
  height: 22px;
  display: block;
}

.hub-profile__label{
  font-size: 13px;
  color: #cfd1da;
}

.hub-profile__amount{
  font-size: 20px;
  font-weight: 900;
}

.hub-sep{
  height: 1px;
  border: 0;
  background: #2d2d2d;
  margin: 14px 0;
}

/* ===========================
   Lists
   =========================== */

.hub-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hub-item{
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}

.hub-ico{
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
}

.hub-badge{
  display: none !important;
}

/* badge для My Orders скрыт */

/* ===========================
   Currency dropdown (full-width under row)
   =========================== */

.hub-row.currency-dropdown{
  position: relative;
}

.hub-row.currency-dropdown .currency-toggle{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 0;
  padding: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.hub-row.currency-dropdown .cur-left{
  display: flex;
  align-items: center;
  gap: 12px;
}

.hub-row.currency-dropdown .cur-symbol{
  font-size: 28px;
}

.hub-row.currency-dropdown .cur-label{
  font-size: 18px;
  font-weight: 600;
}

.hub-row.currency-dropdown .caret{
  width: 18px;
  height: 18px;
  margin-left: 12px;
}

.hub-row.currency-dropdown .currency-menu{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  width: 100%;
  min-width: 100%;
  background: #222;
  border: 1px solid #2d2d2d;
  border-radius: var(--hub-radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  padding: 16px 18px 12px;
  display: none;
  z-index: 9999;
  box-sizing: border-box;
}

.hub-row.currency-dropdown .currency-menu .menu-item{
  height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.hub-row.currency-dropdown .currency-menu .menu-item:hover{
  background: #26293a;
}

.hub-row.currency-dropdown .currency-menu .menu-item.is-active{
  background: #2e3247;
  outline: 1px solid #3a3e57;
}

/* ===========================
   Cart row
   =========================== */

.hub-row--cart .cart-btn{
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.hub-row--cart .cart-icon img.icon{
  width: 24px;
  height: 24px;
}

.hub-row--cart .cart-label{
  font-size: 18px;
  font-weight: 600;
  margin-left: 2px;
  color: #fff;
}

.hub-row--cart .cart-badge{
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff0000;
  border: 3px solid #1f1f1f;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===========================
   CTA fixed bottom
   =========================== */

.hub-cta-wrap{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10003;
  background: #141414;
  padding: 18px 18px 24px;
}

.hub-cta, .hub-cta--ghost{
  width: 100%;
  height: 56px;
  border-radius: 18px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  font-size: 20px;
  margin: 0;
  color: #fff;
}

.hub-cta{
  background: linear-gradient(90deg,#2563EB 0%,#720FFE 56%,#7709FF 100%);
}

.hub-cta--ghost{
  background: #252525;
  border: 1px solid #343434;
}

.hub-list li{
  display: flex;
  align-items: center;
  gap: 12px;
}

.hub-ico img{
  width: 24px;
  height: 24px;
  display: block;
  filter: none !important;
}

.hub-item-link{
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

/* === Quick links (right) ============================================== */

/* === Mobile hub – Explore section ===================================== */

.mobile-hub .hub-list a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #1f1f1f;
  color: #fff;
  text-decoration: none;
  border: 1px solid #2a2a2a;
  margin-bottom: 8px;
}

.mobile-hub .hub-list a:hover{
  background: #262626;
}

.mobile-hub .hub-list a img{
  width: 18px;
  height: 18px;
}

/* === Mobile Hub: Explore ========================== */

/* === Right header cluster: equal spacing & unified icon sizes === */

.header-right{
  display: flex;
  align-items: center;
  gap: 16px;
}

/* компактная иконка-кнопка (логин) в общем стиле */

.icon-btn--action{
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: #fff;
}

.icon-btn--action:hover{
  background: #1f1f1f;
  border-color: #2a2a2a;
}

/* нормализуем размеры всех SVG/PNG в правом блоке */

.header-right .dropdown-toggle .icon,
.header-right .cart-btn .icon,
.header-right .icon-btn--action .icon-24{
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: inline-block;
}

/* Cart: мелкие правки бейджа, чтобы на 24px иконке сидел красиво */

.header-right .cart-btn{
  gap: 8px;
  padding: 0;
}

.header-right .cart-btn .cart-badge{
  top: -6px;
  right: -8px;
}

/* === Mobile Hub — отступы блока EXPLORE такие же, как у остальных === */

.mobile-hub .hub-section{
  margin: 14px 0;
}

.mobile-hub .hub-title{
  margin: 0 16px 10px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .12em;
  color: #b7b7b7;
}

.mobile-hub .hub-list--cards{
  margin: 0 16px;
}

/* ← горизонтальные отступы */

.mobile-hub .hub-list--cards .hub-link{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #1f1f1f;
  color: #fff;
  text-decoration: none;
  border: 1px solid #2a2a2a;
  margin-bottom: 8px;
}

.mobile-hub .hub-list--cards .hub-link:hover{
  background: #262626;
}

.mobile-hub .hub-ico-img{
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* разделитель внутри mobile-hub */

.mobile-hub .menu-sep{
  border: 0;
  height: 1px;
  background: #2e2e2e;
  margin: 6px 8px;
}

/* Quick-links dropdown — хвостик и выравнивание по правому краю */

.header-right .quick-links-dropdown .dropdown-menu{
  right: 0;
  left: auto;
}

.header-right .quick-links-dropdown .dropdown-menu::before{
  right: 16px;
  left: auto;
}

.dropdown-menu .menu-sep{
  border: 0;
  height: 1px;
  background: #2e2e2e;
  margin: 6px 8px;
}

.dropdown-menu a img{
  width: 18px;
  height: 18px;
  margin-right: 8px;
  object-fit: contain;
}

/* каркас шита: колонкой, контент прокручивается, футер внизу */

.mobile-hub .mobile-hub__sheet{
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-hub .mobile-hub__content{
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.mobile-hub .mobile-hub__footer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, #0e0e0e 42%);
  backdrop-filter: blur(2px);
  z-index: 2;
}

/* сама кнопка */

.mobile-hub .mobile-hub__cta{
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  letter-spacing: .2px;
  background: linear-gradient(90deg,#2563EB 0%, #720FFE 56%, #7709FF 100%);
}

.mobile-hub .mobile-hub__cta:hover{
  filter: brightness(1.04);
}

/* === Right cluster unified hover — filled outer pill =================== */

/* Размеры/отступы не трогаем. Фон и рамка рисуются вне коробки кнопки. */

.header-right :where(
  .dropdown-toggle,
  .btn-secondary,
  .btn-primary,
  .cart-btn,
  .favorites-btn,
  .login-btn,
  .currency-dropdown .dropdown-toggle,
  .currency-dropdown .currency-toggle,
  .quick-links-dropdown .dropdown-toggle,
  .balance-dropdown .dropdown-toggle,
  .profile-dropdown .dropdown-toggle
){
  position: relative;
  z-index: 0;
  border-radius: 12px;
  transition: color .16s ease;
}

/* цвет иконки/текста */

.header-right :where(
  .dropdown-toggle,
  .btn-secondary,
  .btn-primary,
  .cart-btn,
  .favorites-btn,
  .currency-dropdown .dropdown-toggle,
  .currency-dropdown .currency-toggle,
  .quick-links-dropdown .dropdown-toggle,
  .balance-dropdown .dropdown-toggle,
  .profile-dropdown .dropdown-toggle
):hover,
.header-right :where(
  .dropdown-toggle,
  .btn-secondary,
  .btn-primary,
  .cart-btn,
  .favorites-btn,
  .login-btn,
  .currency-dropdown .dropdown-toggle,
  .currency-dropdown .currency-toggle,
  .quick-links-dropdown .dropdown-toggle,
  .balance-dropdown .dropdown-toggle,
  .profile-dropdown .dropdown-toggle
):focus-visible{
  color: #fff !important;
}

/* заливка «пилюли» снаружи (зазор) */

.header-right :where(
  .dropdown-toggle,
  .btn-secondary,
  .btn-primary,
  .cart-btn,
  .favorites-btn,
  .login-btn,
  .currency-dropdown .dropdown-toggle,
  .currency-dropdown .currency-toggle,
  .quick-links-dropdown .dropdown-toggle,
  .balance-dropdown .dropdown-toggle,
  .profile-dropdown .dropdown-toggle
):hover::before,
.header-right :where(
  .dropdown-toggle,
  .btn-secondary,
  .btn-primary,
  .cart-btn,
  .favorites-btn,
  .login-btn,
  .currency-dropdown .dropdown-toggle,
  .currency-dropdown .currency-toggle,
  .quick-links-dropdown .dropdown-toggle,
  .balance-dropdown .dropdown-toggle,
  .profile-dropdown .dropdown-toggle
):focus-visible::before{
  content: "";
  position: absolute;
  inset: -4px;
  background: #1f1f1f;
  border-radius: 14px;
  pointer-events: none;
  z-index: -1;
}

/* обводка вокруг этой же внешней формы */

.header-right :where(
  .dropdown-toggle,
  .btn-secondary,
  .btn-primary,
  .cart-btn,
  .favorites-btn,
  .login-btn,
  .currency-dropdown .dropdown-toggle,
  .currency-dropdown .currency-toggle,
  .quick-links-dropdown .dropdown-toggle,
  .balance-dropdown .dropdown-toggle,
  .profile-dropdown .dropdown-toggle
):hover::after,
.header-right :where(
  .dropdown-toggle,
  .btn-secondary,
  .btn-primary,
  .cart-btn,
  .favorites-btn,
  .login-btn,
  .currency-dropdown .dropdown-toggle,
  .currency-dropdown .currency-toggle,
  .quick-links-dropdown .dropdown-toggle,
  .balance-dropdown .dropdown-toggle,
  .profile-dropdown .dropdown-toggle
):focus-visible::after{
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  pointer-events: none;
}

/* иконки — одного размера, без влияния на отступы контейнеров */

.header-right img.icon,
.header-right .icon-24,
.header-right .cart-btn .icon{
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: inline-block;
}

/* === Hide visual scrollbar while modal is open, but keep the gutter === */

html.modal-open{
  scrollbar-gutter: stable;
  scrollbar-color: transparent transparent;
}

/* WebKit: оставляем ширину, но делаем трек и бегунок прозрачными */

html.modal-open::-webkit-scrollbar{
  width: 10px;
  height: 10px;
}

html.modal-open::-webkit-scrollbar-track{
  background: transparent !important;
}

html.modal-open::-webkit-scrollbar-thumb{
  background: transparent !important;
  border-color: transparent !important;
}

/* разделитель между категориями и отступы */

.mm-cats-body .mm-cat{
  padding: 12px 12px 16px;
  border-bottom: 1px solid #202020;
  background: transparent;
}

/* Заголовки категорий — чуть крупнее и белые */

.mm-cats-body .mm-cat h4{
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.mm-cats-body .mm-cat h4 a{
  color: inherit;
  text-decoration: none;
}

/* Сабкатегории — чуть мелче и серые, чтобы визуально отличались */

.mm-cats-body .mm-sub{
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px 18px;
}

@media (max-width:480px){
  .mm-cats-body{
    grid-template-columns: 1fr;
  }

  .mm-cats-body .mm-sub{
    grid-template-columns: 1fr;
  }
}

.mm-cats-body .mm-sub .mm-sub-link{
  color: #9ea6b3;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 0;
  display: inline-block;
}

/* Модалка категорий (≤600): секция с кнопкой All offers */

.mm-cats-modal .mm-all-offers-btn{
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 10px 0 12px;
  padding: 10px 14px;
  box-sizing: border-box;
  border-radius: 14px;
  background: #1f1f1f;
  border: 1px solid #2a2a2a;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mm-cats-modal .mm-all-offers-btn:hover{
  background: #232323;
}

.mm-cats-modal .mm-all-offers-btn:active{
  transform: translateY(1px);
}

.mm-cats-modal .mm-all-offers-btn:focus-visible{
  outline: 2px solid #5057ff;
  outline-offset: 2px;
}

/* На случай старой обёртки внутри модалки — убираем её визуал, чтобы не было "двойной" таблетки */

.mm-cats-modal .megamenu-all-btn{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: contents;
}
