.shop-header {
  display: block;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.shop-header-main,
.shop-header-nav {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-inline: clamp(14px, 4vw, 52px);
}

.shop-header-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 3vw, 42px);
  padding-block: 14px;
}

.shop-header-brand img {
  display: block;
  width: clamp(118px, 14vw, 188px);
  height: auto;
}

.shop-header-search {
  display: flex;
  width: 100%;
  max-width: 630px;
  justify-self: center;
}

.shop-header-search input[type="search"] {
  min-width: 0;
  height: 44px;
  appearance: none;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: var(--wash);
}

.shop-header-search .primary {
  flex-shrink: 0;
  height: 44px;
  border-radius: 0 6px 6px 0;
}

.shop-header-support {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  white-space: nowrap;
  font-size: .88rem;
  font-weight: 700;
}

.shop-header-phone,
.shop-header-support button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.shop-support-icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.shop-header-support button {
  min-height: 44px;
  border-color: var(--accent);
  color: var(--link);
}

.shop-header-cart {
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  color: var(--link);
}

.shop-header-cart:hover,
.shop-header-cart:focus-visible {
  background: var(--wash);
}

.shop-cart-count {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 18px;
  padding: 1px 4px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}

.shop-phone-short {
  display: none;
}

.shop-header-nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 clamp(12px, 2.5vw, 34px);
  border-top: 1px solid var(--line);
  font-size: .94rem;
  font-weight: 700;
}

.shop-header-nav > a,
.shop-category summary {
  display: block;
  padding: 13px 0;
}

.shop-header-account {
  margin-inline-start: auto;
}

.shop-header a:hover,
.shop-category summary:hover {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: .25em;
}

.shop-category {
  position: relative;
}

.shop-category summary {
  cursor: pointer;
}

.shop-category summary::after {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 2px 2px 8px;
  transform: rotate(45deg);
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  content: '';
}

.shop-category summary::-webkit-details-marker {
  display: none;
}

.shop-category ul {
  position: absolute;
  z-index: 8;
  inset: 100% auto auto 0;
  min-width: 190px;
  padding: 7px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
  list-style: none;
  white-space: nowrap;
}

.shop-category li a {
  display: block;
  min-height: 40px;
  padding: 9px 10px;
}

@media (max-width: 720px) {
  .shop-header-main {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 12px;
    padding-block: 10px;
  }

  .shop-header-search {
    grid-area: 2 / 1 / 3 / -1;
    max-width: none;
  }

  .shop-header-support {
    justify-self: end;
  }

  .shop-header-support button {
    padding-inline: 10px;
  }

  .shop-header-nav {
    position: relative;
    font-size: .83rem;
  }

  .shop-category {
    position: static;
  }

  .shop-category ul {
    inset: 100% 14px auto;
    white-space: normal;
  }
}

@media (max-width: 430px) {
  .shop-header-main {
    column-gap: 10px;
  }

  .shop-header-support {
    font-size: .82rem;
  }

  .shop-header-phone,
  .shop-header-support button {
    gap: 4px;
  }

  .shop-header-support button {
    padding-inline: 8px;
  }

  .shop-support-icon {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 510px) {
  .shop-phone-number {
    display: none;
  }

  .shop-phone-short {
    display: inline;
  }
}


@media (max-width: 385px) {
  .shop-header-support button {
    font-size: 0;
    gap: 0;
    width: 42px;
    justify-content: center;
  }
}
