.header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  /* background-color: rgba(255, 255, 255, 0.7); */
  background-color: #fff;
  transition: all 0.4s ease-in-out;
  box-shadow: rgb(0 0 0 / 4%) 0px 2px 2px -1px, rgb(0 0 0 / 4%) 0px 4px 5px 0px,
    rgb(0 0 0 / 4%) 0px 1px 6px 0px;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 1);
}

.header-wrapper {
  max-width: var(--max-content-width);
  margin: 0 auto;
  background: transparent;
}

.header-top {
  display: flex;
  align-items: center;
  max-height: 64px;
  height: 64px;
  overflow-y: hidden;
}

.header-top .site-logo .image-logo {
  height: 32px;
  margin: 8px 0;
  min-width: 260px;
}

.header-top .spacer {
  flex-grow: 1;
}

.nav-area {
  display: flex;
}

ul.menu {
  display: flex;
  align-items: center;
  gap: 0 24px;
}

ul.menu a {
  text-transform: uppercase;
  position: relative;
  padding: 20px 12px;
  display: block;
  text-wrap: nowrap;
}

ul.menu > li > ul.sub-menu {
  position: absolute;
  top: 64px;
  background-color: #fff;
  min-width: 100px;
  height: 0;
  transform: scale(0);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

ul.menu li.menu-item-has-children:hover > ul.sub-menu {
  height: auto;
  transform: scale(1);
  opacity: 1;
}

ul.menu > li > ul.sub-menu a {
  padding: 12px;
}

.nav-account {
  height: 100%;
  margin-left: 12px;
}

.nav-account ul {
  display: flex;
  gap: 0 1px;
  height: 100%;
}

.nav-account ul li {
  background-color: antiquewhite;
}

.nav-account ul li a {
  padding: 20px;
  display: flex;
  align-items: center;
}

.hamburger-menu {
  height: 100%;
  width: 60px;
  aspect-ratio: 1 / 1;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 8px;
  overflow: hidden;
  display: none;
}

.hamburger-menu > span {
  display: block;
  background-color: #000;
  height: 1px;
  margin: 4px;
  transform-origin: center;
  transition: all 0.3s ease-in-out;
}

.hamburger-menu span.menu-line1 {
  width: 90%;
}

.hamburger-menu span.menu-line2 {
  width: 70%;
}

.header.open .hamburger-menu span.menu-line1 {
  width: 80%;
  transform: rotate(45deg) translate(4px, 4px);
}

.header.open .hamburger-menu span.menu-line2 {
  width: 80%;
  transform: rotate(-45deg) translate(2px, -3px);
}

@media (max-width: 1120px) {
  .header-top {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .hamburger-menu {
    display: flex;
  }

  .header-top {
    flex-direction: row;
  }

  .nav {
    display: none;
  }

  .nav-account {
    display: none;
  }

  .header .site-logo {
    padding-left: 16px;
  }

  .header.open {
    background-color: #fff;
  }

  .header.open .nav {
    position: absolute;
    top: 60px;
    display: flex;
    width: 100%;
    height: calc(100svh - 60px);
    background-color: #fff;
  }

  .header.open .nav .menu {
    flex-direction: column;
    width: 100%;
  }

  .header.open .nav .menu li,
  .header.open .nav .menu li a {
    width: 100%;
  }

  ul.menu > li > ul.sub-menu {
    display: flex;
    position: relative;
    height: unset;
    top: 0;
    transform: scale(1);
    opacity: 1;
    flex-direction: column;
    padding-left: 16px;
  }
}
