.nav-ul,
.cart-icon-label {
    text-transform: uppercase;
}
@media screen and (max-width: 960px) {
    .header .builder-item .item--inner[class*="button_base"],
    .header .builder-item .item--inner[class*="nav-icon"] {
        margin-left: 15px;
    }

    .menu-item-nav-search.floating .form-wrap {
        justify-content: center;
        align-items: center;
        display: flex;
    }

    .menu-item-nav-search.floating.active .nv-nav-search {
        height: 88px;
    }

    .header-main-inner .my-account-icon {
        margin-right: 0px;
    }
}
@media (min-width: 960px) {
    .builder-item--primary-menu {
        --activecolor: white;
        --hovercolor: white;
    }

    .menu-item-nav-search.minimal .nv-nav-search {
        background: transparent;
        box-shadow: none;
    }
    .item--inner .builder-item--header_cart_icon {
        margin-bottom: 3px;
    }
    .item--inner.builder-item--advanced_search_icon_1 {
        margin-bottom: 2.5px;
    }

    .header-menu-sidebar .nav-ul .sub-menu,
    .nav-ul li:hover > .sub-menu,
    .sub-menu.dropdown-open {
        background: rgba(10, 10, 10, 0.9);
    }

    .nav-ul .sub-menu .sub-menu {
        background: rgba(10, 10, 10, 0.9);
    }

    .site-header .header--row-inner {
        max-height: 100%;
        height: 100%;
    }

    .header-icon {
        color: #fff;
        font-size: 14px;
        line-height: 20px;
        cursor: pointer;
    }

    .header-div:hover .header-icon {
        color: #cbc7c2;
    }
    .cart-icon-wrapper .cart-icon-label {
        margin-right: 0;
        font-size: var(--fontsize, var(--bodyfontsize));
        letter-spacing: var(--bodyletterspacing);
        padding: 0 4px;
    }

    .menu-item-nav-cart {
        margin: 0 10px;
    }

    /* Centering my account */
    .header-div {
        justify-content: center;
        display: flex;
        align-items: center;
    }
}

/* ===== MAIN MENU ===== */
.meckeys-custom-submenu {
  background: #F9F9FB;
  position: relative;
  border: solid thin #929AB5CC;
  border-left: none;
  border-right: none;
  height:50px;
}

.meckeys-menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 10px 20px;
  padding-top: 5px;
  padding-bottom: 5px;
  justify-content: center;
}

.container {
  max-width: var(--meckeys-max-width);
  padding-left: 0;
  padding-right: 0;
}

.nv-contact-list {
  margin:0 10px;
}

.menu-item {
  position: relative;
}

.menu-title {
  display: block;
  padding: 10px 15px;
  font-weight: 500;
  color: #000000;
  text-decoration: none;
  cursor: pointer;
}
.mega-layout {
  height: 400px;
  box-shadow: 0 8px 20px hsla(0, 0%, 0%, 0.08);
}


.menu-title:hover {
  color: #fa7759;
}

/* ===== SUBMENU BASE ===== */
.submenu {
  display: flex;
  position: absolute;
  top: 100%;
  background: #f8f9fb;
  color: #000;
  padding: 20px;
  z-index: 999;
  border-top: 1px solid #eee;

  left: 50%;
  transform: translateX(-50%) translateY(15px); /* start slightly down */
  
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: 
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

.submenu.normal {
  flex-direction: column;
    /* left: 0; */
  transform: translateY(10px); /* remove horizontal centering */
  /* min-width: 180px; */
  width: max-content;
    /* padding: 10px 0; */
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  background: #fff;
  /* align-items: flex-start; */
}

.submenu.normal .submenu-item {
  /* padding: 8px 16px; */
  white-space: nowrap;
}

.submenu.normal .submenu-item:hover {
  background: #f3f4f6;
}

/* ===== MEGA MENU FIX ===== */
.menu-item.mega {
  position: static;
}

/* NEW LAYOUT */
.submenu.mega-layout {
  width: 100%;
  max-width: 100%;
  padding: 20px 40px;
  background: #f8f9fb;

  display: flex;
  /* gap: 40px; */
}

/* ===== LEFT SIDE ===== */
.mega-left {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* IMPORTANT FIX */
  column-gap: 5px;  /* 🔥 reduce side gap */
  row-gap: 35px;     /* 🔥 increase top-bottom gap */

  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;

  flex: 1;
}

/* ===== GROUP ===== */
.mega-group {
  min-width: 180px;
  flex: 1 1 180px;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ===== GROUP TITLE ===== */
.mega-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 5px;
  color: #000;
  text-transform: uppercase;
}

/* ===== RIGHT SIDE ===== */
.mega-right {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-shrink: 0;
  width: 50%;
}

/* ===== IMAGE ===== */
.mega-image {
  /* width: 360px; */
  flex:1;
  height: 350px;
  overflow: hidden; /* IMPORTANT */
  border-radius: 4px;
}

.mega-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* crop */
  object-position: center; /* keep center visible */
  display: block;
}

