/* 메가 메뉴 */
#mobileMenuButton {
  width: 46px;
  height: 46px;
  align-self: center;
  justify-self: flex-end;
  border: none;
  background: none;
  position: relative;
  z-index: 99998;
  cursor: pointer;
}
@media (min-width: 981px) {
  #mobileMenuButton {
    pointer-events: non;
    display: none;
  }
}
#mobileMenuButton span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background-color: #222;
  margin: 8px auto;
  transition: background-color 0.3s, transform 0.3s, height 0.3s, margin 0.3s;
}
.white-header #mobileMenuButton span {
  background-color: #fff;
}
.et-fixed-header #mobileMenuButton span {
  background-color: #222;
}
#mobileMenuButton span:first-child {
  background-color: var(--color-primary) !important;
}
.menu-opened .et-fixed-header #mobileMenuButton span,
.menu-opened #mobileMenuButton span {
  background-color: #fff !important;
}
#mobileMenuButton:hover span {
  animation: megaButton 0.6s 1;
}
#mobileMenuButton:hover span:nth-child(2) {
  animation-delay: 0.2s;
}
#mobileMenuButton:hover span:nth-child(3) {
  animation-delay: 0.4s;
}
.menu-opened #mobileMenuButton span {
  animation: none;
  margin: 0;
}
.menu-opened #mobileMenuButton span:nth-child(1) {
  /* transform: rotate(45deg) translateY(1px); */
  animation: megaButtonRotate1 0.3s 1 forwards;
  animation-delay: 0.3s;
}
.menu-opened #mobileMenuButton span:nth-child(2) {
  height: 0;
}
.menu-opened #mobileMenuButton span:nth-child(3) {
  /* transform: rotate(-45deg) translateY(-1px); */
  animation: megaButtonRotate2 0.3s 1 forwards;
  animation-delay: 0.3s;
}

@keyframes megaButton {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
@keyframes megaButtonRotate1 {
  0% {
    transform: rotate(0) translateY(0);
  }
  100% {
    transform: rotate(45deg) translateY(1px);
  }
}
@keyframes megaButtonRotate2 {
  0% {
    transform: rotate(0) translateY(0);
  }
  100% {
    transform: rotate(-45deg) translateY(-2px);
  }
}
/* 메가메뉴 */
#mobileMenu {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: calc(var(--wp-admin--admin-bar--height, 0px) + var(--h-header) + 24px) 0 24px;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(15px);
  z-index: 100;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  transition: clip-path 0.6s;
}

#mobileMenu .container {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 10%;
  height: auto;
  color: #fff;
}
#mobile-menu {
  font-size: clamp(20px, 1.8vw, 34px);
  line-height: 1;
}
#mobile-menu a {
  color: #fff;
}
#mobile-menu > li {
  display: flex;
  flex-direction: column;
  gap: 16px 10%;
  margin-bottom: 2em;
}
#mobile-menu > li > a {
  font-weight: 500;
  line-height: 1;
}
#mobile-menu .sub-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1em;
  padding-left: 16px;
}
#mobile-menu .sub-menu > li {
  height: 1em;
}
#mobile-menu .sub-menu > li > a {
  font-size: clamp(16px, 1.14vw, 22px);
  vertical-align: middle;
  transition: color 0.3s;
}
#mobile-menu .sub-menu > li:hover > a {
  color: var(--color-primary);
}

#mobile-menu > li.shop {
  margin-bottom: 0;
}
#mobile-menu > li.shop > a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 120px;
  line-height: 36px;
  background: var(--color-primary);
  padding: 0 10px !important;
  border: 1px solid var(--color-primary);
  border-radius: 80px;
  color: #fff !important;
  font-size: 16px;
}

@media (max-width: 980px) {
  .menu-opened #mobileMenu {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  #mobileMenu .container {
    grid-template-columns: 100%;
    gap: 40px;
  }
}
@media (max-width: 768px) {
}
