/**
 * Catalogue filters (include/woocommerce/filters/): the form at the top of the shop
 * sidebar and the chosen filters as chips above the products.
 */

.lunettes-filters {
	--lf-red: #8a1214;
	--lf-ink: #1d1716;
	--lf-muted: #7a7270;
	--lf-line: #e7e2e0;
	margin-bottom: 2em;
}

.lf-form.is-loading {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.lf-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1em;
}

.lunettes-filters .lf-title {
	margin-bottom: 0.4em;
}

.lunettes-filters .lf-reset {
	font-size: 13px;
	color: var(--lf-red);
	white-space: nowrap;
}

.lf-facet {
	margin: 0;
	padding: 14px 0 12px;
	border: 0;
	border-top: 1px solid var(--lf-line);
	min-width: 0;
}

.lunettes-filters .lf-legend {
	float: left;
	width: 100%;
	margin: 0 0 8px;
	padding: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--lf-ink);
}

.lf-legend + * {
	clear: left;
}

.lunettes-filters .lf-options {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lunettes-filters .lf-option {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lf-option label {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 4px 0;
	font-size: 14px;
	line-height: 1.35;
	color: var(--lf-ink);
	cursor: pointer;
}

.lf-option input[type="checkbox"] {
	flex: none;
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--lf-red);
	cursor: pointer;
}

.lf-option.is-empty label {
	color: #b5adab;
	cursor: default;
}

.lf-name {
	flex: 1 1 auto;
	min-width: 0;
}

.lf-count {
	flex: none;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	color: var(--lf-muted);
}

.lf-swatch {
	flex: none;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--lf-swatch);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.lf-facet.is-collapsed .lf-more {
	display: none;
}

.lunettes-filters .lf-toggle {
	margin: 4px 0 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: 13px;
	font-weight: 600;
	color: var(--lf-red);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.lf-range {
	display: flex;
	align-items: center;
	gap: 8px;
}

.lf-end {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
}

.lunettes-filters .lf-range input {
	width: 100%;
	min-width: 0;
	height: 36px;
	padding: 0 8px;
	border: 1px solid #d6cfcd;
	border-radius: 4px;
	background: #fff;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	color: var(--lf-ink);
	-moz-appearance: textfield;
}

.lf-range input::-webkit-outer-spin-button,
.lf-range input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.lunettes-filters .lf-range input:focus {
	border-color: var(--lf-red);
	outline: 2px solid rgba(138, 18, 20, 0.18);
	outline-offset: 0;
}

.lf-dash,
.lf-unit {
	flex: none;
	font-size: 13px;
	color: var(--lf-muted);
}

.lunettes-filters .lf-apply {
	display: block;
	width: 100%;
	margin-top: 14px;
	padding: 11px 14px;
	border-radius: 6px;
	background: var(--lf-red);
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	text-align: center;
}

.lunettes-filters .lf-apply:hover,
.lunettes-filters .lf-apply:focus-visible {
	background: #6f0e10;
	color: #fff;
}


/* ─── Chips above the products ───────────────────────────────────────────── */

.lunettes-filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%;
	margin: 0 0 18px;
}

.lunettes-filter-chips .lf-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px 5px 12px;
	border: 1px solid #e1d6d4;
	border-radius: 999px;
	background: #faf5f4;
	font-size: 13px;
	line-height: 1.3;
	color: #1d1716;
	text-decoration: none;
}

.lunettes-filter-chips .lf-chip:hover {
	border-color: #8a1214;
	color: #8a1214;
}

.lf-chip__x {
	font-size: 15px;
	line-height: 1;
	color: #8a1214;
}

.lunettes-filter-chips .lf-chip--reset {
	border-color: transparent;
	background: none;
	color: #8a1214;
	text-decoration: underline;
	text-underline-offset: 2px;
}