/* ===== SUBMENU ITEMS ===== */
.submenu-item {
  display: block;
  padding: 8px 0;
  color: #222;
  text-decoration: none;
  font-size: 14px;
}

.submenu-item:hover {
  color: #fa7759;
}

/* ===== HOVER LOGIC ===== */


.menu-item:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.submenu::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 0;
    right: 0;
    height: 30px;
}


@media (max-width: 1200px) {
  .mega-left {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (min-width: 1001px) {
  .hamburger-wrapper, .mobile-menu-container {
    display: none;
  }

  .dropdown-normal-row {
    flex-direction: row !important;
  }
}

@media (max-width: 1000px) {
  .meckeys-custom-submenu {
    display:none;
  }
}

/* ===== HAMBURGER ===== */
.hamburger-wrapper {
  background: #111;
  position: relative;
  padding: 12px 16px;
  color: #fff;
  font-size: 26px; /* 🔥 adjusted */
  cursor: pointer;
}

/* ===== MENU CONTAINER ===== */
.mobile-menu-container {
  position: fixed;
  top: 0;
  left: -100%;
  width: 90vw; /* 🔥 full width */
  height: 100vh;
  background: #fff;
  transition: left 0.3s ease;
  z-index: 9999;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-container.active {
  left: 0;
}

/* ===== CLOSE BUTTON ===== */
.mobile-close {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 16px 20px;
  font-size: 22px;
  text-align: right;
  font-weight: bold;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

/* ===== MAIN MENU ===== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 20px 30px;
}

/* ===== MAIN ITEM ===== */
.mobile-header {
  display: flex;
  justify-content: space-between; /* 🔥 important */
  align-items: center;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid #f1f1f1;
  cursor: pointer;
}

/* ===== ICON ===== */
.dropdown-icon {
  font-size: 18px;
  transition: transform 0.2s ease;
}

/* rotate icon */
.mobile-item.active > .mobile-header .dropdown-icon,
.mobile-group.active > .mobile-group-header .dropdown-icon {
  transform: rotate(45deg);
}

/* ===== SUBMENU ===== */
.mobile-submenu {
  display: none;
  padding: 10px 0 15px;
}

.mobile-item.active .mobile-submenu {
  display: block;
}

/* ===== GROUP ===== */
.mobile-group {
  margin-bottom: 10px;
}

.mobile-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  cursor: pointer;
}

/* ===== GROUP ITEMS ===== */
.mobile-group-content {
  display: none;
  padding-left: 10px;
  margin-top: 5px;
}

.mobile-group.active .mobile-group-content {
  display: block;
}

/* ===== LINKS ===== */
.submenu-item {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: #555;
  text-decoration: none;
}

.submenu-item:hover {
  color: #000;
}

/* ===== IMAGES ===== */
.mobile-images {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-images img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* ===== BODY LOCK ===== */
body.menu-open {
  overflow: hidden;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 9998;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* SEARCH BAR */

.search-field {
  width:420px;
}

.search-form .search-field {
  border-top-left-radius: .4rem;
  border-bottom-left-radius: .4rem;
  background: #E7E9EE;
  color: #000000;
  border: solid thin #929AB5;
  border-right: none;
  opacity: 1;
}

.search-form .search-submit {
  border-top-right-radius: .4rem;
  border-bottom-right-radius: .4rem;
  border-color: #929AB5;
  background: #E7E9EE;
  border: solid thin #929AB5;
  border-left: none;
}

.search-form svg {
  width: var(--formfieldfontsize);
  opacity: 1;
  height: auto;
  color:#000;
  fill:#000;
  font-size: 14px;
}

.neve-main {
  margin-top: 5rem;
}

.header-main {
  height: 72px !important;
}

.search-form {
  box-shadow: 0 4px 10px hsla(0, 0%, 0%, 0.1);
}