/* Split from headernew.css: core header styles */

/* 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;
  --page-gutter: max(16px, calc((100vw - var(--content-max)) / 2));
  --nt-border: rgba(255,255,255,.08);
  --scroll-track: #20222c;
  --scroll-thumb: #585a66;
  --scroll-thumb-hover: #6b6e7a;
}

/* 2) Header shell */

.header-desktop{
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  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) */

/* аккуратная анимация при фокусе + «Enter» */

@keyframes hint-pop {
  0% { transform: translateY(6px) scale(.96); opacity: 0; }
  100%{ transform: translateY(0)  scale(1);   opacity: 1; }
}

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

.header-center .search-form .search-btn{
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: #eaeaea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
}

.header-center .search-form .search-btn:hover{
  filter: brightness(1.06);
}

.header-center .search-form .search-btn:active{
  transform: translateY(-50%) scale(.98);
}

@media (max-width: 520px){
  .header-center .search-form{
    padding: 0 44px 0 38px;
  }

  .header-center .search-form .search-btn{
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }
}

.header-center .search-form input{
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: #e9e9e9;
  font-size: 14px;
  line-height: 40px;
  padding: 0;
}

.header-center .search-form input::placeholder{
  color: #9a9a9a;
}

@media (max-width: 900px){
  .header-center .search-form{
    width: 100%;
    max-width: 100%;
  }
}

/* 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;
  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;
  padding: 0 5px;
  border-radius: 10px;
  background: linear-gradient(135deg,#ff0000,#ff0000);
  color: #fff;
  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{
  letter-spacing: .1px;
}

/* hover — золотая подсветка текста/иконки */

.header-right .cart-btn:hover{
  color: var(--brand) !important;
}

.header-right img.icon{
  width: 32px;
  height: 32px;
  display: inline-block;
  object-fit: contain;
}

