/* =========================================================
   ASHE CLEAN REPLACEMENT HEADER V2
   ========================================================= */

.ashe-header {
  position: relative;
  z-index: 40;
  color: #10243f;
}

.ashe-header__container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
}

/* utility bar */
.ashe-header__utility {
  background: linear-gradient(90deg, #4f8cb4 0%, #6c6be8 100%);
}

.ashe-header__utility-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
  min-height: 52px;
}

.ashe-utility-item {
  display: grid;
  grid-template-columns: 18px auto;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #10243f;
}

.ashe-utility-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.75;
}

.ashe-utility-item__text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.1;
}

.ashe-utility-item__text span {
  display: block;
  font-size: 0.76rem;
  line-height: 1.1;
}

/* main header */
.ashe-header__main {
  background: linear-gradient(90deg, #4f8cb4 0%, #6c6be8 100%);
  border-bottom: 2px solid #d8b215;
}

.ashe-header__main-inner {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 1.2rem;
  min-height: 66px;
}

.ashe-header__brand .custom-logo {
  width: 140px;
  max-width: 100%;
  height: auto;
  display: block;
}

.ashe-header__brand-text {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.ashe-header__toggle {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.ashe-header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.ashe-header__nav {
  display: block;
}

.ashe-nav-menu,
.ashe-nav-menu ul,
.ashe-nav-menu li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ashe-nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.ashe-nav-menu > li {
  position: relative;
}

.ashe-nav-menu > li > a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  color: #fff;
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
  white-space: nowrap;
}

.ashe-nav-menu > li:hover > a,
.ashe-nav-menu > li.current-menu-item > a,
.ashe-nav-menu > li.current_page_item > a {
  background: rgba(255,255,255,0.06);
}

.ashe-nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  display: none;
  background: #251ef0;
  border: 1px solid rgba(255,255,255,0.14);
  z-index: 999;
}

.ashe-nav-menu li:hover > .sub-menu {
  display: block;
}

.ashe-nav-menu .sub-menu li a {
  display: block;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}

.ashe-nav-menu .sub-menu li a:hover {
  background: rgba(255,255,255,0.08);
}

.ashe-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ashe-header__search {
  width: 230px;
}

.ashe-header__search .woocommerce-product-search {
  display: flex;
  align-items: center;
  min-height: 36px;
  margin: 0;
  background: #9fc8e9;
  border: 1px solid #315d7a;
  border-radius: 2px;
}

.ashe-header__search .search-field {
  width: 100%;
  min-height: 34px;
  border: 0 !important;
  background: transparent !important;
  color: #17324b !important;
  padding: 0 12px !important;
  box-shadow: none !important;
  font-size: 0.9rem;
}

.ashe-header__search .search-field::placeholder {
  color: rgba(23, 50, 75, 0.55);
}

.ashe-header__search button {
  display: none !important;
}

.ashe-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 46px;
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}

.ashe-cart-link__icon {
  font-size: 0.82rem;
  opacity: 0.8;
}

/* hard hide old header/plugin remnants */
.site-header .site-search,
.site-header .widget_product_search,
.site-header .secondary-navigation,
.site-header .site-header-cart,
.site-header .cart-contents,
.site-header .storefront-primary-navigation,
.site-header .menu-toggle,
.site-header .wpmenucartli,
.site-header .wpmenucart-contents,
.site-header form.search-form {
  display: none !important;
}

/* mobile */
@media (max-width: 900px) {
  .ashe-header__utility {
    display: none;
  }

  .ashe-header__main-inner {
    grid-template-columns: 140px 42px 1fr;
    gap: 0.75rem;
    min-height: 60px;
  }

  .ashe-header__brand .custom-logo {
    width: 120px;
  }

  .ashe-header__toggle {
    display: block;
  }

  .ashe-header__nav {
    display: none;
    grid-column: 1 / -1;
  }

  .ashe-header__nav.is-open {
    display: block;
  }

  .ashe-nav-menu {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 10px;
  }

  .ashe-nav-menu > li > a {
    min-height: 42px;
    padding: 0 12px;
  }

  .ashe-nav-menu .sub-menu {
    position: static;
    display: block;
    border: 0;
    background: rgba(255,255,255,0.06);
  }

  .ashe-header__actions {
    justify-content: flex-end;
  }

  .ashe-header__search {
    width: 180px;
  }
}

@media (max-width: 640px) {
  .ashe-header__main-inner {
    grid-template-columns: 110px 42px 1fr;
  }

  .ashe-header__search {
    display: none;
  }

  .ashe-cart-link__text {
    font-size: 0.84rem;
  }
}


