/* Bouton d'ouverture (mobile uniquement) */
.edkys-filters-open-btn {
	display: none;
}
@media (max-width: 1199px) {
	.edkys-filters-open-btn {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		position: sticky;
		top: 10px;
		z-index: 999980;
		margin: 12px 0 16px 14px;
		padding: 12px 22px;
		background: #af7d31;
		color: #ffffff;
		border: none;
		border-radius: 30px;
		font-family: 'Poppins', sans-serif;
		font-weight: 600;
		font-size: 14px;
		box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
		cursor: pointer;
	}
}

/* Fond assombri (mobile) */
.edkys-filters-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 20, 18, 0.55);
	z-index: 999990;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease;
}
.edkys-filters-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

/* Panneau (mobile : plein écran depuis la droite / ordinateur : barre latérale fixe) */
.edkys-filters-panel {
	position: fixed;
	top: 0;
	right: 0;
	width: 88%;
	max-width: 360px;
	height: 100%;
	background: #fdfbf7;
	z-index: 999991;
	transform: translateX(100%);
	transition: transform .3s ease;
	overflow: hidden;
	box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
}
.edkys-filters-panel.is-open {
	transform: translateX(0);
}

.edkys-filters-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid #e8dcc6;
	background: #f4e9d8;
	flex-shrink: 0;
}
.edkys-filters-panel-title {
	margin: 0;
	font-family: 'Cormorant Garamond', serif;
	font-weight: 700;
	font-size: 20px;
	color: #3d3d3a;
}
.edkys-filters-close-btn {
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: #af7d31;
	cursor: pointer;
}

.edkys-filters-form {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.edkys-filters-scroll-area {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 22px 20px 24px;
}

.edkys-filters-group {
	margin-bottom: 24px;
}
.edkys-filters-group-title {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #af7d31;
	margin: 0 0 10px;
	display: block;
}

.edkys-filters-select {
	width: 100%;
	padding: 10px 12px;
	border: 1.5px solid #af7d31;
	border-radius: 8px;
	background: #ffffff;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	color: #3d3d3a;
}

.edkys-filters-price-row {
	display: flex;
	align-items: center;
	gap: 10px;
}
.edkys-filters-price-row input {
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border: 1.5px solid #af7d31;
	border-radius: 8px;
	background: #ffffff;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
}
.edkys-filters-price-row span {
	color: #af7d31;
	font-weight: 600;
}

.edkys-filters-checklist {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.edkys-filters-check {
	display: flex;
	align-items: center;
	gap: 9px;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	color: #3d3d3a;
	cursor: pointer;
}
.edkys-filters-check input {
	accent-color: #af7d31;
	width: 16px;
	height: 16px;
}

.edkys-filters-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.edkys-filters-swatch {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	width: 56px;
}
.edkys-filters-swatch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.edkys-filters-swatch-dot {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid transparent;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
	transition: border-color .15s ease, transform .15s ease;
}
.edkys-filters-swatch.is-active .edkys-filters-swatch-dot,
.edkys-filters-swatch input:checked + .edkys-filters-swatch-dot {
	border-color: #af7d31;
	transform: scale(1.1);
}
.edkys-filters-swatch-label {
	font-family: 'Poppins', sans-serif;
	font-size: 10.5px;
	color: #3d3d3a;
	text-align: center;
}

.edkys-filters-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.edkys-filters-size-btn {
	position: relative;
	width: 46px;
	flex: 0 0 46px;
	box-sizing: border-box;
	padding: 8px 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	border: 1.5px solid #af7d31;
	border-radius: 8px;
	background: #ffffff;
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	color: #3d3d3a;
	cursor: pointer;
	overflow: hidden;
	white-space: nowrap;
}
.edkys-filters-size-btn input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.edkys-filters-size-btn.is-active,
.edkys-filters-size-btn:has(input:checked) {
	background: #af7d31;
	color: #ffffff;
}

.edkys-filters-actions {
	flex-shrink: 0;
	background: #fdfbf7;
	padding: 14px 20px 18px;
	border-top: 1px solid #e8dcc6;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.edkys-filters-apply-btn {
	width: 100%;
	padding: 13px;
	background: #af7d31;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 14.5px;
	cursor: pointer;
}
.edkys-filters-reset-link {
	text-align: center;
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	color: #af7d31;
	text-decoration: underline;
}

/* --- Ordinateur : la version mobile (bouton + panneau plein écran) est
   masquée — l'ordinateur affiche le widget "Filtres EDKYS" dans la barre
   latérale boutique du thème à la place. --- */
@media (min-width: 1200px) {
	.edkys-filters-open-btn,
	.edkys-filters-overlay,
	.edkys-filters-panel {
		display: none !important;
	}
}

/* --- Style du widget (ordinateur, barre latérale boutique du thème) --- */
.edkys-filters-widget {
	border: 1px solid #d9a860;
	border-radius: 10px;
	padding: 20px;
	background: #fdfbf7;
	margin-bottom: 24px;
}
.edkys-filters-widget .edkys-filters-form {
	display: block;
}
.edkys-filters-widget .edkys-filters-scroll-area {
	padding: 0;
	overflow: visible;
}
.edkys-filters-widget .edkys-filters-actions {
	padding: 16px 0 0;
	margin-top: 4px;
}

/* --- Mobile : le widget ne doit jamais apparaître directement dans la page,
   seul le bouton "Filtres et tri" + son panneau doivent être visibles --- */
@media (max-width: 1199px) {
	.edkys-filters-widget {
		display: none !important;
	}
}
