/* THFS filter bar — THSC/thcat horizontal language (TEST). Not the Böker sidebar. */
.thfs-filters{
	--thfs-green:#183c2b;--thfs-green-2:#2f6d4b;--thfs-green-soft:#eaf2ec;--thfs-orange:#b75a24;
	--thfs-ink:#17231c;--thfs-muted:#5d6a61;--thfs-line:#d6ddd8;--thfs-paper:#fff;
	background:var(--thfs-paper);border:1px solid var(--thfs-line);padding:1rem 1.15rem 1.1rem;
	color:var(--thfs-ink);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.45;
	margin:0 0 1.25rem;position:relative;z-index:5;width:100%;box-sizing:border-box;
}
.thfs-filters--bar{display:block}
.thfs-filters-head{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.65rem}
.thfs-filters-title{display:flex;flex-direction:column;gap:.1rem}
.thfs-filters-title span{font-size:.78rem;color:var(--thfs-muted);text-transform:uppercase;letter-spacing:.04em}
.thfs-filters-title strong{font-size:1.05rem;color:var(--thfs-green)}
.thfs-filter-toggle{
	border:1px solid var(--thfs-green);background:#fff;color:var(--thfs-green);
	font-weight:700;padding:.55rem .85rem;border-radius:.25rem;cursor:pointer;
}
.thfs-filter-close{display:none;border:0;background:transparent;font-size:1.8rem;line-height:1;cursor:pointer}
.thfs-clear-all{border:0;background:transparent;color:var(--thfs-green-2);font-weight:700;padding:.35rem 0;cursor:pointer}
.thfs-active-filters{display:flex;flex-wrap:wrap;gap:.35rem;margin:.35rem 0 .5rem}
.thfs-active-filter,.active-filter.thfs-active-filter{
	border:1px solid #a8b9ae;background:var(--thfs-green-soft);color:var(--thfs-green);
	border-radius:99px;padding:.3rem .55rem;font-size:.77rem;cursor:pointer;
}
.thfs-filter-fields{
	display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.35rem 1.1rem;
	align-items:start;
}
.thfs-offer-shortcut{grid-column:1/-1;border:1px solid #cfe0d4;background:var(--thfs-green-soft);border-radius:.3rem;padding:.7rem .85rem;margin-bottom:.25rem}
.thfs-offer-shortcut a{display:flex;flex-direction:column;gap:.15rem;color:var(--thfs-green);text-decoration:none}
.thfs-offer-shortcut.is-active{border-color:var(--thfs-orange);background:#fff7f0}
.thfs-filters details.thfs-facet-group{border-top:1px solid var(--thfs-line);padding:.55rem 0}
.thfs-filters summary{cursor:pointer;font-weight:700;list-style:none;display:flex;justify-content:space-between;align-items:center}
.thfs-filters summary::-webkit-details-marker{display:none}
.thfs-filters summary::after{content:'+';font-size:1.15rem;color:var(--thfs-muted)}
.thfs-filters details[open] summary::after{content:'−'}
.thfs-facet{display:grid;gap:.35rem;padding-top:.55rem;max-height:220px;overflow:auto}
.thfs-facet label{display:grid;grid-template-columns:1.1rem 1fr auto;align-items:center;gap:.45rem;font-size:.88rem;cursor:pointer}
.thfs-facet input{width:1.05rem;height:1.05rem;accent-color:var(--thfs-green)}
.thfs-facet small{color:var(--thfs-muted)}
.thfs-facet--tree .thfs-tree-child{margin-left:1.15rem}
.thfs-more-terms{border:0;background:transparent;color:var(--thfs-green-2);font-weight:700;text-align:left;padding:.25rem 0;cursor:pointer}
.thfs-filter-actions{grid-column:1/-1;display:flex;gap:.75rem;align-items:center;margin-top:.35rem}
.thfs-show-results,.show-results.thfs-show-results{
	border:0;background:var(--thfs-green);color:#fff;font-weight:700;
	padding:.7rem 1.25rem;cursor:pointer;border-radius:.25rem;
}
.thfs-scrim{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:20;pointer-events:none;display:none}
[data-thfs-scrim][hidden],
.thfs-scrim[hidden],
body:not(.thfs-filter-open) .thfs-scrim,
.thfs-filters:not(.is-open) ~ .thfs-scrim,
.thfs-scrim:not(.is-open){display:none!important;pointer-events:none!important;visibility:hidden!important}
body.thfs-filter-open .thfs-scrim,
.thfs-filters.is-open ~ .thfs-scrim,
.thfs-scrim.is-open{display:block!important;pointer-events:auto!important;visibility:visible!important}
body.thfs-filter-open{overflow:hidden}
/* Hide legacy bars when THFS bar is present */
body:has(#thfs-filters) #thsc-shop-filters,
body:has(#thfs-filters) .thsc-shop-filters,
body:has(#thfs-filters) .thsc-filter-toggle,
body:has(#thfs-filters) #thsc-filter-fields,
body:has(#thfs-filters) .thsc-filter-fields,
body:has(#thfs-filters) .thsc-filter-head,
body:has(#thfs-filters) .thsc-filter-backdrop,
body:has(#thfs-filters) .thsc-filter-panel-head,
body:has(#thfs-filters) #thcat-filter-dialog,
body:has(#thfs-filters) .thcat-filter-shell{display:none!important}
/* No sidebar layout — bar stays above products */
.thfs-layout{display:block;width:100%;margin:0 0 1.25rem}
.thfs-layout .thfs-filters{position:static;max-height:none;overflow:visible;margin-bottom:1rem}
@media(max-width:860px){
	.thfs-filter-fields{
		position:fixed;z-index:30;top:0;bottom:0;left:0;width:min(92vw,380px);overflow:auto;
		background:var(--thfs-paper);padding:1rem;transform:translateX(-105%);transition:transform .2s ease;
		box-shadow:0 0 30px rgba(0,0,0,.25);display:block;pointer-events:none;
	}
	.thfs-filters.is-open .thfs-filter-fields,
	.thfs-filter-fields.is-open{transform:translateX(0);pointer-events:auto}
	.thfs-filter-close,.thfs-show-results{display:inline-block}
}

/* 0.1.18 — Weitere Filter + Nur lagernd (thcat chrome) */
.thfs-more-filters{
	border:1px solid #d6ddd8;border-radius:.3rem;padding:.55rem .75rem;margin:.5rem 0 .75rem;
	background:#f7faf8;
}
.thfs-more-filters > summary{
	cursor:pointer;font-weight:700;color:#183c2b;list-style:none;
}
.thfs-more-filters > summary::-webkit-details-marker{display:none}
.thfs-more-filters > summary::after{content:' +';float:right;color:#5d6a61}
.thfs-more-filters[open] > summary::after{content:' −'}
.thfs-more-filters .thcat-filter-group{margin-top:.55rem}
.thfs-stock-toggle{margin:.35rem 0 .55rem}
.thfs-nur-lagernd{
	display:inline-flex;align-items:center;gap:.4rem;
	font-weight:700;color:#183c2b;cursor:pointer;
}
.thfs-nur-lagernd input{accent-color:#183c2b;width:1.05rem;height:1.05rem}

/* 0.1.20 — end-of-list contact CTA */
.thfs-end-cta{
	display:flex;flex-direction:column;align-items:center;gap:.65rem;
	margin:1.25rem auto 1.75rem;padding:1rem 1.1rem;max-width:36rem;
	border:1px solid #d6ddd8;border-radius:.4rem;background:#f7faf8;text-align:center;
}
.thfs-end-cta__text{margin:0;font-weight:700;color:#183c2b;font-size:1rem;line-height:1.35}
.thfs-end-cta__btn{
	display:inline-block;border:0;background:#183c2b;color:#fff!important;font-weight:700;
	text-decoration:none;padding:.65rem 1.2rem;border-radius:.25rem;
}
.thfs-end-cta__btn:hover{background:#2f6d4b;color:#fff!important}
@media(max-width:640px){
	.thfs-end-cta{margin:1rem .5rem 1.5rem;padding:.85rem}
	.thfs-end-cta__text{font-size:.95rem}
}
