/* === HEADER (EXACT ORIGINAL) === */
.mid-header {
  background: var(--header-background);
  color: var(--header-color);
  padding: 30px 0;
}
.mid-header .logo-wrapper {
  max-width: 275px;
  display: block;
}
.mid-header .logo-wrapper img {
  max-height: 100%;
  width: auto;
}

/* Toggle nav (mobile hamburger) */
.toggle-nav {
  width: 24px;
  flex-direction: column;
  height: 21px;
  justify-content: space-between;
  border-radius: 3px;
}
.toggle-nav .bar {
  height: 3px;
  background: var(--text-white);
  width: 24px;
  border-radius: 3px;
}

/* Icon bar (category menu) */
.icon-bar {
  width: 24px;
  flex-direction: column;
  height: 20px;
  justify-content: space-between;
  border-radius: 3px;
}
.icon-bar .bar {
  height: 3px;
  background: var(--text-white);
  width: 24px;
  border-radius: 1px;
}
.icon-bar .bar:nth-child(2) {
  width: 20px;
}

/* === SEARCH === */
#search-header .search-form {
  position: relative;
  display: flex;
}
#search-header .custom-input-group {
  z-index: 1000;
}
#search-header .custom-input-group .input-group-field {
  background: var(--border-color);
  padding-right: 82px;
  width: 100%;
  height: 45px;
  font-size: 14px;
  padding: 0 50px 0 20px;
  color: var(--form-text-color);
  outline: none;
  border: 1px solid var(--form-border-color);
  overflow: hidden;
  background: var(--white-bg);
  border-radius: 3px !important;
}
.custom-input-group .input-group-btn {
  position: absolute;
  right: 0px;
  z-index: 4;
  height: 100%;
  border-radius: 0 4px 4px 0 !important;
  border: none;
  line-height: 1;
  color: var(--text-white) !important;
}
.custom-input-group .input-group-btn button {
  border: none;
  line-height: 1;
  color: var(--text-white) !important;
  background: var(--subheader-color);
  border-radius: 0 3px 3px 0;
  height: 100%;
  padding: 0 15px;
  cursor: pointer;
}
#search-header .search-dropdow .search__list {
  display: block !important;
  white-space: nowrap;
  overflow: auto;
}
#search-header .search-dropdow .search__list > li {
  display: inline-block;
}
.search__list a {
  font-size: 12px;
  color: var(--text-white);
}
.search__list a:hover {
  text-decoration: underline;
}
.search-overlay {
  position: fixed;
  z-index: -1;
  background: var(--overlay-light);
  width: 100%;
  height: 100vh;
  top: 0 !important;
  left: 0;
  opacity: 0;
  visibility: hidden;
}
.search-overlay.active {
  opacity: 1;
  z-index: 999;
  visibility: visible;
}

/* === HEADER RIGHT === */
.header-right {
  font-size: 14px;
  justify-content: flex-end;
}
.header-right a {
  color: var(--header-color);
}
.header-right a:hover {
  color: var(--secondary-color);
}

