/* WiziShop Filtre — stil aliniat la imaginea de referință.
   Selectorii sunt scopați sub .wzs-filtre pentru a învinge regulile uzuale ale temei.
   Culorile setate din panou sunt injectate inline cu !important (vezi PHP). */

.wzs-filtre {
	--wzs-accent: #9c3328;        /* roșu cărămiziu pentru titlu + categorie activă */
	--wzs-text: #595959;          /* text categorii */
	--wzs-text-strong: #2b2b2b;   /* hover */
	--wzs-row-gap: 14px;

	font-size: 15px;
	line-height: 1.4;
}

.wzs-filtre .wzs-filtre__title {
	color: var(--wzs-accent);
	font-size: 1.4em;
	font-weight: 600;
	letter-spacing: .2px;
	margin: 0 0 .9em;
	text-transform: none;
}

.wzs-filtre .wzs-filtre__back {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	margin: 0 0 1em;
	font-size: .9em;
	color: var(--wzs-accent);
	text-decoration: none;
}

.wzs-filtre .wzs-filtre__back:hover {
	text-decoration: underline;
}

.wzs-filtre .wzs-filtre__back-icon {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 5px 6px 5px 0;
	border-color: transparent var(--wzs-accent) transparent transparent;
}

.wzs-filtre .wzs-filtre__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wzs-filtre .wzs-filtre__item {
	margin: 0 0 var(--wzs-row-gap);
}

.wzs-filtre .wzs-filtre__item:last-child {
	margin-bottom: 0;
}

.wzs-filtre .wzs-filtre__link,
.wzs-filtre .wzs-filtre__link:link,
.wzs-filtre .wzs-filtre__link:visited {
	display: flex;
	align-items: center;
	gap: .5em;
	color: var(--wzs-text);
	text-decoration: none;
	transition: color .15s ease;
}

.wzs-filtre .wzs-filtre__link:hover,
.wzs-filtre .wzs-filtre__link:focus {
	color: var(--wzs-text-strong);
}

/* pătratul din stânga a fost eliminat */
.wzs-filtre .wzs-filtre__check {
	display: none;
}

/* categoria activă: evidențiată prin culoare + bold */
.wzs-filtre .wzs-filtre__item.is-active .wzs-filtre__link {
	color: var(--wzs-accent);
	font-weight: 600;
}

.wzs-filtre .wzs-filtre__label {
	flex: 1 1 auto;
}

.wzs-filtre .wzs-filtre__count {
	color: #9a9a9a;
	font-size: .85em;
}

/* indicator discret pentru categoriile care au subcategorii */
.wzs-filtre .wzs-filtre__item.has-children .wzs-filtre__label::after {
	content: "\203A"; /* › */
	margin-left: .4em;
	color: #c4c4c4;
	font-weight: 600;
}

/* ---- Filtre după atribute ---- */

.wzs-filtre--atribute .wzs-filtre__group {
	margin-bottom: 1.6em;
}

.wzs-filtre--atribute .wzs-filtre__group:last-child {
	margin-bottom: 0;
}

/* la atribute reafișăm pătratul de checkbox (multi-select) */
.wzs-filtre--atribute .wzs-filtre__check {
	display: block;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	background: var(--wzs-box, #e8e8e8);
	border: 1px solid var(--wzs-box-border, #dcdcdc);
	border-radius: 2px;
	position: relative;
}

.wzs-filtre--atribute .wzs-filtre__item.is-active .wzs-filtre__check {
	background: var(--wzs-accent);
	border-color: var(--wzs-accent);
}

.wzs-filtre--atribute .wzs-filtre__item.is-active .wzs-filtre__check::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* căutare în atribute */
.wzs-filtre--atribute .wzs-filtre__search {
	margin: 0 0 .8em;
}

.wzs-filtre--atribute .wzs-filtre__search-input {
	width: 100%;
	box-sizing: border-box;
	padding: 7px 10px;
	font-size: .9em;
	line-height: 1.3;
	color: var(--wzs-text);
	background: #fff;
	border: 1px solid #d7d7d7;
	border-radius: 4px;
}

.wzs-filtre--atribute .wzs-filtre__search-input:focus {
	outline: none;
	border-color: var(--wzs-accent);
	box-shadow: 0 0 0 1px var(--wzs-accent);
}

.wzs-filtre--atribute .wzs-filtre__empty {
	margin: .2em 0 0;
	font-size: .85em;
	color: #9a9a9a;
	font-style: italic;
}

/* buton „Afișează toate" */
.wzs-filtre--atribute .wzs-filtre__toggle {
	display: inline-block;
	margin: .5em 0 0;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--wzs-accent);
	font-size: .85em;
	text-decoration: underline;
}

.wzs-filtre--atribute .wzs-filtre__toggle:hover {
	text-decoration: none;
}

/* ---- Filtru preț (slider) ---- */

.wzs-filtre--pret .wzs-price {
	--wzs-price-fill: #2b2b2b;
	--wzs-price-rail: #e2e2e2;
	padding: 6px 10px 0;
}

.wzs-price__slider {
	position: relative;
	height: 28px;
}

.wzs-price__rail {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 4px;
	border-radius: 4px;
	background: var(--wzs-price-rail);
}

.wzs-price__fill {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	height: 4px;
	border-radius: 4px;
	background: var(--wzs-price-fill);
}

.wzs-price__handle {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 28px;
	margin: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.wzs-price__handle:focus {
	outline: none;
}

/* thumb-urile sunt singurele elemente „prinse" cu mouse-ul */
.wzs-price__handle::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--wzs-price-fill);
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.wzs-price__handle::-moz-range-thumb {
	pointer-events: auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--wzs-price-fill);
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.wzs-price__handle::-webkit-slider-runnable-track {
	background: none;
	border: none;
}

.wzs-price__handle::-moz-range-track {
	background: none;
	border: none;
}

.wzs-price__values {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 12px;
}

.wzs-price__out {
	width: 46%;
	box-sizing: border-box;
	padding: 6px 8px;
	font-size: .85em;
	text-align: center;
	color: var(--wzs-text);
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.wzs-price__out--max {
	text-align: center;
}

.wzs-price__out:focus {
	outline: none;
	border-color: var(--wzs-accent);
}

/* spațiere între preț și „În stoc" când sunt în același bloc */
.wzs-filtre--pret + .wzs-filtre--stoc {
	margin-top: 1.4em;
}

/* ---- Liste de produse (vizualizate recent / bloc produse) ---- */

.wzs-products__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wzs-products__item {
	margin: 0 0 14px;
}

.wzs-products__item:last-child {
	margin-bottom: 0;
}

.wzs-products__link {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--wzs-text);
	text-decoration: none;
}

.wzs-products__link:hover {
	color: var(--wzs-text-strong);
}

.wzs-products__thumb {
	flex: 0 0 auto;
	width: 56px;
}

.wzs-products__thumb img {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 4px;
}

.wzs-products__info {
	flex: 1 1 auto;
	min-width: 0;
}

.wzs-products__name {
	display: block;
	font-size: .9em;
	line-height: 1.3;
}

.wzs-products__price {
	display: block;
	font-size: .85em;
	color: var(--wzs-accent);
	margin-top: 2px;
}

.wzs-products__price del {
	color: #9a9a9a;
	font-weight: 400;
	margin-right: 4px;
}

.wzs-products__price ins {
	text-decoration: none;
}
