:root {
  --ui-primary: #136eb7;
  --ui-primary-dark: #0b4f87;
  --ui-accent: #da251d;
  --ui-success: #42c322;
  --ui-text: #1f2933;
  --ui-muted: #667085;
  --ui-border: #d8dfe8;
  --ui-surface: #ffffff;
}

.header {
  background: var(--ui-surface);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.08);
  position: relative;
  z-index: 100;
}

.header .wrap_content_header {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.header .header-top {
  height: auto;
  min-height: 38px;
  line-height: normal;
  border-bottom: 1px solid #edf0f5;
}

.header .header-top .wrap_content_header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 18px;
  row-gap: 6px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.site-menu-toggle {
  display: none;
}

.header .nav_top {
  display: flex;
  align-items: stretch;
  grid-column: 1 / -1;
  float: none;
  justify-content: center;
  margin: 0;
  min-width: 0;
}

.header .nav_top li {
  display: block;
  padding: 0;
}

.header .nav_top > li > a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  color: #263f7a;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}

.header .nav_top > li:hover {
  background: var(--ui-primary);
}

.header .nav_top .dropdown-menu {
  top: 38px;
  margin: 0;
  min-width: 230px;
  padding: 8px 0;
  border: 1px solid var(--ui-border);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.14);
  background: #fff;
}

.header .nav_top > li:hover .dropdown-menu a {
  color: #344054 !important;
}

.header .nav_top .dropdown-menu li {
  display: block;
  width: 100%;
  border-bottom: 0;
  padding: 0;
}

.header .nav_top .dropdown-menu a {
  display: block;
  padding: 9px 14px;
  color: #344054 !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-transform: none;
  white-space: normal;
}

.header .nav_top .dropdown-menu a:hover {
  background: #f3f7fb;
  color: var(--ui-primary) !important;
}

.header .suport_top,
.header .money_top {
  float: none;
  margin: 0;
  line-height: 18px;
  white-space: nowrap;
}

.header .suport_top {
  color: var(--ui-muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.header .money_top {
  justify-self: end;
  color: var(--ui-accent);
  font-weight: 700;
}

.header .lang_top,
.header .clear {
  display: none;
}

.header_content .wrap_content_header {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 80px;
}

.header_content .logo_top,
.wrap_search_top,
.login_top,
.cart_top {
  float: none;
  margin: 0;
}

.header_content .logo_top {
  flex: 0 0 190px;
  width: auto;
  padding-top: 0;
}

.header_content .logo_top img {
  max-width: 100%;
  object-fit: contain;
}

.wrap_search_top {
  flex: 1 1 420px;
  width: auto;
  display: flex;
  align-items: center;
  min-width: 280px;
  height: 42px;
  border-color: var(--ui-border);
  border-radius: 6px;
  line-height: normal;
  overflow: hidden;
}

.wrap_search_top form {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

.wrap_search_top select {
  flex: 0 0 96px;
  height: 100%;
  margin: 0;
  padding: 0 10px;
  color: var(--ui-primary);
  background: #f8fafc;
}

.wrap_search_top input {
  flex: 1 1 auto;
  width: auto;
  height: 100%;
  min-width: 0;
  font-size: 14px;
}

.btn_search_top {
  flex: 0 0 46px;
  width: 46px;
  height: 100%;
  margin: 0;
  border-radius: 0;
  background-color: var(--ui-success);
}

.login_top {
  flex: 0 1 285px;
  width: auto;
  min-width: 210px;
  height: auto;
  min-height: 44px;
  padding-left: 46px;
  background-size: 34px;
  line-height: 18px;
}

.login_top .wallet {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  white-space: nowrap;
}

.wallet-rank,
.wallet-label,
.wallet-top-up {
  color: var(--ui-primary);
  font-weight: 700;
}

.wallet-balance {
  color: var(--ui-accent);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}

.login_top .mess_profile {
  display: block;
  margin-top: 3px;
  color: var(--ui-text);
  cursor: pointer;
}

.login_top .mess_profile > div {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.login_top .mess_profile span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart_top {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  line-height: normal;
  overflow: visible;
}

.cart_top a {
  display: flex;
  align-items: center;
  gap: 8px;
  float: none;
  color: var(--ui-text);
  font-weight: 700;
  white-space: nowrap;
}

.icon_cart {
  float: none;
  margin: 0;
}

@media (max-width: 1199px) {
  .header .header-top {
    padding-top: 0;
  }

  .site-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--ui-primary);
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid #edf0f5;
  }

  .site-menu-toggle i {
    font-size: 18px;
  }

  .header .header-top .wrap_content_header {
    display: block;
    padding-bottom: 10px;
  }

  .header .nav_top {
    display: none;
    width: 100%;
    padding: 6px 0;
  }

  .header .nav_top.is-open {
    display: block;
  }

  .header .nav_top > li {
    width: 100%;
    border-bottom: 1px solid #edf0f5;
  }

  .header .nav_top > li > a {
    min-height: 42px;
    padding: 0;
  }

  .header .nav_top .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    transform: none;
    visibility: visible;
    opacity: 1;
    box-shadow: none;
    border: 0;
    background: #f8fafc;
  }

  .header .nav_top li.dropdown:hover .dropdown-menu,
  .header .nav_top li.dropdown:focus-within .dropdown-menu {
    display: block;
  }

  .header .suport_top,
  .header .money_top {
    display: inline-block;
    margin-top: 6px;
    white-space: normal;
  }

  .header .money_top {
    margin-left: 14px;
  }

  .header_content .wrap_content_header {
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    min-height: 0;
  }

  .header_content .logo_top {
    flex: 1 1 180px;
    text-align: left !important;
  }

  .wrap_search_top {
    order: 3;
    flex-basis: 100%;
    min-width: 0;
  }

  .login_top {
    flex: 1 1 260px;
    min-width: 0;
    margin: 0;
  }

  .cart_top {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .header .wrap_content_header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-menu-toggle {
    padding-left: 14px;
    padding-right: 14px;
  }

  .header .suport_top,
  .header .money_top {
    display: block;
    margin-left: 0;
  }

  .header_content .logo_top {
    flex-basis: 100%;
    text-align: center !important;
  }

  .login_top {
    flex-basis: calc(100% - 92px);
    padding-left: 40px;
    background-size: 30px;
  }

  .login_top .wallet {
    flex-wrap: wrap;
    row-gap: 2px;
  }

  .cart_top a {
    font-size: 0;
    gap: 0;
  }

  .cart_top .icon_cart {
    margin-right: 0;
  }

  .wrap_search_top select {
    flex-basis: 84px;
    font-size: 13px;
  }

  .wrap_search_top input {
    font-size: 13px;
    padding-left: 8px;
    padding-right: 8px;
  }
}