/* 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% + 14px);
  left: 0;
  min-width: 210px;
  background: rgba(14,14,20,.97);
  color: #fff;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03) inset;
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  display: none;
  z-index: 1300;
  font-size: 14px;
}

/* стрелочка-хвостик */
.dropdown-menu::before{
  content: "";
  position: absolute;
  top: -7px;
  left: 18px;
  width: 12px;
  height: 12px;
  background: rgba(14,14,20,.97);
  border-left: 1px solid rgba(255,255,255,.09);
  border-top: 1px solid rgba(255,255,255,.09);
  transform: rotate(45deg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* пункты меню */
.dropdown-menu .menu-item, .dropdown-menu a{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  background: none;
  border: 0;
  color: #d4d4d8;
  text-decoration: none;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
  transition: background .12s, color .12s;
}

.dropdown-menu .menu-item:hover, .dropdown-menu a:hover{
  background: rgba(255,255,255,.07);
  color: #fff;
}

.dropdown-menu .menu-item.is-active{
  background: rgba(255,255,255,.10);
  color: #fff;
}

/* иконки в пунктах меню */
.dropdown-menu .menu-icon,
.dropdown-menu a img,
.dropdown-menu .menu-item img{
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: .75;
}

/* правые выпадашки */
.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;
}

/* ── карточка профиля (только внутри дропдауна) ── */
.dropdown-menu .profile-card{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 8px;
}

.dropdown-menu .profile-avatar{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: hsl(calc(var(--avatar-hue, 260) * 1deg), 60%, 42%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -.01em;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.dropdown-menu .profile-card-info{
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.dropdown-menu .profile-card-name{
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.dropdown-menu .profile-card-status{
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #666;
  line-height: 1;
}

.status-dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 5px rgba(34,197,94,.7);
  flex-shrink: 0;
}

/* ── rank badge in profile dropdown ── */
.rank-dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rank-dot--bronze{ background:#cd853f; box-shadow:0 0 5px rgba(205,133,63,.55); }
.rank-dot--silver{ background:#9ba3b5; box-shadow:0 0 5px rgba(155,163,181,.55); }
.rank-dot--gold{   background:#d4a017; box-shadow:0 0 5px rgba(212,160,23,.65); }
.rank-dot--vip{    background:#a855f7; box-shadow:0 0 5px rgba(168,85,247,.65); }

.rank-name{ font-size:11.5px; font-weight:600; }
.rank-name--bronze{ color:#c8803c; }
.rank-name--silver{ color:#9ba3b5; }
.rank-name--gold{   color:#c49a10; }
.rank-name--vip{    color:#a855f7; }

/* 4.3) Currency dropdown — компактный собственный */

.currency-dropdown .dropdown-menu::before{
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) rotate(45deg) !important;
}

.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: 20px;
  height: 20px;
  opacity: .9;
  transition: transform .18s ease;
}

.currency-dropdown.open .currency-toggle .caret{
  transform: rotate(180deg);
}

.currency-dropdown .dropdown-menu{
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  min-width: unset;
  padding: 6px 8px;
  background: rgba(18,18,24,.96);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
  text-align: left;

}

.currency-dropdown .currency-toggle .cur-symbol{
  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;
  margin-top: 3px;
  margin-bottom: 3px;
  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 — кнопка-триггер */

/* Global scrollbars */

/* 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);
}

/* Legacy mobile-nav block kept for parity? omitted intentionally */

/* Баланс: уменьшаем шрифт */

.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{
  min-width: 18px;
  height: 18px;
  font-size: 12px;
}

.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;
}


/* Search suggestions + currency modal + shell */

/* ===== Search suggestions (автокомплит под поиском) ===== */

.search-form{
  position: relative;
}

.search-form .search-suggest{
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 6px;
  background: rgba(18,18,24,.96);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 34px rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  padding: 6px;
  z-index: 1400;
  display: none;
}

.search-form .search-suggest-list{
  max-height: 420px;
  overflow-y: auto;
}

.search-suggest-group{
  padding: 6px 8px;
  margin: 4px 6px 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fa3b4;
  border-top: 1px solid rgba(255,255,255,.06);
}

.search-suggest-group:first-child{
  border-top: none;
  margin-top: 0;
}

.search-suggest-item{
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: #f5f5f5;
}

.search-suggest-item:hover,
.search-suggest-item.is-active{
  background: rgba(255,255,255,.08);
}

/* левая картинка */

.search-suggest-thumb{
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06);
}

.search-suggest-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* центр – текст */

.search-suggest-body{
  flex: 1 1 auto;
  min-width: 0;
}

.search-suggest-main{
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggest-sub{
  margin-top: 2px;
  font-size: 11px;
  color: #9fa3b4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* правая колонка – цена */

.search-suggest-right{
  flex: 0 0 auto;
  text-align: right;
  margin-left: 4px;
}

.search-suggest-price-old{
  display: inline-block;
  margin-right: 6px;
  font-size: 11px;
  color: #8c8f99;
  text-decoration: line-through;
}

.search-suggest-price-current{
  font-size: 13px;
  font-weight: 600;
  color: #3fd774;
}

.search-suggest-price-label{
  margin-right: 4px;
  font-size: 11px;
  color: #9fa3b4;
}

/* чуть ужмём на мобилках, чтобы не вылезало за экран */

@media (max-width: 768px){
  .mm-main-search .search-form .search-suggest,
  .mm-cats-search .search-form .search-suggest{
    margin-top: 4px;
    border-radius: 10px;
  }

  .mm-main-search .search-form .search-suggest::before,
  .mm-cats-search .search-form .search-suggest::before{
    display: none;
  }  
}

.currency-modal.cart-modal-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.60);
  z-index: 1300;
}

.currency-modal.cart-modal-overlay .cart-modal{
  height: auto;
  max-height: min(90vh, 720px);
  margin: 0;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0,0,0,.6);
}

.payment-currency-pill{
  padding: 4px 10px;
  border-radius: 12px;
  background: #1b1b24;
  border: 1px solid #393c5c;
  font-size: 13px;
}

/* Glass header + accent line */

.site-header{
  background: rgba(0,0,0,.72);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  color: var(--brand);
}

@supports not ((backdrop-filter: blur(1px))){
  .site-header{
    background: #0b0b0b;
  }
}

/* нижняя “подсветка” */

.site-header::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(114,15,254,0) 0%,
    rgba(37,99,235,.55) 35%,
    rgba(114,15,254,.65) 70%,
    rgba(255,225,115,0) 100%
  );
}

/* Чуть плотнее при скролле */

.site-header.is-scrolled{
  background: rgba(0,0,0,.86);
  box-shadow: 0 10px 34px rgba(0,0,0,.55);
}

/* Action chips справа (кликабельнее и симпатичнее) */

#authArea > a,
#authArea > button,
#authArea > .dropdown > .dropdown-toggle{
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 10px !important;
  border-radius: 12px;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  transition: background .15s ease, border-color .15s ease;
}

#authArea > a:hover,
#authArea > button:hover,
#authArea > .dropdown > .dropdown-toggle:hover{
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.08) !important;
}

#authArea > a:focus-visible,
#authArea > button:focus-visible,
#authArea > .dropdown > .dropdown-toggle:focus-visible{
  outline: 2px solid rgba(114,15,254,.55);
  outline-offset: 2px;
}

/* Баланс-чип — чуть шире */

#authArea .balance-toggle{
  padding: 0 12px !important;
}

/* Валютный символ немного меньше (сейчас крупноват) */

.currency-dropdown .currency-toggle .cur-symbol{
  font-size: 22px;
}

/* Поиск — тонкая обводка и мягкий фокус */

.header-center .search-form:focus-within{
  border-color: rgba(114,15,254,.35);
  box-shadow: 0 0 0 3px rgba(114,15,254,.20);
}

.header-desktop,
.header-compact{
  position: relative;
  z-index: 2;
}

.header-center{
  min-width: 0;
}

.header-center .search-form{
  flex: 1 1 520px;
  width: auto;
  max-width: 600px;
  min-width: 150px;
  margin: 0 16px;
  position: relative;
  height: 40px;
  border-radius: 12px;
  padding: 0 52px 0 16px;
  overflow: visible;
  box-shadow: none;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 1150px){
  .header-left, .header-center, .header-right{
    gap: .65rem;
  }

  .header-center .search-form{
    margin: 0 12px;
    padding: 0 48px 0 14px;
  }
}

@media (max-width: 1050px){
  #authArea .balance-label{
    display: none;
  }
}


