﻿#header {
  position: relative;
  z-index: 50;
}

.common-header {
  position: relative;
  z-index: 60;
  width: 100%;
  min-width: 1200px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.common-header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8px;
}

.header-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.logo {
  flex: 0 0 auto;
  margin-right: 32px;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 42px;
  width: auto;
}

.logo img + img {
  display: none;
}

.nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  height: 80px;
}

.nav-menu .nav-item {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: 80px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 500;
  color: #1f2937;
  cursor: pointer;
  white-space: nowrap;
}

.nav-menu .nav-item::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: #ff6a00;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-menu .nav-item:hover::after {
  transform: scaleX(1);
}

.nav-menu .nav-item a,
.nav-menu .nav-item span {
  display: inline-block;
  color: inherit;
  line-height: 1.2;
  white-space: nowrap;
}

.login-zone {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  min-width: 300px;
  white-space: nowrap;
}

.header-doc-link {
  margin-right: 20px;
  font-size: 14px;
  color: #4b5563;
  white-space: nowrap;
}

.login-zone .login,
.login-zone .no-login,
.login-zone .login-in {
  display: flex;
  align-items: center;
}

.login-zone .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 36px;
  padding: 0 18px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.common-header .login-zone a.button.console,
.common-header .login-zone a.button.console:hover,
.common-header .login-zone a.button.console:active,
.common-header .login-zone a.button.console:focus,
.common-header .login-zone a.button.console:visited,
.common-header .login-zone a.button.register-btn,
.common-header .login-zone a.button.register-btn:hover,
.common-header .login-zone a.button.register-btn:active,
.common-header .login-zone a.button.register-btn:focus,
.common-header .login-zone a.button.register-btn:visited {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  text-decoration: none !important;
  text-shadow: none;
  background: linear-gradient(90deg, #ff7c2b 0%, #ff5a1f 100%);
}

.login-zone .button:not(.console):not(.register-btn):not(.cart-button) {
  color: #ff6a00 !important;
  border: 1px solid rgba(255, 106, 0, 0.28);
  background: #fff6f1;
}

.login-zone .button:not(.console):not(.register-btn):not(.cart-button):hover {
  color: #ff6a00 !important;
  border-color: rgba(255, 106, 0, 0.42);
  background: #fff6f1;
}

.login-zone .cart-button {
  min-width: 76px;
  margin-right: 12px;
  color: #374151;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.vertical {
  width: 1px;
  height: 20px;
  margin: 0 16px;
  background: #e5e7eb;
}

.no-login {
  gap: 10px;
}

.header-account {
  position: relative;
}

.header-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ff6a00;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.func-info-boxzt {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 170px;
  padding: 8px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.12);
  display: none;
}

.header-account:hover .func-info-boxzt {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #374151;
}

.dropdown-item:hover,
.dropdown-item.text-danger:hover {
  color: #ff6a00 !important;
  background: #fff3eb;
}

.dropdown-item.text-danger {
  color: #dc2626;
}

.nav-cont {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  background: #f7f8fa;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  transition: height 0.25s ease;
}

.nav-cont .section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8px;
}

.nav-cont-menu {
  display: none;
}

.nav-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 34px 0 38px;
}

.nav-item-box {
  display: flex;
  align-items: center;
  min-height: 96px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.nav-item-box img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
}

.item-box-title {
  margin-left: 14px;
}

.item-box-title .title {
  color: #111827;
  font-size: 16px;
  font-weight: 600;
}

.item-box-title .desc {
  margin-top: 6px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.header-bottomwap {
  display: none;
}

.header-top {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.header-top .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  min-height: 64px;
}

.header-top .logo img {
  height: 34px;
}

.header-top-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.PersonalInformation_Fill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 17px;
  color: #ffffff;
  background: linear-gradient(90deg, #ff7c2b 0%, #ff5a1f 100%);
  font-size: 13px;
}

.mobile-menu-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.mobile-menu-btn i {
  display: block;
  width: 24px;
  height: 2px;
  margin-left: auto;
  background: #111827;
}

.header-bottom {
  position: fixed;
  inset: 64px 0 0;
  display: none;
  background: rgba(12, 18, 32, 0.48);
  z-index: 80;
}

.header-bottom.is-open {
  display: flex;
}

.nav-side {
  width: 120px;
  background: #0f172a;
  color: #e5e7eb;
}

.nav-side ul {
  margin: 0;
  padding: 14px 0;
  list-style: none;
}

.nav-side li {
  padding: 0 12px;
}

.nav-side li.active .nav-side-menu-item {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-side-menu-item {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 14px;
}

.nav-main {
  flex: 1;
  background: #ffffff;
  overflow-y: auto;
  padding: 18px 18px 28px;
}

.nav-main-item {
  display: none;
}

.nav-main-item.is-active {
  display: block;
}

.nav-main-title {
  margin-bottom: 14px;
}

.nav-main-title a,
.nav-main-title span {
  color: #111827;
  font-size: 18px;
  font-weight: 600;
}

.nav-main-bd ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub-menu {
  margin-bottom: 10px;
}

.sub-menu-title {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #374151;
  background: #f8fafc;
  font-size: 14px;
}

@media screen and (max-width: 991px) {
  .common-header {
    display: none;
  }

  .header-bottomwap {
    display: block;
  }

  .aside-tools {
    display: none;
  }
}

