@media (min-width: 768px) {
  .megamenunav-cat {
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-align: center !important;
        align-items: center !important;
    -ms-flex-positive: 1 !important;
        flex-grow: 1 !important;
    -ms-flex-pack: start !important;
        justify-content: flex-start !important;
    margin: 9px 0 !important; } }

.menu-bar-link:hover::after {
  content: '';
  position: absolute !important;
  left: 0 !important;
  bottom: 6px !important;
  width: 0 !important;
  height: 1px !important;
  background-color: rgba(0, 0, 0, 0.2) !important;
  transition: width 0.4s ease-in-out !important; }

/* Parent container for the menu item */
.megamenu-fix {
  position: relative;
  display: inline-block; }

/* Mega Menu - Revamped Styles */
@media (min-width: 768px) {
  .custom-megamenu-revamp {
    position: absolute;
    top: 31px;
    left: -13%;
    width: 45vw;
    height: 100vh;
    background-color: #fff;
    overflow: hidden;
    transition: transform 0.5s ease, opacity 0.3s ease;
    transform: translateX(-100%);
    padding: 1rem; } }

/* When the parent menu-item is hovered, slide in the mega menu */
.menu-item:hover .custom-megamenu-revamp {
  transform: translateX(0); }

/* Adjusting the layout of L2 and L3 categories */
.custom-megamenu-revamp .row.custom_made {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  height: 100%;
  top: -6%;
  position: relative; }

/* Ensuring that the left menu content (L2 categories) stretches fully */
.custom-megamenu-revamp .menu_left {
  display: -ms-flexbox;
  display: flex;
  margin: 0 1.7rem;
  -ms-flex-positive: 1;
      flex-grow: 1;
  gap: 1%;
  -ms-flex-pack: start;
      justify-content: flex-start;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-right: 1rem;
  width: 100%;
  margin-top: 2rem;
  scrollbar-width: auto;
  /* Default width */
  scrollbar-color: #ccc #f1f1f1;
  /* Thumb and track color */ }

/* WebKit-based browsers (Chrome, Edge, Safari) */
.custom-megamenu-revamp .menu_left::-webkit-scrollbar {
  height: 20px;
  /* Height for horizontal scrollbars */ }

/* Optional: Fade scrollbar completely when idle */
.custom-megamenu-revamp .menu_left {
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch; }

/* Scrollbar hidden for idle states */
.menu_left::-webkit-scrollbar {
  display: none !important; }

/* Styling the scrollbar track */
.custom-megamenu-revamp .menu_left::-webkit-scrollbar-track {
  background: #f1f1f1;
  /* Light gray background */
  border-radius: 10px; }

/* Styling the scrollbar thumb */
.custom-megamenu-revamp .menu_left::-webkit-scrollbar-thumb {
  background: #888;
  /* Darker gray for the thumb */
  border-radius: 10px; }

/* Hover effect for the thumb */
.custom-megamenu-revamp .menu_left::-webkit-scrollbar-thumb:hover {
  background: #555;
  /* Darker shade on hover */ }

/* Adjusting individual category item container */
.custom-megamenu-revamp .mega-menu-role-custom {
  margin-bottom: 1rem;
  -ms-flex-negative: 0;
      flex-shrink: 0; }

/* Remove scrollbar from the container itself but allow internal scrolling in content */
.custom-megamenu-revamp::-webkit-scrollbar {
  display: none; }

/* Optional: Styling for the L3 level categories */
.custom-megamenu-revamp .menu_link {
  margin-left: 1rem; }

/* Mega Menu - Custom Classes */
.custom-l2-category {
  position: relative; }

.custom-l2-hover {
  display: inline-block;
  padding: 1rem;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 0rem !important;
  text-transform: uppercase !important;
  text-align: center;
  margin: 2rem 0rem !important;
  text-decoration: none; }

/* Hover effect for L2 categories */
.custom-l2-hover:hover {
  text-decoration: none; }

/* L3 Categories Wrapper */
.custom-l3-category-wrapper {
  display: none !important;
  position: fixed !important;
  left: 2.7rem !important;
  top: 6rem;
  width: 44rem;
  /* Full width */
  height: 100%;
  background-color: #fff !important;
  padding: 1rem !important;
  z-index: 999 !important; }

