.custom-mega-menu:hover .mega-menu-container {
  height: auto !important;
  pointer-events: auto !important;
}

.custom-mega-menu:hover .mega-menu-container #mega-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Base mega menu container */
.mega-menu-container {
  display: block;
  position: absolute;
  left: 0;
  top: 100%;
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  pointer-events: none;
  height: 0;
  overflow: hidden;
  z-index: 9998;
  transition: height 0.3s ease;
}

/* Fix for sticky header */
.header-section-sticky .mega-menu-container {
  position: fixed;
  top: var(--header-height, 80px);
  left: 0;
  right: 0;
  z-index: 9998;
}

.header-section-sticky .custom-mega-menu:hover .mega-menu-container {
  height: auto !important;
  /* max-height: calc(100vh - var(--header-height, 80px));
  overflow-y: auto; */
  pointer-events: auto !important;
}

.header-section-sticky .custom-mega-menu:hover .mega-menu-container #mega-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Hide on mobile */
@media (max-width: 768px) {
  .mega-menu-container { display: none !important; }
}

/* Inner menu wrapper */
#mega-menu {
  position: relative;
  margin: 0 auto;
  bottom: 0;
  outline: 0;
  max-width: 1395px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s cubic-bezier(.4,0,.2,1);
}

/* Left nav column */
#mega-menu .fixed-ul {
  flex: 0 0 260px;
  background-color: #fff;
  border-right: 1px solid #dbdbdb;
}

#mega-menu .fixed-ul ul {
  display: inline-block;
  margin-left: 0;
  list-style-type: none;
}

#mega-menu .fixed-ul ul li { margin: 0; }

/* Menu row shadow */
#mega-menu .container-fluid > .row {
  box-shadow: 0 14px 20px -8px rgba(0,0,0,.22);
}

/* Left navigation items */
.nav-option {
  position: relative;
  background: #fff;
  padding: 9px 7px 9px 15px;
  cursor: pointer;
  width: 260px;
  /* border-bottom: 1px solid #dbdbdb; */
  transition: background-color 0.2s ease;
}

.nav-option-bottom-border {
  border-bottom: 1px solid #dbdbdb;
}

/* Visual hover effect */
.nav-option:hover { 
  background: #f77713; 
}

.nav-option:hover .nav-span { 
  color: #fff; 
}

.nav-option:hover:after {
  z-index: 1000;
  left: 100%;
  top: 0;
  content: " ";
  position: absolute;
  pointer-events: none;
  border: solid transparent;
  border-left: solid #f77713;
  border-width: 22px 10px;
}

/* Active state (persistent after hover) */
.nav-option.active { 
  background: #f77713; 
}

.nav-option.active .nav-span { 
  color: #fff; 
}

.nav-option.active:after {
  z-index: 1000;
  left: 100%;
  top: 0;
  content: " ";
  position: absolute;
  pointer-events: none;
  border: solid transparent;
  border-left: solid #f77713;
  border-width: 22px 10px;
}

.nav-option .nav-span {
  color: #000;
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  line-height: 1.6;
  font-family: "Open Sans", sans-serif;
}

.nav-option .nav-span .col-count { 
  font-size: 12px; 
}

.nav-option .fal,
.nav-option .fas {
  color: #f77713;
  float: right;
  font-size: 18px;
  padding-top: 3px;
  padding-right: 5px;
}

/* Right content panels */
.menu-content {
  font-family: "Exo 2";
  display: none;
  /* max-height: calc(100vh - var(--header-height, 140px) - 20px);
  overflow-y: auto; */
  padding-top: 10px;
}

.menu-content.col { padding: 0; }

/* Show content only when JavaScript sets .open class */
.menu-content.open { 
  display: inline-block !important; 
}

.menu-content .d-flex { 
  flex-wrap: wrap; 
  justify-content: flex-start; 
}

.menu-content .flex-item { 
  min-width: 130px; 
  margin-bottom: 10px; 
  flex-basis: 20%; 
}

.menu-content .flex-item a {
  margin: 0 auto;
  display: block;
  padding: 0 10px;
  max-width: 145px;
  transition: .2s;
}

.menu-content .flex-item a:hover { 
  text-decoration: none; 
  background-color: #eee; 
}

.menu-content .col { 
  min-width: 125px; 
  padding-bottom: 15px; 
}

.menu-content .row:nth-last-child(2) { 
  padding-bottom: 20px; 
}

/* Section headers */
.menu-content .mm-section-header {
  padding: 20px 40px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  position: relative;
}

.menu-content .mm-section-header > img { 
  margin-right: 15px; 
}

.menu-content .mm-section-header h3 {
  line-height: 32px;
  margin: 0;
  font-size: 32px;
}

.menu-content .mm-section-header a {
  top: 3px;
  /* border-radius: 3px; */
  padding: 4px 10px;
  background: #eeeef1;
  color: #000;
  text-decoration: none;
  font-family: "Open Sans";
  margin-left: 25px;
  font-size: 14px;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
}

.menu-content .mm-section-header a > svg { 
  width: 12px; 
  margin-left: 4px; 
}

.menu-content .mm-section-header a:hover { 
  background-color: #dbdbdf; 
}

.menu-content h4 {
  text-align: center;
  font-weight: 400;
  font-size: 1rem;
  color: #333;
  padding-bottom: 10px;
  margin: 0;
  line-height: 1.3;
}

.menu-content .all-products {
  display: block;
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
  color: #000;
  text-align: left;
  margin-bottom: 10px;
  margin-left: 33px;
}
/* Remove left/right padding from the fixed left column in mega menu */
.mega-menu-container .col.fixed-ul {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
