/* Base Header Adjustments */
.hr-main-header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  
  /* Force it to stay at the top */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  
  /* Ensure it stays above EVERYTHING */
  z-index: 9999; 
  
  /* Smooth transition if you add scroll effects later */
  transition: all 0.3s ease-in-out;
}
.hr-main-header .hr-header-right .hr-header-menu .nav .nav-item .nav-link{
  font-weight: 600;
}
/* Fix dropdown hovers */
.hr-inner-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 200px;
  z-index: 1000;
}
.nav-item:hover > .hr-inner-dropdown {
  display: block;
}

/* Desktop Mega Menu Positioning */
.position-static { position: static !important; }
.mega-menu-container {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-top: 3px solid #111;
  border-radius: 0 0 8px 8px;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0;
  display: none;
}
.dropdown:hover .mega-menu-container {
    display: block;
}
.mega-menu-container .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #000;
}

/* Mobile Off-Canvas Menu Styling */
.hr-mob-menu-pop {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 100vw;
  height: 100vh;
  background-color: #1a1a1a;
  z-index: 9999;
  overflow-y: auto;
  transition: right 0.3s ease-in-out;
  padding: 30px 20px;
  box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

.hr-mob-menu-pop.show-menu {
  right: 0 !important;
  display: block !important;
}

/* Cart Badge Styling */
.cart-count {
  position: absolute;
  top: 0px;
  right: -5px;
  background: #dc3545; /* Red badge */
  color: #fff;
  font-size: 10px;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.search_widget {
  position: absolute;
  right: 0;
  top: 36px;
  z-index: 99;
  transform: translateY(-5px);
    transition: all 0.3s ease;
  height: 0;
  transform: translateY(-5px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
}
.search_widget.active{
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}
.search_widget form {
  position: relative;
  width: 400px;
  border: 1px solid #ebebeb;
}
.search_widget form input {
  padding: 10px 40px 10px 15px;
  height: 41px;
  line-height: 30px;
  font-size: 12px;
  color: #222;
  border: none;
  width: 100%;
  background: #f7f7f7;
}
.search_widget form button {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  border: 0;
  background: none;
  font-size: 16px;
}

.hr-header-cart {
  display: flex;
  align-items: center;
}
.search_box {
  font-size: 20px;
  color: #000;
  position: relative;
  padding-right: 12px;
}

.search_box:after {
  content: "";
  display: block;
  position: absolute;
  right: 0;
  width: 2px;
  height: 22px;
  top: 3px;
  background: #e4e2e2;
}
@media only screen and (min-width: 992px) {
    /* Creates an invisible hover bridge to close the gap between the menu item and the dropdown */
    .mega-menu-container::before,
    .hr-inner-dropdown::before {
        content: "";
        position: absolute;
        top: -35px; /* Adjust this slightly if your gap is taller/shorter */
        left: 0;
        width: 100%;
        height: 35px;
        background: transparent;
        z-index: 999;
    }
}