.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  color: #111111;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  box-sizing: border-box;
  /* padding-top: 10px;
	padding-bottom: 10px; */
}

.header-top-bar {
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.header-top-bar__shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.55rem;
}

.header-top-bar__text,
.header-top-bar__links a,
.header-top-bar__socials a {
  margin: 0;
  color: #111111;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-top-bar__meta,
.header-top-bar__links,
.header-top-bar__socials {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-top-bar__links a + a {
  position: relative;
  padding-left: 1rem;
}

.header-top-bar__links a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 0.8rem;
  background: rgba(17, 17, 17, 0.18);
  transform: translateY(-50%);
}

.header-top-bar__socials .social-icon-link {
  display: inline-flex;
  width: 1.65rem;
  height: 1.65rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
}

.header-top-bar__socials .social-icon-link:hover,
.header-top-bar__socials .social-icon-link:focus-visible {
  border-color: rgba(var(--color-primary-rgb), 0.32);
  color: var(--color-primary);
  opacity: 1;
}

.header-top-bar__socials .social-icon-link svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  gap: 1rem;
}

.header-logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  text-align: center;
}

.header-logo a {
  color: #111111;
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 800;
}

.header-logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-logo .custom-logo-link img {
  display: block;
  width: auto;
  max-width: 210px;
  max-height: 34px;
}

.menu-btn {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  z-index: 110;
}

.menu-btn span {
  position: absolute;
  left: 0;
  width: 28px;
  height: 1px;
  background: currentColor;
  transform-origin: center;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease,
    top 0.28s ease;
}

.menu-btn span:first-child {
  top: 9px;
}

.menu-btn span:last-child {
  top: 18px;
}

.menu-btn.is-open span:first-child {
  top: 13px;
  transform: rotate(45deg);
}

.menu-btn.is-open span:last-child {
  top: 13px;
  transform: rotate(-45deg);
}

.search-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}

.search-btn svg {
  width: 22px;
  height: 22px;
}

.language-switcher {
  position: relative;
  display: inline-block;
}

.language-switcher summary {
  display: inline-flex;
  min-width: 2.4rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  list-style: none;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher[open] summary {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.language-switcher__menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 120;
  display: grid;
  min-width: 9rem;
  padding: 0.45rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(17, 17, 17, 0.14);
}

.language-switcher__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.62rem 0.72rem;
  border-radius: 10px;
  color: #111111;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.language-switcher__menu a small {
  color: rgba(17, 17, 17, 0.58);
  font-size: 0.68rem;
  font-weight: 700;
}

.language-switcher__menu a[aria-current="true"] {
  background: #111111;
  color: #ffffff;
}

.language-switcher__menu a[aria-current="true"] small {
  color: rgba(255, 255, 255, 0.72);
}

.language-switcher--desktop {
  display: none;
}

.language-switcher--mobile {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  padding: 0 1rem 1.5rem;
}

.language-switcher--mobile a {
  display: inline-flex;
  min-width: 6rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #ffffff;
  color: #111111;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.language-switcher--mobile a[aria-current="true"] {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.header-search {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 1rem 0 1.25rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  background: #ffffff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-16px);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    visibility 220ms ease;
}

.header-search.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.header-search__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-search__form {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.75rem;
}

.header-search__input {
  width: 100%;
  min-height: 3.4rem;
  padding: 0 1rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #ffffff;
  color: #111111;
  font-size: 0.98rem;
}

.header-search__submit,
.header-search__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0 1.15rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #111111;
  color: #ffffff;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-search__close {
  min-width: 3.4rem;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.cart-btn svg {
  width: 24px;
  height: 24px;
}

.cart-btn__count {
  position: absolute;
  top: -7px;
  right: -9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 0.65rem;
  line-height: 1;
}