.ashe-icon {
  font-size: 0.8rem;
  opacity: 0.6;
}


/* remove all WooCommerce default cart outputs */
.site-header-cart,
.cart-contents,
.wpmenucartli,
.wpmenucart-contents {
  display: none !important;
}


.ashe-header__utility-inner {
  justify-content: space-between;
  gap: 1.5rem;
}

.ashe-header__main-inner {
  grid-template-columns: 150px 1fr auto;
  gap: 1rem;
}

.ashe-header__actions {
  gap: 10px;
}

.ashe-utility-item {
  align-items: center;
}

.ashe-utility-item__text strong {
  font-size: 0.88rem;
}

.ashe-utility-item__text span {
  font-size: 0.74rem;
  opacity: 0.85;
}




.ashe-nav-menu > li > a {
  background: transparent !important;
}

.ashe-nav-menu > li:hover > a {
  background: rgba(255,255,255,0.08);
}


.ashe-header__search {
  width: 240px;
}

.ashe-header__search .search-field {
  padding-left: 10px;
}



/* =========================================================
   HEADER REFINEMENT - MATCH REFERENCE 2
   ========================================================= */

.ashe-header__container {
  max-width: 1080px;
  padding-left: 14px;
  padding-right: 14px;
}

/* ---------- TOP UTILITY BAR ---------- */

.ashe-header__utility {
  background: linear-gradient(90deg, #4f8cb4 0%, #6c6be8 100%);
}

.ashe-header__utility-inner {
  min-height: 54px;
  gap: 1.75rem;
  justify-content: space-between;
}

.ashe-utility-item {
  grid-template-columns: 42px auto;
  gap: 0.7rem;
  align-items: center;
  color: #10243f;
}

.ashe-utility-item__icon,
.ashe-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 1.9rem;
  line-height: 1;
  opacity: 0.58;
}

.ashe-utility-item__text strong {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.05;
  margin: 0;
}

.ashe-utility-item__text span {
  font-size: 0.76rem;
  line-height: 1.05;
  opacity: 0.95;
}

/* ---------- MAIN HEADER ROW ---------- */

.ashe-header__main {
  background: #2319ee;
  border-bottom: 2px solid #d8b215;
}

.ashe-header__main-inner {
  grid-template-columns: 165px 1fr auto;
  gap: 1rem;
  min-height: 48px;
}

.ashe-header__brand .custom-logo {
  width: 138px;
}

/* ---------- NAV ---------- */

.ashe-header__nav {
  justify-self: start;
  width: 100%;
}

.ashe-nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.ashe-nav-menu > li > a {
  min-height: 48px;
  padding: 0 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  background: transparent !important;
}

.ashe-nav-menu > li:first-child > a {
  padding-left: 6px;
}

.ashe-nav-menu > li:hover > a,
.ashe-nav-menu > li.current-menu-item > a,
.ashe-nav-menu > li.current_page_item > a {
  background: rgba(255,255,255,0.06) !important;
}

.ashe-nav-menu > li.menu-item-has-children > a::after {
  content: "▼";
  font-size: 0.55rem;
  margin-left: 8px;
  opacity: 0.85;
  position: relative;
  top: -1px;
}

/* ---------- ACTIONS ---------- */

.ashe-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ashe-header__search {
  width: 228px;
}

.ashe-header__search .woocommerce-product-search {
  min-height: 34px;
  border: 1px solid #47657d;
  border-radius: 2px;
  background: #9fc8e9;
}

.ashe-header__search .search-field {
  min-height: 32px;
  font-size: 0.9rem;
  padding: 0 12px;
}

.ashe-cart-link {
  min-height: 48px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #fff;
  gap: 0.3rem;
}

.ashe-cart-link__icon {
  font-size: 0.78rem;
  opacity: 0.72;
}

/* ---------- HARD HIDE OLD CART/SEARCH ---------- */

.site-header-cart,
.cart-contents,
.wpmenucartli,
.wpmenucart-contents,
.widget_product_search,
.site-search,
.storefront-primary-navigation,
.secondary-navigation,
.menu-toggle,
form.search-form {
  display: none !important;
}

/* ---------- MOBILE ---------- */

@media (max-width: 900px) {
  .ashe-header__utility {
    display: none;
  }

  .ashe-header__main-inner {
    grid-template-columns: 120px 42px 1fr;
    min-height: 56px;
  }

  .ashe-header__brand .custom-logo {
    width: 110px;
  }

  .ashe-header__toggle {
    display: block;
  }

  .ashe-header__nav {
    display: none;
    grid-column: 1 / -1;
  }

  .ashe-header__nav.is-open {
    display: block;
  }

  .ashe-nav-menu {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 10px;
  }

  .ashe-nav-menu > li > a {
    min-height: 42px;
    padding: 0 12px;
  }

  .ashe-nav-menu .sub-menu {
    position: static;
    display: block;
    border: 0;
    background: rgba(255,255,255,0.06);
  }

  .ashe-header__actions {
    justify-content: flex-end;
  }

  .ashe-header__search {
    width: 180px;
  }
}

