/* HOODFASH Product Filter */
body:not(.hf-filter-on) .hf-filter-only { display: none !important; }
body.hf-filter-on .hf-filter-hide { display: none !important; }

.hf-filter,
.hf-filter-drawer {
	--hf-f-black: #000;
	--hf-f-muted: #6f6f6b;
	--hf-f-font: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
	font-family: var(--hf-f-font);
}

.hf-filter__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0 0 22px; }
.hf-filter--archive { margin-bottom: 8px; }
.hf-filter__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hf-filter a:focus-visible,
.hf-filter button:focus-visible,
.hf-filter select:focus-visible,
.hf-filter-drawer a:focus-visible,
.hf-filter-drawer button:focus-visible { outline: 2px solid #e8352b; outline-offset: -2px; }

/* Categorieën: zwart blok, actieve categorie klapt om naar wit */
.hf-filter__segment { grid-column: 1 / -1; overflow-x: auto; background: var(--hf-f-black); scrollbar-width: none; }
.hf-filter__segment::-webkit-scrollbar { display: none; }
.hf-filter__track { display: flex; width: 100%; }
.hf-filter__seg {
	display: flex; flex: 1 1 auto; align-items: center; justify-content: center; height: 54px; padding: 0 18px; white-space: nowrap;
	font-size: 17px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; text-decoration: none;
	transition: background-color 150ms ease, color 150ms ease;
}
.hf-filter__seg + .hf-filter__seg { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .18); }
.hf-filter__seg:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.hf-filter__seg.is-active, .hf-filter__seg.is-active:hover { background: #fff; color: var(--hf-f-black); box-shadow: inset 0 0 0 2px var(--hf-f-black); }

.hf-filter__row { position: relative; min-width: 0; }
.hf-filter__scroller { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hf-filter__scroller::-webkit-scrollbar { display: none; }
.hf-filter__row.has-right .hf-filter__scroller { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.hf-filter__row.has-left .hf-filter__scroller { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px); mask-image: linear-gradient(90deg, transparent, #000 36px); }
.hf-filter__row.has-left.has-right .hf-filter__scroller { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }

.hf-filter__chip {
	display: inline-flex; flex: none; align-items: center; justify-content: center; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; text-decoration: none;
	transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

/* Subcategorieën: tekst met onderstreping */
.hf-filter__row[data-hf-scroll="subs"] { grid-column: 1 / -1; margin-top: 8px; }
[data-hf-scroll="subs"] .hf-filter__scroller { gap: 24px; }
[data-hf-scroll="subs"] .hf-filter__chip { height: 36px; border-bottom: 3px solid transparent; font-size: 15px; color: var(--hf-f-muted); }
[data-hf-scroll="subs"] .hf-filter__chip:hover { color: var(--hf-f-black); }
[data-hf-scroll="subs"] .hf-filter__chip.is-active { border-bottom-color: var(--hf-f-black); color: var(--hf-f-black); }

/* Merken: aaneengesloten rail */
.hf-filter__row[data-hf-scroll="brands"] { grid-column: 1; margin-top: 10px; }
[data-hf-scroll="brands"] .hf-filter__scroller { padding-left: 1px; }
.hf-filter__chip--brand { gap: 4px; height: 48px; margin-left: -1px; padding: 0 16px; background: #fff; border: 1px solid var(--hf-f-black); font-size: 15px; color: var(--hf-f-black); }
.hf-filter__chip--brand:hover { background: #ececea; color: var(--hf-f-black); }
.hf-filter__chip--brand.is-active, .hf-filter__chip--brand.is-active:hover { background: var(--hf-f-black); color: #fff; }
.hf-filter__n { position: relative; top: -.4em; font-size: 11px; font-weight: 600; letter-spacing: 0; color: var(--hf-f-muted); font-variant-numeric: tabular-nums; }
.hf-filter__chip--brand.is-active .hf-filter__n { color: #c9c9c5; }

/* Filters + sorteren */
.hf-filter__actions { display: grid; grid-column: 2; grid-template-columns: auto minmax(170px, auto); margin: 10px 0 0 10px; }
.hf-filter__filterbtn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; background: var(--hf-f-black); border: 1px solid var(--hf-f-black); border-radius: 0; cursor: pointer;
	font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; transition: background-color 150ms ease, color 150ms ease;
}
.hf-filter__filterbtn:hover, .hf-filter__filterbtn:focus { background: #fff; color: var(--hf-f-black); }
.hf-filter__filterbtn svg { width: 18px; height: 18px; }
.hf-filter__badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; background: #fff; font-size: 12px; letter-spacing: 0; color: var(--hf-f-black); }
.hf-filter__filterbtn:hover .hf-filter__badge { background: var(--hf-f-black); color: #fff; }
.hf-filter__select { position: relative; display: block; margin: 0 0 0 -1px; }
.hf-filter__select select {
	width: 100%; height: 48px; margin: 0; padding: 0 38px 0 16px; background: #fff; border: 1px solid var(--hf-f-black); border-radius: 0; -webkit-appearance: none; appearance: none; cursor: pointer;
	font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--hf-f-black);
}
.hf-filter__select svg { position: absolute; top: 50%; right: 13px; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; color: var(--hf-f-black); }

.hf-filter__count { grid-column: 1 / -1; margin: 12px 0 0; font-size: 15px; color: var(--hf-f-muted); }
.hf-filter__count strong { font-weight: 700; color: var(--hf-f-black); }

/* Grid op de homepage */
/* De site verbergt maatknoppen op .home; in deze grid horen ze zichtbaar te zijn */
.home .hf-filter__grid .nxs-archive-swatches { display: flex !important; }
.hf-filter__grid, .site-main ul.products { transition: opacity 150ms ease; }
.hf-filter__grid.is-loading, .site-main ul.products.is-loading { opacity: .45; pointer-events: none; }
.hf-filter__none { padding: 40px 0; text-align: center; font-size: 17px; }
.hf-filter__more { padding: 8px 0 0; text-align: center; }
.hf-filter__more[hidden] { display: none; }
.hf-filter__morebtn {
	height: 52px; padding: 0 44px; background: var(--hf-f-black); border: 1px solid var(--hf-f-black); border-radius: 0; cursor: pointer;
	font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff;
	transition: background-color 150ms ease, color 150ms ease;
}
.hf-filter__morebtn:hover, .hf-filter__morebtn:focus { background: #fff; color: var(--hf-f-black); }
.hf-filter__morebtn:disabled { opacity: .5; }

/* Dubbele sortering van Ecomus verbergen als onze filter er staat */
body.hf-filter-on .catalog-toolbar .woocommerce-ordering,
body.hf-filter-on .catalog-toolbar__orderby-button { display: none !important; }

/* Filterpaneel: donker glas over de pagina */
html.hf-filter-lock { overflow: hidden; }
.hf-filter-drawer { position: fixed; inset: 0; z-index: 2147483000; visibility: hidden; }
.hf-filter-drawer.is-open { visibility: visible; }
.hf-filter-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .28); opacity: 0; transition: opacity 150ms ease; }
.hf-filter-drawer.is-open .hf-filter-drawer__backdrop { opacity: 1; }
.hf-filter-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: 420px; max-width: 100%; color: #fff;
	background: rgba(0, 0, 0, .94);
	box-shadow: inset 1px 0 0 rgba(255, 255, 255, .22);
	transform: translateX(100%); transition: transform 200ms ease;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.hf-filter-drawer__panel { background: rgba(0, 0, 0, .76); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); }
}
.hf-filter-drawer.is-open .hf-filter-drawer__panel { transform: none; }
.hf-filter-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.hf-filter-drawer__title { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.hf-filter-drawer__close { display: inline-flex; padding: 4px; background: none; border: 0; cursor: pointer; color: #fff; }
.hf-filter-drawer__close:hover, .hf-filter-drawer__close:focus { background: none; color: #fff; }
.hf-filter-drawer__close svg { width: 24px; height: 24px; }
.hf-filter-drawer__body { flex: 1; overflow-y: auto; padding: 22px 20px; }
.hf-filter-drawer__sec { margin-bottom: 28px; }
.hf-filter-drawer__label { margin: 0 0 12px; font-size: 17px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.hf-filter-drawer__chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.hf-filter-drawer .hf-filter__chip { height: 46px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .34); font-size: 16px; color: #fff; }
.hf-filter-drawer .hf-filter__chip:hover { border-color: #fff; color: #fff; }
.hf-filter-drawer .hf-filter__chip.is-active, .hf-filter-drawer .hf-filter__chip.is-active:hover { background: #fff; border-color: #fff; color: var(--hf-f-black); }
.hf-filter-drawer__toggle { display: flex; align-items: center; justify-content: space-between; font-size: 17px; font-weight: 600; color: #fff; text-decoration: none; }
.hf-filter-drawer__toggle:hover { color: #fff; }
.hf-filter-drawer__toggle i { position: relative; width: 46px; height: 26px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4); transition: background-color 150ms ease; }
.hf-filter-drawer__toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; transition: transform 150ms ease; }
.hf-filter-drawer__toggle.is-active i { background: #fff; border-color: #fff; }
.hf-filter-drawer__toggle.is-active i::after { background: var(--hf-f-black); transform: translateX(20px); }
.hf-filter-drawer__price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hf-filter-drawer__price label { display: block; margin: 0; font-size: 15px; color: #d6d6d1; }
.hf-filter-drawer__box { display: flex; align-items: center; gap: 6px; height: 46px; margin-top: 6px; padding: 0 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .34); }
.hf-filter-drawer__box i { font-style: normal; color: #d6d6d1; }
.hf-filter-drawer__box input { width: 100%; height: 100%; padding: 0; background: none; border: 0; box-shadow: none; font-family: inherit; font-size: 17px; color: #fff; }
.hf-filter-drawer__box input::placeholder { color: #a9a9a4; }
.hf-filter-drawer__box input:focus { outline: 0; }
.hf-filter-drawer__foot { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid rgba(255, 255, 255, .22); }
.hf-filter-drawer__reset { font-size: 16px; font-weight: 500; color: #fff; text-decoration: underline; }
.hf-filter-drawer__reset:hover { color: #fff; }
.hf-filter-drawer__apply {
	height: 52px; padding: 0 20px; background: #fff; border: 1px solid #fff; border-radius: 0; cursor: pointer;
	font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--hf-f-black);
}
.hf-filter-drawer__apply:hover, .hf-filter-drawer__apply:focus { background: transparent; color: #fff; }

@media (max-width: 991px) {
	.hf-filter__row[data-hf-scroll="brands"] { grid-column: 1 / -1; }
	.hf-filter__actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; margin: 8px 0 0; }
}
@media (max-width: 767px) {
	.hf-filter__seg { height: 50px; padding: 0 5px; font-size: 14px; letter-spacing: .03em; }
	.hf-filter__chip--brand { height: 46px; padding: 0 14px; }

	/* Bottom sheet */
	.hf-filter-drawer__panel { top: auto; left: 0; width: 100%; max-height: 86vh; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); transform: translateY(100%); }
}
@media (prefers-reduced-motion: reduce) {
	.hf-filter-drawer__panel, .hf-filter-drawer__backdrop { transition: none; }
}
