/* Paraexpert – Filtres boutique (Catégories + Marques + bouton Filtrer) */

/* Blocs Catégories / Marques repliables, même rendu que le filtre Prix (+ / −) */
.px-filter-widget > .widget-title {
	cursor: pointer;
	position: relative;
	margin-bottom: 0;
	padding-right: 20px;
	user-select: none;
}

.px-filter-widget > .widget-title::before,
.px-filter-widget > .widget-title::after {
	content: "";
	display: block;
	position: absolute;
	right: 0;
	top: 50%;
	width: 10px;
	height: 1px;
	background-color: currentColor;
	transition: transform .5s linear;
}

.px-filter-widget:not(.expanded) > .widget-title::after {
	transform: rotate(90deg);
}

.px-filter-widget:not(.expanded) > .px-filter-widget__body {
	display: none;
}

.px-filter-widget.expanded > .px-filter-widget__body {
	padding-top: 15px;
}

.px-filter-search {
	width: 100%;
	box-sizing: border-box;
	height: 36px;
	border: 1px solid #e3e3e3;
	border-radius: 4px;
	padding: 0 10px;
	margin: 2px 0 10px;
	font-size: 13px;
}

.px-filter-scroll {
	max-height: 300px;
	overflow-y: auto;
	padding-right: 4px;
}

.px-filter-widget .px-filter-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 0 0 22px !important;
}

.px-filter-widget .px-filter-list .px-filter-list {
	margin-top: 9px !important;
	padding-left: 18px !important;
}

.px-filter-widget .px-filter-item {
	position: relative;
	margin: 0 0 9px;
	padding: 0 !important;
}

.px-filter-item.is-hidden {
	display: none;
}

.px-filter-item > label {
	display: block;
	position: relative;
	cursor: pointer;
	font-size: 13px;
	line-height: 18px;
	color: #070707;
}

/* Case native masquée : on dessine la case comme celles du thème */
.px-filter-widget .px-filter-item input[type=checkbox] {
	position: absolute !important;
	opacity: 0 !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	pointer-events: none;
}

.px-filter-item > label::before {
	content: "";
	position: absolute;
	left: -22px;
	top: 4px;
	width: 10px;
	height: 10px;
	border: 1px solid #cfd4d0;
	box-sizing: content-box;
	background: #fff;
}

.px-filter-item.px-selected > label {
	color: #2c7a31;
	font-weight: 700;
}

.px-filter-item.px-selected > label::before {
	border-color: #3a9a3f;
}

.px-filter-item.px-selected > label::after {
	content: "";
	position: absolute;
	left: -20px;
	top: 6px;
	width: 6px;
	height: 6px;
	background: #3a9a3f;
}

/* Catégories repliées : bouton + / − pour afficher les sous-catégories */
.px-filter-item.has-children > label {
	padding-right: 28px;
}

.px-filter-item.has-children > .px-filter-list {
	display: none;
}

.px-filter-item.has-children.is-open > .px-filter-list,
.px-searching .px-filter-item.has-children > .px-filter-list {
	display: block;
}

.px-filter-widget .px-toggle {
	position: absolute;
	right: 0;
	top: -2px;
	width: 24px;
	height: 22px;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	cursor: pointer;
	color: #070707;
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
	text-align: center;
}

.px-filter-widget .px-toggle::before {
	content: "+";
}

.px-filter-item.is-open > .px-toggle::before,
.px-searching .px-toggle::before {
	content: "\2212";
}

.px-filter-widget .px-toggle:hover {
	color: #2c7a31;
}

.px-filter-item .count {
	font-size: 10px;
	color: #8a9199;
	font-weight: 400;
}

/* Le bouton du filtre Prix est remplacé par le bouton "Filtrer" global */
.widget_price_filter .price_slider_amount .button {
	display: none !important;
}

/* Bouton "Filtrer" + "Réinitialiser" en bas du panneau */
.px-apply {
	position: sticky;
	bottom: 0;
	z-index: 5;
	background: #fff;
	padding: 14px 0 16px;
	border-top: 1px solid #eee;
	margin-top: 10px;
	display: flex;
	align-items: center;
	gap: 14px;
}

.px-apply__btn {
	flex: 1;
	height: 46px;
	border: 0;
	border-radius: 6px;
	background: #3a9a3f;
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .03em;
	cursor: pointer;
}

.px-apply__btn:hover {
	background: #2c7a31;
}

.px-apply__reset {
	font-size: 13px;
	color: #e5484d;
	text-decoration: underline;
	white-space: nowrap;
}
