/*============================================================================================
	Start Header Area
==============================================================================================*/
.header {
  z-index: 9999;
  padding-top: 20px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.header.sticky {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  -webkit-animation: sticky 1.2s;
  animation: sticky 1.2s;
  margin: 0;
  border-radius: 0px;
  background: var(--secondary-color);
  padding-top: 0px;
}
.header.sticky .header-inner {
  background: transparent;
  border-radius: 0px;
  padding: 20px 0px;
}
@-webkit-keyframes sticky {
  0% {
    top: -200px;
  }
  100% {
    top: 0;
  }
}
@keyframes sticky {
  0% {
    top: -200px;
  }
  100% {
    top: 0;
  }
}
.header-logo {
  display: block;
}
.header-logo img {
  max-width: 148px;
  object-fit: contain;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--secondary-color);
  padding: 20px;
  border-radius: 12px;
}
.header-navigation .header-menu li {
  display: inline-block;
  margin-right: 32px;
}
.header-navigation .header-menu li:last-child {
  margin: 0;
}
.header-navigation .header-menu li a {
  color: var(--white-color);
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-navigation .header-menu li i {
  position: relative;
  top: 3px;
}
.header-navigation .header-menu li:last-child {
  margin: 0;
}
.header-navigation .header-menu li.active a,
.header-navigation .header-menu li:hover > a {
  color: var(--primary-color);
}

/* DropDown Menu */
.header-menu li:hover > .sub-menu {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}
.header-menu li .sub-menu {
  position: absolute;
  background: var(--primary-color);
  min-width: 240px;
  transition: all 0.3s ease-out 0s;
  top: 100%;
  opacity: 0;
  box-shadow: 0px 4.4px 20px -1px rgba(19, 16, 34, 0.05);
  visibility: hidden;
  z-index: 99;
  text-align: left;
  transform: scaleY(0);
  transform-origin: 0 0;
  border-radius: 0px 0px 8px 8px;
  overflow: hidden;
  padding: 10px 0;
}
.header-menu li .sub-menu li {
  display: block;
  margin: 0;
  position: relative;
}
.header-menu li .sub-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--offwhite-color);
  padding: 10px 20px !important;
  transition: all 0.4s ease-out 0s;
  font-size: 16px;
  text-transform: capitalize;
  font-weight: 500;
  background: transparent !important;
}
.header-menu li .sub-menu li:hover > a,
.header-menu li .sub-menu li.active a {
  padding-left: 25px !important;
  background: var(--secondary-color) !important;
  color: var(--offwhite-color);
}
.header-menu li .sub-menu li.active::after {
  height: 100%;
}
.header-menu li .sub-menu li:hover:after {
  height: 100%;
}
.header-menu li .sub-menu li:last-child {
  border: none;
}
.header-right {
  grid-column-gap: 30px;
  align-items: center;
  display: flex;
}
.header-cart {
  width: 50px;
  min-width: 50px;
  height: 50px;
  line-height: 50px;
  border: 2px solid var(--white-color);
  border-radius: 100%;
  position: relative;
  text-align: center;
}
.header-cart i {
  color: var(--white-color);
  font-size: 20px;
}
.header-cart-item {
  position: absolute;
  top: -4px;
  right: -10px;
  width: 24px;
  height: 24px;
  background: var(--primary-color);
  border-radius: 100%;
  line-height: 24px;
  color: var(--white-color);
  font-weight: 600;
  font-size: 12px;
}

/* Login/Register dropdown on the account button */
.header__account--dropdown {
  position: relative;
}
.header__account--submenu {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 160px;
  background: var(--secondary-color);
  border-radius: 0 0 8px 8px;
  box-shadow: 0px 4.4px 20px -1px rgba(19, 16, 34, 0.15);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: scaleY(0);
  transform-origin: top;
  transition: all 0.25s ease-out 0s;
  z-index: 99;
}
.header__account--dropdown:hover > .header__account--submenu {
  opacity: 1;
  visibility: visible;
  transform: scaleY(1);
}
.header__account--submenu li a {
  display: block;
  padding: 10px 20px !important;
  color: var(--offwhite-color);
  font-size: 15px;
  font-weight: 500;
  background: transparent !important;
}
.header__account--submenu li:hover > a {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--primary-color);
}

@media only screen and (min-width: 992px) and (max-width: 1199.99px) {
  .header-navigation,
  .header-right-btn {
    display: none;
  }
}

@media only screen and (max-width: 991.99px) {
  .header-navigation,
  .header-right-btn {
    display: none;
  }
  .header-logo img {
    max-width: 116px;
  }
  .header-inner {
    padding: 12px;
  }
  
 .header__account--btn__text {
  font-size: 0;
  display: none;
    }
    .header__account--items .theme-btn {
      text-align: center;
      padding: 10px;
      line-height: 0;
    }
    
    .header-right {
      grid-column-gap: 24px;
    }

}


@media only screen and (max-width: 767px) {
    .header-right {
    	grid-column-gap: 16px;
    }
}




/*============================================================================================
	End Header Area
==============================================================================================*/
/* ============================================================
   Navbar refinement (2026-07): tighter single-line layout,
   centered menu, compact right-side controls, animated
   underline for active/hover states.
   ============================================================ */
.header-inner {
  gap: 18px;
  padding: 14px 22px;
  flex-wrap: nowrap;
}
.header-logo img {
  max-width: 120px;
}
/* desktop only: below 1200px the legacy rules above hide the horizontal nav
   in favour of the offcanvas mobile menu, so `display: flex` must not leak
   into smaller viewports (it did, and pushed a 504px menu off-screen) */
@media only screen and (min-width: 1200px) {
  .header-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
  }
  .header-navigation .header-menu {
    white-space: nowrap;
    display: flex;
    align-items: center;
  }
}
.header-navigation .header-menu > li {
  margin-right: 26px;
}
.header-navigation .header-menu > li:last-child {
  margin-right: 0;
}
.header-navigation .header-menu > li > a {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  position: relative;
  padding: 8px 0;
}
.header-navigation .header-menu > li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--primary-color);
  transition: width 0.25s ease;
}
.header-navigation .header-menu > li:hover > a::after,
.header-navigation .header-menu > li.active > a::after {
  width: 100%;
}
.header-right {
  grid-column-gap: 12px;
  flex-shrink: 0;
}
.header-cart {
  width: 40px;
  min-width: 40px;
  height: 40px;
  line-height: 38px;
  border-width: 1.5px;
}
.header-cart i {
  font-size: 16px;
}
.header-cart-item {
  width: 19px;
  height: 19px;
  line-height: 19px;
  font-size: 11px;
  top: -3px;
  right: -7px;
}
/* the shared .theme-btn carries line-height:32px + margin-right:24px, which
   made the header actions ~58px tall; override both so they sit at 40px and
   match the cart circle */
.header-right .theme-btn {
  padding: 0 18px;
  height: 40px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14px;
  margin-right: 0;
  border-radius: 10px;
  white-space: nowrap;
}
.header-right .theme-btn i {
  font-size: 15px;
  display: inline-flex;
  line-height: 1;
}
.header-right .header__account--items {
  list-style: none;
  display: flex;
}

/* keep the bar usable on laptop-width screens before the
   mobile menu takes over */
@media (max-width: 1199px) {
  .header-navigation .header-menu > li {
    margin-right: 16px;
  }
  .header-navigation .header-menu > li > a {
    font-size: 14px;
  }
  .header-right .theme-btn {
    padding: 0 13px;
    height: 38px;
    font-size: 13px;
  }
  .header-right {
    grid-column-gap: 8px;
  }
}
