
.ifp-wtb-smart-filter{--ifp-wtb-filter-accent:#2563eb;--ifp-wtb-filter-border:#d8dee8;--ifp-wtb-filter-muted:#64748b;--ifp-wtb-filter-panel-bg:#fff;--ifp-wtb-filter-radius:18px;display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:24px;align-items:start;margin:24px 0}
.ifp-wtb-smart-filter--top{display:block}
.ifp-wtb-smart-filter--top .ifp-wtb-smart-filter__panel{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-bottom:20px}
.ifp-wtb-smart-filter__panel{background:var(--ifp-wtb-filter-panel-bg);border:1px solid var(--ifp-wtb-filter-border);border-radius:var(--ifp-wtb-filter-radius);padding:18px;box-shadow:0 12px 30px rgba(15,23,42,.08);position:sticky;top:var(--ifp-wtb-filter-sticky-offset,20px)}
.ifp-wtb-smart-filter__panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;font-size:16px}
.ifp-wtb-smart-filter__group{border:1px solid #edf1f7;border-radius:14px;margin:10px 0;background:#f8fafc;overflow:hidden}
.ifp-wtb-smart-filter__group summary{cursor:pointer;font-weight:700;padding:12px 14px;list-style:none;display:flex;justify-content:space-between;gap:10px}
.ifp-wtb-smart-filter__group summary:after{content:"⌄";color:var(--ifp-wtb-filter-muted)}
.ifp-wtb-smart-filter__group[open] summary:after{content:"⌃"}
.ifp-wtb-smart-filter__group>label,.ifp-wtb-smart-filter__checks label,.ifp-wtb-smart-filter__tree label{display:flex;align-items:center;gap:8px;padding:7px 14px;color:#111827}
.ifp-wtb-smart-filter__checks{max-height:260px;overflow:auto;padding:0 0 10px}
.ifp-wtb-smart-filter__tree{max-height:360px;overflow:auto;padding:0 0 10px}
.ifp-wtb-smart-filter__tree-list{list-style:none;margin:0;padding:0}
.ifp-wtb-smart-filter__tree-list ul{margin-left:16px;border-left:1px dashed #cbd5e1}
.ifp-wtb-smart-filter__tree li{margin:0}
.ifp-wtb-smart-filter small{color:var(--ifp-wtb-filter-muted);font-size:12px}
.ifp-wtb-smart-filter input[type="search"],.ifp-wtb-smart-filter input[type="number"]{width:100%;border:1px solid var(--ifp-wtb-filter-border);border-radius:10px;padding:10px 12px;background:#fff}
.ifp-wtb-smart-filter__search{margin:0 14px 14px;width:calc(100% - 28px)!important}
.ifp-wtb-smart-filter__range{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 14px 14px}
.ifp-wtb-smart-filter__actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px}
.ifp-wtb-smart-filter__actions .button,.ifp-wtb-smart-filter__drawer-open{border:0;border-radius:999px;background:var(--ifp-wtb-filter-accent);color:#fff;padding:10px 16px;font-weight:700;cursor:pointer;text-decoration:none}
.ifp-wtb-smart-filter__reset,.ifp-wtb-smart-filter__drawer-close{border:0;background:transparent;color:var(--ifp-wtb-filter-muted);cursor:pointer}
.ifp-wtb-smart-filter__content{min-width:0}
.ifp-wtb-smart-filter__chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.ifp-wtb-smart-filter__chip{border:1px solid var(--ifp-wtb-filter-border);background:#fff;border-radius:999px;padding:6px 10px;font-size:13px;display:inline-flex;gap:7px;align-items:center}
.ifp-wtb-smart-filter__chip button{border:0;background:transparent;cursor:pointer;font-size:16px;line-height:1;color:#64748b}
.ifp-wtb-smart-filter__meta,.ifp-wtb-smart-filter__count{color:var(--ifp-wtb-filter-muted);font-size:14px;margin-bottom:14px}
.ifp-wtb-smart-filter__results.is-loading{opacity:.55;pointer-events:none}
.ifp-wtb-smart-filter__loop{clear:none}
.ifp-wtb-smart-filter__mobilebar{display:none;margin-bottom:12px}
.ifp-wtb-smart-filter__drawer-close{display:none;font-size:24px}
@media (max-width: 900px){
  .ifp-wtb-smart-filter{display:block}
  .ifp-wtb-smart-filter__mobilebar{display:block}
  .ifp-wtb-smart-filter__panel{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:99999;max-height:82vh;overflow:auto;border-radius:22px 22px 0 0;transform:translateY(110%);transition:transform .2s ease}
  .ifp-wtb-smart-filter.is-drawer-open .ifp-wtb-smart-filter__panel{transform:translateY(0)}
  .ifp-wtb-smart-filter__drawer-close{display:inline-block}
}


/* v0.1.94: automatische WooCommerce-Archiv-Einbindung. Nur aktiv, wenn im Smart Filter Manager bewusst eingeschaltet. */
.ifp-wtb-smart-filter-auto-wrap{clear:both;width:100%;margin:0 0 28px}
body.ifp-wtb-smart-filter-auto-replace.woocommerce-page .woocommerce > ul.products:not(.ifp-wtb-smart-filter__loop),
body.ifp-wtb-smart-filter-auto-replace.woocommerce-page .woocommerce > .products:not(.ifp-wtb-smart-filter__loop),
body.ifp-wtb-smart-filter-auto-replace.woocommerce-page .woocommerce-pagination,
body.ifp-wtb-smart-filter-auto-replace.woocommerce-page .woocommerce-result-count,
body.ifp-wtb-smart-filter-auto-replace.woocommerce-page .woocommerce-ordering{display:none!important}
.ifp-wtb-smart-filter--managed{margin-top:12px;margin-bottom:28px}
.ifp-wtb-smart-filter--managed.ifp-wtb-smart-filter--top .ifp-wtb-smart-filter__panel{position:relative;top:auto;box-shadow:0 10px 24px rgba(15,23,42,.07)}


/* v0.1.95 Smart Filter Designer */
.ifp-wtb-smart-filter--style-flat .ifp-wtb-smart-filter__panel{box-shadow:none}
.ifp-wtb-smart-filter--style-glass .ifp-wtb-smart-filter__panel{background:color-mix(in srgb,var(--ifp-wtb-filter-panel-bg) 82%,transparent);backdrop-filter:blur(12px)}
.ifp-wtb-smart-filter--density-compact{gap:14px}
.ifp-wtb-smart-filter--density-compact .ifp-wtb-smart-filter__panel{padding:12px}
.ifp-wtb-smart-filter--density-compact .ifp-wtb-smart-filter__group{margin:6px 0}
.ifp-wtb-smart-filter--density-compact .ifp-wtb-smart-filter__group summary{padding:9px 11px}
.ifp-wtb-smart-filter--density-compact .ifp-wtb-smart-filter__group>label,
.ifp-wtb-smart-filter--density-compact .ifp-wtb-smart-filter__checks label,
.ifp-wtb-smart-filter--density-compact .ifp-wtb-smart-filter__tree label{padding:5px 11px}
.ifp-wtb-smart-filter__chip{border-color:color-mix(in srgb,var(--ifp-wtb-filter-accent) 28%,var(--ifp-wtb-filter-border));}
.ifp-wtb-smart-filter__chip button{color:var(--ifp-wtb-filter-accent)}


/* v0.1.99 Smart Filter Performance */
.ifp-wtb-smart-filter{
  contain:layout style;
}
.ifp-wtb-smart-filter__panel{
  contain:layout paint style;
  transform:translateZ(0);
}
.ifp-wtb-smart-filter__content{
  contain:layout style;
}
.ifp-wtb-smart-filter__results{
  min-height:80px;
}
.ifp-wtb-smart-filter__results .products,
.ifp-wtb-smart-filter__loop{
  content-visibility:auto;
  contain-intrinsic-size:1px 900px;
}
.ifp-wtb-smart-filter__results .product{
  content-visibility:auto;
  contain-intrinsic-size:1px 360px;
}
.ifp-wtb-smart-filter__results img{
  content-visibility:auto;
}
.ifp-wtb-smart-filter.is-updating .ifp-wtb-smart-filter__results{
  pointer-events:none;
}
.ifp-wtb-smart-filter.is-updating .ifp-wtb-smart-filter__meta::after{
  content:"";
  display:inline-block;
  width:.85em;
  height:.85em;
  margin-left:.45em;
  border:2px solid currentColor;
  border-right-color:transparent;
  border-radius:999px;
  vertical-align:-.12em;
  animation:ifp-wtb-filter-spin .75s linear infinite;
}
.ifp-wtb-smart-filter__results.is-loading{
  opacity:1;
}
@keyframes ifp-wtb-filter-spin{
  to{transform:rotate(360deg)}
}
@media (prefers-reduced-motion: reduce){
  .ifp-wtb-smart-filter__panel{transition:none!important}
  .ifp-wtb-smart-filter.is-updating .ifp-wtb-smart-filter__meta::after{animation:none}
}


/* v0.2.02 Smart Filter: WooCommerce-Standardloop nur im aktivierten Ersatzmodus ausblenden. */
body.ifp-wtb-smart-filter-auto-replace .woocommerce-result-count,
body.ifp-wtb-smart-filter-auto-replace .woocommerce-ordering,
body.ifp-wtb-smart-filter-auto-replace nav.woocommerce-pagination,
body.ifp-wtb-smart-filter-auto-replace .woocommerce-products-header,
body.ifp-wtb-smart-filter-auto-replace .woocommerce > ul.products.ifp-wtb-woocommerce-loop-suppressed,
body.ifp-wtb-smart-filter-auto-replace .woocommerce-page ul.products.ifp-wtb-woocommerce-loop-suppressed,
body.ifp-wtb-smart-filter-shortcode-replace .woocommerce-result-count,
body.ifp-wtb-smart-filter-shortcode-replace .woocommerce-ordering,
body.ifp-wtb-smart-filter-shortcode-replace nav.woocommerce-pagination,
body.ifp-wtb-smart-filter-shortcode-replace .woocommerce-products-header,
body.ifp-wtb-smart-filter-shortcode-replace .woocommerce > ul.products:not(.ifp-wtb-smart-filter__loop),
body.ifp-wtb-smart-filter-shortcode-replace .woocommerce-page ul.products:not(.ifp-wtb-smart-filter__loop):not(.ifp-wtb-smart-filter__tree-list){
  display:none!important;
}


/* Smart Shop Engine Phase 1: eigene Pagination der WooToolbox-Produktliste. */
.ifp-wtb-smart-filter__pagination{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin:22px 0 4px}
.ifp-wtb-smart-filter__page,.ifp-wtb-smart-filter__load-more{border:1px solid var(--ifp-wtb-filter-border);background:#fff;color:#0f172a;border-radius:999px;padding:9px 13px;font-weight:700;cursor:pointer;line-height:1.1;transition:transform .12s ease,background .12s ease,border-color .12s ease}
.ifp-wtb-smart-filter__page:hover,.ifp-wtb-smart-filter__load-more:hover{transform:translateY(-1px);border-color:var(--ifp-wtb-filter-accent)}
.ifp-wtb-smart-filter__page.is-current,.ifp-wtb-smart-filter__page[disabled]{background:var(--ifp-wtb-filter-accent);border-color:var(--ifp-wtb-filter-accent);color:#fff;cursor:default;transform:none}
.ifp-wtb-smart-filter__page[disabled]:not(.is-current),.ifp-wtb-smart-filter__load-more[disabled]{opacity:.45;cursor:not-allowed;transform:none}
.ifp-wtb-smart-filter__page-gap{color:var(--ifp-wtb-filter-muted);padding:0 3px}
.ifp-wtb-smart-filter--pagination-load_more .ifp-wtb-smart-filter__pagination .ifp-wtb-smart-filter__page,.ifp-wtb-smart-filter--pagination-load_more .ifp-wtb-smart-filter__pagination .ifp-wtb-smart-filter__page-gap{display:none}
.ifp-wtb-smart-filter--pagination-numbers .ifp-wtb-smart-filter__load-more{display:none}
.ifp-wtb-smart-filter--pagination-none .ifp-wtb-smart-filter__pagination{display:none}


/* v0.2.34 – Smart Filter: robuste aktive Bild-/Optionsfilter */
.ifp-wtb-smart-filter__checks label,
.ifp-wtb-smart-filter__tree label,
.ifp-wtb-smart-filter__option,
.ifp-wtb-smart-filter__image-option{
  position:relative;
}

.ifp-wtb-smart-filter__checks label.is-active,
.ifp-wtb-smart-filter__tree label.is-active,
.ifp-wtb-smart-filter__option.is-active,
.ifp-wtb-smart-filter__image-option.is-active{
  border-color:var(--ifp-wtb-filter-accent);
  background:rgba(37,99,235,.08);
}

.ifp-wtb-smart-filter__image-remove,
.ifp-wtb-smart-filter__option-remove{
  position:absolute;
  top:6px;
  right:6px;
  width:22px;
  height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:999px;
  background:rgba(15,23,42,.82);
  color:#fff;
  cursor:pointer;
  line-height:1;
  font-weight:700;
  z-index:2;
}

.ifp-wtb-smart-filter__chip-remove{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}


/* v0.2.35 Smart Filter: Archiv-/Kategorie-Kontext als entfernbarer Filter-Chip */
.ifp-wtb-smart-filter__chip--context{
  border-color:color-mix(in srgb,var(--ifp-wtb-filter-accent) 38%,var(--ifp-wtb-filter-border));
  background:color-mix(in srgb,var(--ifp-wtb-filter-accent) 8%,#fff);
  font-weight:700;
}

.ifp-wtb-smart-filter__meta:empty{display:none;}