.header-nav {
  display: none;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: calc(100vh - 72px);
  background: #ffffff;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-24px);
  transition:
    opacity 0.34s ease,
    transform 0.34s ease,
    visibility 0.34s ease;
  z-index: 90;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.close-menu {
  display: none;
}

.mobile-nav {
  padding: 1rem 1.5rem 1.75rem;
}

.mobile-menu__cart {
  padding: 0 1.5rem 1.5rem;
}

.cart-btn--mobile {
  justify-content: space-between;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
}

.cart-btn--mobile .cart-btn__count {
  position: static;
}

.mobile-menu-list,
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu .menu-item,
.mobile-menu-list .menu-item,
.nav-menu .page_item,
.mobile-menu-list .page_item {
  position: relative;
}

.nav-menu .sub-menu,
.mobile-menu-list .sub-menu,
.nav-menu .children,
.mobile-menu-list .children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu-list {
  text-align: center;
}

.mobile-menu-list li {
  margin: 1.25rem 0;
}

.mobile-menu-list a {
  color: #111111;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-menu-list .menu-item-has-children > a,
.mobile-menu-list .page_item_has_children > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mobile-menu-list .menu-item-has-children > a::after,
.mobile-menu-list .page_item_has_children > a::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.1rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(135deg);
  transition: transform 180ms ease;
}

.mobile-menu-list .sub-menu,
.mobile-menu-list .children {
  display: none;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.mobile-menu-list .menu-item-has-children.is-open > .sub-menu,
.mobile-menu-list .page_item_has_children.is-open > .children {
  display: grid;
}

.mobile-menu-list .menu-item-has-children.is-open > a::after,
.mobile-menu-list .page_item_has_children.is-open > a::after {
  transform: rotate(-135deg);
}

.mobile-menu-list .sub-menu li,
.mobile-menu-list .children li {
  margin: 0;
}

.mobile-menu-list .sub-menu a,
.mobile-menu-list .children a {
  color: rgba(17, 17, 17, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

body.menu-open {
  overflow: hidden;
}

body.search-open {
  overflow: hidden;
}

@media (min-width: 60em) {
  .menu-btn {
    display: none;
  }

  .header {
    padding-left: max(2rem, (100vw - 1440px) / 2);
    padding-right: max(2rem, (100vw - 1440px) / 2);
  }

  .header-container {
    min-height: 59px;
    padding: 0;
  }

  .header-logo {
    flex: 0 0 auto;
    padding: 0;
  }

  .header-logo a {
    font-size: 1.25rem;
  }

  .header-logo .custom-logo-link img {
    max-width: 260px;
    max-height: 40px;
  }

  .header-nav {
    display: block;
  }

  .nav-container {
    gap: 1.75rem;
  }

  .language-switcher--desktop {
    display: inline-block;
  }

  .nav-menu {
    display: flex;
    align-items: center;
    gap: 1.875rem;
  }

  .nav-menu > .menu-item > a,
  .nav-menu > .page_item > a {
    color: #111111;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 400;
  }

  .nav-menu .menu-item-has-children > a,
  .nav-menu .page_item_has_children > a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }

  .nav-menu .menu-item-has-children > a::after,
  .nav-menu .page_item_has_children > a::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    margin-top: -0.15rem;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
  }

  .nav-menu .sub-menu,
  .nav-menu .children {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    z-index: 20;
    display: grid;
    gap: 0.75rem;
    min-width: 14rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 0.75rem);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
    pointer-events: none;
  }

  .nav-menu .menu-item:hover > .sub-menu,
  .nav-menu .menu-item:focus-within > .sub-menu,
  .nav-menu .page_item:hover > .children,
  .nav-menu .page_item:focus-within > .children {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
  }

  .nav-menu .sub-menu a,
  .nav-menu .children a {
    display: block;
    color: #111;
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobile-menu {
    display: none !important;
  }

  .close-menu {
    display: none;
  }
}

@media (max-width: 59.99em) {
  .header-search {
    padding: 0.85rem 0 1rem;
  }

  .header-search__bar,
  .header-search__form {
    flex-direction: column;
    align-items: stretch;
  }

  .header-search__submit,
  .header-search__close {
    min-height: 3rem;
  }

  .header-top-bar__shell {
    /* padding-block: 0.65rem; */
    text-align: center;
  }

  .header-top-bar__links,
  .header-top-bar__socials {
    justify-content: center;
    /* flex-wrap: wrap; */
  }
}
