.pf-root{--pf-o:var(--orange,#ff7a00);--pf-od:var(--orange-dark,#e56700);--pf-ol:var(--orange-light,#fff4e8);--pf-top:16px}.pf-layout{display:grid;grid-template-columns:clamp(216px,17vw,244px) minmax(0,1fr);gap:22px;align-items:start}.pf-main{min-width:0}.pf-root.pf-collapsed .pf-layout{grid-template-columns:minmax(0,1fr);gap:0}.pf-root.pf-collapsed .pf-sidebar{display:none}:root .pf-main .product-grid{grid-template-columns:repeat(auto-fill,minmax(176px,1fr))}.pf-toolbar-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.pf-open-btn{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 14px;border:1.5px solid var(--pf-o);border-radius:8px;background:#fff;color:var(--pf-od);font:700 .8rem inherit;font-family:inherit;cursor:pointer;white-space:nowrap}.pf-open-btn:hover{background:var(--pf-ol)}.pf-open-btn svg{width:16px;height:16px}.pf-open-btn .pf-badge{margin-left:2px}.pf-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--pf-o);color:#fff;font-size:.7rem;font-weight:800;line-height:1}.pf-badge[hidden]{display:none}.pf-sidebar{position:sticky;top:var(--pf-top);max-height:calc(100vh - var(--pf-top) - 12px);background:#fff;border:1px solid #eee;border-radius:14px;box-shadow:0 2px 10px rgba(0,0,0,.06);display:flex;flex-direction:column;overflow:hidden}.pf-sidebar #pf-sidebar-inner,.pf-form{display:flex;flex-direction:column;min-height:0;flex:1}.pf-sidebar__head{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid #f0f0f0;flex-shrink:0}.pf-sidebar__title{margin:0;font-size:1rem;font-weight:800;color:#1f2937;display:flex;align-items:center;gap:8px;flex:1}.pf-link{background:none;border:0;color:var(--pf-od);font:700 .78rem inherit;font-family:inherit;cursor:pointer;padding:4px}.pf-link[hidden]{display:none}.pf-close{display:none;background:none;border:0;font-size:1.2rem;line-height:1;cursor:pointer;color:#6b7280;padding:4px 6px}.pf-sidebar__body{overflow-y:auto;overscroll-behavior:contain;padding:4px 16px;flex:1;min-height:0}.pf-sidebar__foot{display:flex;gap:10px;padding:12px 16px;border-top:1px solid #f0f0f0;background:#fff;flex-shrink:0}.pf-btn{flex:1;height:42px;border-radius:10px;font:800 .85rem inherit;font-family:inherit;cursor:pointer;border:1.5px solid var(--pf-o)}.pf-btn--primary{background:var(--pf-o);color:#fff}.pf-btn--primary:hover{background:var(--pf-od)}.pf-btn--ghost{background:#fff;color:var(--pf-od)}.pf-btn--ghost:hover{background:var(--pf-ol)}.pf-empty{color:#6b7280;font-size:.85rem;padding:14px 0}.pf-group{border-bottom:1px solid #f0f0f0}.pf-group:last-child{border-bottom:0}.pf-group__head{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 0;cursor:pointer;font-weight:800;font-size:.88rem;color:#1f2937;user-select:none}.pf-group__head::-webkit-details-marker{display:none}.pf-sel-n{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;border-radius:9px;background:var(--pf-ol);color:var(--pf-od);font-size:.68rem;margin-left:4px}.pf-chev{width:8px;height:8px;border-right:2px solid #9ca3af;border-bottom:2px solid #9ca3af;transform:rotate(45deg);transition:transform .18s;margin-right:3px;flex-shrink:0}.pf-group[open] .pf-chev{transform:rotate(-135deg)}.pf-group__body{padding:0 0 14px}.pf-list{max-height:236px;overflow-y:auto;overscroll-behavior:contain}.pf-opt{display:flex;align-items:center;gap:9px;padding:6px 2px;cursor:pointer;font-size:.85rem;color:#374151}.pf-opt input{accent-color:var(--pf-o);width:16px;height:16px;flex-shrink:0;margin:0}.pf-opt__label{flex:1;min-width:0;overflow-wrap:anywhere}.pf-opt__count{font-size:.72rem;color:#9ca3af;font-variant-numeric:tabular-nums}.pf-opt:hover .pf-opt__label{color:var(--pf-od)}.pf-opt.is-zero{opacity:.45}.pf-opt-search,.pf-select{width:100%;height:36px;border:1.5px solid #e5e7eb;border-radius:8px;padding:0 10px;font:.82rem inherit;font-family:inherit;background:#fff;margin-bottom:8px}.pf-select{margin:0;cursor:pointer}.pf-pills{display:flex;flex-wrap:wrap;gap:7px}.pf-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1.5px solid #e5e7eb;border-radius:999px;font-size:.78rem;font-weight:700;color:#374151;cursor:pointer;background:#fff;transition:all .15s}.pf-pill input{position:absolute;opacity:0;pointer-events:none;width:0;height:0}.pf-pill small{font-size:.66rem;color:#9ca3af;font-weight:600}.pf-pill:hover{border-color:var(--pf-o);color:var(--pf-od)}.pf-pill.is-on,.pf-pill:has(input:checked){background:var(--pf-o);border-color:var(--pf-o);color:#fff}.pf-pill.is-on small,.pf-pill:has(input:checked) small{color:rgba(255,255,255,.85)}.pf-pill:has(input:focus-visible){outline:2px solid var(--pf-od);outline-offset:2px}.pf-pill.is-zero{opacity:.45}.pf-dot{width:14px;height:14px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2)}.pf-range__nums{display:flex;align-items:center;gap:6px;margin-bottom:14px}.pf-range__nums label{flex:1;display:flex;align-items:center;gap:4px;border:1.5px solid #e5e7eb;border-radius:8px;padding:0 8px;height:36px;font-size:.75rem;color:#6b7280;min-width:0}.pf-range__nums input{border:0!important;box-shadow:none!important;width:100%;min-width:0;font:700 .82rem inherit;font-family:inherit;color:#1f2937;background:transparent;padding:0;-moz-appearance:textfield}.pf-range__nums input::-webkit-outer-spin-button,.pf-range__nums input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.pf-range__track{position:relative;height:24px;margin:0 8px}.pf-range__rail{position:absolute;left:0;right:0;top:10px;height:4px;border-radius:2px;background:#e5e7eb}.pf-range__fill{position:absolute;top:0;bottom:0;background:var(--pf-o);border-radius:2px}.pf-range__track input[type=range]{position:absolute;left:-8px;width:calc(100% + 16px);top:0;height:24px;margin:0;background:none;pointer-events:none;-webkit-appearance:none;appearance:none}.pf-range__track input[type=range]::-webkit-slider-runnable-track{background:none;height:24px}.pf-range__track input[type=range]::-moz-range-track{background:none}.pf-range__track input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;width:20px;height:20px;border-radius:50%;background:#fff;border:3px solid var(--pf-o);box-shadow:0 1px 4px rgba(0,0,0,.25);cursor:grab;margin-top:2px}.pf-range__track input[type=range]::-moz-range-thumb{pointer-events:auto;width:14px;height:14px;border-radius:50%;background:#fff;border:3px solid var(--pf-o);box-shadow:0 1px 4px rgba(0,0,0,.25);cursor:grab}.pf-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.pf-chips[hidden]{display:none}.pf-chip{display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border-radius:999px;border:1.5px solid rgba(255,122,0,.35);background:var(--pf-ol);color:var(--pf-od);font:700 .76rem inherit;font-family:inherit;cursor:pointer}.pf-chip span{font-size:.7rem}.pf-chip:hover{background:var(--pf-o);color:#fff;border-color:var(--pf-o)}.pf-chip--clear{background:#fff;border-color:#e5e7eb;color:#6b7280}.pf-loading{position:relative;pointer-events:none}.pf-loading .product-grid,.pf-loading .cart-empty{opacity:.4;transition:opacity .15s}.pf-loading::before{content:"";position:absolute;left:50%;top:70px;width:32px;height:32px;margin-left:-16px;border:3px solid #fde3c8;border-top-color:var(--pf-o);border-radius:50%;animation:pf-spin .7s linear infinite;z-index:5}@keyframes pf-spin{to{transform:rotate(360deg)}}.pf-overlay{display:none}@media (max-width:991px){.pf-layout{display:block}.pf-sidebar{position:fixed;top:0;left:0;bottom:0;max-height:none;width:min(88vw,360px);border-radius:0 16px 16px 0;z-index:9600;transform:translateX(-105%);transition:transform .26s cubic-bezier(.4,0,.2,1);visibility:hidden}.pf-sidebar.pf-open{transform:none;visibility:visible}.pf-overlay{display:block;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:9500;opacity:0;pointer-events:none;transition:opacity .2s}.pf-overlay.pf-open{opacity:1;pointer-events:auto}.pf-close{display:block}.pf-sidebar__foot{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}body.pf-lock{overflow:hidden}:root .pf-main .product-grid{grid-template-columns:repeat(var(--pf-cols,2),minmax(0,1fr))}}@media (min-width:640px) and (max-width:991px){.pf-root{--pf-cols:3}}@media (max-width:991px){.pf-open-btn--desktop{display:none}}@media (min-width:992px){.pf-open-btn--mobile{display:none}}@media (max-width:600px){.pf-toolbar-actions{width:100%}.pf-toolbar-actions .ps-sort-wrap{flex:1}.pf-open-btn{height:40px}}@media (prefers-reduced-motion:reduce){.pf-sidebar,.pf-overlay{transition:none}.pf-loading::before{animation:none}}.pf-toolbar-actions{margin-bottom:0}.ps-toolbar{margin-bottom:12px}@media (max-width:600px){.pf-open-btn--mobile{flex:1;justify-content:center}}

/* ===== Sticky sidebar refinements ===== */
/* overflow-x:hidden on html/body (site-critical) can stop position:sticky working; clip does not create a scroll container */
html,body{overflow-x:clip}
@media (min-width:992px){
  .pf-sidebar{top:var(--pf-top);max-height:calc(100vh - var(--pf-top) - 12px);align-self:start}
  @supports (height:100dvh){.pf-sidebar{max-height:calc(100dvh - var(--pf-top) - 12px)}}
}
/* One scroll area only: the sidebar body. Option lists no longer get their own inner scrollbar. */
.pf-list{max-height:none;overflow:visible}
.pf-sidebar__body{scrollbar-width:thin;scrollbar-color:#d1d5db transparent}
.pf-sidebar__body::-webkit-scrollbar{width:6px}
.pf-sidebar__body::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}
.pf-sidebar__foot{position:relative;z-index:1;box-shadow:0 -6px 12px -8px rgba(0,0,0,.12)}
/* Consistent category rows (no count column) */
.pf-opt{min-height:34px}
/* Keep sidebar and footer from overlapping: grid parent ends the sticky range */
.pf-layout{position:relative}

/* ===== Sticky behaviour (professional) ===== */
@media (min-width:992px){
  /* Listing is always at least one viewport tall, so the sticky sidebar is never pushed up under the header
     when the last page / a filtered result has only a few products. It still stops at the bottom of the listing. */
  .pf-root:not(.pf-collapsed) .pf-layout{min-height:calc(100vh - var(--pf-top) - 12px)}
  @supports (height:100dvh){.pf-root:not(.pf-collapsed) .pf-layout{min-height:calc(100dvh - var(--pf-top) - 12px)}}
  .pf-sidebar{will-change:transform;contain:layout paint}
}

/* ===== Compact, professional footer actions (single "Clear All" lives here only) ===== */
.pf-sidebar__foot{gap:8px;padding:10px 14px}
.pf-btn{height:38px;border-radius:8px;font-size:.78rem;font-weight:700;letter-spacing:.1px;white-space:nowrap;padding:0 12px;line-height:1;transition:background .15s,border-color .15s,color .15s}
.pf-btn--ghost{flex:0 0 auto;border-color:#e5e7eb;color:#4b5563}
.pf-btn--ghost:hover{border-color:var(--pf-o);color:var(--pf-od);background:var(--pf-ol)}
.pf-btn--primary{flex:1 1 auto;min-width:0}
.pf-apply__n{font-weight:600;opacity:.9}
.pf-sidebar__head{padding:12px 16px}

/* Price range: keep full amounts visible */
.pf-range__nums{gap:4px}
.pf-range__nums em{flex:0 0 auto;font-style:normal;color:#9ca3af;font-size:.8rem}
.pf-range__nums label{padding:0 6px;gap:3px;min-width:0}
.pf-range__nums label span{font-size:.66rem;white-space:nowrap;flex:0 0 auto}
.pf-range__nums input{font-size:.78rem;text-overflow:clip}


/* Equal-width footer buttons */
.pf-sidebar__foot .pf-btn,.pf-btn--ghost,.pf-btn--primary{flex:1 1 0;min-width:0;width:auto}