/* =========================================================
   Smart search suggestions — NextTier style
   ========================================================= */
.header-center .search-form .search-suggest.search-suggest--smart{
  left: 50%;
  right: auto;
  width: min(920px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
  margin-top: 10px;
  padding: 10px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 0%, rgba(114,15,254,.22), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(37,99,235,.18), transparent 28%),
    rgba(11,12,20,.96);
  border: 1px solid rgba(255,255,255,.11);
  box-shadow: 0 24px 70px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.04);
}

.search-suggest-smart-list{
  display: grid;
  grid-template-columns: minmax(180px,.85fr) minmax(220px,1fr) minmax(280px,1.25fr);
  gap: 10px;
  max-height: min(560px, calc(100vh - 116px));
  overflow-y: auto;
  padding: 0;
  scrollbar-gutter: stable;
}

.search-suggest-section{
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.065);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.search-suggest-section--offers{
  grid-column: span 1;
}

.search-suggest-section-title.search-suggest-group{
  margin: 0 0 8px;
  padding: 0 2px 8px;
  border-top: 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #b8c1dc;
}

.search-suggest-items{
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.search-suggest--smart .search-suggest-item{
  position: relative;
  min-height: 58px;
  padding: 9px 10px;
  gap: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.028);
  border: 1px solid rgba(255,255,255,.055);
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}

.search-suggest--smart .search-suggest-item:hover,
.search-suggest--smart .search-suggest-item.is-active{
  background: linear-gradient(135deg, rgba(114,15,254,.18), rgba(37,99,235,.12));
  border-color: rgba(151,92,255,.36);
}

.search-suggest--smart .search-suggest-item:active{
  transform: translateY(1px);
}

.search-suggest--smart .search-suggest-thumb{
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(114,15,254,.26), rgba(37,99,235,.18));
  border-color: rgba(255,255,255,.09);
}

