/**
 * mod_vdb_filtre_boutique — filter panel styling.
 * Kept neutral so it inherits the YOOtheme theme tokens (colours, fonts).
 */

/* The classes the JS uses to hide cards. !important so they win over FS Grid /
   UIkit display utilities; independent from uk-hidden on purpose.
   vdb-out = fails the filter ; vdb-paged-out = matches but on another page. */
.fs-load-more-item.vdb-out,
.fs-load-more-item.vdb-paged-out {
	display: none !important;
}

.vdb-filtre {
	font-size: 0.95rem;
	/* Follows the wines while scrolling. Override the offset with --vdb-sticky-top. */
	position: sticky;
	top: var(--vdb-sticky-top, 100px);
	align-self: flex-start;
}

.vdb-filtre-title {
	font-weight: 700;
	font-size: 1.1rem;
	margin-bottom: 0.75rem;
	color: #404096;
}

.vdb-filtre-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.vdb-count strong {
	font-size: 1.05rem;
}

.vdb-reset {
	border: 0;
	background: none;
	padding: 0;
	cursor: pointer;
	color: currentColor;
	opacity: 0.7;
	text-decoration: underline;
	font: inherit;
}

.vdb-reset:hover {
	opacity: 1;
}

.vdb-empty {
	margin: 0 0 1.25rem;
	padding: 0.75rem 0.9rem;
	border-left: 3px solid #b48213;
	background: rgba(180, 130, 19, 0.07);
	font-size: 0.9rem;
}

.vdb-group {
	margin-bottom: 1.25rem;
}

.vdb-group-title {
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: #404096;
}

.vdb-price-label {
	font-weight: 400;
	opacity: 0.7;
	font-size: 0.85em;
}

.vdb-options {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.vdb-check {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
}

.vdb-check input {
	width: 1rem;
	height: 1rem;
	margin: 0;
	flex: 0 0 auto;
}

.vdb-manu-input,
.vdb-search-input {
	width: 100%;
	padding: 0.4rem 0.6rem;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 3px;
	background: transparent;
	color: inherit;
	font: inherit;
}

.vdb-search-group {
	margin-bottom: 1.25rem;
}

/* ---- Dual range slider (épuré, accent #b48213) ------------------------- */
.vdb-range {
	--vdb-accent: #b48213;
	position: relative;
	height: 1.5rem;
}

.vdb-range-track {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 2px;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.12);
	border-radius: 2px;
}

.vdb-range-fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--vdb-accent);
	border-radius: 2px;
}

/* Two range inputs stacked; their native tracks are transparent so only the
   thumbs show over the shared visual track. pointer-events juggling keeps both
   thumbs grabbable. */
.vdb-range input[type="range"] {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.vdb-range input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--vdb-accent);
	border: none;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
	cursor: pointer;
}

.vdb-range input[type="range"]::-moz-range-thumb {
	pointer-events: auto;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--vdb-accent);
	border: none;
	cursor: pointer;
}

.vdb-range input[type="range"]::-webkit-slider-runnable-track {
	background: none;
}

.vdb-range input[type="range"]::-moz-range-track {
	background: none;
}

/* ---- Pagination -------------------------------------------------------- */
.vdb-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.35rem;
	margin-top: 2rem;
}

.vdb-page-btn {
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.5rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 3px;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.vdb-page-btn:hover:not(:disabled):not(.is-active) {
	border-color: #404096;
	color: #404096;
}

.vdb-page-btn.is-active {
	background: #404096;
	border-color: #404096;
	color: #fff;
	cursor: default;
}

.vdb-page-btn:disabled {
	opacity: 0.4;
	cursor: default;
}

.vdb-page-gap {
	padding: 0 0.25rem;
	opacity: 0.6;
}