
/* v987 topbar popovers + cart icon repair */
html body.store-body .topbar.topbar-v849 > .lang-switch.custom-select,
html body.store-body .topbar.topbar-v849 > .notifications-shell-v283,
html body.store-body .topbar.topbar-v849 > .profile-menu-shell-v285{
  position:relative!important;
  overflow:visible!important;
  isolation:isolate!important;
}
html body.store-body .topbar.topbar-v849 > .lang-switch.custom-select:has(.topbar-popover-v9),
html body.store-body .topbar.topbar-v849 > .notifications-shell-v283:has(.topbar-popover-v9),
html body.store-body .topbar.topbar-v849 > .profile-menu-shell-v285:has(.topbar-popover-v9){
  z-index:130!important;
}
html body.store-body .topbar.topbar-v849 .topbar-popover-v9{
  position:absolute!important;
  top:calc(100% + 14px)!important;
  right:0!important;
  left:auto!important;
  bottom:auto!important;
  margin:0!important;
  z-index:500!important;
  box-sizing:border-box!important;
  border:1px solid rgba(184,205,232,.88)!important;
  border-radius:26px!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 28px 72px rgba(36,67,111,.20),inset 0 1px 0 rgba(255,255,255,.98)!important;
  backdrop-filter:blur(24px) saturate(155%)!important;
  -webkit-backdrop-filter:blur(24px) saturate(155%)!important;
  transform-origin:top right!important;
}
html body.store-body .topbar.topbar-v849 .notifications-panel-v283.topbar-popover-v9{
  top:calc(100% + 14px)!important;
  right:0!important;
  left:auto!important;
}
html body.store-body .topbar.topbar-v849 .lang-menu-v9{
  display:block!important;
  width:330px!important;
  min-width:330px!important;
  max-width:min(330px,calc(100vw - 24px))!important;
  padding:12px!important;
  overflow:hidden!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
html body.store-body .topbar-popover-head-v9{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  padding:8px 8px 14px!important;
  border-bottom:1px solid #e5edf6!important;
}
html body.store-body .topbar-popover-head-v9>div{
  display:flex!important;
  flex-direction:column!important;
  gap:3px!important;
  min-width:0!important;
}
html body.store-body .topbar-popover-head-v9 b{
  color:#101827!important;
  font-size:17px!important;
  line-height:1.15!important;
  font-weight:850!important;
  letter-spacing:-.035em!important;
}
html body.store-body .topbar-popover-head-v9 small{
  color:#8998ad!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:600!important;
}
html body.store-body .topbar-popover-head-v9>button,
html body.store-body .profile-menu-close-v9{
  all:unset!important;
  box-sizing:border-box!important;
  width:36px!important;
  min-width:36px!important;
  height:36px!important;
  border-radius:12px!important;
  display:grid!important;
  place-items:center!important;
  color:#8090a5!important;
  cursor:pointer!important;
  transition:background .18s ease,color .18s ease!important;
}
html body.store-body .topbar-popover-head-v9>button:hover,
html body.store-body .profile-menu-close-v9:hover{
  background:#eef5fd!important;
  color:#1677ff!important;
}
html body.store-body .topbar-popover-head-v9>button .i,
html body.store-body .profile-menu-close-v9 .i{
  width:18px!important;
  height:18px!important;
  font-size:18px!important;
}
html body.store-body .lang-menu-list-v9{
  display:grid!important;
  gap:6px!important;
  padding-top:10px!important;
}
html body.store-body .lang-menu-list-v9>button{
  all:unset!important;
  box-sizing:border-box!important;
  min-height:58px!important;
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr) 22px!important;
  align-items:center!important;
  gap:12px!important;
  padding:8px 12px!important;
  border-radius:17px!important;
  color:#243047!important;
  cursor:pointer!important;
  transition:background .18s ease,color .18s ease,box-shadow .18s ease!important;
}
html body.store-body .lang-menu-list-v9>button:hover{
  background:#f2f7fd!important;
}
html body.store-body .lang-menu-list-v9>button.selected{
  background:linear-gradient(180deg,#eef6ff,#e8f2ff)!important;
  color:#1677ff!important;
  box-shadow:inset 0 0 0 1px rgba(22,119,255,.12)!important;
}
html body.store-body .lang-menu-flag-v9{
  width:42px!important;
  height:42px!important;
  border-radius:999px!important;
  display:grid!important;
  place-items:center!important;
  background:#fff!important;
  box-shadow:0 0 0 1px #dbe6f3,0 8px 18px rgba(39,79,128,.08)!important;
  overflow:hidden!important;
}
html body.store-body .lang-menu-flag-v9 .lang-flag-img{
  width:42px!important;
  height:42px!important;
  max-width:42px!important;
  border-radius:999px!important;
  object-fit:cover!important;
  box-shadow:none!important;
}
html body.store-body .lang-menu-copy-v9{
  display:flex!important;
  align-items:baseline!important;
  gap:12px!important;
  min-width:0!important;
}
html body.store-body .lang-menu-copy-v9 .lang-code{
  min-width:28px!important;
  color:inherit!important;
  font-size:14px!important;
  line-height:1!important;
  font-weight:850!important;
  letter-spacing:.04em!important;
}
html body.store-body .lang-menu-copy-v9 .lang-name{
  color:#8a99ad!important;
  font-size:13px!important;
  line-height:1.2!important;
  font-weight:650!important;
}
html body.store-body .lang-menu-list-v9>button>.i{
  width:18px!important;
  height:18px!important;
  font-size:18px!important;
  color:#1677ff!important;
}
html body.store-body .topbar.topbar-v849 > .lang-switch.custom-select > .lang-top.active{
  transform:translateY(-1px)!important;
  border-color:rgba(50,137,255,.42)!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 16px 34px rgba(54,89,134,.11),inset 0 1px 0 rgba(255,255,255,.98)!important;
}

/* Redesigned profile menu */
html body.store-body .topbar.topbar-v849 .profile-menu-v9{
  display:block!important;
  width:402px!important;
  min-width:402px!important;
  max-width:min(402px,calc(100vw - 24px))!important;
  max-height:min(700px,calc(100vh - 110px))!important;
  padding:14px!important;
  overflow:auto!important;
}
html body.store-body .profile-menu-v9::-webkit-scrollbar{width:0!important;height:0!important}
html body.store-body .profile-menu-head-v9{
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr) 36px!important;
  align-items:center!important;
  gap:14px!important;
  margin:0!important;
  padding:8px 8px 16px!important;
  border-bottom:1px solid #e5edf6!important;
}
html body.store-body .profile-menu-v9 .profile-menu-avatar-v285{
  width:58px!important;
  min-width:58px!important;
  height:58px!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#f3f8fe,#e8f1fb)!important;
  border:1px solid #d9e6f4!important;
  box-shadow:inset 0 1px 0 #fff!important;
  overflow:hidden!important;
}
html body.store-body .profile-menu-v9 .profile-menu-avatar-v285 img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
html body.store-body .profile-menu-identity-v9{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  gap:3px!important;
}
html body.store-body .profile-menu-identity-v9 small{
  color:#1677ff!important;
  font-size:10px!important;
  line-height:1.2!important;
  font-weight:850!important;
  letter-spacing:.10em!important;
  text-transform:uppercase!important;
}
html body.store-body .profile-menu-identity-v9 b{
  color:#101827!important;
  font-size:18px!important;
  line-height:1.15!important;
  font-weight:850!important;
  letter-spacing:-.03em!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body.store-body .profile-menu-identity-v9 span{
  color:#7d8ca2!important;
  font-size:12px!important;
  line-height:1.3!important;
  font-weight:600!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body.store-body .profile-menu-list-v9{
  display:grid!important;
  gap:5px!important;
  padding:10px 0!important;
}
html body.store-body .profile-menu-list-v9>button{
  all:unset!important;
  box-sizing:border-box!important;
  min-height:62px!important;
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr) 20px!important;
  align-items:center!important;
  gap:12px!important;
  padding:8px 12px!important;
  border-radius:17px!important;
  cursor:pointer!important;
  transition:background .18s ease,box-shadow .18s ease,transform .18s ease!important;
}
html body.store-body .profile-menu-list-v9>button:hover{
  background:#f2f7fd!important;
  box-shadow:inset 0 0 0 1px rgba(22,119,255,.08)!important;
  transform:translateX(1px)!important;
}
html body.store-body .profile-menu-item-icon-v9{
  width:42px!important;
  height:42px!important;
  border-radius:14px!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(180deg,#f3f8fe,#eaf3fd)!important;
  border:1px solid #d9e7f6!important;
  color:#1677ff!important;
}
html body.store-body .profile-menu-item-icon-v9 .i,
html body.store-body .profile-menu-item-icon-v9 iconify-icon,
html body.store-body .profile-menu-item-icon-v9 svg{
  width:20px!important;
  height:20px!important;
  font-size:20px!important;
  color:currentColor!important;
}
html body.store-body .profile-menu-item-icon-v9.telegram{
  color:#229ed9!important;
}
html body.store-body .profile-menu-list-v9>button>span:nth-child(2){
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  gap:3px!important;
}
html body.store-body .profile-menu-list-v9>button>span:nth-child(2)>b{
  color:#172033!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:800!important;
  letter-spacing:-.015em!important;
}
html body.store-body .profile-menu-list-v9>button>span:nth-child(2)>small{
  color:#8998ac!important;
  font-size:11.5px!important;
  line-height:1.3!important;
  font-weight:600!important;
}
html body.store-body .profile-menu-list-v9>button>.i:last-child{
  width:17px!important;
  height:17px!important;
  font-size:17px!important;
  color:#9aa8b9!important;
}
html body.store-body .profile-menu-foot-v9{
  display:block!important;
  margin:0!important;
  padding:10px 4px 2px!important;
  border-top:1px solid #e5edf6!important;
}
html body.store-body .profile-menu-foot-v9>button{
  all:unset!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-height:48px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  border-radius:15px!important;
  background:#fff2f4!important;
  border:1px solid #ffd9df!important;
  color:#ef4767!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:800!important;
  cursor:pointer!important;
}
html body.store-body .profile-menu-foot-v9>button:hover{
  background:#ffe9ed!important;
}
html body.store-body .profile-menu-foot-v9 .i{
  width:18px!important;
  height:18px!important;
  font-size:18px!important;
}

/* Cart must own its badge; use a real shopping-cart glyph. */
html body.store-body .topbar.topbar-v849 > button.cart-top-v9{
  position:relative!important;
  overflow:visible!important;
  isolation:isolate!important;
  contain:layout style!important;
}
html body.store-body .topbar.topbar-v849 > button.cart-top-v9 > .i,
html body.store-body .topbar.topbar-v849 > button.cart-top-v9 > .i iconify-icon{
  display:grid!important;
  place-items:center!important;
  width:25px!important;
  height:25px!important;
  font-size:25px!important;
  color:#111827!important;
}
html body.store-body .topbar.topbar-v849 > button.cart-top-v9:hover > .i,
html body.store-body .topbar.topbar-v849 > button.cart-top-v9:hover > .i iconify-icon{
  color:#1677ff!important;
}
html body.store-body .topbar.topbar-v849 > button.cart-top-v9 > .cart-count-v9{
  position:absolute!important;
  inset:5px 5px auto auto!important;
  transform:none!important;
  margin:0!important;
  z-index:20!important;
  pointer-events:none!important;
}

/* Shared popup animation, matching notifications. */
html body.store-body .notif-pop-v283-enter-active,
html body.store-body .notif-pop-v283-leave-active{
  transition:opacity .18s ease,transform .20s cubic-bezier(.22,1,.36,1)!important;
}
html body.store-body .notif-pop-v283-enter-from,
html body.store-body .notif-pop-v283-leave-to{
  opacity:0!important;
  transform:translateY(-7px) scale(.975)!important;
}

@media(max-width:980px){
  html body.store-body .topbar.topbar-v849 .profile-menu-v9,
  html body.store-body .topbar.topbar-v849 .lang-menu-v9,
  html body.store-body .topbar.topbar-v849 .notifications-panel-v283.topbar-popover-v9{
    position:fixed!important;
    top:82px!important;
    right:12px!important;
    left:12px!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    max-height:calc(100vh - 96px)!important;
  }
}
@media(max-width:620px){
  html body.store-body .profile-menu-head-v9{grid-template-columns:50px minmax(0,1fr) 34px!important;gap:11px!important}
  html body.store-body .profile-menu-v9 .profile-menu-avatar-v285{width:50px!important;min-width:50px!important;height:50px!important;border-radius:16px!important}
  html body.store-body .profile-menu-list-v9>button{min-height:58px!important;padding:7px 9px!important}
  html body.store-body .profile-menu-item-icon-v9{width:40px!important;height:40px!important}
}
