/**
 * Shop archive filter chip-bar + popups + active-chip strip + drawer.
 * All tokens via theme :root vars; fallbacks match the brand defaults.
 */

/* ─── Form wrapper ─────────────────────────────────────────────────────── */

.wccb-shop-filters {
	margin: 0 0 16px;
	font-family: inherit;
}
.wccb-shop-filters__bar {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}
.wccb-shop-filters__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
}
.wccb-shop-filters__result-count {
	font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink-muted, #75706A);
	white-space: nowrap;
}

/* Sticky toolbar — desktop only. Breakpoint reconciled to the canonical
 * 1024 px tier per [[Viewport Strategy]] / design preview §20 — was 721 px
 * (legacy plugin-local breakpoint) before [[Filter Bar V2 Scope]] Phase D. */
@media (min-width: 1024px) {
	.wccb-shop-filters__bar {
		position: sticky;
		top: 0;
		/* Below `.wh-topnav` (z-index 20) and `.wh-mega` (19) so the
		 * mega-menu panel always slides over the sticky chip-bar.
		 * Was 25 — caused the bar to occlude the mega menu. */
		z-index: 15;
	}
}

/* ─── Chip ─────────────────────────────────────────────────────────────── */

.wccb-shop-filters__chip-wrap {
	position: relative;
}
/* §03 chip register (design preview line 415–422):
 *   Inactive: var(--surface) bg · 1px var(--border-strong) border · var(--ink) text
 *   Active:   var(--ink) solid bg (no border) · var(--bg) text · trailing × icon
 *
 * Was previously a terracotta-soft active treatment (--accent-soft / --accent);
 * realigned 2026-05-06 in [[Filter Bar V2 Scope]] §10 + §11.1. */
