.shop-toolbar {
  position: relative;
  z-index: 6;
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgb(8 11 11 / 18%);
}

.shop-toolbar__primary {
  display: grid;
  grid-template-columns: minmax(19rem, 1fr) minmax(13rem, auto);
  align-items: stretch;
  gap: 0.8rem;
}

.shop-search {
  position: relative;
  display: flex;
  min-height: 3.6rem;
  align-items: center;
  background: rgb(255 255 255 / 38%);
  border: 1px solid rgb(8 11 11 / 18%);
}

.shop-search__icon {
  position: relative;
  width: 1rem;
  height: 1rem;
  margin-left: 1.15rem;
  border: 1px solid #755522;
  border-radius: 50%;
}

.shop-search__icon::after {
  position: absolute;
  right: -0.35rem;
  bottom: -0.18rem;
  width: 0.45rem;
  height: 1px;
  content: "";
  background: #755522;
  transform: rotate(45deg);
}

.shop-search input {
  width: 100%;
  height: 100%;
  padding: 0.8rem 1rem;
  color: #0a1110;
  background: transparent;
  border: 0;
  outline: 0;
}

.shop-search input::placeholder {
  color: rgb(8 11 11 / 60%);
}

.shop-toolbar__filter-button {
  display: none;
  min-width: 8rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-inline: 1rem;
  color: #0a1110;
  border: 1px solid rgb(8 11 11 / 22%);
  font-family: var(--font-brand);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-toolbar__filter-count {
  display: grid;
  width: 1.45rem;
  aspect-ratio: 1;
  place-items: center;
  color: var(--color-ivory-50);
  background: #09312f;
  border-radius: 50%;
  font-size: 0.52rem;
}

.shop-sort {
  display: grid;
  min-width: 13rem;
  padding: 0.55rem 0.9rem 0.45rem;
  background: rgb(255 255 255 / 38%);
  border: 1px solid rgb(8 11 11 / 18%);
}

.shop-sort > span {
  color: #765721;
  font-family: var(--font-brand);
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.shop-sort select {
  width: 100%;
  padding-block: 0.25rem;
  color: #0a1110;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--font-brand);
  font-size: 0.62rem;
  font-weight: 600;
}

.shop-toolbar__status {
  display: flex;
  min-height: 2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.shop-toolbar__count {
  color: rgb(8 11 11 / 58%);
  font-family: var(--font-brand);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-toolbar__active-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.shop-filter-chip {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.7rem;
  color: #0a1110;
  border: 1px solid rgb(128 96 39 / 44%);
  font-family: var(--font-brand);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .shop-toolbar__primary {
    grid-template-columns: minmax(0, 1fr) minmax(11rem, auto);
  }

  .shop-sort {
    min-width: 11rem;
  }
}

@media (max-width: 767px) {
  .shop-toolbar__primary {
    grid-template-columns: 1fr 1fr;
  }

  .shop-search {
    grid-column: 1 / -1;
  }

  .shop-toolbar__filter-button {
    display: flex;
  }

  .shop-sort {
    min-width: 0;
  }

  .shop-toolbar__status {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .shop-toolbar__active-filters {
    justify-content: flex-start;
  }
}

@media (max-width: 389px) {
  .shop-toolbar__primary {
    grid-template-columns: 1fr;
  }

  .shop-search {
    grid-column: auto;
  }
}
