/* Penshelf Smart Product Filters 1.0 — scoped to .psf-* only */
.psf-panel {
  --psf-navy:#112d44; --psf-teal:#008eac; --psf-stroke:#e1e8ef;
  --psf-muted:#657689; --psf-soft:#f5f8fa; --psf-focus:#007eab;
  font-family:inherit; color:var(--psf-navy); background:#fff;
  border:1px solid var(--psf-stroke); border-radius:12px; padding:16px;
  box-shadow:0 2px 10px rgba(16,40,63,.035); width:100%;
  text-align:left;
}
.psf-panel *, .psf-panel *::before, .psf-panel *::after {box-sizing:border-box}
.psf-panel .psf-head {display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 10px}
.psf-panel .psf-kicker {display:block; font-size:9px; font-weight:800; letter-spacing:1.5px; color:var(--psf-teal); line-height:1.4}
.psf-panel .psf-title {font-size:17px; font-weight:750; color:var(--psf-navy); margin:3px 0 0; line-height:1.35}
.psf-panel .psf-close {display:none; border:0; background:none; color:var(--psf-navy); font-size:22px; cursor:pointer}
.psf-panel .psf-applied {border-radius:9px; padding:10px; background:#f0f8fa; margin-bottom:8px}
.psf-panel .psf-section-label {display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:12px; margin:0 0 8px}
.psf-panel .psf-section-label a {font-size:11px; font-weight:700; color:var(--psf-teal); text-decoration:underline}
.psf-panel .psf-chips {display:flex; flex-wrap:wrap; gap:6px}
.psf-panel .psf-chip {font-size:11px; font-weight:600; display:inline-flex; gap:5px; align-items:center; border:1px solid #c6e2eb; border-radius:30px; padding:5px 8px; background:#fff; color:var(--psf-navy); text-decoration:none; line-height:1.3}
.psf-panel .psf-chip:hover {background:#e5f5f9; color:var(--psf-navy)}
.psf-panel .psf-chip span {font-size:15px; font-weight:500}
.psf-panel .psf-form {margin:0}
.psf-panel .psf-group {border-bottom:1px solid var(--psf-stroke); margin:0; padding:0}
.psf-panel .psf-group > summary {list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; padding:13px 1px; font-weight:750; font-size:13px; color:var(--psf-navy); user-select:none}
.psf-panel .psf-group > summary::-webkit-details-marker {display:none}
.psf-panel .psf-chevron {width:8px; height:8px; border-right:1.8px solid #64768a; border-bottom:1.8px solid #64768a; transform:rotate(45deg); margin-right:5px; transition:transform .18s ease}
.psf-panel .psf-group[open] > summary .psf-chevron {transform:rotate(225deg)}
.psf-panel .psf-group-body {padding:0 1px 13px}
.psf-panel .psf-hint {font-size:11px; color:var(--psf-muted); margin:0 0 9px; line-height:1.45}
.psf-panel .psf-prices {display:flex; gap:9px; margin:2px 0 10px}
.psf-panel .psf-prices > label {font-size:11px; font-weight:700; color:var(--psf-muted); min-width:0; flex:1}
.psf-panel .psf-prices input {display:block; margin:4px 0 0!important; padding:8px!important; background:#fff!important; border:1px solid #d6e0e9!important; border-radius:7px!important; width:100%!important; max-width:100%!important; height:36px!important; color:var(--psf-navy)!important; font-size:13px!important; box-shadow:none!important}
.psf-panel .psf-budgets {display:flex; flex-wrap:wrap; gap:5px}
.psf-panel .psf-budgets button {margin:0!important; padding:6px 8px!important; background:#f4f8fb!important; border:1px solid #dbe6ec!important; border-radius:22px!important; color:var(--psf-navy)!important; font-weight:700!important; font-size:10px!important; text-transform:none!important; min-height:auto!important; line-height:1.25!important; letter-spacing:normal!important; box-shadow:none!important}
.psf-panel .psf-budgets button:hover,.psf-panel .psf-budgets button.is-selected {background:#e3f5fb!important;border-color:#8dc9d9!important}
.psf-panel .psf-option {display:flex; align-items:flex-start; gap:9px; margin:0!important; padding:5px 1px; font-size:12px; color:#31465b; cursor:pointer; line-height:1.4; font-weight:450}
.psf-panel .psf-option span {min-width:0}
.psf-panel .psf-option input[type="checkbox"],.psf-panel .psf-option input[type="radio"] {accent-color:#028bab; width:15px; height:15px; flex:0 0 15px; margin:1px 0 0!important; box-shadow:none!important; cursor:pointer}
.psf-panel .psf-option:has(input:checked) {font-weight:750; color:#064d6b}
.psf-panel .psf-search-wrap {display:block;margin-bottom:7px}
.psf-panel input.psf-option-search {width:100%!important; height:32px!important; border-radius:7px!important; padding:7px 10px!important; font-size:12px!important; box-shadow:none!important; background:#fff!important; margin:0!important; border:1px solid #d6e0e9!important}
.psf-panel .psf-options-scroll {max-height:190px; overflow:auto; padding-right:4px; scrollbar-width:thin}
.psf-panel .psf-stock {padding:14px 1px 10px}
.psf-panel .psf-stock .psf-option {align-items:center}
.psf-panel .psf-submit-bar {display:flex; align-items:center; gap:8px; margin-top:8px; padding-top:9px; border-top:1px solid var(--psf-stroke)}
.psf-panel .psf-reset {font-size:11px; font-weight:700; color:var(--psf-muted); text-decoration:underline; flex:0 0 auto}
.psf-panel button.psf-submit {display:flex; justify-content:center; align-items:center; flex:1; gap:6px; margin:0!important; padding:10px!important; border:0!important; border-radius:8px!important; color:#fff!important; background:#008fad!important; font-size:12px!important; text-transform:none!important; font-weight:750!important; letter-spacing:0!important; line-height:1.3!important; min-height:39px!important; box-shadow:none!important}
.psf-panel button.psf-submit:hover {background:#057895!important}
.psf-panel a:focus-visible,.psf-panel button:focus-visible,.psf-panel summary:focus-visible,.psf-panel input:focus-visible {outline:2px solid var(--psf-focus); outline-offset:2px}
.psf-mobile-open {display:none!important; border-radius:7px!important; padding:8px 14px!important; min-height:38px!important; font-size:12px!important; font-weight:700!important; background:#fff!important; border:1px solid #aec6d6!important; color:#12344e!important; text-transform:none!important; letter-spacing:0!important; margin:4px 0 10px!important; line-height:1.25!important}
.psf-overlay {position:fixed; inset:0; background:rgba(9,25,41,.55); z-index:999997; opacity:0; visibility:hidden; transition:opacity .18s ease,visibility .18s ease}
.psf-overlay.is-open {opacity:1; visibility:visible}
@media (max-width:849px) {
 .psf-mobile-open {display:inline-flex!important; gap:8px; align-items:center}
 .psf-panel {position:fixed!important; z-index:999998!important; top:0!important; right:0!important; bottom:0!important; width:min(410px,95vw)!important; max-width:95vw!important; height:100dvh!important; max-height:100dvh!important; transform:translateX(105%); transition:transform .22s ease; border-radius:0!important; box-shadow:-7px 0 25px rgba(0,0,0,.10)!important; overflow-y:auto!important; overscroll-behavior:contain; padding:18px!important; visibility:hidden}
 .psf-panel.is-open {transform:translateX(0); visibility:visible}
 .psf-panel .psf-close {display:block}
 .psf-panel .psf-head {position:sticky; top:-18px; z-index:2; background:#fff; padding:11px 0; margin-top:-10px; border-bottom:1px solid var(--psf-stroke)}
 .psf-panel .psf-submit-bar {position:sticky; bottom:-18px; z-index:2; background:#fff; padding:12px 0 14px; margin-bottom:-12px; box-shadow:0 -6px 14px rgba(255,255,255,.92)}
 body.psf-drawer-lock {overflow:hidden!important; touch-action:none}
}
@media (prefers-reduced-motion:reduce) {.psf-panel,.psf-overlay,.psf-chevron {transition:none!important}}
.psf-panel .psf-option[hidden] {display:none!important}

/* ===========================================================
   Penshelf Smart Product Filters v1.1 — UX refinements
   Larger touch targets and a genuinely usable mobile drawer.
   Does not change the WooCommerce product-grid column widths.
=========================================================== */
.psf-panel {line-height:1.5; padding:16px 15px}
.psf-panel .psf-kicker {font-size:10px; letter-spacing:1.15px}
.psf-panel .psf-title {font-size:18px; font-weight:700; line-height:1.3; letter-spacing:-.15px}
.psf-panel .psf-group > summary {font-size:13px; min-height:43px; padding:11px 1px; font-weight:700}
.psf-panel .psf-group-body {padding-bottom:13px}
.psf-panel .psf-hint {font-size:12px; line-height:1.45}
.psf-panel .psf-section-label {font-size:13px}
.psf-panel .psf-option {font-size:13px; line-height:1.45; min-height:32px; padding:7px 1px; gap:10px}
.psf-panel .psf-option input[type="checkbox"],
.psf-panel .psf-option input[type="radio"] {height:17px; width:17px; flex-basis:17px; margin-top:1px!important}
.psf-panel .psf-prices {gap:8px; flex-wrap:wrap}
.psf-panel .psf-prices > label {font-size:12px; flex:1 1 64px}
.psf-panel .psf-prices input {min-width:0; font-size:13px!important; height:40px!important}
.psf-panel .psf-budgets {gap:6px}
.psf-panel .psf-budgets button {font-size:11px!important; padding:7px 9px!important; min-height:30px!important}
.psf-panel .psf-option-search {font-size:13px!important}
.psf-panel input.psf-option-search {height:40px!important; font-size:13px!important}
.psf-panel button.psf-submit {min-height:44px!important; font-size:12px!important; padding:10px 9px!important}
.psf-panel .psf-reset {font-size:12px}
.psf-panel .psf-chip {font-size:12px; padding:6px 9px}
.psf-panel .psf-stock {padding:12px 1px 8px}
.psf-panel .psf-filter-scroll {display:block}
.psf-panel .psf-option[hidden] {display:none!important}
.psf-trigger-count {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:21px; height:21px; padding:0 5px; border-radius:50%;
  background:#008eac; color:#fff; font-size:11px; font-weight:700;
}
.psf-trigger-count[hidden] {display:none!important}
.psf-mobile-open {align-items:center; justify-content:center; gap:9px; min-height:44px!important; font-size:14px!important; padding:10px 15px!important}
.psf-mobile-auto {clear:both; margin-right:12px!important}

@media (max-width:849px) {
  .psf-panel {
    display:flex!important;
    flex-direction:column!important;
    width:min(420px, 100vw)!important;
    max-width:100vw!important;
    height:100vh!important;
    height:100dvh!important;
    max-height:100dvh!important;
    padding:0!important;
    overflow:hidden!important;
    border:0!important;
    border-radius:0!important;
  }
  .psf-panel .psf-head {
    position:static!important;
    flex:0 0 auto;
    margin:0!important;
    padding:18px 20px 14px!important;
    border-bottom:1px solid var(--psf-stroke);
  }
  .psf-panel .psf-title {font-size:20px}
  .psf-panel .psf-close {
    display:inline-flex; justify-content:center; align-items:center;
    width:44px; height:44px; min-width:44px; min-height:44px;
    padding:0!important; margin:0!important; border-radius:50%;
    font-size:23px;
  }
  .psf-panel .psf-close:hover {background:#eef5f8}
  .psf-panel .psf-applied {margin:10px 18px 0; padding:11px; max-height:116px; overflow-y:auto; flex:0 0 auto}
  .psf-panel .psf-form {display:flex; flex-direction:column; flex:1 1 auto; min-height:0; overflow:hidden; padding:0!important}
  .psf-panel .psf-filter-scroll {
    display:block; flex:1 1 auto; min-height:0; overflow-y:auto;
    overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
    padding:4px 20px 20px;
  }
  .psf-panel .psf-group > summary {font-size:15px; min-height:50px}
  .psf-panel .psf-option {font-size:14px; min-height:42px; align-items:center; padding:9px 1px}
  .psf-panel .psf-option input[type="checkbox"],
  .psf-panel .psf-option input[type="radio"] {width:19px; height:19px; flex-basis:19px; margin-top:0!important}
  .psf-panel .psf-budgets button {font-size:12px!important; min-height:37px!important; padding:9px 12px!important}
  .psf-panel .psf-prices input {height:44px!important}
  .psf-panel .psf-submit-bar {
    position:static!important; flex:0 0 auto; bottom:auto!important;
    margin:0!important; padding:12px 20px calc(12px + env(safe-area-inset-bottom))!important;
    border-top:1px solid var(--psf-stroke);
    box-shadow:0 -5px 15px rgba(17,45,68,.06)!important;
    background:#fff;
  }
  .psf-panel .psf-reset {display:inline-flex; min-height:44px; align-items:center; padding:0 10px}
  .psf-panel button.psf-submit {min-height:46px!important; font-size:14px!important}
  body.psf-drawer-lock {overflow:hidden!important; touch-action:auto!important}
}

/* ============================================================
   Penshelf Smart Filters v1.2 — UNIVERSAL & KNOWLEDGE ZONE
   Keeps the existing v1.1 desktop / mobile drawer visual language.
============================================================ */
.psf-panel .psf-options-scroll { max-height: 230px; }
.psf-panel .psf-title { overflow-wrap: anywhere; }
.psf-panel .psf-group > summary { cursor: pointer; }
.psf-panel .psf-option { user-select: none; }
.psf-knowledge {
  --psf-navy:#112d44; --psf-teal:#008eac; --psf-stroke:#e1e8ef;
  --psf-muted:#657689; --psf-soft:#f5f8fa;
  color:var(--psf-navy); max-width:1240px; margin:0 auto 32px;
}
.psf-knowledge * { box-sizing:border-box; }
.psf-knowledge-lead { margin:0 0 18px; }
.psf-knowledge-lead h2 {font-family:Georgia,'Times New Roman',serif; font-size:clamp(24px,3vw,33px);line-height:1.18;margin:6px 0 7px;color:var(--psf-navy)}
.psf-knowledge-lead p {font-size:14px;color:var(--psf-muted);margin:0;line-height:1.55}
.psf-knowledge-layout { display:grid; grid-template-columns:minmax(225px,260px) minmax(0,1fr); gap:24px; align-items:start; }
.psf-knowledge-layout > .psf-panel { min-width:0; }
.psf-knowledge-search {padding:14px 0 15px;}
.psf-knowledge-search label {display:block;font-weight:700;font-size:13px;margin:0 0 7px;}
.psf-knowledge-search input {width:100%!important;min-height:42px!important;border:1px solid #d6e0e9!important;border-radius:8px!important;padding:8px 11px!important;font-size:13px!important;box-shadow:none!important;margin:0!important;}
.psf-knowledge-results { min-width:0; }
.psf-knowledge-result-head {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 16px;border-bottom:1px solid var(--psf-stroke);padding-bottom:13px;font-size:14px;}
.psf-knowledge-result-head a {display:inline-block;color:#007e9d;font-weight:700;text-decoration:none;font-size:13px;}
.psf-article-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px; }
.psf-article-card {border:1px solid var(--psf-stroke); border-radius:11px;overflow:hidden;background:#fff;box-shadow:0 2px 10px rgba(16,40,63,.028);min-width:0;}
.psf-article-image {height:155px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#f0f5f8;text-decoration:none;}
.psf-article-image img {display:block;width:100%;height:100%;object-fit:cover;}
.psf-article-placeholder {font-family:Georgia,serif;font-size:64px;color:#9db1c0;}
.psf-article-info {padding:13px;}
.psf-article-meta {font-size:11px;color:var(--psf-muted);margin-bottom:6px;}
.psf-article-info h3 {font-size:15px;line-height:1.35;font-family:Georgia,'Times New Roman',serif;color:var(--psf-navy);margin:0 0 9px;}
.psf-article-info h3 a {text-decoration:none;color:inherit;}
.psf-article-info p {font-size:12px;line-height:1.5;color:var(--psf-muted);margin:0 0 9px;}
.psf-article-info .psf-read-guide {font-size:12px;font-weight:750;color:#0088aa;text-decoration:none;}
.psf-article-info a:hover,.psf-knowledge-result-head a:hover {text-decoration:underline;}
.psf-pages {display:flex;flex-wrap:wrap;gap:7px;margin:20px 0;}
.psf-pages a {display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid var(--psf-stroke);border-radius:7px;font-size:13px;color:var(--psf-navy);text-decoration:none;}
.psf-pages a[aria-current="page"] {background:#008eac;color:#fff;border-color:#008eac;}
.psf-empty {padding:23px;border:1px dashed #d9e5ec;border-radius:10px;color:var(--psf-muted);}
.psf-knowledge-note {padding:15px 16px;background:#f3f9fb;border-radius:9px;margin:20px 0 0;font-size:13px;color:var(--psf-navy);line-height:1.5;}
.psf-knowledge-mobile {display:none!important;}
.psf-knowledge .psf-panel .psf-filter-scroll { min-height:0; }
@media(max-width:1099px) {
  .psf-article-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:849px) {
  .psf-knowledge-layout {display:block;}
  .psf-knowledge-mobile {display:inline-flex!important;margin-bottom:15px!important;}
  .psf-article-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  .psf-knowledge .psf-panel {font-family:inherit;}
}
@media(max-width:549px) {
  .psf-article-grid {grid-template-columns:1fr;gap:12px;}
  .psf-article-image {height:180px;}
  .psf-knowledge-result-head {align-items:flex-start;}
}
