/* 0) Reset (мягкий) */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
button, input, select { font: inherit; }

/* 1) Tokens / theme */
:root{
  --bg: #0e0e1a;
  --bg-alt:#181929;
  --text:#f6faff;
  --muted:#bcc5db;
  --brand:#ffe173;           /* золото */
  --brand-ink:#23273b;
  --stroke:#2e314c;
  --shadow: 0 4px 32px #181e2f48;
  --content-max: 1654px; /* даёт по 133px полей на ширине 1920px */
  --page-gutter: max(16px, calc((100vw - var(--content-max)) / 2));  

  /* Scroll palette */
  --scroll-track:#20222c;
  --scroll-thumb:#585a66;
  --scroll-thumb-hover:#6b6e7a;
}

/* 2) Header shell */
.site-header{
  position: sticky; top:0; left:0; z-index:1000;
  width:100%;
  background:#000;
  color:var(--brand);
  border-bottom: 1px solid #101321;
  box-shadow: 0 1px 0 #101321;
}
.header-desktop{
  display:flex; align-items:center; justify-content:space-between;
  min-height:68px;
  padding-inline: var(--page-gutter);
}
.header-left, .header-center, .header-right{ display:flex; align-items:center; gap:1rem; }
.header-center{ flex:1 1 auto; justify-content:flex-start; }
.logo{ display:flex; align-items:center; gap:.5rem; text-decoration:none; color:var(--brand); }
.logo-svg{ width:149px; height:40px; }

/* 3) Search (desktop look) */
.header-center .search-form{
  position: relative;
  width: clamp(200px, 28vw, 800px);  /* было clamp(420px, 46vw, 900px) */
  height: 40px;
  border-radius: 12px;
  background: #282828;
  padding: 0 20px;
  overflow: hidden;
  border: none;
  box-shadow: none;
  margin: 0 20px;
}

/* аккуратная анимация при фокусе + «Enter» */
@keyframes hint-pop {
  0% { transform: translateY(6px) scale(.96); opacity: 0; }
  100%{ transform: translateY(0)  scale(1);   opacity: 1; }
}
.header-center .search-form:focus-within{
  box-shadow: 0 0 0 2px #3a3a3a inset, 0 0 0 1px #3a3a3a;
}

.header-center {
  opacity: 1;
  animation: hint-pop .18s ease both;
}

.header-center .search-form .search-btn{
  position:absolute; left:12px; top:50%; transform:translateY(-50%);
  width:20px; height:20px; padding:0; background:transparent; border:0; color:#bfbfbf;
  display:inline-flex; align-items:center; justify-content:center;
}
.header-center .search-form input{
  width:100%; height:100%;
  background:transparent; border:0; outline:0; color:#e9e9e9;
  font-size:14px; line-height:40px; padding-left:36px; padding-right: 56px;
}
.header-center .search-form input::placeholder{ color:#9a9a9a; }
.header-center .search-form:focus-within{ box-shadow: 0 0 0 3px #646464 inset; }
@media (max-width: 900px){
  .header-center .search-form{ width:100%; max-width:100%; }
}

/* сам инпут — оставляем место под кнопку справа */
.header-center .search-form input{
  padding-right: 56px;        /* уже есть у тебя — оставить */
}

/* КЛИКАБЕЛЬНАЯ кнопка Enter внутри формы */
.header-center .search-form .search-enter-btn{
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  display:inline-flex; align-items:center; justify-content:center;
  height:24px; min-width:46px; padding:4px 8px;
  font-size:11px; line-height:1;
  color:#ffffff; background:#720FFE; border-radius:8px; border:0; cursor:pointer;
  opacity:0; pointer-events:none; transition:opacity .15s ease;
  z-index:1;                          /* на всякий случай поверх автокомплита */
}

/* Появляется и кликается, пока фокус где-то внутри формы */
.header-center .search-form:focus-within .search-enter-btn{
  opacity:1; pointer-events:auto;
}

/* ховер-эффект по желанию */
.header-center .search-form .search-enter-btn:hover{
  filter: brightness(1.05);
}


/* 4) Right actions — чистый вид (без фона) */
.header-right .dropdown-toggle,
.header-right .btn-secondary,
.header-right .btn-primary,
.header-right .cart-btn{
  background:none !important; border:none !important; padding:0 !important;
  color:#fff !important; display:inline-flex; align-items:center; gap:.5rem; box-shadow:none !important;
}
.header-right :where(.dropdown-toggle,.btn-secondary,.btn-primary,.cart-btn):hover{ color:var(--brand); }

.header-right .cart-btn{
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  text-decoration: none;
}

.header-right .cart-btn .cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* круглый бейдж количества */
.header-right .cart-btn .cart-badge{
  position:absolute;
  top: -8px;
  right: -10px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  background: linear-gradient(135deg,#ff0000,#ff0000);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border: 3px solid #0f111a; /* обводка под тёмный хедер */
  line-height: 1;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 2px 10px rgba(92,53,255,.45);
  transform-origin: 50% 50%;
}

/* разделитель-точка перед суммой */
.header-right .cart-btn .price-dot{
  width: 4px; height: 4px; border-radius: 50%;
  background: #7b7e8d; opacity:.85;
  display: inline-block;
}

/* сумма заказа */
.header-right .cart-btn .cart-total{
  font-weight: 600;
  letter-spacing: .1px;
  min-width: unset;
}

/* hover — золотая подсветка текста/иконки */
.header-right .cart-btn:hover{
  color: var(--brand) !important;
}
.header-right img.icon {
  width: 32px;
  height: 32px;
  display: inline-block;
  object-fit: contain; /* чтобы SVG/PNG не искажались */
}


/* Favorites как обычная иконка-кнопка в правой зоне */
.header-right .favorites-btn { display:inline-flex; align-items:center; }
.header-right .favorites-btn:hover { color: var(--brand) !important; }

/* ===== небольшая анимация при обновлении корзины ===== */
@keyframes cart-bump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.12); }
  60%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}
