.catalog-meta { position: relative; z-index: 5; }
.sort-label { gap: 12px; }
.custom-select { position: relative; flex: none; }
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 168px;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid #3b4731;
  border-radius: 6px;
  background: #181d14;
  color: #e2e8da;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  transition: border-color var(--fast), background var(--fast);
}
.select-trigger:hover { border-color: #6b7c5d; background: #20281a; }
.select-trigger[aria-expanded="true"] { border-color: #52a72e; background: #1e2917; }
.select-trigger:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.select-value { white-space: nowrap; }
.select-chevron { font: 12px/1 Arial,sans-serif; color: #a4b296; transition: transform var(--fast) var(--ease); }
.select-trigger[aria-expanded="true"] .select-chevron { transform: rotate(180deg); }
.select-menu {
  position: absolute;
  z-index: 2;
  top: calc(100% + 8px);
  right: 0;
  width: 224px;
  max-width: calc(100vw - 40px);
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #526343 #191e15;
  padding: 6px;
  border: 1px solid #465637;
  border-radius: 8px;
  background: #191e15;
  box-shadow: 0 12px 28px #0005;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px) scale(.985);
  transform-origin: top right;
  transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 0s linear 160ms;
}
.custom-select[data-open="true"] .select-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}
.custom-select.opens-up .select-menu { top: auto; bottom: calc(100% + 8px); transform-origin: bottom right; }
.custom-select.opens-up[data-open="false"] .select-menu { transform: translateY(4px) scale(.985); }
.select-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 4px;
  color: #d4ddcb;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
  transition: background 100ms, color 100ms;
}
.select-option:hover { background: #24301c; color: #f1f2e9; }
.select-option.is-active { background: #293a1e; }
.select-option.is-current { color: var(--lime); }
.select-check { width: 14px; flex: none; color: var(--lime); font-size: 14px; line-height: 1; opacity: 0; }
.select-option.is-current .select-check { opacity: 1; }
@media (max-width: 680px) {
  .sort-caption { display: none; }
  .select-trigger { width: 150px; min-height: 38px; padding: 9px 11px; font-size: 11px; }
  .select-menu { width: 216px; }
  .catalog-meta > p { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .select-menu, .select-trigger, .select-chevron, .select-option { transition: none; }
}
