.mega-menu {
    display: none;
    background: #f8f9fa;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex-direction: row;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-20px);
  }
  .mega-menu.show {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .has-mega-menu {
    position: relative;
  }
  
  .gap-element {
    background: transparent;
    height: 60px;
    position: absolute;
    top: 100%; /* Just below the nav item */
    width: 100%;
    z-index: 2;
  }
  
  /* This wraps both gap and menu so hover keeps it open */
  .has-mega-menu:hover .mega-menu-wrapper,
  .has-mega-menu:hover .gap-element {
    display: block;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  
  .mega-menu-wrapper {
    position: absolute;
    top: calc(100% + 50px); /* below the gap */
    left: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 12;
  }
  
  .has-mega-menu:hover .mega-menu-wrapper {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Show mega menu on hover */
  .has-mega-menu:hover .mega-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
  }
  
  /* Remove the gap issue */
  .nav-item.has-mega-menu {
    position: relative;
  }
  .ef-desktop-header .nav-item {
    text-transform: uppercase;
    padding-left:30px;
    font-weight: bold;
  }
  
  /* Optional smoother menu */
  .category-list {
    background-color: #ffffff;
  }

  .category-items {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    width: 200px;
    position: relative;
    font-weight: 500;
    color: #55565A;
    text-transform: capitalize;
    font-weight: bold;
    background-color: #ffffff;
  }
  .category-items li {
    list-style: none;
  }

  .category-items ul {
    padding-left: 0;
  }

  
.category-items:hover,
.category-items.active {
  color: #55565A;
  background-color: #F7F7F7;
}

.category-items::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) translateX(-5px);
    opacity: 0;
    width: 12px; /* Adjust size as needed */
    height: 12px;
    background-image: url('/img/easyhome-facelift/arrow.svg'); 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .category-items:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
  /* Submenus and Items */
  .submenus-wrapper {
    flex: 2;
    position: relative;
    background: #f2f2f2;
    color:#B1B2B4;
    text-transform: capitalize;
  }
  
  .sub-menu {
    display: none;
    width: 270px;
    padding: 5px 15px;
  }
  
  .sub-menu.active {
    display: block;
  }
  
  .sub-menu h5 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
  }
  
  .subcategory-item {
    padding: 5px 0;
  }
  .parent-category {
    padding: 5px 0;
  }
  .parent-category a {
    text-decoration: underline;
    color: #333;
    display: block;
    transition: color 0.3s;
    font-weight:600;
  }
  .parent-category a:hover {
    color: #008A0E;
  }
  .subcategory-item a {
    text-decoration: none;
    color: #333;
    display: block;
    transition: color 0.3s;
    font-weight:500;
  }
  
  .subcategory-item a:hover {
    color: #008A0E;
  }
  

/* Header tweaks */
.ef-desktop-header {
    height: 115px;
    background: #ffffff;
}
.ef-header-logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-right: 50px;
    height: 100%;
}
  
  .ef-header-logo img {
    display: block;
    width: 210px;
    height: auto;
}

.ef-desktop-header .input-group {
    width: 23%;
}
.ef-desktop-header .nav-item > a {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    text-decoration: none;
    font-size: 18px;
    line-height: 24px;

  }
 
.ef-desktop-header .nav-item > a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0; /* Sticks to bottom of the padding */
    width: 0%;
    height: 3px;
    background-color: #508f31;
    transition: width 0.3s ease;
  }

.ef-desktop-header .nav-item:hover > a:after {
    background: #508f31;
    width: 100%;
    height: 3px;
    display: inline-block;
    content: "";
    transition: width 0.3s ease, background-color 0.3s ease;
}

.ef-desktop-header .ef-collapse .navbar-nav {
    width: 100%;
    font-size: 1.125rem;
    font-weight: 700;
    padding: 1rem;
    text-transform: uppercase;
    justify-content: space-between;
}

.ef-desktop-header .ef-collapse .navbar-nav li a {
    background: transparent;
    text-align: left;
    color: #555659;
    outline: none;
}

/* store locator */

.location-hours .text  {
  font-weight: 600;
  color: #55565A;
  text-align: left;
  font-size: 0.75rem;
}

.location-hours .location-img {
	width: 50px;
	height: 50px; 
	margin-right: 8px;
}

.location-hours .location-arrow {
  margin-left: 3px;
  width: 10px;
  margin-bottom: 1px;
  height: 10px;
}

.store-change-btn,
.store-change-order-btn {
  background: none;
  border: none;
  color: #0076ce;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  line-height: 20px;
  text-decoration: none;
} 

.location-hours span.arrow {
  font-size: 19px;
  margin-left: 8px;
}
.stroe-wrapper {
	text-align: left;
}

.skeleton {
  background-color: #e2e2e2;
  border-radius: 4px;
  width: 100%;
  height: 16px;
  margin: 6px 0;
  animation: skeleton-loading 1.5s infinite linear;
}

@keyframes skeleton-loading {
  0% { background-color: #e2e2e2; }
  50% { background-color: #f5f5f5; }
  100% { background-color: #e2e2e2; }
}

.store-hours {
  font-weight: normal !important;
}
#store-change-btn, #store-map-btn, #store-map-btn-mobile {
  display: none;
}
/* end store locator */

/* offcanvas */
 

.store-locator-drawer{
  width: 600px !important;
}
/* end offcanvas */


@media (max-width:992px) {

  .ef-desktop-header .nav-item > a{
    font-size:15px
  }
  .ef-header-logo img {
    width:150px;
  }
  .ef-header-logo-container {
    padding-right:30px
  }

  
.offcanvas.store-locator-drawer.offcanvas-modal {
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important 
}  

 
.location-hours .location-arrow {
  margin-left: 5px;
  margin-bottom: 0px;
}
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 0;
        padding-left: 0;
    }
   .navbar > .container {
        justify-content: flex-start ;
      }

}

/* Mobile handling */
@media (max-width: 991.95px) {
    .ef-desktop-header {
        display: none;
    }
    .store-change-btn {
        margin-left: auto;
    }
    .location-hours .text {
      line-height: 20px;
    }

    .store-locator-drawer{
      width: 100vw !important;
    }
}

@media (max-width: 1400px) {
  .ef-desktop-header .nav-item > a {
      /* font-size: 16px; */
  }
  .ef-header-logo-container {
    padding-right:30px
  }
  .ef-header-logo img {
    width:160px;
  }
 
}

@media (max-width: 1300px) {
  .ef-desktop-header .nav-item>a {
    /* font-size: 11px; */
  }

  .ef-header-logo img {
    width: 130px;
  }

  .search_container input[type="text"] {
    font-size: 12px;
  }

  .search_container {
    width: 20%;
  }

  .ef-desktop-header .nav-item {
    padding-left: 24px;
  }
  
  .store-details {
    width: 200px;
    white-space: normal;
  }

  .ef-header-logo-container {
    padding-right:20px
  }
  .location-hours .location-img {
    width: 40px;
    height: 40px;
  }
}



@media (max-width: 1023px) {

  .ef-header-logo img {
    width: 110px;
  }

  .ef-desktop-header .nav-item {
    padding-left: 20px;
}

}

@media screen and (max-width: 767px) and (min-width: 750px) {
  .offcanvas.store-locator-drawer.offcanvas-modal {
    transform: translate(-50%, -45%) !important 
  }  
  
}

/* Mobile handling */
@media (max-width: 575px) {
  .offcanvas.store-locator-drawer.offcanvas-modal {
    transform: translate(-50%, -46%) !important 
  }  
}

@media (max-width: 369px) {

  .store-change-btn {
      margin-left: -8px;
  }

}