#megaMenuPageOverlay{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  top:0;
  background:rgba(0,0,0,.55);
  opacity:0;
  pointer-events:none;
  transition:opacity .15s ease;
}

#megaMenuPageOverlay.is-open{
  opacity:1;
  pointer-events:auto;
}

.ys-mega-menu{
  border-radius:6px !important;
  box-shadow:0 18px 50px rgba(0,0,0,.28) !important;
  background:#fff;
  max-height:var(--ys-mega-maxh, 660px) !important;
}

.ys-mega-menu .menu-column{
  max-height:var(--ys-mega-maxh, 660px) !important;
  overflow-y:auto;
}

.ys-mega-menu .m3-column{
  max-height:var(--ys-mega-maxh, 660px) !important;
  overflow-y:auto;
}

.ys-mega-menu #mega-child-col{
  align-content:flex-start;
}

.ys-mega-menu #mega-child-col > li{
  width:33.333% !important;
  flex:0 0 33.333% !important;
  max-width:33.333% !important;
  margin-bottom:14px !important;
  padding:0 8px;
}

.ys-mega-menu #mega-child-col li > a{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}

.ys-mega-thumb{
  width:130px;
  height:98px;
  border-radius:6px;
  overflow:hidden;
  position:relative;
  background:rgba(0,0,0,.06);
}

.ys-mega-thumb::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.45) 45%, rgba(255,255,255,0) 100%);
  transform:translateX(-120%);
  animation:ysMegaShimmer 1.05s ease-in-out infinite;
}

.ys-mega-thumb.is-loaded::after{
  display:none;
}

@keyframes ysMegaShimmer{
  0%{ transform:translateX(-120%); }
  100%{ transform:translateX(120%); }
}

.ys-mega-thumb img.img-category-menu{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
  opacity:0;
  transition:opacity .16s ease;
  border-radius:6px !important;
}

.ys-mega-thumb.is-loaded img.img-category-menu{
  opacity:1;
}

@media (max-width: 768px){
  .ys-mega-menu #mega-child-col > li{
    width:50% !important;
    flex:0 0 50% !important;
    max-width:50% !important;
  }
  .ys-mega-thumb{
    width:140px;
    height:105px;
  }
}

@media (max-width: 576px){
  .ys-mega-menu #mega-child-col > li{
    width:100% !important;
    flex:0 0 100% !important;
    max-width:100% !important;
  }
  .ys-mega-thumb{
    width:100%;
    height:160px;
  }
}

.menu-column.m3-column ul li:hover{
  background-color: transparent !important;
}

.menu-column.m3-column #mega-child-col:hover .ys-mega-thumb img{
  opacity:.45;
  transition:opacity .18s ease, transform .18s ease, filter .18s ease;
}

.menu-column.m3-column #mega-child-col li:hover .ys-mega-thumb img{
  opacity:1;
  transform:scale(1.06);
  filter:brightness(1.05) contrast(1.03);
}
