.ast-desktop-wrapper{
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
}

/*------hide 2nd button in search form------*/

.ast-desktop-wrapper button.search-submit{
  display: none;
}
.ast-desktop-wrapper .mobile-search-bar-wrapper{
  display: none;
}

.ast-desktop-wrapper nav.main-menu ul.my-mega-menu{
  position: static;
  display: flex;
  margin: 0;
  gap: 1.5rem;
  flex-direction: row;
  list-style: none;
  font-size: clamp(0.8rem, calc(0.8rem + 1vw), 1.25rem);
}

/*------animate parent li glass fill----------------*/
.ast-desktop-wrapper 
nav.main-menu 
ul.my-mega-menu > li:hover {
  background-color:rgba(85, 172, 238, 0.85);
  transition:all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}




/* --------animate children li glass fill-------------*/
.ast-desktop-wrapper nav.main-menu ul.my-mega-menu li ul li{
  position: relative;
  overflow: hidden;
}

.ast-desktop-wrapper nav.main-menu ul.my-mega-menu li a{
  position: relative;
  z-index: 3;;
}


.ast-desktop-wrapper nav.main-menu ul.my-mega-menu ul.sub-menu li::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(
    to top,
    rgba(85, 172, 238, 0.85),
    rgba(85, 172, 238, 0.55)
  );
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}


.ast-desktop-wrapper nav.main-menu ul.my-mega-menu ul.sub-menu li:hover::before {
  height: 100%;
}

/*------------position Astra Cart before the form wirder methos-----*/

.ast-header-woo-cart-wrapper {
    order: 2; /* before search */
}

.search-form,
.ast-search-box {
    order: 3;
}

.main-menu {
    order: 4;
}

/*-----styling desktop menu with hover effect on destktop--------*/
.ast-desktop-wrapper nav.main-menu ul.my-mega-menu ul.sub-menu{
  position: absolute;
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  background-color: #fff;
  margin: 0;
  left: 0;
  width: 100%;
  visibility: hidden;
  opacity: 0;
  transition: all 350ms ease;
  list-style: none;
}

/*------style submenu on hover to appear-------*/
.ast-desktop-wrapper  nav.main-menu ul.my-mega-menu li:hover ul.sub-menu {
  visibility: visible;
  opacity: 1;
}

/*-------------style link to have some paddings-----------*/
.ast-desktop-wrapper nav.main-menu ul.my-mega-menu ul.sub-menu a{
    display: flex;
    font-size: clamp(0.8rem, calc(0.8rem + 1vw), 1.25rem);
    height: 3rem;
    padding: 5px;
    justify-content: flex-start;
    align-items: center;
}

/*---------styling img in menu-----*/
nav.main-menu li img{
  width: 30px;
}

/*----hide + toggle button in desktop------*/
.ast-desktop-wrapper .mtnmm-mobile-li-toggle-button {
  display: none;
}

/* style my mobile menu*/

.my-mobile-menu {
    transform: translate(100%,0);
    position: fixed;
    top: 0;
    width: 100%; 
    height: 100%;
    background: #fff;
    transition: transform 0.3s ease;
    z-index: 9999;
}

body.admin-bar .my-mobile-menu {
    top: 32px;
    height: calc(100dvh - 32px);
}

.my-mobile-menu.open {
    transform: translate(0%,0);
}

.my-mobile-menu ul, .my-mobile-nav ul{
  margin: 0;
  background-color: #fff;
  list-style: none;
}

.my-mobile-menu .mtnmm-open-mobile-menu-closing-btn{
  padding: 5px;
  display: flex;
  justify-content: end;
}
.my-mobile-menu .mtnmm-open-mobile-menu-closing-btn span{
  display: grid;
  align-content: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid black;
  border-radius: 50%;
}


/* ===== MOBILE STYLES ===== */
@media (max-width: 992px) {

  .ast-mobile-header-wrap input[type="submit"].search-submit{
    display: none;
  }

  .ast-mobile-header-wrap .mobile-search-bar-wrapper{
    display: flex;
    justify-content: center;
  }

  .my-mobile-nav li ul.sub-menu {
    position: static;
    box-shadow: none;
    padding: 10px 0;
    display: none;
    opacity: 1;
    visibility: visible;
  }

  .my-mobile-nav li.open-menu-lists ul.sub-menu {
    display: block;
  }

  .my-mobile-nav li{
    padding-left: 5px;
    line-height: 2rem;
  }

  .my-mobile-nav .mtnmm-mobile-li-toggle-button{
    z-index: 999999;
    border: none;
    padding-left: 90% !important;
    width: 100%;
    margin: 0;
    padding: 0;
    position: absolute;
    left: 0;
    background-color: transparent;
    line-height: 2rem;
    color: black;
  }

  body.admin-bar .my-mobile-menu {
      top: 46px;
      height: calc(100dvh - 46px);
  }

}
