.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: 1rem;
}

.header-top-bar__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-top-bar__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
}

.header-top-bar__social-icon svg {
  width: 100%;
  height: 100%;
}

.header-language-switcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

.header-language-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: none;
  color: #111111;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-language-switcher__toggle::after {
  content: "";
  width: 0.36rem;
  height: 0.36rem;
  margin-top: -0.08rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.22s ease;
}

.header-language-switcher.is-open .header-language-switcher__toggle::after {
  transform: rotate(225deg);
}

.header-language-switcher__menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 25;
  display: grid;
  gap: 0.35rem;
  min-width: 4rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(17, 17, 17, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-0.25rem);
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.22s ease;
}

.header-language-switcher.is-open .header-language-switcher__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.header-language-switcher__link {
  color: #111111;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
}

.header-language-switcher__link.is-active {
  opacity: 1;
}

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

.header-top-bar__links a + a::before,
.header-top-bar__socials 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-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;
}

.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;
}

.mobile-menu__languages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0 1.5rem 1.5rem;
}

.mobile-menu__language-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  color: #111111;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-menu__language-link.is-active {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.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 {
  position: relative;
}

.nav-menu .sub-menu,
.mobile-menu-list .sub-menu {
  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 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mobile-menu-list .menu-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 {
  display: none;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

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

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

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

.mobile-menu-list .sub-menu 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;
  }

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

  .nav-menu > .menu-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 {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }

  .nav-menu .menu-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 {
    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 {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
  }

  .nav-menu .sub-menu 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__meta {
    flex-wrap: wrap;
    justify-content: center;
  }

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

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