/* Shared right-side filtering on phone and desktop. The existing header is unchanged. */
.filter-toolbar{display:flex;align-items:center;gap:10px;margin:0 0 22px;min-height:44px;flex-wrap:wrap}
.filter-trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 15px;border:1px solid #e2e9e8;border-radius:11px;background:#fff;color:#33494b;font-size:15px;line-height:1.4}
.filter-trigger svg{width:20px;height:20px;color:#43858a}.filter-trigger svg circle{fill:#fff}
.filter-trigger:hover{background:#f0f6f5}.filter-badge{display:inline-grid;place-items:center;background:#43858a;color:white;width:18px;height:18px;border-radius:50%;font:500 10px Montserrat,Arial,sans-serif}
.filter-result-count{margin-inline-start:0;font-size:13px;color:#778588;white-space:nowrap}
.filter-selection{display:flex;align-items:center;gap:6px;max-width:55%;min-height:36px;padding:7px 10px;background:#edf5f4;border-radius:20px;color:#397e82;font-size:13px;line-height:1.4;text-align:right}.filter-selection svg{width:13px;height:13px;flex-shrink:0}
.filter-selection>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.filter-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(420px,calc(100vw - 32px));max-width:none;height:100vh;height:100dvh;max-height:100dvh;padding:0;border:0;border-radius:0;background:#fff;color:#171717;overflow:hidden;box-shadow:-12px 0 50px #1d33351a;direction:rtl;overscroll-behavior:none}
.filter-drawer[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;animation:filter-enter .22s cubic-bezier(.2,.7,.3,1)}
.filter-drawer::backdrop{background:#1c30364f;backdrop-filter:blur(1px);animation:filter-fade .2s ease}
.filter-drawer.is-closing{animation:filter-exit .17s ease forwards}.filter-drawer.is-closing::backdrop{animation:filter-fade .17s ease reverse forwards}
.filter-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:calc(18px + env(safe-area-inset-top,0px)) 22px 18px;border-bottom:1px solid #edf0f0;background:white}
.filter-header h2{font-size:19px;font-weight:700;line-height:1.5;margin:0;outline:0}
.filter-close{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border:0;outline:none;box-shadow:none;background:transparent;border-radius:10px;color:#6b7a7e;padding:0}
.filter-close:hover,.filter-close:focus-visible{background:#f4f6f6}.filter-close svg{width:22px;height:22px}
.filter-body{overflow-y:auto;overscroll-behavior:contain;padding:26px 22px 28px;scrollbar-width:thin}
.filter-goals{border:0;padding:0;margin:0;min-width:0}.filter-goals legend,.filter-needs-section h3{font-size:17px;line-height:1.6;font-weight:500;color:#171717;padding:0;margin:0 0 16px}
.filter-goal{display:flex;align-items:center;gap:12px;min-height:52px;padding:12px 14px;border:1px solid #e5eaea;border-radius:11px;margin:0 0 9px;font-size:16px;line-height:1.5;cursor:pointer;transition:background .15s,border-color .15s}
.filter-goal:has(input:checked){background:#edf6f5;border-color:#bdd8d7;color:#27767b}
.filter-goal input{appearance:none;-webkit-appearance:none;flex:0 0 19px;width:19px;height:19px;border:1.4px solid #a1afb2;border-radius:50%;margin:0;display:grid;place-items:center;background:#fff;cursor:pointer}
.filter-goal input:checked{border-color:#43858a}.filter-goal input:checked::after{content:'';width:11px;height:11px;border-radius:50%;background:#43858a}
.filter-goal:focus-within{background:#f1f7f6}.filter-goal input:focus-visible{outline:2px solid #9fc1c0;outline-offset:3px}
.filter-needs-section{margin-top:26px;padding-top:24px;border-top:1px solid #edf0f0}.filter-needs-section h3{margin-bottom:12px}.filter-needs-section p{font-size:14px;line-height:1.8;color:#6d7b7d;margin:-2px 0 14px}
.filter-needs{display:flex;flex-wrap:wrap;gap:8px}.filter-needs button{border:1px solid #e3e9e8;border-radius:20px;min-height:42px;padding:9px 14px;background:#fff;color:#465457;font-size:14px;line-height:1.5}
.filter-needs button[aria-pressed=true]{background:#edf6f5;border-color:#bdd8d7;color:#27767b}.filter-needs button:focus-visible{box-shadow:0 0 0 2px #bdd8d7}
.filter-footer{display:flex;align-items:center;gap:12px;padding:17px 22px calc(17px + env(safe-area-inset-bottom,0px));border-top:1px solid #edf0f0;background:#fff}
.filter-apply{display:flex;align-items:center;justify-content:center;min-height:46px;flex:1;min-width:0;background:#43858a;color:#fff;border-radius:10px;padding:12px;font-size:16px;line-height:1.4}.filter-apply:disabled{opacity:.5;cursor:default}
.filter-reset{min-height:44px;background:transparent;padding:9px 0;color:#43858a;font-size:14px;white-space:nowrap}.filter-apply:focus-visible,.filter-reset:focus-visible{box-shadow:0 0 0 2px #bdd8d7}
@keyframes filter-enter{from{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes filter-exit{from{transform:translateX(0)}to{transform:translateX(100%)}}@keyframes filter-fade{from{opacity:0}to{opacity:1}}
@media(max-width:700px){.filter-toolbar{margin-bottom:16px;gap:8px}.filter-trigger{font-size:14px;padding:9px 12px}.filter-result-count{font-size:12px}.filter-selection{font-size:12px;max-width:45%}.filter-drawer{width:min(420px,calc(100vw - 32px))}.filter-header{padding-right:18px;padding-left:18px}.filter-body{padding:22px 18px}.filter-footer{padding-right:18px;padding-left:18px}.filter-header h2{font-size:18px}.filter-goals legend,.filter-needs-section h3{font-size:16px}.filter-goal{font-size:16px}.filter-needs button{font-size:14px;padding:9px 12px}}
@media(prefers-reduced-motion:reduce){.filter-drawer[open],.filter-drawer::backdrop,.filter-drawer.is-closing,.filter-drawer.is-closing::backdrop{animation:none}.filter-goal{transition:none}}

@media(min-width:701px){.filter-result-count{margin-inline-start:4px;order:1}.filter-selection{order:2}}
/* Compact header: brand, search, filter, More. */
.nav-top .nav-tools{gap:4px}
.nav-top .header-action{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:10px;background:transparent;color:#657d82;line-height:1}
.nav-top .header-action svg{width:21px;height:21px;flex-shrink:0}
.nav-top .header-action:hover{color:#397e82}
.nav-top .header-action:focus-visible{outline:0!important;box-shadow:inset 0 0 0 1px #a4bcba!important}
.nav-top .header-filter svg circle{fill:#fff}
.nav-top .more-dots circle{fill:currentColor;stroke:none}
.nav-top .header-filter .filter-badge{position:absolute;top:1px;right:1px;width:15px;height:15px;font-size:9px;pointer-events:none}
.nav-panel{padding:10px 18px 14px}.nav-panel .nav-actions{margin-top:0;border-top:0}
.filter-summary{min-height:30px;margin-bottom:16px;gap:8px}
.filter-summary .filter-result-count{order:0}
.filter-summary .filter-selection{order:1;max-width:100%}
.filter-types{margin-top:26px;padding-top:20px;border-top:1px solid #edf0f0}
.filter-types summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;list-style:none;cursor:pointer;font-size:16px;color:#171717}
.filter-types summary::-webkit-details-marker{display:none}
.filter-types summary svg{width:17px;height:17px;transition:transform .16s}
.filter-types[open] summary svg{transform:rotate(180deg)}
.filter-types summary:focus-visible{outline:0;background:#f5f8f7;border-radius:8px}
.filter-categories{display:flex;flex-wrap:wrap;gap:8px;padding:12px 0 2px}
.filter-type{border:1px solid #e3e9e8;border-radius:20px;min-height:42px;padding:9px 14px;background:#fff;color:#465457;font-size:14px;line-height:1.5}
.filter-type[aria-pressed=true]{background:#edf6f5;border-color:#bdd8d7;color:#27767b}
.filter-type:focus-visible{box-shadow:0 0 0 2px #bdd8d7}
@media(min-width:701px){.filter-summary .filter-result-count{margin-inline-start:0;margin-inline-end:8px}}
@media(max-width:700px){.nav-top .nav-tools{gap:2px}.nav-top{padding-inline:18px}.filter-summary{margin-bottom:12px}.filter-summary .filter-selection{max-width:100%}.filter-type{padding:9px 12px}}
@media(prefers-reduced-motion:reduce){.filter-types summary svg{transition:none}}
/* Total catalogue count belongs to the brand; result counts are contextual. */
.brand-group{display:flex;align-items:center;gap:8px;flex:0 0 auto;min-width:0}
.brand-total{display:inline-flex;align-items:center;justify-content:center;min-width:22px;color:#7c8b8e;font:400 12px/1.4 Tajawal,Montserrat,Arial,sans-serif;direction:rtl;white-space:nowrap}
.nav-shell.search-open .brand-group{display:none!important}
@media(max-width:700px){
 .brand-group{gap:6px}.brand-total{font-size:11px;min-width:21px}
 .filter-drawer{inset:12px 12px auto auto;width:calc(100vw - 24px);max-width:420px;height:auto;max-height:calc(100dvh - 24px);border-radius:16px;box-shadow:0 14px 50px #162d3024}
 .filter-drawer[open]{grid-template-rows:auto minmax(0,1fr) auto}
 .filter-header{gap:10px;padding:10px 16px;border-bottom:1px solid #edf0f0}
 .filter-header h2{font-size:17px;font-weight:500}
 .filter-close{width:40px;height:40px;flex-basis:40px}.filter-close svg{width:20px;height:20px}
 .filter-body{padding:16px;min-height:0}
 .filter-goals legend,.filter-needs-section h3{font-size:15px;font-weight:500;margin-bottom:10px}
 .filter-goal{gap:10px;min-height:46px;padding:10px 9px;margin:0 0 4px;border:0;border-bottom:1px solid #eef1f1;border-radius:8px;font-size:15px;line-height:1.5}
 .filter-goal:has(input:checked){background:#edf6f5;border-color:transparent}
 .filter-goal input{width:18px;height:18px;flex-basis:18px}.filter-goal input:checked::after{width:10px;height:10px}
 .filter-needs-section{margin-top:16px;padding-top:16px}.filter-needs-section p{font-size:13px;line-height:1.7;margin:0 0 10px}
 .filter-needs,.filter-categories{gap:7px}.filter-needs button,.filter-type{min-height:40px;padding:8px 11px;font-size:13px}
 .filter-types{margin-top:16px;padding-top:10px}.filter-types summary{font-size:15px;min-height:44px}.filter-categories{padding-top:10px}
 .filter-footer{gap:12px;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px))}
 .filter-apply{font-size:15px;min-height:44px;padding:11px}.filter-reset{font-size:13px;min-height:44px}
}

@media(max-width:360px){.nav-shell{max-width:calc(100% - 24px)}.nav-top{padding-inline:12px}}
