.webtanan-woodmart-filter {
	--wt-bg: #ffffff;
	--wt-bg-soft: #f6f7f9;
	--wt-border: #dfe3e8;
	--wt-border-strong: #cbd3dc;
	--wt-text: #18212f;
	--wt-muted: #647184;
	--wt-accent: #16856f;
	--wt-accent-dark: #0f6f5c;
	--wt-danger: #b42318;
	--wt-shadow: 0 8px 24px rgba(24, 33, 47, 0.08);
	direction: rtl;
	text-align: right;
	background: var(--wt-bg);
	border: 1px solid var(--wt-border);
	border-radius: 8px;
	box-shadow: var(--wt-shadow);
	color: var(--wt-text);
	padding: 18px;
	font-size: 14px;
	line-height: 1.65;
}

.webtanan-woodmart-filter *,
.webtanan-woodmart-filter *::before,
.webtanan-woodmart-filter *::after {
	box-sizing: border-box;
}

.webtanan-filter-title {
	color: var(--wt-text);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 16px;
}

.webtanan-filter-section {
	border-top: 1px solid var(--wt-border);
	padding-top: 16px;
}

.webtanan-filter-section:first-child {
	border-top: 0;
	padding-top: 0;
}

.webtanan-filter-section + .webtanan-filter-section {
	margin-top: 18px;
}

.webtanan-filter-section-title {
	color: var(--wt-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 12px;
}

.webtanan-price-values {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 20px;
	color: var(--wt-text);
	direction: rtl;
}

.webtanan-price-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-width: 0;
	min-height: 40px;
	padding: 7px 10px;
	border: 1px solid #d7dde5;
	border-radius: 6px;
	background: #fbfcfd;
}

.webtanan-price-label {
	flex: 0 0 auto;
	color: var(--wt-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
}

.webtanan-price-min,
.webtanan-price-max {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	color: var(--wt-text);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.5;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
	direction: ltr;
	unicode-bidi: isolate;
}

.webtanan-price-separator {
	color: var(--wt-muted);
	font-size: 12px;
	font-weight: 600;
	direction: rtl;
	unicode-bidi: isolate;
}

.webtanan-price-slider {
	position: relative;
	margin: 8px 8px 5px;
	direction: ltr;
}

.webtanan-price-slider.ui-slider {
	height: 5px;
	border: 0;
	border-radius: 999px;
	background: #dde4ec;
	box-shadow: none;
	overflow: visible;
}

.webtanan-price-slider .ui-slider-range {
	top: 0;
	height: 100%;
	border-radius: 999px;
	background: var(--wt-accent);
}

.webtanan-woodmart-filter .webtanan-price-slider.ui-slider .ui-slider-handle {
	top: 50% !important;
	width: 16px !important;
	height: 16px !important;
	margin-top: -8px !important;
	margin-left: -8px !important;
	border: 2px solid #ffffff !important;
	border-radius: 50% !important;
	background: var(--wt-accent) !important;
	box-shadow: 0 0 0 1px var(--wt-accent), 0 3px 8px rgba(24, 33, 47, 0.18);
	cursor: grab;
	outline: 0;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
	z-index: 2;
}

.webtanan-woodmart-filter .webtanan-price-slider.ui-slider .ui-slider-handle:hover,
.webtanan-woodmart-filter .webtanan-price-slider.ui-slider .ui-slider-handle:focus {
	background: var(--wt-accent-dark) !important;
	box-shadow: 0 0 0 4px rgba(22, 133, 111, 0.14), 0 3px 8px rgba(24, 33, 47, 0.18);
	z-index: 3;
}

.webtanan-woodmart-filter .webtanan-price-slider.ui-slider .ui-slider-handle:active {
	cursor: grabbing;
	transform: scale(1.06);
}

.webtanan-woodmart-filter .webtanan-price-slider.ui-slider .ui-slider-handle::before,
.webtanan-woodmart-filter .webtanan-price-slider.ui-slider .ui-slider-handle::after {
	content: none !important;
	display: none !important;
}

.webtanan-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.webtanan-cat-item {
	position: relative;
	padding: 2px 0;
}

.webtanan-cat-label {
	display: flex;
	align-items: center;
	min-height: 32px;
	gap: 9px;
	margin: 0 0 0 28px;
	color: var(--wt-text);
	cursor: pointer;
}

.webtanan-cat-label input[type='checkbox'],
.webtanan-cat-label input[type='radio'] {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--wt-accent);
}

.webtanan-cat-name {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
}

.webtanan-cat-count {
	flex: 0 0 auto;
	min-width: 26px;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--wt-bg-soft);
	color: var(--wt-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}

.webtanan-cat-toggle {
	position: absolute;
	left: 0;
	top: 5px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border: 1px solid transparent;
	border-radius: 50%;
	background: transparent;
	color: var(--wt-muted);
	cursor: pointer;
	padding: 0;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.webtanan-cat-toggle:hover,
.webtanan-cat-toggle:focus {
	border-color: var(--wt-border);
	background: var(--wt-bg-soft);
	color: var(--wt-text);
	outline: 0;
}

.webtanan-toggle-icon,
.webtanan-toggle-icon::before {
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transform: translate(-50%, -50%);
	content: '';
}

.webtanan-toggle-icon::before {
	transform: translate(-50%, -50%) rotate(90deg);
}

.webtanan-cat-item.is-open > .webtanan-cat-toggle .webtanan-toggle-icon::before {
	opacity: 0;
}

.webtanan-cat-item > .webtanan-cat-list {
	display: none;
	padding-right: 17px;
	margin-top: 2px;
	border-right: 1px solid var(--wt-border);
}

.webtanan-cat-list.is-root,
.webtanan-cat-item.is-open > .webtanan-cat-list {
	display: block;
}

.webtanan-empty-cats {
	margin: 0;
	color: var(--wt-muted);
}

.webtanan-clear-filters {
	width: 100%;
	min-height: 40px;
	margin-top: 18px;
	border: 1px solid var(--wt-border-strong);
	border-radius: 6px;
	background: #ffffff;
	color: var(--wt-text);
	font-weight: 700;
	line-height: 1.4;
	padding: 9px 12px;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.webtanan-clear-filters:hover,
.webtanan-clear-filters:focus {
	border-color: var(--wt-danger);
	background: #fff5f5;
	color: var(--wt-danger);
	outline: 0;
}

body.webtanan-is-loading .products,
body.webtanan-is-loading ul.products,
body.webtanan-is-loading .wd-products-holder,
body.webtanan-is-loading .woodmart-products-holder,
body.webtanan-is-loading .webtanan-products-result {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.webtanan-load-more-wrap {
	margin-top: 22px;
	text-align: center;
}

.webtanan-pagination {
	clear: both;
}

@media (max-width: 767px) {
	.webtanan-woodmart-filter {
		padding: 15px;
	}

	.webtanan-filter-title {
		font-size: 15px;
	}

	.webtanan-price-values {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.webtanan-price-separator {
		text-align: center;
	}
}
