/* Owner 2026-11-11: category filters for buyers — compact drop-downs + a two-handle price scale. */
.facet-bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 12px;margin:4px 0 14px;padding:10px 12px;border:1px solid #eadfe3;border-radius:14px;background:#fff}
.facet{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1 140px;max-width:220px}
.facet>span{font-size:12px;font-weight:600;color:#6b5a66}
.facet>span b{color:#2a1c27}
.facet select{width:100%;min-height:38px;padding:6px 8px;border:1px solid #e6d9dd;border-radius:10px;background:#fff;color:#2a1c27;font:inherit;font-size:14px}
.facet-price{flex:2 1 220px;max-width:360px}
.facet-range{position:relative;height:34px;--lo:0%;--hi:100%}
.facet-track{position:absolute;left:11px;right:11px;top:15px;height:4px;border-radius:2px;background:linear-gradient(to right,#e6d9dd var(--lo),#990037 var(--lo),#990037 var(--hi),#e6d9dd var(--hi))}
.facet-range input[type=range]{position:absolute;left:0;top:0;width:100%;height:34px;margin:0;background:none;pointer-events:none;-webkit-appearance:none;appearance:none}
.facet-range input[type=range]:disabled{opacity:1}
.facet-range input[type=range]::-webkit-slider-runnable-track{background:none;border:0}
.facet-range input[type=range]::-moz-range-track{background:none;border:0}
.facet-range input[type=range]::-webkit-slider-thumb{pointer-events:auto;-webkit-appearance:none;width:24px;height:24px;border-radius:50%;background:#fff;border:2px solid #990037;box-shadow:0 1px 3px rgba(0,0,0,.2);cursor:grab}
.facet-range input[type=range]::-moz-range-thumb{pointer-events:auto;width:22px;height:22px;border-radius:50%;background:#fff;border:2px solid #990037;cursor:grab}
.facet-clear{align-self:center;font-size:14px;font-weight:600;color:#990037;white-space:nowrap}
@media (max-width:420px){.facet{flex-basis:calc(50% - 6px)}.facet-price{flex-basis:100%;max-width:none}}
/* Owner 2026-11-11: share a shop's search result */
.result-share{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 14px;margin:0 0 14px;padding:10px 14px;border:1px solid #cfe9d8;border-radius:14px;background:#f1faf4}
.rs-what{margin:0;font-size:14px;color:#2a1c27}
.rs-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.rs-actions .btn{display:inline-flex;align-items:center;gap:7px;min-height:40px}
.rs-actions svg{width:18px;height:18px;flex:0 0 18px}
.rs-wa{background:#25d366;border-color:#25d366;color:#fff}
.rs-wa:hover{background:#1ebe5b;color:#fff}
.rs-status{font-size:13px;color:#1f7a45;font-weight:600}
/* Owner 2026-11-19: home search — result count, active filter chips, compact filter form. */
.search-refine{margin:10px 0 14px}
.search-count{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 8px;font-size:15px}
.search-chips{display:flex;flex-wrap:wrap;gap:6px}
.search-chip{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:4px 12px;border:1px solid #d9d4cb;border-radius:999px;background:#fff;color:inherit;text-decoration:none;font-size:13px}
.search-chip:hover{border-color:#9b9387}
.search-chip span{font-size:15px;line-height:1;color:#6b645a}
.search-chip-clear{align-self:center;font-size:13px;margin-left:4px}
.search-filters .filter-form{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:flex-end;margin-top:8px}
.search-filters .filter-form label{display:flex;flex-direction:column;gap:4px;font-size:13px}
.search-filters .price-field input{width:110px}
.listing-store{font-weight:600}
/* Owner 2026-11-20: one row right above the listings — sort on the left (same look as the grid/list buttons), grid/list right. */
.results-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 0 10px}
html body.future .results-toolbar .catalog-sort{margin:0}
html body.future .results-toolbar .catalog-sort select{appearance:none;-webkit-appearance:none;height:38px;min-height:38px;max-width:none;padding:0 32px 0 12px;border:1px solid #e3d6db;border-radius:10px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b5a63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center/16px;color:#6b5a63;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
html body.future .results-toolbar .gallery-layout{margin:0 0 0 auto}
@media(min-width:768px){html body.future .results-toolbar .catalog-sort select{height:36px;min-height:36px}}
/* City choice inside the filter block looks like the other filter fields. */
.facet-city .city-picker{width:100%}
.facet-city .city-picker>summary{display:flex;align-items:center;gap:6px;min-height:38px;padding:6px 8px;border:1px solid #e6d9dd;border-radius:10px;background:#fff;color:#2a1c27;font-size:14px;cursor:pointer;list-style:none}
.facet-city .city-picker>summary::-webkit-details-marker{display:none}
.facet-city .city-picker-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Subcategory dropdown under the category choice. */
.subcategory-rows .subcategory-picker{display:inline-block;margin:6px 0 2px}
.subcategory-rows .subcategory-picker>summary{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:6px 12px;border:1px solid #e6d9dd;border-radius:10px;background:#fff;color:#2a1c27;font-size:14px;font-weight:600;cursor:pointer;list-style:none}
.subcategory-rows .subcategory-picker>summary::-webkit-details-marker{display:none}
.subcategory-rows .subcategory-picker .city-picker-list small{color:#8a7b84;margin-left:4px}
/* Desktop home (#marketplace-home rules are stronger): keep sort left and grid/list at the right edge. */
html body#marketplace-home .results-toolbar{display:flex;justify-content:space-between;align-items:center;width:100%;grid-column:1/-1}
html body#marketplace-home .results-toolbar .gallery-layout{margin:0 0 0 auto!important;justify-content:flex-end}