@media (max-width: 640px) {
  .ashe-header__search {
    display: none;
  }
}


.ashe-header__brand .custom-logo {
  width: 145px;
}



/* =========================================================
   CART ICON (CLEAN, FONT-FREE)
   ========================================================= */

.ashe-cart-link__icon {
  display: inline-block;
  width: 14px;
  height: 12px;
  border: 2px solid #ffffff;
  border-radius: 2px;
  position: relative;
  margin-right: 4px;
}

/* cart handle */
.ashe-cart-link__icon::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 2px;
  width: 8px;
  height: 6px;
  border: 2px solid #ffffff;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}

/* wheels */
.ashe-cart-link__icon::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 2px;
  width: 3px;
  height: 3px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 8px 0 0 #ffffff;
}

/* spacing + alignment */
.ashe-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ashe-cart-link__text {
  font-size: 0.9rem;
  letter-spacing: 0.2px;
}





/* =========================================================
   MOBILE HEADER OPTIMISATION + SEARCH IN DROPDOWN
   ========================================================= */

/* desktop defaults */
.ashe-header__nav-inner {
  display: block;
}

.ashe-header__mobile-search {
  display: none;
}

.ashe-header__search--desktop {
  display: block;
}

/* mobile */
@media (max-width: 900px) {
  .ashe-header__utility {
    display: none !important;
  }

  .ashe-header__container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .ashe-header__main-inner {
    grid-template-columns: 110px 42px 1fr auto !important;
    gap: 0.6rem !important;
    min-height: 56px !important;
    align-items: center !important;
  }

  .ashe-header__brand .custom-logo {
    width: 104px !important;
  }

  .ashe-header__toggle {
    display: block !important;
    justify-self: center;
  }

  .ashe-header__toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #fff;
  }

  .ashe-header__search--desktop {
    display: none !important;
  }

  .ashe-header__actions {
    justify-content: flex-end !important;
    gap: 0 !important;
  }

  .ashe-header__cart {
    justify-self: end !important;
  }

  .ashe-cart-link {
    min-height: 42px !important;
    font-size: 0.83rem !important;
    gap: 5px !important;
  }

  .ashe-cart-link__text {
    white-space: nowrap;
  }

  .ashe-header__nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 4px;
  }

  .ashe-header__nav.is-open {
    display: block !important;
  }

  .ashe-header__nav-inner {
    background: #2319ee;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 10px 0 12px;
  }

  .ashe-header__mobile-search {
    display: block !important;
    padding: 0 12px 10px;
  }

  .ashe-header__mobile-search .woocommerce-product-search {
    display: flex;
    align-items: center;
    min-height: 38px;
    margin: 0;
    background: #9fc8e9;
    border: 1px solid #47657d;
    border-radius: 2px;
  }

  .ashe-header__mobile-search .search-field {
    width: 100%;
    min-height: 36px;
    border: 0 !important;
    background: transparent !important;
    color: #17324b !important;
    padding: 0 12px !important;
    box-shadow: none !important;
    font-size: 0.9rem;
  }

  .ashe-header__mobile-search .search-field::placeholder {
    color: rgba(23, 50, 75, 0.55);
  }

  .ashe-header__mobile-search button {
    display: none !important;
  }

  .ashe-nav-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 !important;
  }

  .ashe-nav-menu > li {
    width: 100%;
  }

  .ashe-nav-menu > li > a {
    min-height: 44px !important;
    padding: 0 12px !important;
    font-size: 0.95rem !important;
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .ashe-nav-menu > li:first-child > a {
    padding-left: 12px !important;
  }

  .ashe-nav-menu .sub-menu {
    position: static !important;
    display: block !important;
    min-width: 0 !important;
    border: 0 !important;
    background: rgba(255,255,255,0.05) !important;
    margin: 0 !important;
  }

  .ashe-nav-menu .sub-menu li a {
    padding: 10px 24px !important;
    font-size: 0.88rem !important;
  }
}

@media (max-width: 640px) {
  .ashe-header__main-inner {
    grid-template-columns: 98px 42px 1fr auto !important;
  }

  .ashe-header__brand .custom-logo {
    width: 92px !important;
  }

  .ashe-cart-link__text {
    font-size: 0.78rem;
  }
}


