/* Woo Loop Filter for Elementor */
.wlf-wrap {
	--wlf-accent: #000;
	--wlf-ink: #0f1b3d;
	--wlf-card: #ffffff;
	--wlf-border: #e5e7eb;
	--wlf-muted: #9ca3af;
	--wlf-soft: #f3f4f8;
	--wlf-btn-bg: #ffffff;
	--wlf-btn-ink: #0f1b3d;
	--wlf-radius: 16px;
	position: relative;
	font-size: 14px;
	line-height: 1.4;
	color: var(--wlf-ink);
}
.wlf-wrap *, .wlf-wrap *::before, .wlf-wrap *::after { box-sizing: border-box; }

/* Reset theme button / input styles */
.wlf-wrap button,
.wlf-wrap button:hover,
.wlf-wrap button:focus {
	-webkit-appearance: none;
	appearance: none;
	text-transform: none;
	letter-spacing: normal;
	font-family: inherit;
	font-size: inherit;
	line-height: 1.3;
	box-shadow: none;
	text-decoration: none;
	margin: 0;
}

/* ---------- header ---------- */
.wlf-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 4px 14px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--wlf-border);
	font-weight: 700;
	font-size: 17px;
}
.wlf-head-icon { color: var(--wlf-accent); display: inline-flex; }
.wlf-wrap .wlf-close {
	display: none;
	margin-left: auto;
	width: 36px; height: 36px;
	align-items: center; justify-content: center;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: var(--wlf-ink);
	cursor: pointer;
	padding: 0;
}
.wlf-wrap .wlf-close:hover { background: var(--wlf-soft); color: var(--wlf-ink); }

/* ---------- panel ---------- */
.wlf-panel { display: flex; flex-direction: column; }
.wlf-toggle, .wlf-overlay { display: none; }

/* ---------- cards ---------- */
.wlf-card {
	background: var(--wlf-card);
	border: 1px solid var(--wlf-border);
	border-radius: var(--wlf-radius);
	padding: 18px 16px;
	margin-bottom: 16px;
}
.wlf-card h4 {
	margin: 0 0 14px;
	padding: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--wlf-ink);
}
.wlf-note { margin: 0; color: var(--wlf-muted); font-size: 13px; }

/* ---------- lists ---------- */
.wlf-list {
	max-height: 224px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #d1d5db transparent;
	padding-right: 4px;
}
.wlf-list::-webkit-scrollbar { width: 6px; }
.wlf-list::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 6px; }

.wlf-wrap .wlf-cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	margin: 0 0 2px;
	background: transparent;
	border: 0;
	border-radius: 10px;
	color: var(--wlf-ink);
	text-align: left;
	font-weight: 500;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.wlf-wrap .wlf-cat:hover { background: var(--wlf-soft); color: var(--wlf-ink); }
.wlf-wrap .wlf-cat.is-active,
.wlf-wrap .wlf-cat.is-active:hover {
	background: #fff1e6;
	background: color-mix(in srgb, var(--wlf-accent) 12%, #ffffff);
	color: var(--wlf-accent);
	font-weight: 700;
}
.wlf-wrap .wlf-cat.is-empty,
.wlf-brand.is-empty { opacity: .45; cursor: default; pointer-events: none; }
.wlf-wrap .wlf-cat em, .wlf-brand em {
	font-style: normal;
	font-size: 12px;
	color: var(--wlf-muted);
	flex-shrink: 0;
}
.wlf-wrap .wlf-cat.is-active em { color: inherit; }

/* brands */
.wlf-search { position: relative; margin-bottom: 12px; }
.wlf-wrap .wlf-search input[type="search"] {
	width: 100%;
	height: 40px;
	padding: 0 40px 0 14px;
	background: var(--wlf-soft);
	border: 1px solid var(--wlf-border);
	border-radius: 999px;
	color: var(--wlf-ink);
	font: inherit;
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
}
.wlf-wrap .wlf-search input[type="search"]:focus { border-color: var(--wlf-accent); }
.wlf-search svg { position: absolute; right: 14px; top: 50%; margin-top: -8px; color: var(--wlf-muted); pointer-events: none; }

.wlf-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 4px;
	margin: 0;
	cursor: pointer;
	font-weight: 500;
}
.wlf-brand .wlf-name { flex: 1; }
.wlf-wrap .wlf-brand input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 18px;
	width: 18px; height: 18px;
	margin: 0;
	background: #fff;
	border: 1.5px solid #d1d5db;
	border-radius: 5px;
	cursor: pointer;
	transition: background .15s, border-color .15s;
}
.wlf-wrap .wlf-brand input[type="checkbox"]:checked {
	background: var(--wlf-accent) 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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
	border-color: var(--wlf-accent);
}
.wlf-wrap .wlf-brand input[type="checkbox"]:focus-visible { outline: 2px solid var(--wlf-accent); outline-offset: 2px; }