.cart-badge.bump { animation: cart-bump .38s ease; }

@keyframes price-shine {
  0% { color: #fff; }
  30%{ color: #ffe173; }
  100%{ color: #fff; }
}
.cart-total.shine { animation: price-shine .65s ease; }


/* 4.2) Dropdowns — общий стиль (баланс/профиль) */
.dropdown{ position:relative; }
.dropdown-menu{
  position:absolute; top:calc(100% + 10px); left:0;
  min-width:180px; background:#1f1f1f; color:#fff;
  border:1px solid #2a2a2a; border-radius:16px; padding:8px;
  box-shadow:0 14px 34px rgba(0,0,0,.45); display:none; z-index:1300;
}

.dropdown-menu .menu-item, .dropdown-menu a{
  width:100%; display:flex; align-items:center; gap:10px;
  padding:10px 12px; background:none; border:0; color:#fff; text-decoration:none;
  border-radius:12px; cursor:pointer; font:inherit;
}
.dropdown-menu .menu-item:hover, .dropdown-menu a:hover{ background:#2a2a2a; }
.dropdown-menu .menu-item.is-active{ background:#353535; }
/* правые выпадашки выравниваем к правому краю */
.balance-dropdown .dropdown-menu, #profileDropdown-authArea .dropdown-menu{ right:0; left:auto; }
.balance-dropdown .dropdown-menu::before, #profileDropdown-authArea .dropdown-menu::before{ left:auto; right:16px; }

/* 4.3) Currency dropdown — компактный собственный */
.currency-dropdown{ position:relative; display:inline-block; }
.currency-dropdown .currency-toggle{ display:inline-flex; align-items:center; gap:6px; background:none !important; border:none !important; padding:0 !important; color:#fff !important; font-weight:600; line-height:1; }
.currency-dropdown .currency-toggle .caret{ width:16px; height:16px; opacity:.9; transition:transform .18s ease; }
.currency-dropdown.open .currency-toggle .caret{ transform:rotate(180deg); }
.currency-dropdown .dropdown-menu{
  position:absolute; top:calc(100% + 8px);
  left:50%; transform:translateX(-50%);
  width:max-content; min-width:unset; padding:6px 8px;
  background:#1e1e1e; border:1px solid #2a2a2a; border-radius:12px; box-shadow:0 10px 24px rgba(0,0,0,.45); text-align:left;
}
.currency-dropdown .currency-toggle .cur-symbol {
  font-size: 26px;
  margin-right: 2px;
}
.currency-dropdown .currency-toggle .cur-code {
  display: none; /* скрываем код валюты в кнопке */
}

.currency-dropdown .dropdown-menu .menu-item{
  display:flex; align-items:center; gap:10px; width:100%; height:36px; padding:0 10px;
  background:none; border:0; color:#fff; border-radius:10px; cursor:pointer; font-weight:600; letter-spacing:.2px;
}
.currency-dropdown .dropdown-menu .menu-item .sym{ width:16px; text-align:center; opacity:.95; }
.currency-dropdown .dropdown-menu .menu-item .code{ font-weight:700; }
.currency-dropdown .dropdown-menu .menu-item:hover{ background:#2a2a2a; }
.currency-dropdown .dropdown-menu .menu-item.is-active{ background:#323232; outline:1px solid #3a3a3a; }

/* 5) MegaMenu — кнопка-триггер */
.games-megamenu-toggle{
  display:inline-flex !important; align-items:center; gap:8px;
  height:40px; padding:10px 12px; border-radius:12px; border:0; cursor:pointer;
  background:linear-gradient(90deg,#2563EB 0%, #720FFE 56%, #7709FF 100%); color:#fff;
  font-weight:600; font-size:14px; letter-spacing:.2px; box-shadow:0 6px 16px rgba(39,16,255,.25);
  white-space: nowrap;   /* запрет переноса */
  width: 101px;          /* фикс из макета */
}
.games-megamenu-toggle .megamenu-arrow{ color:#fff; opacity:.9; transition:transform .18s ease; }
.games-megamenu-toggle:where(:hover,:focus-visible){ filter:brightness(1.03); box-shadow:0 8px 20px rgba(39,16,255,.33); outline:none; }

/* 5.1) Триггеры open/close (close заменяет open) */
.games-megamenu-trigger{ position:relative; display:inline-block; z-index:1250; }
#gamesMegaMenuToggle{ position:relative; display:inline-flex !important; }
#gamesMegaMenuClose{
  position:absolute; inset:0; display:none !important;
  justify-content:center; gap:0 !important; padding:10px 20px;
}
.games-megamenu.open #gamesMegaMenuToggle{ visibility:hidden; }
.games-megamenu.open #gamesMegaMenuClose{ display:inline-flex !important; }

/* 6) MegaMenu — дропдаун под шапкой (fixed) */
.games-megamenu{ position:relative; }
.games-megamenu-dropdown{
  position:fixed; left:0; width:100vw; height:43vh; min-height:300px;
  top:var(--header-height,68px);
  background:#121212; border-top:1px solid #2b2b2b; box-shadow:0 12px 40px rgba(0,0,0,.45);
  display:none; opacity:0; transform:translateY(-6px); transition:opacity .25s ease, transform .25s ease;
  padding-block: 20px 24px;
  padding-inline: var(--page-gutter);
  /* НОВОЕ: небольшой запас снизу, чтобы контент не обрезался */
  padding-bottom: 40px;       /* раньше было 24px, теперь 40px */
  overflow: hidden;                 /* чтобы контент не вылезал за края */
  border-radius: 0 0 20px 20px;
}
.games-megamenu.open .games-megamenu-dropdown{ display:block; opacity:1; transform:translateY(0); }

/* 6.1) Внутренняя раскладка: left fixed / center flex / right fixed + pinned right */
.megamenu-content{
  display:flex; align-items:flex-start; gap:28px; width:100%;
}

.megamenu-left  { flex:0 0 340px; }
.megamenu-center{
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: visible;
  display: flex;
  flex-direction: column;
}
.megamenu-right{
  /* было: flex: 0 0 280px; align-items:flex-end; overflow:hidden; */
  flex: 0 0 300px;           /* +20px: карточка 250px + gap 18px + точки 9px уверенно влезают */
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* выравниваем влево, чтобы ряд с точками не уезжал за край */
  overflow: visible;         /* точки справа больше не обрезаются */
}
.megamenu-right-title{
  align-self: flex-start;      
  margin-top: 0;              /* чтобы был «вровень» с левым/центральным */
}
/* 6.2) Левый список игр — одинаковые строки, без стрелок; SVG фикс */
.megamenu-left-title{ font-size:13px; letter-spacing:.12em; color:#b7b7b7; margin-bottom:10px; }
/* отступ — только справа под скролл; слева вплотную к колонке */
.games-megamenu-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding-left: 0;   
  padding-right: 8px;
  padding-bottom: 8px;
  max-height:calc(43vh - 64px);
  overflow:auto;
  scrollbar-gutter: stable; 
}
.games-megamenu-list .game-arrow{ display:none !important; }
.games-megamenu-game{
  height:44px;
  min-height:44px;
  margin-right: 8px;           /* зазор от скролла */
  padding-left: 10px;          /* чуть воздуха слева под иконку */
  padding-right: 12px;
  border-radius:12px;
  display:flex; align-items:center; gap:10px; 
  color:#e9e9e9; background:#2c2c2c; cursor:pointer;
}
.games-megamenu-game.active{ background:linear-gradient(90deg,#2563EB,#720FFE); color:#fff; font-weight:600; }
.games-megamenu-game .nav-svg{ flex:0 0 20px; display:inline-flex; align-items:center; justify-content:center; }
/* поддерживаем как inline <svg>, так и <img> */
.games-megamenu-game .nav-svg svg,
.games-megamenu-game .nav-svg img,
.games-megamenu-game .nav-svg .nav-svg-img {
  width:27px;
  height:27px;
  display:block;
  object-fit: contain;
}
.games-megamenu-game .game-title{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* 6.3) Центр: заголовок/кнопка сверху; категории — грид 3→2→1 */
.megamenu-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.megamenu-game-title{ font-size:13px; letter-spacing:.12em; color:#b7b7b7; margin-bottom:10px; }
.megamenu-all-btn{ display:inline-flex; align-items:center; height:36px; padding:0 14px; border-radius:10px; background:#2c2c2c; color:#fff; text-decoration:none; font-weight:600; font-size:13px; }
.megamenu-all-btn:hover{ background:#343434; }

.games-megamenu-categories{
  display: grid;
  gap: 24px;
  padding-right: 8px;
  /* колонки: сколько влезет, без горизонтальной прокрутки */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

  /* ВАЖНО: явная высота и вертикальный скролл
     Скорректировано с учётом увеличенного нижнего паддинга (40px) */
  height: calc(43vh - 84px); /* было calc(40vh - 64px) */
  overflow-y: auto;
  overflow-x: hidden;

  scrollbar-gutter: stable both-edges;
  contain: layout paint;
  padding-bottom: 4px;
}
.games-megamenu-categories,
.games-megamenu-categories *{
  min-width: 0;
  overflow-wrap: anywhere;
}

.megamenu-cat h4{ margin:0 0 10px; font-size:14px; font-weight:700; color:#fff; }
.megamenu-sublist a{ display:block; padding:4px 0; font-size:13px; color:#bcbcbc; text-decoration:none; }
.megamenu-sublist a:hover{ color:#fff; }

/* ===== MegaMenu Hot Offer — компактная карточка ===== */
/* ==== MegaMenu HOT card — те же значения, но в уникальном scope ==== */
.games-megamenu-dropdown .mm-hot-card{
  /* vars как у тебя */
  --mm-card-w: 250px;
  --mm-card-h: 300px;   /* было 250px — стало выше */
  --mm-img-h: 150px;    /* больше места сверху под оверлап */
  --mm-pad-x: 10px;
  --mm-overlap: 26px;

  /* единая ширина у всех карточек */
  width: var(--mm-card-w);
  min-width: var(--mm-card-w);
  max-width: var(--mm-card-w);
  height: var(--mm-card-h);

  position: relative;
  display: flex;                 /* колонка вместо grid */
  flex-direction: column;
  background: #121212;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(0,0,0,.45);
  overflow: hidden;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease;
}
.games-megamenu-dropdown .mm-hot-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.55);
}

/* картинка фикс-высоты + затемнение снизу */
.games-megamenu-dropdown .mm-hot-imgbox{
  position: relative;
  flex: 0 0 var(--mm-img-h);
  height: var(--mm-img-h);
  overflow: hidden;
  background: #0f1117;
}
.games-megamenu-dropdown .mm-hot-img{
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.games-megamenu-dropdown .mm-hot-imgbox::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:70%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.48) 40%, rgba(0,0,0,.92) 100%);
  pointer-events:none;
}

/* бейдж компактный справа */
.games-megamenu-dropdown .mm-hot-badge{
  position:absolute; top:8px; right:8px; z-index:2;
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 8px;
  font-size:11px; line-height:1; font-weight:800;
  color: var(--badge-text, #fff);
  background: var(--badge-bg, #7709FF);
  border-radius:6px;
  border:1px solid rgba(255,255,255,.18);
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
}
.games-megamenu-dropdown .mm-hot-badge .badge-ico{
  width:14px; height:14px; flex:0 0 14px;
  background: currentColor;
  -webkit-mask: var(--badge-icon) no-repeat center / contain;
          mask: var(--badge-icon) no-repeat center / contain;
}
.games-megamenu-dropdown .mm-hot-badge .badge-label{
  display:inline-block;
}

/* контент — «заезжает» на картинку, тянется по высоте; цена внизу */
.games-megamenu-dropdown .mm-hot-content{
  position: relative; z-index: 1;
  margin-top: calc(var(--mm-overlap) * -1);
  padding: 12px var(--mm-pad-x) 14px var(--mm-pad-x);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;          /* 👈 ключ: контент занимает всё оставшееся */
  min-height: 0;           /* чтобы не ломался скролл/обрезка */
}
/* описание тянется, не перекрывает низ карточки */
.games-megamenu-dropdown .mm-hot-desc{
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;          /* защищаемся от слишком длинного HTML из редактора */
}
.games-megamenu-dropdown .mm-hot-title{
  font-size: 13.5px; font-weight: 800; line-height: 1.18;
  color:#fff; margin:0;
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
}

/* SunEditor HTML — без фикс-высоты, с микро-отступами и переносами */
.games-megamenu-dropdown .mm-hot-desc{ flex: 1 1 auto; min-height: 0;  }
.games-megamenu-dropdown .mm-hot-short{
  display:block;
  font-size: 11.5px; line-height: 1.28; color:#cfd6e6;
  padding-inline: 2px;          /* чтобы буллиты/точки не упирались в край */
  padding-bottom: 10px;  /* запас над блоком цены/бейджем */
  overflow: hidden; position: relative;
  word-break: break-word; overflow-wrap: anywhere;
}
.games-megamenu-dropdown .mm-hot-short ul{
  margin: 2px 0 0; padding-left: 16px; list-style-position: inside;
}
.games-megamenu-dropdown .mm-hot-short li{ margin: 2px 0; }
.games-megamenu-dropdown .mm-hot-short p{ margin: 0 0 4px; }
.games-megamenu-dropdown .mm-hot-short b,
.games-megamenu-dropdown .mm-hot-short strong{ font-weight:700; }
/* мягкий фейд только при переполнении */
.games-megamenu-dropdown .mm-hot-short::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:14px;
  pointer-events:none;
}

/* цена — в потоке, прижата вниз/вправо (оставили общий класс для скрипта валют) */
/* блок цены прижат к левой стороне и повторяет логику главной */
.games-megamenu-dropdown .product-price-bottom{
  margin-top: auto;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: .28rem;
}
.games-megamenu-dropdown .price-save-badge{
  display:inline-block;
  align-self:flex-start;
  background:#51cf66;
  color:#0b1c0b;
  padding:.14rem .46rem;
  font-size:11px;
  font-weight:800;
  border-radius:6px;
}
.games-megamenu-dropdown .mm-hot-card .product-price-from-overlay{
  position: static;
  background: transparent; padding: 0;
  display:flex; align-items:baseline; gap:.42rem;
  color:#fff; font-weight:900; font-size:13.5px; letter-spacing:.2px;
  text-shadow: 0 2px 16px rgba(0,0,0,.65);
}
.games-megamenu-dropdown .product-price-from-overlay .from-label{
  color:#b8b8c7; font-weight:600; margin-right:.08rem;
}
.games-megamenu-dropdown .product-price-from-overlay .old-price{
  color:#9aa0a6; text-decoration: line-through; font-weight:700;
}
.games-megamenu-dropdown .product-price-from-overlay .current-price{
  color:#ffffff; font-weight:800;                    /* по умолчанию — белая */
}
.games-megamenu-dropdown .product-price-from-overlay.has-discount .current-price{
  color:#51cf66;                                     /* зелёная — только при скидке */
}


/* точки слайдера (уникальные) — если используешь */
.games-megamenu-dropdown .mm-hot-dots{ display:flex; flex-direction:column; gap:10px; align-self:center; }
.games-megamenu-dropdown .mm-hot-dot{ width:9px; height:9px; border-radius:50%; background:#444; display:inline-block; cursor:pointer; transition:background .18s; }
.games-megamenu-dropdown .mm-hot-dot.is-active{ background:#ffffff; }

/* MegaMenu Right Title */
.megamenu-right-title {
  font-size: 13px;
  font-weight: 700;
  color: #b7b7b7;
  margin-bottom: 12px;
  letter-spacing: .12em;
}

/* карточка + точки — в строку, точки сбоку */
.games-megamenu-dropdown .mm-hot-row{
  display:flex;
  align-items:flex-start;
  gap:18px;
  flex-wrap:nowrap;
}

.games-megamenu-dropdown .mm-hot-dots{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-self:center;
  margin-top:0;
}
.games-megamenu-dropdown .mm-hot-dot{
  width:9px; height:9px; border-radius:50%;
  background:#444; display:inline-block; cursor:pointer; transition:background .18s;
}
.games-megamenu-dropdown .mm-hot-dot.is-active{ background:#ffffff; }

/* Карточка = как на странице игры, но с фиксированной шириной */
.games-megamenu-dropdown .product-card-new{
  --mm-card-w: 250px;
  width: var(--mm-card-w);
  min-width: var(--mm-card-w);
  max-width: var(--mm-card-w);
  background:#1b1e28;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  overflow:hidden;
  display:flex; flex-direction:column; cursor:pointer;
  transition:transform .24s cubic-bezier(.25,.8,.25,1), box-shadow .24s cubic-bezier(.25,.8,.25,1);
  box-shadow:0 2px 18px rgba(0,0,0,.22);
  min-height: 340px;  
}

.games-megamenu-dropdown .product-img-box{
  position:relative; 
  aspect-ratio: auto;
  height: 170px;                /* было ~16/9; стало выше */
  overflow:hidden; background:#0f1117; 
}
.games-megamenu-dropdown .product-img-box img{
  width:100%; height:100%; object-fit:cover; display:block; transition:transform .45s ease;
  object-position: center;      /* аккуратное кадрирование */
}
.games-megamenu-dropdown .product-card-new:hover .product-img-box img{ transform:scale(1.04); }

/* Картинка и бейдж — как в game.css */
.games-megamenu-dropdown .product-badge-new{
  position:absolute; top:.6rem; right:.6rem; z-index:2;
  --badge-text:#fff; --badge-bg:var(--nt-primary); --badge-icon:none;
  padding:.35rem .6rem; font-size:.75rem; font-weight:700; text-transform:uppercase;
  display:inline-flex; align-items:center; gap:.4rem;
  color:var(--badge-text); background:var(--badge-bg); border-radius:6px;
}
.games-megamenu-dropdown .product-badge-new .badge-ico{
  width:16px; height:16px; flex:0 0 16px; display:inline-block;
  background: currentColor;
  -webkit-mask: var(--badge-icon) no-repeat center / contain;
          mask: var(--badge-icon) no-repeat center / contain;
}

/* Контент и прижатие цены вниз */
.games-megamenu-dropdown .product-content{
  display:flex; flex-direction:column; gap:.6rem;
  padding: .9rem .9rem 1rem; background:#121212; flex:1;
}
.games-megamenu-dropdown .product-title{ font-size:1.0rem; font-weight:800; color:#fff }
.games-megamenu-dropdown .product-desc{
  font-size:.92rem; color:#cfd6e6;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}

/* Блок цены — как на странице игры */
.games-megamenu-dropdown .product-price-bottom{
  margin-top:auto;
  align-self:flex-start;
  display:flex; flex-direction:column; gap:.28rem;
}
.games-megamenu-dropdown .price-save-badge{
  display:inline-block; align-self:flex-start;
  background:#51cf66; color:#0b1c0b;
  padding:.14rem .46rem; font-size:11px; font-weight:800; border-radius:6px;
}
.games-megamenu-dropdown .product-price-from-overlay{
  display:flex; align-items:baseline; gap:.42rem;
  color:#fff; font-weight:900; font-size:13.5px; letter-spacing:.2px;
  text-shadow: 0 2px 16px rgba(0,0,0,.65);
}
.games-megamenu-dropdown .product-price-from-overlay .from-label{ color:#b8b8c7; font-weight:600; margin-right:.08rem; }
.games-megamenu-dropdown .product-price-from-overlay .old-price{ color:#9aa0a6; text-decoration: line-through; font-weight:700; }
.games-megamenu-dropdown .product-price-from-overlay .current-price{ color:#ffffff; font-weight:800; }
.games-megamenu-dropdown .product-price-from-overlay.has-discount .current-price{ color:#51cf66; }



/* 7) Global scrollbars (включая FF) */
*{ scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) var(--scroll-track); }
*::-webkit-scrollbar{ width:10px; height:10px; }
*::-webkit-scrollbar-track{ background:var(--scroll-track); border-radius:12px; }
*::-webkit-scrollbar-thumb{ background:linear-gradient(180deg,#6f6f78,#4b4d57); border-radius:12px; border:2px solid var(--scroll-track); }
*::-webkit-scrollbar-thumb:hover{ background:linear-gradient(180deg,#8a8a94,#5b5e69); }

/* 8) Mobile header & modals (как было, кратко) */
.header-mobile{ display:none; }
.mobile-nav{ position:fixed; left:0; right:0; top:0; z-index:1100; width:100vw; 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; }

/* Баланс: уменьшаем шрифт */
.header-right .balance-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.header-right .balance-label {
  font-size: 11px;
  font-weight: 600;
  color: #666666;
  letter-spacing: .08em;
}
.header-right .balance-amount {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

/* Все элементы правой части шапки — одинаковая высота */
.header-right > * {
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  box-sizing: border-box;
}

/* Иконки — подгоняем под 32px, но по центру в 40px */
.header-right img.icon,
.header-right .balance-svg {
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin-right: 0;
}

/* Корзина: бейдж и сумма — выравнивание по центру */
.header-right .cart-btn .cart-badge {
  top: -4px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  font-size: 12px;
  /* ...existing code... */
}
.header-right .cart-btn .cart-total {
  font-size: 15px;
  font-weight: 600;
  min-width: unset;
  margin-left: 2px;
  align-self: center;
}

/* Кнопки и dropdown — высота 40px */
.header-right .dropdown-toggle,
.header-right .btn-secondary,
.header-right .btn-primary,
.header-right .cart-btn {
  height: 40px !important;
  min-height: 40px !important;
}

.balance-bg {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #374FEF 0%, #470599 63%);
  border-radius: 50%;
  position: relative;
}

.balance-bg .balance-svg {
  width: 17px !important;
  height: 17px !important;
  display: block;
  position: relative;
  z-index: 1;
}

/* МОБИЛЬНАЯ */
/* ---------- 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:10px 12px; 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; /* 56 head + 56 search */
  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; } }
.mm-cats-body .mm-cat h4{ margin:0 0 8px; font-size:18px; font-weight:800; }
.mm-cats-body .mm-sub{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 20px; }
@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); /* запас; точную высоту докинет JS по факту хедера */
  }
  #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);
  width:100vw; height:100vh;
}
.mobile-hub__sheet{
  width:100vw; max-width:100vw;
  min-height:100vh; max-height:100vh;
  overflow:auto;
  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:0 18px; margin-bottom: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) ============================================== */
.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 – Explore section ===================================== */
.mobile-hub .hub-section{ margin: 14px 0; }
.mobile-hub .hub-title{
  font-weight: 800; font-size: 12px; letter-spacing: .12em;
  color: #b7b7b7; margin: 0 0 10px 2px;
}
.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 ========================== */
.mobile-hub .hub-section{ margin:14px 0; }
.mobile-hub .hub-title{
  font-weight:800; font-size:12px; letter-spacing:.12em;
  color:#b7b7b7; margin:0 0 10px 2px;
}
.mobile-hub .hub-list--cards .hub-link{
  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--cards .hub-link:hover{ background:#262626; }
.mobile-hub .hub-ico-img{ width:18px; height:18px; object-fit:contain; }
.mobile-hub .menu-sep{ border:0; height:1px; background:#2e2e2e; margin:6px 8px; }
/* === 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;           /* было 32px местами — из-за этого корзина казалась огромной */
  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; padding-bottom:14px;
}
.mobile-hub .mobile-hub__footer{
  position:sticky; bottom:0; padding:12px 16px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, #0e0e0e 42%);
  backdrop-filter: blur(2px);
}

/* сама кнопка */
.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,
  .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;                /* опора для ::before/::after */
  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,
  .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,
  .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,
  .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,
  .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,
  .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;
  /* Firefox: прячем полосу */
  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; /* не создаём дополнительный box вокруг ссылки */
}