header {
  justify-content: space-between;
  padding-inline: max(12px, calc((100vw - 1120px) / 2));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.header-actions button {
  min-height: 42px;
  padding: 8px 11px;
}

.menu-toggle {
  min-width: 44px;
  font-size: 1.25rem;
  background: transparent;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, .66);
}

.main-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 21;
  display: flex;
  flex-direction: column;
  width: min(86vw, 340px);
  height: 100dvh;
  padding: 16px;
  border-left: 1px solid var(--line);
  background: #080d0b;
  box-shadow: -18px 0 45px rgba(0, 0, 0, .5);
  transform: translateX(105%);
  transition: transform .2s ease;
}

.main-menu.open {
  transform: translateX(0);
}

.main-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.main-menu-head button {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
}

.main-menu nav {
  display: grid;
  gap: 7px;
  width: 100%;
}

.main-menu nav button,
.main-menu-footer button {
  width: 100%;
  margin: 0;
  text-align: left;
  background: transparent;
}

.main-menu nav button.active {
  border-color: var(--accent);
  background: rgba(119, 214, 165, .12);
  color: var(--accent);
}

.main-menu-footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

body.main-menu-open {
  overflow: hidden;
}

@media (max-width: 420px) {
  header {
    flex-wrap: nowrap;
  }

  .brand span {
    font-size: .88rem;
    letter-spacing: .1em;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  #cart-button {
    font-size: 0;
  }

  #cart-button::first-letter,
  #cart-count {
    font-size: .9rem;
  }
}
