.site-header .dropdown-toggle::after {
  border:unset!important;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-search {
  margin-left: 1rem;
}

.header-account,
.header-cart,
.header-wishlist,
.header-cart {
  margin-left: 0.7rem;
}
.icon-link {
  text-decoration: none;
}
.icon-link:hover {
  color: var(--wp--preset--color--secondary)!important;
}
.wishlist-icon {
  font-size: 1.25rem;
  color: var(--wp--preset--color--header-icons)!important;
}
.account-icon {
  font-size: 1.45rem;
  color: var(--wp--preset--color--header-icons)!important; 
}
.cart-icon {
  width: 24px;
  height: 24px;
  fill: var(--wp--preset--color--header-icons);
}
.cart-icon:hover {
  fill: var(--wp--preset--color--secondary);
}

/* START: FIBOSEARCH */
.my-search-icon {
  color:var(--wp--preset--color--header-icons);
  font-size:20px!important;
}
.my-search-icon:hover {
  color:var(--wp--preset--color--secondary);
}
.dgwt-wcas-ico-magnifier-handler {
    margin:0px;
}
.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input {
    padding: 13px 24px 13px 48px;
    line-height: 24px;
    font-size: 17px;
    border: 2px solid transparent;
    border-radius: 5px!important;
    height: auto;
    font-family: Roboto, sans-serif;
    background-color: #eee;
}
/* END: FIBOSEARCH */


/* Submenu dropdowns open to the right */
:root {
  --header-height: 60px;
}
@media (min-width: 992px) {
  .navbar-nav .dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: 0;
    margin-left: 0.1rem;
    position: absolute;
  }

  .navbar-nav .dropdown:hover > .dropdown-menu {
    display: block;
  }

  .navbar-nav .dropdown-menu > .dropdown:hover > .dropdown-menu {
    display: block;
  }

}
/* Submenu dropdowns open to the right */



.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--wp--preset--color--primary); /* Background Top */
  color: #fff;
  width: 100%;
}

.site-header.scrolled {
  background-color: var(--wp--preset--color--primary); /* Background Scroll */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-inner {
  max-width: 1350px;
  margin: 0 auto;
  padding: 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.navbar-nav .nav-link {
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
  color: var(--wp--preset--color--secondary);
}

/* Cart icon (optional) */
.cart-count {
  background: var(--wp--preset--color--secondary);
  color: #fff;
  border-radius: 50%;
  padding: 0.2rem 0.5rem;
  font-size: 0.55rem;
  position: absolute;
  top: -5px;
  right: -5px;
}

.cart-count:hover {
  background: var(--wp--preset--color--primary);
  color: #fff;
}

/* Header container & layout */
.primary-menu a {
  transition: color 0.3s, text-decoration 0.3s;
}

@media (min-width: 1200px) {
  .site-header {
    max-width: none;
    width: 100%;
  }
}

/* Site Branding (Logo / Title) */
.site-header .site-branding .custom-logo {
  max-width: 250px;
  height: auto;
  padding: 0px;
  margin: 0px;
}

.site-branding a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
}

/* Navigation (Center) */
.site-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.primary-menu li {
  margin-left: 1.5rem;
}

.primary-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.primary-menu a:hover {
  text-decoration: underline;
}

/* Bootstrap Dropdown Support */
.navbar-nav .dropdown-menu {
  background-color: #333;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-top: 0.5rem;
  /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); */
  /* text-align:center; */
}

.navbar-nav .dropdown-menu .dropdown-item {
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--wp--preset--color--secondary);
}

/* Mobile Header Adjustments */
@media (max-width: 999px) {

  /* Keep the header’s inner flex layout for logo + toggler */
  .site-navigation {
    justify-content: flex-end !important;
    margin-top: 0 !important;
  }

  /* Shrink logo slightly on very small screens */
  .site-header .site-branding .custom-logo {
    max-width: 200px !important;
    height: auto !important;
  }

  .header-inner {
    padding: 10px !important;
  }

  /*
    The dropdown below is now explicitly pinned to the viewport and forced to fill the screen below the header.
  */
  .site-navigation .navbar-collapse {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: #333;
    padding-top: 1rem;
    z-index: 999;
    overflow-y: auto;
  }






  /* TESTING99 Scrollable main (level-1) menu on mobile */
  /* .site-navigation .navbar-nav {
    max-height: calc(100vh - var(--header-height) - 2rem) !important;
    overflow-y: auto !important;
  } */




  /* Stack links vertically, centered */
  .site-navigation .navbar-nav {
    flex-direction: column;
    align-items: center;
  }

  /* Make each menu link 100% width and centered */
  .site-navigation .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: center;
  }
}

/* Custom hamburger icon styling */
.custom-toggle {
  border: none;
  background: transparent!important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}

.custom-toggle .icon-bar {
  height: 2px;
  width: 100%;
  background-color: #fff;
  transition: all 0.3s ease;
}

.custom-toggle.open .top-bar {
  transform: rotate(45deg) translate(5px, 5px);
}

.custom-toggle.open .middle-bar {
  opacity: 0;
}

.custom-toggle.open .bottom-bar {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Prevent body scroll when mobile menu is open */
body.no-scroll {
  overflow: hidden;
}

/* Mobile submenu toggle */
@media (max-width: 991px) {
  .navbar-nav .menu-item-has-children.submenu-open > .dropdown-menu {
    display: block !important;
    
    /* position: static !important; TESTING99 */
    /* max-height: calc(100vh - var(--header-height) - 2rem) !important; TESTING99 */
    /* overflow-y: auto !important; TESTING99 */
  }

  .navbar-nav .dropdown-menu {
    display: none;
    width: 100%;
    text-align: center;
  }

  .navbar-nav .menu-item-has-children.submenu-open > a::after {
    transform: rotate(90deg);
  }
}


/* Dropdown arrow icons */
.navbar-nav .nav-link > .bi {
  margin-right: -8px;
  vertical-align: middle;
}


