/* Search and sort controls shared by the full catalog and category results. */
.storefront .catalog-toolbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  align-items: stretch;
  gap: 13px;
  min-width: 0;
  margin-bottom: 14px;
  padding: 13px;
  overflow: visible;
  border: 1px solid #e2e3e4;
  border-radius: 21px;
  background: radial-gradient(circle at 100% 0, #f7f7f8 0, transparent 32%), linear-gradient(105deg, #fff, #f7f7f8);
  box-shadow: 0 16px 36px rgba(26, 28, 34, .09), inset 0 1px #fff;
}
.storefront .catalog-toolbar::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 25px;
  width: 125px;
  height: 3px;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(90deg, #181d25, #80dbd5, #adebe7);
}
.storefront .catalog-toolbar-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.storefront .catalog-toolbar .catalog-product-search {
  display: flex;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  gap: 14px;
  min-width: 0;
  width: 100%;
  height: 70px;
  min-height: 70px;
  padding: 8px 11px;
  border: 1px solid #e1e3e6;
  border-radius: 16px;
  background: linear-gradient(115deg, #f8f8f9, #fff);
  color: #7e8da0;
  box-shadow: 0 4px 12px rgba(30, 34, 42, .045), inset 0 1px #fff;
  cursor: text;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.storefront .catalog-toolbar .catalog-product-search:hover { border-color: #8fcbc8; box-shadow: 0 7px 18px rgba(16, 19, 25, .08); }
.storefront .catalog-toolbar .catalog-product-search:focus-within {
  border-color: #202630;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(27, 33, 42, .095), 0 12px 26px rgba(23, 25, 30, .1);
}
.storefront .catalog-search-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, #202630, #171c24);
  box-shadow: 0 8px 17px rgba(25, 30, 40, .24), inset 0 1px rgba(255,255,255,.25);
  color: #fff;
}
.storefront .catalog-product-search .catalog-search-mark svg { width: 22px; height: 22px; }
.storefront .catalog-search-content {
  display: grid;
  align-content: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.storefront .catalog-search-caption {
  color: #1b212a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.1;
}
.storefront .catalog-product-search input {
  display: block;
  width: 100%;
  height: 27px;
  min-width: 0;
  padding: 0;
  color: #16191f;
  font: 700 16px/1.3 Montserrat, sans-serif;
}
.storefront .catalog-toolbar .catalog-product-search input:focus-visible {
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}
.storefront .catalog-product-search input::selection {
  background: #e4e5e7;
  color: #101319;
}
.storefront .catalog-product-search:focus-within .catalog-search-caption { color: #1b212a; }
.storefront .catalog-product-search:focus-within .catalog-search-mark {
  background: linear-gradient(145deg, #202630, #171c25);
  box-shadow: 0 7px 17px rgba(26, 32, 41, .24);
}
.storefront .catalog-product-search input::placeholder { color: #75869c; font-weight: 600; }

.storefront .catalog-toolbar .sort-picker {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: 17px 28px;
  align-content: center;
  align-items: center;
  column-gap: 12px;
  row-gap: 0;
  width: 100%;
  min-width: 0;
  height: 70px;
  min-height: 70px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid #e4e5e7;
  border-radius: 16px;
  background: linear-gradient(115deg, #fff, #f7f7f8);
  box-shadow: 0 4px 12px rgba(26, 29, 35, .045), inset 0 1px #fff;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.storefront .catalog-toolbar .sort-picker:hover { border-color: #8fcbc8; box-shadow: 0 7px 18px rgba(16, 19, 25, .08); }
.storefront .catalog-toolbar .sort-picker.is-open {
  border-color: #202630;
  background: #f7f7f8;
  box-shadow: 0 0 0 4px rgba(27, 33, 42, .09), 0 6px 17px rgba(22, 25, 31, .045);
}
.storefront .sort-picker .sort-mark {
  display: grid;
  grid-column: 1;
  grid-row: 1 / 3;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #f2f3f4;
  color: #1b212a;
}
.storefront .sort-picker .sort-mark svg { width: 21px; height: 21px; }
.storefront .sort-picker .sort-label {
  grid-column: 2;
  grid-row: 1;
  color: #1b212a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.1;
  text-transform: uppercase;
}
.storefront .sort-picker select {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  height: 28px;
  color: #16191f;
  font: 750 13px/1.2 Montserrat, sans-serif;
}
.storefront .sort-picker .sort-trigger {
  display: flex;
  grid-column: 2;
  grid-row: 2;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 28px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #16191f;
  font: 750 13px/1.2 Montserrat, sans-serif;
}
.storefront .sort-picker .sort-trigger:hover,
.storefront .sort-picker.is-open .sort-trigger { background: transparent; color: #191e28; }
.storefront .sort-picker .sort-trigger #sortCurrent {
  color: inherit;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.storefront .sort-picker .sort-trigger svg { width: 26px; height: 26px; padding: 5px; border-radius: 8px; background: #f3f3f4; color: #1b212a; }
.storefront .sort-picker .sort-menu {
  width: max(100%, 286px);
  padding: 8px;
  border-radius: 16px;
  box-shadow: 0 20px 42px rgba(17, 19, 23, .17), 0 4px 12px rgba(17, 19, 23, .05);
}
.storefront .sort-picker .sort-menu-heading { padding: 10px 11px 9px; font-size: 10px; }
.storefront .sort-picker .sort-menu button { min-height: 46px; font-size: 13px; }

@media (max-width: 760px) {
  .storefront .catalog-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
  }
  .storefront .catalog-toolbar .catalog-product-search {
    grid-column: 1;
    grid-row: 1;
    height: 58px;
    min-height: 58px;
  }
  .storefront .catalog-toolbar .sort-picker {
    grid-column: 1;
    grid-row: 2;
    height: 58px;
    min-height: 58px;
  }
  .storefront .sort-picker .sort-menu { width: 100%; }
}

@media (max-width: 360px) {
  .storefront .catalog-toolbar .catalog-product-search,
  .storefront .catalog-toolbar .sort-picker { gap: 9px; padding-inline: 9px; }
  .storefront .catalog-search-mark,
  .storefront .sort-picker .sort-mark { width: 37px; height: 37px; }
  .storefront .catalog-toolbar .sort-picker { grid-template-columns: 37px minmax(0, 1fr); }
  .storefront .sort-picker .sort-trigger #sortCurrent { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .storefront .catalog-toolbar .catalog-product-search,
  .storefront .catalog-toolbar .sort-picker { transition: none; }
}