/* ---------- price ---------- */
.wlf-slider { position: relative; height: 22px; margin: 2px 0 16px; }
.wlf-track {
	position: absolute;
	left: 9px; right: 9px; top: 50%;
	height: 4px; margin-top: -2px;
	background: #e5e7eb;
	border-radius: 4px;
}
.wlf-fill { position: absolute; top: 0; bottom: 0; background: var(--wlf-accent); border-radius: 4px; }
.wlf-wrap .wlf-slider input[type="range"] {
	position: absolute;
	left: 0; top: 0;
	width: 100%; height: 22px;
	margin: 0; padding: 0;
	background: transparent;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
	outline: none;
	box-shadow: none;
	border: 0;
}
.wlf-slider input[type="range"]::-webkit-slider-runnable-track { background: transparent; height: 22px; border: 0; }
.wlf-slider input[type="range"]::-moz-range-track { background: transparent; height: 22px; border: 0; }
.wlf-slider input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	pointer-events: auto;
	width: 18px; height: 18px;
	margin-top: 2px;
	border-radius: 50%;
	background: var(--wlf-accent);
	border: 3px solid #fff;
	box-shadow: 0 0 0 1.5px var(--wlf-accent), 0 2px 6px rgba(15, 27, 61, .25);
	cursor: grab;
}
.wlf-slider input[type="range"]::-moz-range-thumb {
	pointer-events: auto;
	width: 12px; height: 12px;
	border-radius: 50%;
	background: var(--wlf-accent);
	border: 3px solid #fff;
	box-shadow: 0 0 0 1.5px var(--wlf-accent), 0 2px 6px rgba(15, 27, 61, .25);
	cursor: grab;
}
.wlf-slider input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; }

.wlf-prices { display: flex; align-items: center; gap: 10px; }
.wlf-dash { color: var(--wlf-muted); }
.wlf-money {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 14px;
	margin: 0;
	background: var(--wlf-soft);
	border: 1px solid var(--wlf-border);
	border-radius: 999px;
}
.wlf-money span { color: var(--wlf-muted); }
.wlf-wrap .wlf-money input {
	width: 100%;
	min-width: 0;
	height: auto;
	padding: 0;
	margin: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	outline: none;
	color: var(--wlf-ink);
	font: inherit;
	-moz-appearance: textfield;
}
.wlf-money input::-webkit-outer-spin-button,
.wlf-money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wlf-money:focus-within { border-color: var(--wlf-accent); }

