.openstore-nav-group {
  position: relative;
  display: flex;
  height: 44px;
  align-items: center;
}

.openstore-nav-link[aria-current="page"],
.mobile-openstore-link[aria-current="page"] {
  color: var(--blue);
  font-weight: 600;
}

.openstore-menu {
  position: static;
}

.openstore-menu > summary {
  list-style: none;
}

.openstore-menu > summary::-webkit-details-marker {
  display: none;
}

.openstore-menu-button {
  display: grid;
  width: 28px;
  min-height: 44px;
  border: 0;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
}

.openstore-menu-button::after {
  display: block;
  width: 6px;
  height: 6px;
  transform: translateY(-2px) rotate(45deg);
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transition: transform 160ms ease;
}

.openstore-menu[open] > .openstore-menu-button::after {
  transform: translateY(2px) rotate(225deg);
}

.openstore-menu-panel {
  position: absolute;
  z-index: 60;
  top: 40px;
  left: 0;
  display: grid;
  width: 292px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.99);
  padding: 7px;
  box-shadow: 0 14px 40px rgba(29, 29, 31, 0.13);
}

.openstore-menu:not([open]) .openstore-menu-panel {
  display: none;
}

.openstore-menu-item {
  display: grid !important;
  min-height: 54px !important;
  align-content: center;
  border-radius: 9px;
  padding: 8px 10px;
  white-space: normal !important;
}

.openstore-menu-item:hover,
.openstore-menu-item:focus-visible {
  background: var(--soft);
}

.openstore-menu-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.openstore-menu-supporting {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.new-indicator {
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  border: 1px solid #efb5ad;
  border-radius: 999px;
  color: var(--text-orange);
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.mobile-openstore-section {
  position: relative;
}

.mobile-openstore-menu-button,
.mobile-openstore-products {
  display: none;
}

@media (min-width: 901px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .site-nav {
    justify-self: end;
  }
}

@media (max-width: 900px) {
  .site-header {
    display: grid;
    width: calc(100% - 44px);
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  .site-nav,
  .nav-action {
    display: none;
  }

  .mobile-menu {
    display: block;
    justify-self: end;
  }

  .mobile-menu > summary {
    list-style: none;
  }

  .mobile-menu > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    min-width: 52px;
    min-height: 44px;
    align-items: center;
    justify-content: flex-end;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }

  .mobile-menu-panel {
    position: fixed;
    z-index: 49;
    top: 44px;
    right: 0;
    left: 0;
    display: grid;
    max-height: calc(100dvh - 44px);
    overflow-y: auto;
    padding: 8px 22px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.99);
  }

  .mobile-menu:not([open]) .mobile-menu-panel {
    display: none;
  }

  .mobile-menu-panel > a,
  .mobile-openstore-link {
    display: flex;
    min-height: 48px;
    align-items: center;
    border-bottom: 1px solid var(--line-soft);
    font-size: 16px;
    font-weight: 400;
  }

  .mobile-openstore-menu {
    position: static;
  }

  .mobile-openstore-menu-button {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    width: 48px;
    min-height: 48px;
    place-items: center;
    color: var(--muted);
    cursor: pointer;
  }

  .mobile-openstore-menu-button::after {
    display: block;
    width: 8px;
    height: 8px;
    transform: translateY(-2px) rotate(45deg);
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    content: "";
  }

  .mobile-openstore-menu[open] > .mobile-openstore-menu-button::after {
    transform: translateY(2px) rotate(225deg);
  }

  .mobile-openstore-products {
    display: grid;
    padding: 8px 0 12px 16px;
    border-bottom: 1px solid var(--line-soft);
  }

  .mobile-openstore-menu:not([open]) .mobile-openstore-products {
    display: none;
  }

  .mobile-openstore-products .openstore-menu-item {
    min-height: 58px !important;
    border-radius: 0;
    padding-inline: 12px;
  }

  .mobile-openstore-products .openstore-menu-title {
    font-size: 14px;
  }

  .mobile-openstore-products .openstore-menu-supporting {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .openstore-menu-button::after {
    transition: none;
  }
}
