/* «Вечёра» — фильтр каталога по центру, в стиле умного поиска. v1.0.0 */
#catfilter.vf{--vf-coral:#FA7368;--vf-coral-d:#D9493D;--vf-red:#EA4A35;--vf-ink:#3B3B3B;--vf-text:#4a4544;--vf-muted:#7a706e;--vf-powder:#FAF6F5;--vf-pink:#FDF0EE;--vf-line:#efe3e1;--vf-grad:linear-gradient(135deg,#FF8F6B 0%,#FA6A5E 55%,#EF4D5A 100%);--vf-sans:"PT Sans","Segoe UI",Arial,sans-serif;--vf-serif:"PT Serif",Georgia,"Times New Roman",serif;
  max-width:1000px;margin:0 auto 30px!important;font-family:var(--vf-sans);color:var(--vf-ink);text-align:center}
#catfilter.vf [hidden]{display:none!important}
html body #catfilter.vf .catfilter__bar{position:relative;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;padding:18px 20px 20px;background:#fff;border:1px solid var(--vf-line);border-radius:26px;box-shadow:0 6px 20px rgba(0,0,0,.06)}
#catfilter.vf .vf-head{flex:1 0 100%;display:flex;align-items:center;justify-content:center;gap:10px;margin:0 0 4px;font-family:var(--vf-serif);font-weight:700;font-size:20px;line-height:1.3;color:var(--vf-ink)}
#catfilter.vf .vf-head svg{flex:none;width:22px;height:22px;color:var(--vf-coral-d)}
#catfilter.vf .vf-count{flex:1 0 100%;margin:2px 0 0;font-size:14px;color:var(--vf-muted)}
#catfilter.vf .vf-count:empty{display:none}
#catfilter.vf .vf-count b{color:var(--vf-coral-d)}
html body #catfilter.vf .catfilter__group{position:relative}
html body #catfilter.vf .catfilter__btn{display:inline-flex;align-items:center;gap:8px;min-height:46px;margin:0;padding:0 18px 0 20px!important;border:1px solid transparent!important;border-radius:999px!important;background:#f3f1f1!important;color:var(--vf-ink)!important;font:700 15px/1 var(--vf-sans)!important;box-shadow:none!important;cursor:pointer;transform:none!important;filter:none!important;transition:background-color .2s,border-color .2s,box-shadow .2s}
html body #catfilter.vf .catfilter__btn:hover{background:#fff!important;border-color:var(--vf-coral)!important}
html body #catfilter.vf .catfilter__btn[aria-expanded="true"]{background:#fff!important;border-color:var(--vf-coral)!important;box-shadow:0 0 0 4px rgba(250,115,104,.18)!important}
html body #catfilter.vf .catfilter__group.has-active .catfilter__btn{background:var(--vf-pink)!important;border-color:var(--vf-coral)!important;color:var(--vf-coral-d)!important}
html body #catfilter.vf .catfilter__badge{min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:var(--vf-grad);color:#fff;font-size:12px;line-height:22px;font-weight:700;text-align:center;display:inline-block}
html body #catfilter.vf .catfilter__caret{display:inline-block;width:14px;height:14px;font-size:0;color:transparent;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D9493D' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/14px no-repeat;transition:transform .2s}
html body #catfilter.vf .catfilter__btn[aria-expanded="true"] .catfilter__caret{transform:rotate(180deg)}
/* выпадающий список — как подсказки поиска */
html body #catfilter.vf .catfilter__pop{position:absolute;z-index:1000;top:calc(100% + 10px);left:50%;right:auto;transform:translateX(-50%);min-width:280px;max-width:min(360px,calc(100vw - 24px));max-height:min(64vh,460px);overflow:auto;display:flex;flex-direction:column;gap:2px;margin:0;padding:8px!important;background:#fff;border:0!important;border-radius:16px!important;box-shadow:0 22px 50px -12px rgba(30,20,20,.28),0 0 0 1px rgba(239,227,225,.7)!important;text-align:left}
#catfilter.vf .vf-pop-h{display:none}
html body #catfilter.vf .catfilter__opt{position:relative;display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;cursor:pointer;font-size:15px;line-height:1.25;color:var(--vf-ink);white-space:normal;transition:background-color .15s}
html body #catfilter.vf .catfilter__opt:hover{background:var(--vf-pink)}
html body #catfilter.vf .catfilter__cb{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
#catfilter.vf .catfilter__opt::before{content:"";flex:none;width:20px;height:20px;border:2px solid #dccfcd;border-radius:6px;background:#fff center/12px no-repeat;transition:background-color .15s,border-color .15s}
#catfilter.vf .catfilter__opt.is-on::before{border-color:transparent;background-color:#EF5A5E;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E")}
#catfilter.vf .catfilter__opt.is-on{color:var(--vf-coral-d);font-weight:700}
#catfilter.vf .catfilter__opt:has(.catfilter__cb:focus-visible){box-shadow:0 0 0 3px rgba(250,115,104,.35)}
#catfilter.vf .vf-pop-f{position:sticky;bottom:-8px;display:flex;gap:8px;justify-content:space-between;align-items:center;margin:6px -8px -8px;padding:10px 10px;background:#fff;border-top:1px solid var(--vf-line)}
#catfilter.vf .vf-clear{border:0;background:none;color:var(--vf-coral-d);font:700 14px var(--vf-sans);cursor:pointer;padding:8px 6px}
#catfilter.vf .vf-clear:disabled{color:#c4bab8;cursor:default}
#catfilter.vf .vf-done{border:0;border-radius:999px;padding:10px 22px;background:var(--vf-grad);color:#fff;font:700 15px var(--vf-sans);cursor:pointer;box-shadow:0 10px 22px -12px rgba(239,77,90,.7)}
html body #catfilter.vf .catfilter__reset{display:inline-flex;align-items:center;gap:6px;min-height:46px;margin:0;padding:0 12px!important;background:none!important;border:0!important;box-shadow:none!important;color:var(--vf-coral-d)!important;font:700 15px var(--vf-sans)!important;text-decoration:none!important;cursor:pointer;transform:none!important}
html body #catfilter.vf .catfilter__reset:hover{text-decoration:underline!important}
html body #catfilter.vf .catfilter__active{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:14px}
html body #catfilter.vf .catfilter__tag{display:inline-flex;align-items:center;gap:6px;padding:6px 6px 6px 14px;border:1px solid var(--vf-line);border-radius:999px;background:var(--vf-powder);color:var(--vf-ink);font-weight:400;font-size:14px;line-height:1.2}
html body #catfilter.vf .catfilter__tag button{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;min-height:0;padding:0!important;border:0!important;border-radius:50%;background:#fff!important;color:var(--vf-coral-d)!important;font-size:16px;line-height:1;cursor:pointer;box-shadow:none!important;transform:none!important}
html body #catfilter.vf .catfilter__tag button:hover{background:var(--vf-coral)!important;color:#fff!important}
html body .product-list.catfilter-loading{opacity:.45;pointer-events:none;transition:opacity .2s ease}
.vf-backdrop{display:none}
@media (max-width:640px){
  #catfilter.vf{margin-bottom:22px!important}
  html body #catfilter.vf .catfilter__bar{display:flex;flex-wrap:wrap;gap:8px;padding:14px 12px 14px;border-radius:20px}
  html body #catfilter.vf .catfilter__group{flex:1 1 40%;min-width:0}
  #catfilter.vf .vf-head{font-size:18px}
  #catfilter.vf .vf-count{order:9}
  html body #catfilter.vf .catfilter__btn{width:100%;justify-content:space-between;min-height:44px;padding:0 12px 0 14px!important;font-size:14px!important}
  html body #catfilter.vf .catfilter__btn-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;flex:1}
  html body #catfilter.vf .catfilter__group.vf-wide{flex-basis:100%}
  html body #catfilter.vf .catfilter__reset{flex:1 0 100%;justify-content:center;min-height:36px}
  /* список — шторка снизу, как поиск на телефоне */
  html body #catfilter.vf .catfilter__pop{position:fixed;z-index:100002;top:auto;bottom:0;left:0;right:0;transform:none;min-width:0;max-width:none;max-height:78vh;border-radius:22px 22px 0 0!important;padding:8px 12px 0!important;box-shadow:0 -10px 40px rgba(30,20,20,.25)!important}
  #catfilter.vf .vf-pop-h{display:block;position:sticky;top:-8px;z-index:1;margin:-8px -12px 4px;padding:16px 16px 10px;background:#fff;font:700 18px var(--vf-serif);text-align:center;border-bottom:1px solid var(--vf-line)}
  #catfilter.vf .vf-pop-h::before{content:"";display:block;width:42px;height:4px;margin:-6px auto 10px;border-radius:4px;background:#e4d9d7}
  html body #catfilter.vf .catfilter__opt{padding:13px 10px;font-size:16px}
  #catfilter.vf .vf-pop-f{bottom:0;margin:6px -12px 0;padding:12px 14px calc(12px + env(safe-area-inset-bottom))}
  #catfilter.vf .vf-done{flex:1;padding:13px 22px;font-size:16px}
  .vf-backdrop.is-on{display:block;position:fixed;inset:0;z-index:100001;background:rgba(40,30,30,.45)}
  html.vf-lock,html.vf-lock body{overflow:hidden}
}
@media (prefers-reduced-motion:reduce){#catfilter.vf *{transition:none!important}}