.search-suggest--smart .search-suggest-thumb.is-empty{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #eaf0ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}

.search-suggest--smart .search-suggest-thumb.is-empty::before{
  content: attr(data-fallback);
}

.search-suggest-topline{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.search-suggest--smart .search-suggest-main{
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
  color: #f6f8ff;
}

.search-suggest-type{
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.07);
  color: #aeb8d4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.search-suggest--smart .search-suggest-sub{
  margin-top: 4px;
  color: #9fa9c6;
  font-size: 12px;
}

.search-suggest--smart .search-suggest-right{
  align-self: center;
  min-width: 82px;
}

.search-suggest--smart .search-suggest-price-current{
  color: #64f19a;
  font-weight: 900;
}

.search-suggest--smart .search-suggest-item--keyword .search-suggest-thumb{
  flex-basis: 34px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.search-suggest--smart .search-suggest-item--keyword{
  min-height: 48px;
}

.search-suggest--smart .search-suggest-item--game .search-suggest-thumb,
.search-suggest--smart .search-suggest-item--category .search-suggest-thumb,
.search-suggest--smart .search-suggest-item--subcategory .search-suggest-thumb{
  background: linear-gradient(135deg, rgba(255,225,115,.16), rgba(114,15,254,.18));
}

@media (max-width: 1180px){
  .header-center .search-form .search-suggest.search-suggest--smart{
    width: min(760px, calc(100vw - 28px));
  }
  .search-suggest-smart-list{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px){
  .header-center .search-form .search-suggest.search-suggest--smart{
    width: 100%;
    left: 0;
    transform: none;
  }
  .search-suggest-smart-list{
    display: block;
  }
  .search-suggest-section{
    margin-bottom: 10px;
  }
}


/* =========================================================
   Sales-focused smart search compact overrides
   ========================================================= */
.header-center .search-form .search-suggest.search-suggest--smart.search-suggest--sales{
  width: min(780px, calc(100vw - 32px));
  margin-top: 8px;
  padding: 8px;
  border-radius: 16px;
}

.search-suggest--sales .search-suggest-smart-list{
  display: grid;
  grid-template-columns: 210px 220px minmax(260px,1fr);
  gap: 8px;
  max-height: min(410px, calc(100vh - 112px));
  overflow-y: auto;
}

.search-suggest--sales .search-suggest-section{
  padding: 8px;
  border-radius: 14px;
}

.search-suggest--sales .search-suggest-section--keywords,
.search-suggest--sales .search-suggest-section--recent{
  grid-column: 1;
}

.search-suggest--sales .search-suggest-section--games,
.search-suggest--sales .search-suggest-section--categories,
.search-suggest--sales .search-suggest-section--subcategories{
  grid-column: 2;
}

.search-suggest--sales .search-suggest-section--offers{
  grid-column: 3;
  grid-row: 1 / span 4;
}

.search-suggest--sales .search-suggest-section-title.search-suggest-group{
  margin: 0 0 7px;
  padding: 0 2px 7px;
  font-size: 10px;
  letter-spacing: .1em;
}

.search-suggest--sales .search-suggest-items{
  gap: 6px;
}

.search-suggest--sales .search-suggest-item{
  min-height: 46px;
  padding: 7px 8px;
  gap: 8px;
  border-radius: 12px;
}

.search-suggest--sales .search-suggest-thumb{
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.search-suggest--sales .search-suggest-main{
  font-size: 12px;
}

.search-suggest--sales .search-suggest-sub{
  margin-top: 2px;
  font-size: 11px;
}

.search-suggest--sales .search-suggest-type{
  display: none;
}

.search-suggest--sales .search-suggest-section--keywords .search-suggest-items,
.search-suggest--sales .search-suggest-section--recent .search-suggest-items{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
}

.search-suggest--sales .search-suggest-item--keyword,
.search-suggest--sales .search-suggest-item--recent{
  width: auto;
  min-height: 0;
  padding: 6px 9px;
  border-radius: 10px;
  display: inline-flex;
}

.search-suggest--sales .search-suggest-item--keyword .search-suggest-thumb,
.search-suggest--sales .search-suggest-item--recent .search-suggest-thumb,
.search-suggest--sales .search-suggest-item--keyword .search-suggest-sub,
.search-suggest--sales .search-suggest-item--recent .search-suggest-sub{
  display: none;
}

.search-suggest--sales .search-suggest-item--keyword .search-suggest-main,
.search-suggest--sales .search-suggest-item--recent .search-suggest-main{
  font-size: 12px;
  font-weight: 700;
}

.search-suggest--sales .search-suggest-section--offers .search-suggest-item{
  min-height: 58px;
}

.search-suggest--sales .search-suggest-section--offers .search-suggest-thumb{
  flex-basis: 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.search-suggest--sales .search-suggest-right{
  min-width: 70px;
}

.search-suggest--sales .search-suggest-price-label{
  display: block;
  margin: 0 0 1px;
  font-size: 10px;
}

.search-suggest--sales .search-suggest-price-current{
  font-size: 12px;
}

@media (max-width: 1180px){
  .header-center .search-form .search-suggest.search-suggest--smart.search-suggest--sales{
    width: min(720px, calc(100vw - 28px));
  }

  .search-suggest--sales .search-suggest-smart-list{
    grid-template-columns: minmax(190px,.85fr) minmax(250px,1.15fr);
  }

  .search-suggest--sales .search-suggest-section--keywords,
  .search-suggest--sales .search-suggest-section--recent{
    grid-column: 1;
  }

  .search-suggest--sales .search-suggest-section--games,
  .search-suggest--sales .search-suggest-section--categories,
  .search-suggest--sales .search-suggest-section--subcategories,
  .search-suggest--sales .search-suggest-section--offers{
    grid-column: 2;
    grid-row: auto;
  }
}

@media (max-width: 900px){
  .header-center .search-form .search-suggest.search-suggest--smart.search-suggest--sales{
    width: 100%;
    left: 0;
    transform: none;
  }

  .search-suggest--sales .search-suggest-smart-list{
    display: block;
  }
}


/* =========================================================
   Smart search hotfix 4 — sales-only 3-column panel + skeleton
   ========================================================= */
.header-center .search-form .search-suggest.search-suggest--smart.search-suggest--sales{
  width: min(790px, calc(100vw - 32px));
  padding: 8px;
  border-radius: 16px;
}

.search-suggest--sales .search-suggest-smart-list{
  display: grid;
  grid-template-columns: 210px 210px minmax(280px, 1fr);
  gap: 8px;
  max-height: min(365px, calc(100vh - 112px));
  overflow-y: auto;
}

.search-suggest--sales .search-suggest-section--keywords{
  grid-column: 1;
}

.search-suggest--sales .search-suggest-section--recent{
  grid-column: 1;
}

.search-suggest--sales .search-suggest-section--games{
  grid-column: 2;
}

.search-suggest--sales .search-suggest-section--offers{
  grid-column: 3;
  grid-row: 1 / span 3;
}

.search-suggest--sales.is-results .search-suggest-section--keywords .search-suggest-items,
.search-suggest--sales.is-loading .search-suggest-section--keywords .search-suggest-items,
.search-suggest--sales.is-empty .search-suggest-section--keywords .search-suggest-items{
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
}

.search-suggest--sales.is-results .search-suggest-item--keyword,
.search-suggest--sales.is-loading .search-suggest-item--keyword,
.search-suggest--sales.is-empty .search-suggest-item--keyword{
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 11px;
}

.search-suggest--sales.is-results .search-suggest-item--keyword .search-suggest-thumb{
  display: none;
}

.search-suggest--sales.is-results .search-suggest-item--keyword .search-suggest-main{
  font-size: 12.5px;
  font-weight: 800;
}

.search-suggest--sales.is-results .search-suggest-item--keyword .search-suggest-sub{
  display: none;
}

.search-suggest--sales.is-default .search-suggest-section--keywords .search-suggest-items,
.search-suggest--sales.is-default .search-suggest-section--recent .search-suggest-items{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
}

.search-suggest--sales.is-default .search-suggest-item--keyword,
.search-suggest--sales.is-default .search-suggest-item--recent{
  width: auto;
  min-height: 0;
  padding: 6px 9px;
}

.search-suggest--sales .search-suggest-section-title.search-suggest-group{
  color: #dfe6ff;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: none;
}

.search-suggest--sales .search-suggest-item{
  min-height: 44px;
  padding: 7px 8px;
}

.search-suggest--sales .search-suggest-section--offers .search-suggest-item{
  min-height: 62px;
}

.search-suggest-skeleton{
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 7px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.028);
  border: 1px solid rgba(255,255,255,.055);
  overflow: hidden;
}

.search-suggest-skeleton--keywords .sk-thumb{
  display: none;
}

.search-suggest-skeleton .sk{
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.075);
}

.search-suggest-skeleton .sk::after{
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  animation: nt-search-skeleton 1.05s infinite;
}

.search-suggest-skeleton .sk-thumb{
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.search-suggest-skeleton .sk-lines{
  flex: 1 1 auto;
  height: 30px;
  background: transparent;
}

.search-suggest-skeleton .sk-lines i{
  display: block;
  height: 9px;
  margin: 4px 0;
  border-radius: 999px;
  background: rgba(255,255,255,.075);
}

.search-suggest-skeleton .sk-lines i:first-child{
  width: 78%;
}

.search-suggest-skeleton .sk-lines i:last-child{
  width: 52%;
  opacity: .75;
}

.search-suggest-empty-section{
  grid-column: 1 / -1 !important;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-suggest-empty-title{
  color: #f5f7ff;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 6px;
}

.search-suggest-empty-text{
  color: #9fa9c6;
  font-size: 12px;
}

@keyframes nt-search-skeleton{
  100%{ transform: translateX(100%); }
}

@media (max-width: 1180px){
  .header-center .search-form .search-suggest.search-suggest--smart.search-suggest--sales{
    width: min(720px, calc(100vw - 28px));
  }

  .search-suggest--sales .search-suggest-smart-list{
    grid-template-columns: minmax(190px, .8fr) minmax(260px, 1.2fr);
  }

  .search-suggest--sales .search-suggest-section--keywords,
  .search-suggest--sales .search-suggest-section--recent,
  .search-suggest--sales .search-suggest-section--games,
  .search-suggest--sales .search-suggest-section--offers{
    grid-column: auto;
    grid-row: auto;
  }

  .search-suggest--sales .search-suggest-section--offers{
    grid-column: 2;
  }
}

@media (max-width: 900px){
  .header-center .search-form .search-suggest.search-suggest--smart.search-suggest--sales{
    width: 100%;
    left: 0;
    transform: none;
  }

  .search-suggest--sales .search-suggest-smart-list{
    display: block;
    max-height: min(420px, calc(100vh - 112px));
  }
}

/* =========================================================
   Clear (×) button inside search form
   ========================================================= */

/* Desktop search form — widen right padding to fit clear btn + search btn */
.header-center .search-form{
  padding-right: 68px;
}
@media (max-width: 1150px){
  .header-center .search-form{ padding-right: 64px; }
}

.header-center .search-form .search-clear-btn{
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .14s, color .14s;
  flex-shrink: 0;
}
.header-center .search-form .search-clear-btn:hover{
  background: rgba(255,255,255,.20);
  color: #fff;
}

/* Mobile search form clear button */
.mobile-top-search{
  padding-right: 72px;
}
.mobile-top-search .search-clear-btn{
  position: absolute;
  right: 46px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .14s, color .14s;
}
.mobile-top-search .search-clear-btn:hover{
  background: rgba(255,255,255,.20);
  color: #fff;
}

/* =========================================================
   Default-state panel: 2 columns (no offers column)
   ========================================================= */
.search-suggest--sales.is-default .search-suggest-smart-list{
  grid-template-columns: 200px 1fr;
}
.search-suggest--sales.is-default .search-suggest-section--keywords,
.search-suggest--sales.is-default .search-suggest-section--recent{
  grid-column: 1;
}
.search-suggest--sales.is-default .search-suggest-section--games{
  grid-column: 2;
  grid-row: 1 / span 4;
}

/* In default state, show keywords as chips (pill buttons) */
.search-suggest--sales.is-default .search-suggest-item--keyword .search-suggest-thumb,
.search-suggest--sales.is-default .search-suggest-item--recent .search-suggest-thumb,
.search-suggest--sales.is-default .search-suggest-item--keyword .search-suggest-sub,
.search-suggest--sales.is-default .search-suggest-item--recent .search-suggest-sub{
  display: none;
}
.search-suggest--sales.is-default .search-suggest-item--keyword .search-suggest-main,
.search-suggest--sales.is-default .search-suggest-item--recent .search-suggest-main{
  font-size: 12px;
  font-weight: 700;
}

/* Responsive default panel */
@media (max-width: 1180px){
  .search-suggest--sales.is-default .search-suggest-smart-list{
    grid-template-columns: 190px 1fr;
  }
}
@media (max-width: 900px){
  .search-suggest--sales.is-default .search-suggest-smart-list{
    display: block;
  }
}

/* ===== NT Coins header block ===== */
.ntcb-block{
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.ntcb-coin-img{
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.ntcb-val{
  font-size: 13px;
  font-weight: 700;
  color: #ffe173;
  font-variant-numeric: tabular-nums;
}

.ntcb-sep{
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,.14);
  flex-shrink: 0;
  margin: 0 2px;
}

.ntc-icon{
  display: block;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

.ntc-coin-img{
  display: block;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

.ntc-val{
  font-variant-numeric: tabular-nums;
}

/* Mobile hub: NT Coins strip */
.hub-balance-strip--coins{
  background: rgba(255, 184, 0, .10);
  border: 1px solid rgba(255, 184, 0, .22);
}

.hub-balance-strip--coins .hub-balance-strip__label{
  color: rgba(255, 227, 115, .65);
}

.hub-balance-strip--coins .hub-balance-strip__value{
  color: #ffe173;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hub-balance-strip--coins .hub-balance-strip__value img{
  display: block;
  flex-shrink: 0;
}

/* ── Profile promo codes section ── */
.ppr-head{
  font-size:11px; font-weight:700; text-transform:uppercase;
  letter-spacing:.06em; color:#666;
  padding:6px 12px 4px;
}
.ppr-list{
  max-height:156px;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.12) transparent;
}
.ppr-row{
  display:flex; align-items:center; gap:6px;
  padding:5px 12px; border-radius:9px;
}
.ppr-row:hover{ background:rgba(255,255,255,.05); }
.ppr-row--dim{ opacity:.4; }
.ppr-code{
  flex:1; min-width:0;
  font-family:ui-monospace,monospace;
  font-size:12px; font-weight:700; color:#dde;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.ppr-disc{
  font-size:11px; color:#777; white-space:nowrap; flex-shrink:0;
}
.ppr-copy{
  flex-shrink:0;
  min-width:58px; text-align:center;
  padding:2px 8px; border-radius:6px;
  border:1px solid rgba(114,15,254,.45);
  background:rgba(114,15,254,.1);
  color:var(--brand,#720ffe);
  font-size:11px; font-weight:600; cursor:pointer;
  transition:background .15s;
  white-space:nowrap;
}
.ppr-copy:hover{ background:rgba(114,15,254,.22); }
.ppr-tag{
  flex-shrink:0; font-size:11px; color:#555;
}
@keyframes ppr-shimmer{
  0%{background-position:200% 0}
  100%{background-position:-200% 0}
}
.ppr-skel{
  display:inline-block; border-radius:4px;
  background:linear-gradient(90deg,rgba(255,255,255,.06) 25%,rgba(255,255,255,.13) 50%,rgba(255,255,255,.06) 75%);
  background-size:200% 100%;
  animation:ppr-shimmer 1.4s infinite linear;
}
.ppr-skel--code{ width:86px; height:12px; }
.ppr-skel--disc{ width:38px; height:12px; flex-shrink:0; }
.ppr-skel--btn{  width:44px; height:22px; border-radius:6px; flex-shrink:0; }