.wccb-shop-filters__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 14px;
	border: 1px solid var(--border-strong, #cdc7bc);
	border-radius: 999px;
	background: var(--surface, #FFFFFF);
	color: var(--ink, #15140F);
	font-size: 13px;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.wccb-shop-filters__chip:hover {
	border-color: var(--ink, #15140F);
}
.wccb-shop-filters__chip:focus-visible {
	outline: 2px solid var(--ink, #15140F);
	outline-offset: 2px;
}
.wccb-shop-filters__chip.is-active {
	background: var(--ink, #15140F);
	border-color: var(--ink, #15140F);
	color: var(--bg, #FAF8F3);
}
.wccb-shop-filters__chip-icon,
.wccb-shop-filters__chip-caret,
.wccb-shop-filters__chip-clear {
	display: inline-flex;
	color: var(--ink-muted, #75706A);
}
.wccb-shop-filters__chip-icon i,
.wccb-shop-filters__chip-caret i,
.wccb-shop-filters__chip-clear i {
	width: 14px;
	height: 14px;
}
.wccb-shop-filters__chip-clear i {
	width: 11px;
	height: 11px;
}
.wccb-shop-filters__chip.is-active .wccb-shop-filters__chip-icon,
.wccb-shop-filters__chip.is-active .wccb-shop-filters__chip-caret,
.wccb-shop-filters__chip.is-active .wccb-shop-filters__chip-clear {
	color: var(--bg, #FAF8F3);
}
.wccb-shop-filters__chip-clear {
	margin-left: 2px;
	cursor: pointer;
}
.wccb-shop-filters__chip-clear:hover i {
	transform: scale(1.1);
}
.wccb-shop-filters__chip-label {
	color: var(--ink-muted, #75706A);
	font-size: 12px;
	font-weight: 500;
}
.wccb-shop-filters__chip.is-active .wccb-shop-filters__chip-label {
	color: var(--bg, #FAF8F3);
}
.wccb-shop-filters__chip-value {
	font-weight: 600;
	white-space: nowrap;
	max-width: 140px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wccb-shop-filters__clear {
	margin-left: auto;
	font-size: 12px;
	color: var(--accent, #B54A2B);
	text-decoration: underline;
	cursor: pointer;
}
.wccb-shop-filters__clear:hover {
	text-decoration: none;
}

/* ─── Popup ────────────────────────────────────────────────────────────── */

.wccb-shop-filters__popup {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 360px;
	max-width: 480px;
	padding: 16px;
	background: var(--surface, #FFFFFF);
	border: 1px solid var(--border, #E4DED3);
	border-radius: 10px;
	box-shadow: 0 10px 28px rgba(21, 20, 15, .12);
	z-index: 30;
}
.wccb-shop-filters__popup--narrow {
	min-width: 260px;
	max-width: 320px;
}
.wccb-shop-filters__popup.is-anchor-right {
	left: auto;
	right: 0;
}

.wccb-shop-filters__popup-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 10px;
	margin-bottom: 14px;
}
.wccb-shop-filters__popup-grid--four {
	grid-template-columns: repeat(2, 1fr);
}

/* ─── Tile ─────────────────────────────────────────────────────────────── */

.wccb-shop-filters__tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding: 8px;
	border: 2px solid var(--border, #E4DED3);
	border-radius: 8px;
	background: var(--surface, #FFFFFF);
	cursor: pointer;
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
	text-align: center;
}
.wccb-shop-filters__tile input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.wccb-shop-filters__tile:hover {
	border-color: var(--accent, #B54A2B);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(21, 20, 15, .06);
}
.wccb-shop-filters__tile.is-selected {
	border-color: var(--accent, #B54A2B);
	background: var(--accent-soft, #F0E2D7);
}
.wccb-shop-filters__tile.is-disabled {
	opacity: .45;
	cursor: not-allowed;
	pointer-events: none;
}
.wccb-shop-filters__tile.is-selected::after {
	content: "";
	position: absolute;
	top: 6px;
	right: 6px;
	width: 16px;
	height: 16px;
	display: inline-block;
	background: var(--accent, #B54A2B);
	border-radius: 50%;
	box-shadow: inset 0 0 0 4px var(--surface, #FFFFFF), 0 0 0 1px var(--accent, #B54A2B);
}

.wccb-shop-filters__tile-img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	margin-bottom: 6px;
	overflow: hidden;
	border-radius: 4px;
	background: var(--bg-alt, #EFE9E0);
}
.wccb-shop-filters__tile-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.wccb-shop-filters__tile-img-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 28px;
	font-weight: 700;
	color: var(--accent, #B54A2B);
	background: var(--accent-soft, #F0E2D7);
}
.wccb-shop-filters__tile-svg {
	display: block;
	width: 100%;
	margin-bottom: 6px;
	color: var(--accent, #B54A2B);
}
.wccb-shop-filters__tile-svg svg {
	display: block;
	width: 100%;
	height: auto;
	max-height: 60px;
}
.wccb-shop-filters__tile-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--ink, #15140F);
	line-height: 1.2;
}
.wccb-shop-filters__tile-count {
	font-weight: 500;
	color: var(--ink-muted, #75706A);
	margin-left: 4px;
}
.wccb-shop-filters__tile-sub {
	font-size: 11px;
	color: var(--ink-muted, #75706A);
	margin-top: 2px;
}

/* ─── Mono-caps sort pill (design preview §03.5) ───────────────────────── */

.wccb-sort-pill {
	margin-left: auto; /* Pushes the pill to the right end of the chip strip. */
}
.wccb-sort-pill__select {
	/* Hidden state-keeper. The visible button + popup rows update its
	 * value + dispatch `change`; the existing `[name="orderby"]` AJAX
	 * handler at shop-filters.js:215 picks it up automatically. */
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
	padding: 0;
}
.wccb-sort-pill__eyebrow {
	font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
	font-size: 10px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink-muted, #75706A);
	font-weight: 500;
}
.wccb-sort-pill__sep {
	color: var(--ink-muted, #75706A);
	margin: 0 -2px;
}
.wccb-sort-pill__value {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 500;
	color: var(--ink, #15140F);
}
.wccb-sort-pill__value i {
	width: 11px;
	height: 11px;
}

/* Open state — popup expanded → chip flips to ink-solid (mirrors
 * design preview §03 active chip register, so the pill reads as
 * "engaged" while open). */
.wccb-shop-filters__chip[aria-expanded="true"] {
	background: var(--ink, #15140F);
	border-color: var(--ink, #15140F);
	color: var(--bg, #FAF8F3);
}
.wccb-shop-filters__chip[aria-expanded="true"] .wccb-sort-pill__eyebrow,
.wccb-shop-filters__chip[aria-expanded="true"] .wccb-sort-pill__sep,
.wccb-shop-filters__chip[aria-expanded="true"] .wccb-sort-pill__value,
.wccb-shop-filters__chip[aria-expanded="true"] .wccb-shop-filters__chip-icon,
.wccb-shop-filters__chip[aria-expanded="true"] .wccb-shop-filters__chip-caret,
.wccb-shop-filters__chip[aria-expanded="true"] .wccb-shop-filters__chip-clear,
.wccb-shop-filters__chip[aria-expanded="true"] .wccb-shop-filters__chip-label {
	color: var(--bg, #FAF8F3);
}

/* Sort pill popup body — single-select list, click-to-commit. */
.wccb-sort-pill__popup {
	min-width: 240px;
	max-width: 280px;
}
.wccb-sort-pill__list {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 0;
}
.wccb-sort-pill__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	background: transparent;
	border: 0;
	cursor: pointer;
	font-family: var(--font-body, "Inter", system-ui, sans-serif);
	font-size: 14px;
	color: var(--ink, #15140F);
	text-align: left;
	transition: background .12s ease;
}
.wccb-sort-pill__row:hover {
	background: var(--bg-alt, #F4EFE6);
}
.wccb-sort-pill__row:focus-visible {
	outline: 2px solid var(--ink, #15140F);
	outline-offset: -2px;
}
.wccb-sort-pill__row.is-active {
	background: var(--bg-alt, #F4EFE6);
	font-weight: 500;
}
.wccb-sort-pill__row-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.wccb-sort-pill__row-label i {
	width: 11px;
	height: 11px;
	color: var(--ink-muted, #75706A);
}
.wccb-sort-pill__row.is-active .wccb-sort-pill__row-label i {
	color: var(--ink, #15140F);
}
.wccb-sort-pill__row-check {
	width: 14px;
	height: 14px;
	color: var(--ink, #15140F);
	flex: 0 0 auto;
}

/* ─── Aantal-frames check group (multi-select rows, mirrors radio-group) ── */

.wccb-shop-filters__check-group {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 14px;
}
.wccb-shop-filters__check {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid transparent;
	cursor: pointer;
	font-size: 14px;
	color: var(--ink, #15140F);
	transition: background .12s ease, border-color .12s ease;
}
.wccb-shop-filters__check:hover {
	background: var(--bg-alt, #F4EFE6);
}
.wccb-shop-filters__check.is-selected {
	border-color: var(--ink, #15140F);
	background: var(--bg-alt, #F4EFE6);
}
.wccb-shop-filters__check.is-disabled {
	opacity: .45;
	cursor: not-allowed;
	pointer-events: none;
}
.wccb-shop-filters__check input[type="checkbox"] {
	flex: 0 0 auto;
	accent-color: var(--ink, #15140F);
	margin: 0;
}
.wccb-shop-filters__check-label {
	flex: 1 1 auto;
	font-weight: 500;
}
.wccb-shop-filters__check-count {
	flex: 0 0 auto;
	font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
	font-size: 11px;
	color: var(--ink-muted, #75706A);
}

/* ─── Wandformaat radio group (4 single-select rows) ───────────────────── */

.wccb-shop-filters__radio-group {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 14px;
}
.wccb-shop-filters__radio {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid transparent;
	cursor: pointer;
	font-size: 14px;
	color: var(--ink, #15140F);
	transition: background .12s ease, border-color .12s ease;
}
.wccb-shop-filters__radio:hover {
	background: var(--bg-alt, #F4EFE6);
}
.wccb-shop-filters__radio.is-selected {
	border-color: var(--ink, #15140F);
	background: var(--bg-alt, #F4EFE6);
}
.wccb-shop-filters__radio.is-disabled {
	opacity: .45;
	cursor: not-allowed;
	pointer-events: none;
}
.wccb-shop-filters__radio input[type="radio"] {
	flex: 0 0 auto;
	accent-color: var(--ink, #15140F);
	margin: 0;
}
.wccb-shop-filters__radio-icon {
	display: inline-flex;
	color: var(--ink-muted, #75706A);
	flex: 0 0 auto;
}
.wccb-shop-filters__radio.is-selected .wccb-shop-filters__radio-icon {
	color: var(--ink, #15140F);
}
.wccb-shop-filters__radio-icon i {
	width: 16px;
	height: 16px;
}
.wccb-shop-filters__radio-label {
	flex: 1 1 auto;
	font-weight: 500;
}
.wccb-shop-filters__radio-count {
	flex: 0 0 auto;
	font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
	font-size: 11px;
	color: var(--ink-muted, #75706A);
}

/* ─── Price input row — chrome aligned to design preview §03 chip register
 *     so all 3 popups (aantal · wandformaat · prijs) share the same look. */

.wccb-shop-filters__price-fields {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	margin-bottom: 14px;
}
.wccb-shop-filters__price-fields label {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.wccb-shop-filters__price-label {
	font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
	font-size: 10px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink-muted, #75706A);
	font-weight: 500;
}
.wccb-shop-filters__price-fields input {
	width: 100%;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--border-strong, #cdc7bc);
	border-radius: 0;
	font-family: var(--font-body, "Inter", system-ui, sans-serif);
	font-size: 14px;
	background: var(--surface, #FFFFFF);
	color: var(--ink, #15140F);
	outline: 0;
	transition: border-color .12s ease;
}
.wccb-shop-filters__price-fields input:focus {
	border-color: var(--ink, #15140F);
}
.wccb-shop-filters__price-sep {
	padding-bottom: 9px;
	color: var(--ink-muted, #75706A);
	font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
	font-size: 14px;
}

/* ─── Action buttons ───────────────────────────────────────────────────── */

.wccb-shop-filters__actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	border-top: 1px solid var(--border, #E4DED3);
	padding-top: 12px;
}
/* Action buttons aligned to design preview §02 pill register: ghost =
 * inactive chip, primary = active chip (ink solid). Was a terracotta-soft
 * 6 px-radius rect — restyled 2026-05-06 in [[Filter Bar V2 Scope]]. */
.wccb-shop-filters__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 36px;
	padding: 0 18px;
	border: 1px solid var(--border-strong, #cdc7bc);
	border-radius: 999px;
	background: var(--surface, #FFFFFF);
	color: var(--ink, #15140F);
	font-family: var(--font-body, "Inter", system-ui, sans-serif);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.wccb-shop-filters__btn:hover {
	border-color: var(--ink, #15140F);
}
.wccb-shop-filters__btn--ghost {
	color: var(--ink-muted, #75706A);
}
.wccb-shop-filters__btn--ghost:hover {
	color: var(--ink, #15140F);
	border-color: var(--ink, #15140F);
}
.wccb-shop-filters__btn--primary {
	background: var(--ink, #15140F);
	border-color: var(--ink, #15140F);
	color: var(--bg, #FAF8F3);
}
.wccb-shop-filters__btn--primary:hover {
	background: var(--ink-2, #2A2722);
	border-color: var(--ink-2, #2A2722);
	color: var(--bg, #FAF8F3);
}

/* ─── Noscript fallback ────────────────────────────────────────────────── */

.wccb-shop-filters__noscript-apply {
	margin-top: 10px;
	height: 36px;
	padding: 0 18px;
	background: var(--accent, #B54A2B);
	color: #fff;
	border: 0;
	border-radius: 6px;
	font-weight: 600;
}

/* ─── Active-filter chip strip ─────────────────────────────────────────── */

.wccb-shop-filters__active {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
}
.wccb-shop-filters__active.is-empty {
	display: none;
}
.wccb-active-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 10px 0 12px;
	background: var(--accent-soft, #F0E2D7);
	border: 1px solid var(--accent, #B54A2B);
	color: var(--accent-ink, #7C2F15);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease;
}
.wccb-active-chip:hover {
	background: var(--accent, #B54A2B);
	color: #fff;
}
.wccb-active-chip i {
	width: 12px;
	height: 12px;
}
.wccb-active-chip__label {
	white-space: nowrap;
}
.wccb-active-chip--clear-all {
	background: transparent;
	border-color: var(--ink-muted, #75706A);
	color: var(--ink-muted, #75706A);
}
.wccb-active-chip--clear-all:hover {
	background: var(--ink, #15140F);
	border-color: var(--ink, #15140F);
	color: #fff;
}
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ─── Loading skeleton ─────────────────────────────────────────────────── */

.wccb-collections-grid-wrap.is-loading .wccb-collection-card {
	opacity: .6;
	pointer-events: none;
	position: relative;
	overflow: hidden;
}
.wccb-collections-grid-wrap.is-loading .wccb-collection-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(255, 255, 255, .4) 50%,
		transparent 100%
	);
	animation: wccb-shimmer 1.2s infinite;
	pointer-events: none;
}
@keyframes wccb-shimmer {
	0%   { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}

/* ─── Empty state ──────────────────────────────────────────────────────── */

.wccb-collections-empty {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 64px 24px;
	text-align: center;
	color: var(--ink-muted, #75706A);
}
.wccb-collections-empty i {
	width: 48px;
	height: 48px;
	color: var(--ink-faint, #A8A299);
}
.wccb-collections-empty h2 {
	margin: 0;
	font-size: 22px;
	color: var(--ink, #15140F);
}
.wccb-collections-empty p {
	margin: 0;
	max-width: 420px;
}
.wccb-btn {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 22px;
	background: var(--ink, #15140F);
	color: #fff;
	text-decoration: none;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
}
.wccb-btn--primary {
	background: var(--accent, #B54A2B);
}
.wccb-btn--primary:hover {
	background: var(--accent-ink, #7C2F15);
}

/* ─── Mobile drawer trigger ────────────────────────────────────────────── */

/* Floating combined "Filter & sorteer" trigger — bottom-right, dark pill.
 * Aligned to §02 pill register (var(--ink) bg + var(--bg) text + 999px). */
.wccb-shop-filters__mobile-trigger {
	display: none;
	position: fixed;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 40;
	align-items: center;
	gap: 8px;
	height: 48px;
	padding: 0 22px;
	border: 1px solid var(--ink, #15140F);
	border-radius: 999px;
	background: var(--ink, #15140F);
	color: var(--bg, #FAF8F3);
	font-family: var(--font-body, "Inter", system-ui, sans-serif);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	cursor: pointer;
	box-shadow: var(--shadow-2, 0 6px 24px rgba(14, 14, 12, .18));
}
.wccb-shop-filters__mobile-trigger:hover,
.wccb-shop-filters__mobile-trigger:focus,
.wccb-shop-filters__mobile-trigger:focus-visible,
.wccb-shop-filters__mobile-trigger:active {
	/* Explicit color states needed because Storefront's parent button
	 * styles set anchor/button :hover color on `.wh-collections-page`
	 * descendants — overriding our `--bg` inheritance and producing
	 * the "ink on ink" black-on-black hover the user reported. */
	background: var(--ink-2, #2A2722);
	border-color: var(--ink-2, #2A2722);
	color: var(--bg, #FAF8F3);
	text-decoration: none;
}
.wccb-shop-filters__count {
	font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
	font-size: 11px;
	letter-spacing: .14em;
	opacity: .85;
}
.wccb-shop-filters__mobile-trigger i {
	width: 16px;
	height: 16px;
}
.wccb-shop-filters__count.is-hidden {
	display: none;
}

/* ─── Drawer (mobile) ──────────────────────────────────────────────────── */

.wccb-shop-filters__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(21, 20, 15, .45);
	z-index: 50;
	opacity: 1;
	visibility: visible;
	transition: opacity .2s ease;
}
/* Keep the backdrop in the layout when closed (not display:none) so its
   opacity can fade; visibility (delayed) makes it inert once faded out. */
.wccb-shop-filters__backdrop[hidden] {
	display: block;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .2s ease, visibility 0s .2s;
}
.wccb-shop-filters__drawer {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(420px, 92vw);
	background: var(--surface, #FFFFFF);
	z-index: 60;
	display: flex;
	flex-direction: column;
	box-shadow: -10px 0 28px rgba(21, 20, 15, .18);
	transform: translateX(0);
	visibility: visible;
	transition: transform .25s ease, visibility 0s;
}
/* Slide-out: when closed, stay in layout (display:flex) but translate fully
   off the right edge so the `transform` transition animates the slide. The UA
   `[hidden]{display:none}` would kill the animation, so we override it and use
   visibility (delayed until the slide finishes) to make it inert. */
.wccb-shop-filters__drawer[hidden] {
	display: flex;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform .25s ease, visibility 0s .25s;
}
.wccb-shop-filters__drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	border-bottom: 1px solid var(--border, #E4DED3);
}
.wccb-shop-filters__drawer-header h2 {
	margin: 0;
	font-size: 18px;
	color: var(--ink, #15140F);
}
.wccb-shop-filters__drawer-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: var(--ink-muted, #75706A);
	border-radius: 999px;
}
.wccb-shop-filters__drawer-close:hover {
	background: var(--bg-alt, #EFE9E0);
	color: var(--ink, #15140F);
}
.wccb-shop-filters__drawer-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 16px;
}
/* The full <form> gets relocated into the drawer body via appendChild
 * so event listeners survive — but the form's outer .__bar wrapper
 * (with the result-count + "Filters wissen" link) drags along with it.
 * The drawer has its own header + footer for those affordances, so
 * suppress the relocated bar chrome inside the drawer. */
.wccb-shop-filters__drawer-body .wccb-shop-filters__bar {
	padding: 0;
	gap: 0;
}
.wccb-shop-filters__drawer-body .wccb-shop-filters__result-count,
.wccb-shop-filters__drawer-body .wccb-shop-filters__clear {
	display: none;
}

.wccb-shop-filters__drawer-body .wccb-shop-filters__chips {
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
}
/* Sort-pill wrap has `margin-left: auto` on desktop (pushes it to the
 * right end of the chip strip). In the drawer's flex-column layout
 * that auto-margin breaks the stretch, leaving the sort pill narrower
 * than the other chips. Zero it out + force full width. */
.wccb-shop-filters__drawer-body .wccb-sort-pill {
	margin-left: 0;
	width: 100%;
}
.wccb-shop-filters__drawer-body .wccb-sort-pill__chip {
	width: 100%;
}
.wccb-shop-filters__drawer-body .wccb-shop-filters__chip {
	width: 100%;
	justify-content: flex-start;
	height: 44px;
	padding: 0 18px;
	font-size: 14px;
}
/* Push the value summary + caret/clear to the far right inside the drawer
 * so chips read as full-width rows rather than left-packed pills. */
.wccb-shop-filters__drawer-body .wccb-shop-filters__chip-value {
	margin-left: auto;
}
/* Sort pill in the drawer — eyebrow + value also push to the right. */
.wccb-shop-filters__drawer-body .wccb-sort-pill__value {
	margin-left: auto;
}
.wccb-shop-filters__drawer-body .wccb-shop-filters__popup {
	position: static;
	box-shadow: none;
	border: 0;
	border-top: 1px solid var(--border, #E4DED3);
	border-radius: 0;
	padding: 8px 0 4px;
	min-width: 0;
	max-width: none;
	margin: 0 0 4px;
}
.wccb-shop-filters__drawer-footer {
	padding: 16px;
	border-top: 1px solid var(--border, #E4DED3);
}
.wccb-shop-filters__drawer-footer .wccb-shop-filters__btn--primary {
	width: 100%;
	height: 44px;
}

body.wccb-shop-filters-locked {
	overflow: hidden;
}

/* ─── Retry toast ──────────────────────────────────────────────────────── */

.wccb-shop-filters__toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 70;
	padding: 12px 18px;
	background: var(--ink, #15140F);
	color: #fff;
	border: 0;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(21, 20, 15, .25);
}

/* ─── Mobile + tablet breakpoint (drawer territory) ────────────────────── */
/* Reconciled 720 → 1023 px per [[Viewport Strategy]] / design preview §20.
 * Tablets (768–1023 px) now show the drawer instead of the inline chip-strip,
 * matching the canonical 5-tier system used everywhere else in the theme. */

@media (max-width: 1023px) {
	.wccb-shop-filters__bar {
		/* Match desktop: flush with the grid, no chrome around the bar.
		 * Filter chips are hidden here — chip access is via the floating
		 * "Filters" trigger that opens the drawer. */
		padding: 8px 0;
		gap: 8px;
	}
	.wccb-shop-filters__chips {
		display: none;
	}
	.wccb-shop-filters__result-count {
		flex: 1 1 auto;
	}
	.wccb-shop-filters__mobile-trigger {
		display: inline-flex;
	}
	.wccb-shop-filters__popup {
		position: fixed;
		left: 8px;
		right: 8px;
		top: auto;
		bottom: 8px;
		min-width: 0;
		max-width: none;
		max-height: 75vh;
		overflow-y: auto;
	}
	/* Inside the drawer the popups go back to inline (static) flow. */
	.wccb-shop-filters__drawer-body .wccb-shop-filters__popup {
		position: static;
		max-height: none;
	}
	/* Drawer hosts the same form, including the chip bar. The base mobile
	   rule hides .wccb-shop-filters__chips so the toolbar stays compact —
	   override that hide INSIDE the drawer body so customers can still
	   open Materiaal/Formaat/Aantal/Prijs popups from the drawer. */
	.wccb-shop-filters__drawer-body .wccb-shop-filters__chips {
		display: flex;
	}
}

/* ─── Reduced motion ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.wccb-shop-filters__chip,
	.wccb-shop-filters__tile,
	.wccb-shop-filters__btn,
	.wccb-active-chip,
	.wccb-shop-filters__drawer,
	.wccb-shop-filters__backdrop {
		transition: none !important;
	}
	.wccb-collections-grid-wrap.is-loading .wccb-collection-card::after {
		animation: none !important;
		display: none;
	}
	.wccb-shop-filters__tile:hover {
		transform: none;
	}
}

/* Slide-out filter drawer (2026-06-12) — honour reduced-motion: keep it
   functional but skip the slide/fade for users who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
	.wccb-shop-filters__drawer,
	.wccb-shop-filters__backdrop { transition-duration: 0s; }
}
