/* Shared catalogue controls. Theme variables follow the containing design. */
#catalog-results, #catalog-filters { scroll-margin-top: 16px; }
#catalog-results:focus { outline: none; }
.otp-design-2026 #catalog-results, .otp-design-2026 #catalog-filters { scroll-margin-top: 130px; }
.otp-range-controls[hidden] { display: none; }
.otp-range-controls { height: 38px; position: relative; }
.otp-range-controls .otp-metric-scale { left: 0; margin: 0; position: absolute; right: 0; top: 17px; }
.otp-range-controls input[type="range"] { appearance: none; background: transparent; border: 0; cursor: pointer; height: 38px; left: 0; margin: 0; padding: 0; pointer-events: none; position: absolute; top: 0; width: 100%; }
.otp-range-controls input[type="range"]:last-child { z-index: 2; }
.otp-range-controls input[type="range"]::-webkit-slider-runnable-track { background: transparent; border: 0; height: 4px; }
.otp-range-controls input[type="range"]::-moz-range-track { background: transparent; border: 0; height: 4px; }
.otp-range-controls input[type="range"]::-webkit-slider-thumb { appearance: none; background: var(--otp-paper-light); border: 2px solid var(--otp-brand); border-radius: 50%; height: 22px; margin-top: -9px; pointer-events: auto; width: 22px; }
.otp-range-controls input[type="range"]::-moz-range-thumb { background: var(--otp-paper-light); border: 2px solid var(--otp-brand); border-radius: 50%; height: 18px; pointer-events: auto; width: 18px; }
.otp-range-filter .catalog-filter-range-inputs input { font-variant-numeric: tabular-nums; }

.catalog-filters { --otp-brand: #fff1c7; --otp-paper-light: #996600; --otp-ink: #fff; --otp-muted: #fff1c7; --otp-line: rgba(255,255,255,.4); box-sizing: border-box; max-width: 1040px; margin: 1em auto; padding: 1px; text-align: left; background: #996600; color: #fff; font-family: Tahoma,Geneva,sans-serif; }
.catalog-filters * { box-sizing: border-box; }
.catalog-filters > summary { cursor: pointer; padding: 12px; border: 1px solid #fff; font-size: 16px; font-weight: normal; }
.catalog-filters .catalog-filter-count { margin-left: 10px; font-size: 13px; }
.catalog-filters .catalog-filter-form { padding: 14px; border: 1px solid #fff; border-top: 0; background: #996600; color: #fff; }
.catalog-filters .catalog-filter-section { border-bottom: 1px solid var(--otp-line); display: grid; gap: 14px; padding: 18px 0; }
.catalog-filters .catalog-filter-field, .catalog-filters .catalog-filter-range { display: grid; gap: 8px; min-width: 0; }
.catalog-filters .catalog-filter-field > span, .catalog-filters .catalog-filter-range > span:first-child { color: #fff; font-size: 14px; font-weight: bold; }
.catalog-filters :is(input[type=number],input[type=search],select) { background: #fff; border: 1px solid #fff; border-radius: 0; color: #333; font-size: 16px; min-height: 40px; min-width: 0; padding: 6px 8px; width: 100%; }
.catalog-filters .catalog-filter-range-inputs { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 7px; align-items: center; }
.catalog-filters .otp-metric-scale { background: rgba(255,255,255,.25); display: block; height: 4px; overflow: hidden; }
.catalog-filters .otp-metric-scale i { position: absolute; height: 4px; background: #fff1c7; }
.catalog-filters .otp-filter-check { display: flex; align-items: flex-start; gap: 9px; color: #fff; font-size: 15px; line-height: 1.4; }
.catalog-filters input[type=checkbox] { accent-color: #fff1c7; flex-shrink: 0; width: 19px; height: 19px; margin: 1px 0 0; }
.catalog-filters .otp-filter-feature { align-items: flex-start; background: rgba(255,255,255,.12); border: 1px solid #fff1c7; display: flex; gap: 10px; padding: 15px; }
.catalog-filters .otp-filter-feature strong { color: #fff; display: block; font-size: 16px; line-height: 1.4; }
.catalog-filters .otp-filter-feature small { display: block; margin-top: 6px; }
.catalog-filters .otp-filter-group { border-bottom: 1px solid var(--otp-line); }
.catalog-filters .otp-filter-group > summary, .catalog-filters .catalog-note-options > summary { color: #fff; cursor: pointer; padding: 14px 0; font-size: 15px; }
.catalog-filters .otp-filter-group > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; padding-bottom: 18px; }
.catalog-filters .otp-filter-notes { border: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; padding: 0; max-height: 240px; overflow: auto; }
.catalog-filters .otp-filter-notes legend { padding: 0; margin-bottom: 10px; font-size: 14px; }
.catalog-filters .otp-filter-notes label { display: flex; align-items: center; gap: 6px; border: 1px solid #fff; padding: 7px; font-size: 14px; }
.catalog-filters small { color: #fff1c7; font-size: 12px; line-height: 1.45; }
.catalog-filters .catalog-filter-actions { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.catalog-filters .catalog-filter-actions a { color: #fff; font-size: 14px; }
.catalog-filters .catalog-filter-submit { background: #fff; border: 1px solid #fff; color: #996600; font-size: 16px; min-height: 44px; padding: 8px 24px; cursor: pointer; }
@media (min-width: 761px) {
    .catalog-filters .catalog-filter-section[data-catalog-section=pitch] { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
    .catalog-filters .catalog-note-options { grid-column: 1/-1; }
    .catalog-filters .catalog-filter-section[data-catalog-section=price] { max-width: 480px; }
}
@media (max-width: 760px) {
    .catalog-filters { margin: 1em 0; }
    .catalog-filters .otp-filter-group > div { grid-template-columns: minmax(0,1fr); }
    .catalog-filters .catalog-filter-form { padding: 12px; }
    .catalog-filters :is(input[type=number],input[type=search],select) { min-height: 44px; }
    .otp-range-controls input[type=range]::-webkit-slider-thumb { height: 26px; width: 26px; margin-top: -11px; }
    .otp-range-controls input[type=range]::-moz-range-thumb { height: 22px; width: 22px; }
}
