/* 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;
}

/* 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;
}
@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;
    }
}