/* ---------- active chips ---------- */
.wlf-active { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.wlf-active[hidden] { display: none; }
.wlf-wrap .wlf-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	background: #fff1e6;
	background: color-mix(in srgb, var(--wlf-accent) 12%, #ffffff);
	border: 0;
	border-radius: 999px;
	color: var(--wlf-accent);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}
.wlf-wrap .wlf-chip:hover { background: var(--wlf-accent); color: #fff; }
.wlf-chip i { font-style: normal; font-size: 15px; line-height: 1; }

/* ---------- buttons ---------- */
.wlf-actions {
	position: sticky;
	bottom: 12px;
	z-index: 5;
	display: flex;
	gap: 10px;
}
.wlf-wrap .wlf-apply {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 46px;
	padding: 0 20px;
	background: var(--wlf-btn-bg);
	border: 1px solid var(--wlf-border);
	border-radius: 999px;
	color: var(--wlf-btn-ink);
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(15, 27, 61, .12);
	transition: transform .15s, border-color .15s;
}
.wlf-wrap .wlf-apply:hover { background: var(--wlf-btn-bg); color: var(--wlf-btn-ink); border-color: var(--wlf-accent); box-shadow: 0 6px 18px rgba(15, 27, 61, .12); }
.wlf-wrap .wlf-apply:active { transform: scale(.98); }
.wlf-wrap .wlf-reset {
	height: 46px;
	padding: 0 18px;
	background: var(--wlf-card);
	border: 1px solid var(--wlf-border);
	border-radius: 999px;
	color: var(--wlf-ink);
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(15, 27, 61, .08);
}
.wlf-wrap .wlf-reset:hover { background: var(--wlf-card); color: var(--wlf-accent); border-color: var(--wlf-accent); box-shadow: 0 6px 18px rgba(15, 27, 61, .08); }
.wlf-wrap button:focus-visible { outline: 2px solid var(--wlf-accent); outline-offset: 2px; }

/* ---------- grid loading ---------- */
.wlf-loading { opacity: .4; pointer-events: none; transition: opacity .2s; }

/* ---------- mobile drawer ---------- */
.wlf-wrap.wlf-mobile .wlf-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	background: var(--wlf-card);
	border: 1px solid var(--wlf-border);
	border-radius: 999px;
	color: var(--wlf-ink);
	font-weight: 700;
	cursor: pointer;
}
.wlf-wrap.wlf-mobile .wlf-toggle:hover { background: var(--wlf-card); color: var(--wlf-ink); border-color: var(--wlf-accent); }
.wlf-toggle svg { color: var(--wlf-accent); }
.wlf-badge {
	display: none;
	min-width: 20px; height: 20px;
	padding: 0 6px;
	align-items: center; justify-content: center;
	background: var(--wlf-accent);
	border-radius: 10px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}
.wlf-badge.has-count { display: inline-flex; }

.wlf-wrap.wlf-mobile .wlf-overlay {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(15, 27, 61, .5);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s, visibility .25s;
}
.wlf-wrap.wlf-mobile.wlf-open .wlf-overlay { opacity: 1; visibility: visible; }

.wlf-wrap.wlf-mobile .wlf-panel {
	position: fixed;
	top: 0; left: 0; bottom: 0;
	z-index: 99999;
	width: min(88vw, 380px);
	background: #f8f9fc;
	box-shadow: 8px 0 30px rgba(15, 27, 61, .2);
	transform: translateX(-105%);
	visibility: hidden;
	transition: transform .3s ease, visibility .3s;
}
.wlf-wrap.wlf-mobile.wlf-open .wlf-panel { transform: none; visibility: visible; }
.wlf-wrap.wlf-mobile .wlf-head {
	margin: 0;
	padding: 16px;
	background: var(--wlf-card);
}
.wlf-wrap.wlf-mobile .wlf-close { display: inline-flex; }
.wlf-wrap.wlf-mobile .wlf-body { flex: 1; overflow-y: auto; padding: 16px 16px 4px; -webkit-overflow-scrolling: touch; }
.wlf-wrap.wlf-mobile .wlf-actions {
	position: static;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
	background: var(--wlf-card);
	border-top: 1px solid var(--wlf-border);
}
.wlf-wrap.wlf-mobile .wlf-apply,
.wlf-wrap.wlf-mobile .wlf-reset { box-shadow: none; }

html.wlf-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.wlf-wrap.wlf-mobile .wlf-panel,
	.wlf-wrap.wlf-mobile .wlf-overlay { transition: none; }
}
