/* Quiet, branded sorting menu. The original select remains the no-script fallback. */
.site-products .v2-sort.catalog-sort-ready { position: relative; }
.site-products .catalog-sort-trigger,
.site-products .catalog-sort-options,
.site-products .catalog-sort-option { box-sizing: border-box; font-family: var(--demo-body-type); letter-spacing: 0; }
.site-products .catalog-sort-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 190px;
  min-height: 44px;
  padding: 10px 14px 10px 16px;
  border: 1px solid #d5e0e9;
  border-radius: 6px;
  background: #fff;
  color: #234860;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.site-products .catalog-sort-trigger:hover { background: #f7f9fc; border-color: #9bb2c8; }
.site-products .v2-sort.is-open .catalog-sort-trigger { border-color: #2853a0; box-shadow: 0 0 0 3px #2853a00b; }
.site-products .catalog-sort-trigger:focus-visible { outline: 2px solid #2853a0; outline-offset: 3px; }
.site-products .catalog-sort-trigger .catalog-sort-chevron {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}
.site-products .v2-sort.is-open .catalog-sort-chevron { transform: rotate(180deg); }
.site-products .catalog-sort-options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 3;
  width: 228px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  border: 1px solid #dbe4ed;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 16px 40px #102c431a, 0 3px 10px #102c4307;
  animation: catalog-sort-in .18s ease-out both;
}
.site-products .catalog-sort-options[hidden] { display: none; }
.site-products .catalog-sort-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #35556d;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.site-products .catalog-sort-option + .catalog-sort-option { margin-top: 3px; }
.site-products .catalog-sort-option:is(:hover, .is-active) { background: #f1f5f9; color: #173b56; }
.site-products .catalog-sort-option[aria-selected="true"] { background: #edf3fc; color: #2853a0; font-weight: 500; }
.site-products .catalog-sort-option > svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #2853a0;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.site-products .catalog-sort-option[aria-selected="true"] > svg { opacity: 1; }
@keyframes catalog-sort-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .site-products .catalog-sort-trigger { min-width: 0; gap: 10px; padding-inline: 11px; font-size: 12px; }
  .site-products .catalog-sort-options { width: 214px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-products .catalog-sort-trigger,
  .site-products .catalog-sort-trigger .catalog-sort-chevron { transition: none; }
  .site-products .catalog-sort-options { animation: none; }
}

/* Sort label follows the collection heading's existing desktop type scale. */
.site-products .v2-sort > label {
  align-items: center;
  gap: 7px;
  color: #5f798e;
  font-family: var(--demo-body-type);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: nowrap;
}
.site-products.site-products-v2 .v2-sort > label { font-size: 13px; }
.site-products .v2-sort > label > .catalog-sort-label-icon {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #17384f;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (min-width: 1051px) {
  .site-products .v2-sort > label { display: inline-flex; }
}