.header-right-support {
  display: flex;
  justify-content: flex-start;
  padding-right: 34px;
  border-right: 1px solid var(--header-support-border);
}
.header-right-support-info-icon {
  background-color: var(--header-icon-bg);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  padding: 10px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-right-support-info-icon svg {
  fill: var(--text-white);
  width: 26px;
  height: 26px;
}
.play0 {
  animation: play0 1.5s ease infinite;
}
.header-right-support-info-icon-secondary {
  color: var(--text-white);
}
.header-right-support-info-icon-secondary span {
  color: var(--text-muted);
  margin-bottom: 3px;
  display: block;
}
.header-right-support-info-icon-secondary a {
  font-size: 18px;
  color: var(--text-white);
  text-decoration: none;
}
.header-right .location {
  padding-left: 15px;
}

/* Hotline & Location visibility */
/* .hotline { display: none; } */
.location { display: none; margin-left: 1rem; }
@media (min-width: 992px) {
  .hotline { display: flex; }
  .location { display: block; }
}

/* Cart */
.mini-cart {
  position: relative;
}
.mini-cart > a {
  color: var(--text-white);
  display: block;
}
.mini-cart svg {
  fill: var(--header-background);
  font-size: 26px;
  width: 26px;
  height: 26px;
  transform: rotateY(180deg);
}
.mini-cart > a .count_item {
  background: var(--subheader-color);
  border-radius: 50%;
  color: var(--text-white);
  position: absolute;
  width: 20px;
  height: 21px;
  line-height: 20px;
  font-size: 11px;
  text-align: center;
  top: -8px;
  left: 16px;
}

/* Compare */
.compare-product__header-count {
  top: -8px; right: -8px; background: var(--secondary-color);
  color: var(--text-white); font-size: 10px; width: 16px; height: 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* === SUBHEADER (NAV) === */
.subheader {
  --subheader-padding: 0px;
  background: var(--subheader-background);
  color: var(--subheader-color);
  display: flex;
  align-items: center;
}
.subheader .container {
  display: grid;
  grid-template-columns: calc(25% - 15px) 1fr;
  justify-content: space-between;
  align-items: center;
  grid-gap: 10px;
}
.subheader .toogle-nav-wrapper {
  font-size: 15px;
  font-weight: 500;
  border-radius: 5px 5px 0 0;
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 10px 20px 11px 20px;
  color: var(--text-white);
  background: #ed1c24;
  width: 275px;
  box-sizing: border-box;
}
.subheader .toogle-nav-wrapper .icon-bar {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  border-radius: 2px;
  vertical-align: top;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.subheader .toogle-nav-wrapper .icon-bar .bar {
  background: var(--text-white);
  width: 14px;
  border-radius: 2px;
  margin-left: 3px;
}
.subheader .toogle-nav-wrapper .icon-bar .bar:first-of-type {
  margin-top: 4px;
}
.subheader .toogle-nav-wrapper .icon-bar .bar:last-of-type {
  margin-bottom: 4px;
}
.subheader .toogle-nav-wrapper strong {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-white);
}

/* Horizontal nav */
.navigation--horizontal {
  flex: 1;
  display: flex;
  align-items: center;
}
.navigation--horizontal-ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.navigation--horizontal-ul > li {
  position: relative;
}
.navigation--horizontal-ul > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0px 15px;
  /* color: var(--subheader-color); */
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
  white-space: nowrap;
}
.navigation--horizontal-ul > li > a:hover {
  background: var(--white-hover);
}
.navigation--horizontal-ul > li > a .fa-angle-down {
  font-size: 10px;
  margin-left: 4px;
}

/* Dropdown */
.navigation-horizontal-sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white-bg);
  min-width: 230px;
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  border-radius: 0 0 4px 4px;
}
.navigation--horizontal-ul > li:hover .navigation-horizontal-sub-menu {
  display: block;
}
.navigation-horizontal-sub-menu li a {
  display: block;
  padding: 8px 20px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.navigation-horizontal-sub-menu li a:hover {
  color: var(--primary-color);
  background: var(--hover-bg);
  padding-left: 25px;
}

/* Subheader right */
.subheader-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.subheader-right ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.subheader-right ul li a {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-left: 40px;
  color: var(--text-white);
  text-decoration: none;
}
.subheader-right ul li a svg {
  fill: var(--header-background);
  margin-right: 8px;
  width: 20px;
  height: 20px;
}
.subheader-right ul li a span {
  color: var(--text-white);
  font-size: 13px;
}

/* === RESPONSIVE HEADER === */
@media (max-width: 991px) {
  .subheader { display: none; }
  .mid-header { padding: 15px 0; }
  .mid-header .logo-wrapper { max-width: 180px; }
  .header-right { flex-direction: row-reverse; justify-content: flex-start; }
  .mid-header .row.align-items-center > div:nth-child(3) { padding-right: 0; }
  .header-right .cartgroup { flex: 0 0 45px; }
  .mini-cart > a { display: block; width: 24px; margin-right: 0; position: relative; float: right; }
  .mini-cart .count_item { position: absolute; right: -12px; top: -5px; font-size: 10px; }
  #search-header { order: 3; margin-top: 10px; }
  #search-header .search-dropdow .search__list {
    white-space: normal;
    overflow: visible;
    display: flex !important;
    flex-wrap: wrap;
  }
  #search-header .search-dropdow .search__list > li {
    display: inline-block;
  }
  .subheader .container { grid-template-columns: 1fr; }
  .subheader .toogle-nav-wrapper { width: auto; padding: 10px 15px; }
  .navigation--horizontal { display: none !important; }
  .subheader-right { display: none; }
}

@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
  .d-lg-flex { display: flex !important; }
  .d-lg-block { display: block !important; }
  .d-none { display: none !important; }
}

@media (max-width: 767px) {
  .header-right { flex-direction: row-reverse; justify-content: flex-start; }
  .header-right .cartgroup { flex: 0 0 45px; }
  .mini-cart > a { display: block; width: 24px; margin-right: 0; position: relative; float: right; }
  .mini-cart .count_item { position: absolute; right: -12px; top: -5px; font-size: 10px; }
}