/* L3 Categories - position in left-most corner */
.custom-l3-category {
  padding: 6px;
  font-size: 14px;
  color: #333;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-left: 0px !important; }

/* Show L3 categories on hovering L2 */
.custom-l2-category:hover .custom-l3-category-wrapper {
  display: block !important; }

/* Style for individual L3 categories */
.custom-l3-category:hover {
  border-left: 2px solid #0099ff; }

/* Custom styling for L2 categories that have no subcategories */
.custom-l2-category-no-sub .custom-l2-hover {
  color: #0099ff;
  /* Blue color */ }

/* Add some spacing between L3 category items */
.custom-l3-category + .custom-l3-category {
  margin-top: 6px; }

.js-spanl1-desktop {
  padding: 4px 22px 4px 22px !important; }

/* Optional: Styling for when the menu items are in active state */
.js-spanl1-desktop.active {
  padding: 4px 22px 4px 22px !important;
  border: 1px solid #0099ff !important;
  transition: border 0.6s ease, background-color 0.6s ease, color 0.6s ease;
  /* Smooth transition for border, background, and color */ }

/* Show the first L3 category by default when hovering over L1 */
.custom-nav-megamenu:hover .custom-l2-category:first-child .custom-l3-category-wrapper {
  display: block !important; }

.custom-l2-category.active .custom-l3-category-wrapper {
  display: block !important;
  /* Ensure the L3 wrapper stays visible */
  z-index: 999; }

@media (max-width: 768px) {
  .mbl-custom-suggbox {
    top: 8rem; }
  .customsearch-box {
    margin: 0; } }

/* Mega container for all categories */
.mega-container-xyz {
  width: 100%;
  padding: 3px 17px;
  background-color: #ffffff;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
      justify-content: center;
  overflow-x: auto; }

/* Category list UL */
.category-list-ul-abc {
  list-style-type: none;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  padding: 0;
  margin: 0; }

/* Each category item */
/* Link for each category */
.category-link-abc {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  color: #333;
  font-weight: bold;
  padding: 2px 10px;
  border-radius: 5px;
  display: inline-block; }

/* Mobile-specific layout */
@media (max-width: 768px) {
  .mega-container-xyz {
    -ms-flex-direction: column;
        flex-direction: column; }
  .category-list-ul-mob {
    -ms-flex-direction: row;
        flex-direction: row; }
  .category-item-unique {
    margin-bottom: 10px; }
  .category-link-mob {
    text-align: center;
    font-size: 12px !important; } }

/* Horizontal layout for first category */
.category-list-ul-abc > li:first-child {
  display: inline-block; }

.mega-container-xyz {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%; }

/* Hide the horizontal scrollbar */
.mega-container-xyz::-webkit-scrollbar {
  display: none; }

/* Default style for L2 categories (hidden by default) */
/* Ensure the L2 container is initially hidden */
.l2-categories-container-xyz {
  display: none;
  position: absolute;
  overflow-x: auto;
  overflow-y: hidden;
  top: 6rem;
  left: 0;
  width: 100%;
  background-color: white;
  z-index: 1000;
  -ms-flex-direction: row;
      flex-direction: row;
  -ms-flex-pack: start;
      justify-content: flex-start;
  gap: 10px;
  padding: 10px 18px; }

/* L2 category list to align items in a row */
.category-list-l2-abc {
  list-style: none;
  display: -ms-flexbox;
  display: flex;
  margin: 0;
  padding: 0; }

/* Individual L2 category item */
.category-item-l2-xyz {
  -ms-flex: none;
      flex: none; }

/* When L2 categories are shown */
.l2-categories-shown-abc {
  display: block; }

/* L2 category link styling */
.category-link-l2-abc {
  text-decoration: none;
  height: 100vh;
  font-family: 'Montserrat-SemiBold';
  text-transform: uppercase;
  color: #007bff;
  font-size: 12px;
  padding: 5px 0px;
  background-color: white;
  border-radius: 4px;
  transition: background-color 0.3s ease; }

.js-span-l2 {
  padding: 5px 15px;
  color: #007bff !important; }

/* Active L2 Link Styling */
.js-span-l2.active {
  border: 1px solid #007bff !important;
  padding: 5px 15px !important;
  color: #007bff !important;
  border-bottom: white; }

/* Style for the L1 categories */
.category-link-abc {
  font-size: 16px;
  text-decoration: none !important;
  font-family: 'Montserrat-SemiBold';
  text-transform: uppercase;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 2px;
  display: inline-block;
  cursor: pointer; }

/* Style for L1 category items */
.category-item-xyz {
  list-style-type: none; }

/* Mobile layout adjustments */
@media (max-width: 768px) {
  .mega-container-xyz {
    -ms-flex-direction: column;
        flex-direction: column; }
  .navbar .logo {
    margin-left: 5rem !important; }
  .navbar-icons {
    -ms-flex: 0 0 auto;
        flex: 0 0 auto;
    display: -ms-flexbox;
    display: flex;
    gap: 6px !important; }
  /* Display L1 categories in row on mobile */
  .category-list-ul-mob {
    -ms-flex-direction: row;
        flex-direction: row;
    -ms-flex-pack: start;
        justify-content: flex-start;
    gap: 23px; }
  .category-item-xyz {
    margin-bottom: 10px; } }

/* When shown */
.l2-categories-shown-abc {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: row;
      flex-direction: row; }

/* L3 Container */
.l3-categories-container-xyz {
  position: absolute;
  top: 3rem;
  left: -3rem;
  width: 250px;
  height: 100vh;
  overflow-y: auto;
  background-color: #fff;
  z-index: 1000;
  display: none;
  -ms-flex-direction: column;
      flex-direction: column;
  padding: 10px; }

/* L3 Links Styling */
.l3-categories-container-xyz .category-link-l3-abc {
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  font-family: 'Montserrat-Regular';
  text-transform: uppercase; }

.l3-categories-container-xyz .category-link-l3-abc:hover {
  background-color: #f5f5f5;
  color: #000; }

/* Active styles for L1 links */
.category-link-abc.active {
  background-color: white;
  color: #333; }

/* Active styles for L2 links */
.category-link-l2-abc.active {
  background-color: white;
  color: #f5f5f5; }

/* Ensure subcategory containers are visible when active */
.l2-categories-container-xyz.active,
.l3-categories-container-xyz.active {
  display: -ms-flexbox;
  display: flex; }

/* Initial state of the underline for .category-link-abc */
.category-link-abc {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  transition: all 0.3s ease; }

.category-link-abc::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0.5px;
  /* Height of the underline */
  background-color: grey;
  /* Color of the underline */
  transition: width 0.5s ease;
  /* Smooth transition */ }

.category-link-abc.active::after {
  width: 100%;
  /* Full width when active */ }

.category-list-l3-abc {
  position: fixed; }

.mobile-navbar {
  background-color: white;
  border-bottom: 1px solid #eaeaea;
  padding: 10px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: justify;
      justify-content: space-between;
  -ms-flex-align: center;
      align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000; }

.navbar-container {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
  width: 100%; }

.navbar-hamburger {
  -ms-flex: 0 0 auto;
      flex: 0 0 auto;
  margin-right: 10px; }

.navbar-logo {
  -ms-flex: 1;
      flex: 1;
  text-align: center; }

.navbar-logo img {
  max-height: 40px; }

.navbar-icons {
  -ms-flex: 0 0 auto;
      flex: 0 0 auto;
  display: -ms-flexbox;
  display: flex;
  gap: 15px; }

.navbar-icons a {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
  -ms-flex-pack: center;
      justify-content: center; }

.navbar-icons svg {
  width: 24px;
  height: 24px; }

.navbar-item.hamburger-icon {
  margin-right: 1rem;
  /* Adjust as needed */ }

.navbar-item.logo img {
  width: 61px;
  /* Keep the logo size */
  height: 25px;
  margin-left: -0.5rem;
  /* Move the logo closer to the hamburger */ }

.navbar-item.logo {
  margin-left: 5px; }

.navbar .logo {
  margin-left: -10px; }

.search-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  -ms-flex-pack: center;
      justify-content: center;
  -ms-flex-align: center;
      align-items: center;
  z-index: 1000; }

.search-popup.active {
  display: -ms-flexbox;
  display: flex; }

.popup-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  width: 100%;
  max-width: 400px; }

.close-popup {
  background: none;
  border: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  width: 20px;
  height: 20px;
  padding: 0; }

.close-popup svg {
  width: 16px;
  height: 16px; }

input:-ms-input-placeholder {
  font-size: 14px;
  color: #888;
  font-family: Arial, sans-serif; }

input::placeholder {
  font-size: 14px;
  color: #888;
  font-family: Arial, sans-serif; }

.search-field {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc; }

.search-submit {
  padding: 0.5rem 1rem;
  background-color: #000;
  color: #fff;
  border: none;
  cursor: pointer; }

.mega-menu-role-custom.active {
  background-color: #ffffff00; }

.js-spanl1-desktop.active {
  background: white; }

.l2-categories-container-xyz.active {
  background: transparent; }

.l3-categories-container-xyz.active {
  background: transparent; }

.category-list-l2-abc span {
  background: transparent; }

