/* ALVAND_SMART_SHOP_FILTER_STYLE_V100 */
/**
 * الوند: استایل فیلترهای فروشگاه
 * Plugin Version: 1.0.0
 */

:where(
	.woodmart-woocommerce-layered-nav,
	.widget.woodmart-price-filter,
	.alv-filter-size,
	.alv-filter-brand,
	.alv-filter-price,
	.alv-filter-color,
	.alv-filter-categories
) {
	--alv-filter-border: #e1e3e6;
	--alv-filter-text: #262626;
	--alv-filter-muted: #62666c;
	--alv-filter-soft: #f6f7f8;
	--alv-filter-red: #e31b23;
	--alv-filter-red-dark: #b70f17;
	--alv-filter-red-soft: #fff3f4;
}

/* سایز */
.alv-filter-size .wd-filter-list {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	padding: 3px 7px 3px 3px;
}

.alv-filter-size .wd-filter-list > li.wc-layered-nav-term {
	position: relative;
	display: block !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0;
	margin: 0 !important;
	border: 1px solid var(--alv-filter-border);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.alv-filter-size .wd-filter-list > li > a.layered-nav-link {
	display: flex !important;
	align-items: center;
	justify-content: flex-end;
	width: 100%;
	min-height: 44px;
	padding: 7px 10px 7px 44px !important;
	color: var(--alv-filter-text);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	text-align: right;
	text-decoration: none;
	white-space: nowrap;
	direction: rtl;
}

.alv-filter-size .wd-filter-list .wd-swatch {
	display: inline-flex !important;
	align-items: center;
	justify-content: flex-end;
	width: 100% !important;
	min-width: 0 !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit !important;
	text-align: right;
	direction: rtl;
}

.alv-filter-size .wd-filter-list .wd-swatch-text {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
	direction: rtl;
}

.alv-filter-size .wd-filter-list :is(.wd-filter-lable, .wd-filter-label, .layer-term-lable) {
	display: none !important;
}

.alv-filter-size .wd-filter-list > li > .count {
	position: absolute;
	top: 50%;
	left: 8px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 23px;
	height: 23px;
	margin: 0 !important;
	padding: 0 5px;
	border: 1px solid var(--alv-filter-border);
	border-radius: 999px;
	background: var(--alv-filter-soft);
	color: var(--alv-filter-muted);
	font-size: 11px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	transform: translateY(-50%);
	pointer-events: none;
}

.alv-filter-size .wd-filter-list > li:last-child:nth-child(odd) {
	grid-column: 1 / -1;
	width: calc(50% - 4px) !important;
	justify-self: center;
}

.alv-filter-size .wd-filter-list > li:is(.chosen, .wd-active, .active),
.alv-filter-size .wd-filter-list > li:has(> a:is(.wd-active, [aria-current="page"])) {
	border-color: var(--alv-filter-red);
	background: var(--alv-filter-red-soft);
	box-shadow: inset -3px 0 0 var(--alv-filter-red);
}

.alv-filter-size .wd-filter-list > li:is(.chosen, .wd-active, .active) > a,
.alv-filter-size .wd-filter-list > li > a:is(.wd-active, [aria-current="page"]) {
	padding-right: 36px !important;
	color: var(--alv-filter-red-dark) !important;
}

.alv-filter-size .wd-filter-list > li:is(.chosen, .wd-active, .active) > .count,
.alv-filter-size .wd-filter-list > li:has(> a:is(.wd-active, [aria-current="page"])) > .count {
	border-color: #efc5c8;
	background: #fff;
	color: var(--alv-filter-red-dark);
}

.alv-filter-size .wd-filter-list > li:is(.chosen, .wd-active, .active)::after,
.alv-filter-size .wd-filter-list > li:has(> a:is(.wd-active, [aria-current="page"]))::after {
	content: "✓";
	position: absolute;
	top: 50%;
	right: 9px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--alv-filter-red);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	transform: translateY(-50%);
	pointer-events: none;
}

/* برند */
.alv-filter-brand .wd-filter-list {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 7px;
	padding: 3px 7px 3px 3px;
}

.alv-filter-brand .wd-filter-list > li.wc-layered-nav-term {
	position: relative;
	display: block !important;
	width: 100% !important;
	min-width: 0;
	margin: 0 !important;
	border: 1px solid var(--alv-filter-border);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.alv-filter-brand .wd-filter-list > li > a.layered-nav-link {
	display: flex !important;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	min-height: 46px;
	padding: 7px 12px 7px 48px !important;
	color: var(--alv-filter-text);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	text-align: right;
	text-decoration: none;
	direction: rtl;
}

.alv-filter-brand .wd-filter-list .wd-swatch {
	display: inline-flex !important;
	align-items: center;
	justify-content: flex-start;
	width: auto !important;
	min-width: 0 !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit !important;
}

.alv-filter-brand .wd-swatch.wd-bg .wd-swatch-bg {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 86px !important;
	height: 28px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	overflow: hidden;
}

.alv-filter-brand .wd-swatch-bg img {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 86px !important;
	max-height: 28px !important;
	margin: 0 !important;
	object-fit: contain;
	object-position: right center;
}

.alv-filter-brand .wd-swatch.wd-text .wd-swatch-text {
	display: block !important;
	max-width: 100%;
	overflow: hidden;
	color: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
	direction: rtl;
}

.alv-filter-brand .wd-swatch.wd-bg .wd-swatch-text,
.alv-filter-brand :is(.wd-filter-lable, .wd-filter-label, .layer-term-lable) {
	display: none !important;
}

.alv-filter-brand .wd-filter-list > li > .count {
	position: absolute;
	top: 50%;
	left: 9px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 25px;
	height: 23px;
	margin: 0 !important;
	padding: 0 6px;
	border: 1px solid var(--alv-filter-border);
	border-radius: 999px;
	background: var(--alv-filter-soft);
	color: var(--alv-filter-muted);
	font-size: 11px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	transform: translateY(-50%);
	pointer-events: none;
}

.alv-filter-brand .wd-filter-list > li:is(.chosen, .wd-active, .active),
.alv-filter-brand .wd-filter-list > li:has(> a:is(.wd-active, [aria-current="page"])) {
	border-color: var(--alv-filter-red);
	background: var(--alv-filter-red-soft);
	box-shadow: inset -3px 0 0 var(--alv-filter-red);
}

.alv-filter-brand .wd-filter-list > li:is(.chosen, .wd-active, .active) > a,
.alv-filter-brand .wd-filter-list > li > a:is(.wd-active, [aria-current="page"]) {
	padding-right: 36px !important;
	color: var(--alv-filter-red-dark) !important;
}

.alv-filter-brand .wd-filter-list > li:is(.chosen, .wd-active, .active) > .count,
.alv-filter-brand .wd-filter-list > li:has(> a:is(.wd-active, [aria-current="page"])) > .count {
	border-color: #efc5c8;
	background: #fff;
	color: var(--alv-filter-red-dark);
}

.alv-filter-brand .wd-filter-list > li:is(.chosen, .wd-active, .active)::after,
.alv-filter-brand .wd-filter-list > li:has(> a:is(.wd-active, [aria-current="page"]))::after {
	content: "✓";
	position: absolute;
	top: 50%;
	right: 9px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--alv-filter-red);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	transform: translateY(-50%);
	pointer-events: none;
}

/* رنگ */
.alv-filter-color .wd-filter-list {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 4px 6px 6px;
}

.alv-filter-color .wd-filter-list > li.wc-layered-nav-term {
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	min-width: 0;
	min-height: 108px;
	margin: 0 !important;
	border: 1px solid var(--alv-filter-border);
	border-radius: 9px;
	background: #fff;
}

.alv-filter-color .wd-filter-list > li > a.layered-nav-link {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	width: 100%;
	min-width: 0;
	min-height: 108px;
	padding: 7px 5px 5px !important;
	border: 0;
	border-radius: 8px;
	text-decoration: none;
}

.alv-filter-color .wd-filter-list .wd-swatch.wd-bg {
	display: inline-flex !important;
	width: 80px !important;
	height: 80px !important;
	min-width: 80px !important;
	margin: 0 !important;
	border: 1px solid #bfc2c7 !important;
	border-radius: 7px !important;
	box-shadow: none !important;
	overflow: hidden;
}

.alv-filter-color .wd-filter-list .wd-swatch.wd-bg .wd-swatch-bg {
	width: 100% !important;
	height: 100% !important;
	border-radius: inherit !important;
	background-position: center !important;
	background-size: cover !important;
}

.alv-filter-color .wd-filter-list .wd-swatch-bg img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
}

.alv-filter-color .alv-color-name {
	display: block;
	max-width: 100%;
	overflow: hidden;
	color: var(--alv-filter-muted);
	font-size: 10.5px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.alv-filter-color .wd-filter-list > li:is(.chosen, .wd-active, .active),
.alv-filter-color .wd-filter-list > li:has(> a:is(.wd-active, [aria-current="page"])) {
	border-color: var(--alv-filter-red);
	background: var(--alv-filter-red-soft);
	box-shadow: inset 0 0 0 1px var(--alv-filter-red);
}

.alv-filter-color .wd-filter-list > li > .count {
	position: absolute;
	top: -3px;
	left: -5px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 19px;
	height: 19px;
	padding: 0 4px;
	border: 1px solid #fff;
	border-radius: 999px;
	background: #62666c;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
}

/* دسته‌بندی */
.alv-filter-categories :is(.product-categories, .wd-nav-product-cat) {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 3px 4px 5px;
	list-style: none;
}

.alv-filter-categories :is(.product-categories, .wd-nav-product-cat) > li {
	position: relative;
	margin: 0 !important;
}

.alv-filter-categories :is(.product-categories, .wd-nav-product-cat) > li > a {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 44px;
	padding: 8px 11px 8px 42px;
	border: 1px solid var(--alv-filter-border);
	border-radius: 8px;
	background: #fff;
	color: var(--alv-filter-text);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
}

.alv-filter-categories :is(.product-categories, .wd-nav-product-cat) > li > .count {
	position: absolute;
	top: 22px;
	left: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 23px;
	padding: 0 5px;
	border: 1px solid var(--alv-filter-border);
	border-radius: 999px;
	background: var(--alv-filter-soft);
	color: var(--alv-filter-muted);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	transform: translateY(-50%);
	pointer-events: none;
}

.alv-filter-categories :is(.product-categories, .wd-nav-product-cat) > li:is(.current-cat, .current-cat-parent) > a,
.alv-filter-categories :is(.product-categories, .wd-nav-product-cat) > li > a:is(.wd-active, [aria-current="page"]) {
	padding-right: 36px;
	border-color: var(--alv-filter-red);
	background: var(--alv-filter-red-soft);
	color: var(--alv-filter-red-dark);
	box-shadow: inset -3px 0 0 var(--alv-filter-red);
}

.alv-filter-categories :is(.product-categories, .wd-nav-product-cat) > li:is(.current-cat, .current-cat-parent) > .count {
	border-color: #efc5c8;
	background: #fff;
	color: var(--alv-filter-red-dark);
}

.alv-filter-categories :is(.product-categories, .wd-nav-product-cat) > li:is(.current-cat, .current-cat-parent) > a::after,
.alv-filter-categories :is(.product-categories, .wd-nav-product-cat) > li > a:is(.wd-active, [aria-current="page"])::after {
	content: "✓";
	position: absolute;
	top: 22px;
	right: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--alv-filter-red);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	transform: translateY(-50%);
}

.alv-filter-categories :is(.product-categories, .wd-nav-product-cat) ul.children {
	display: grid;
	gap: 4px;
	margin: 6px 12px 0 0;
	padding: 0;
	list-style: none;
}

.alv-filter-categories :is(.product-categories, .wd-nav-product-cat) ul.children a {
	display: flex;
	align-items: center;
	min-height: 40px;
	padding: 7px 10px;
	border-radius: 7px;
	background: #f8f8f9;
	color: #4b4d52;
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
}

/* قیمت */
:is(.widget.woodmart-price-filter, .alv-filter-price) > .woodmart-price-filter > ul {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
}

:is(.widget.woodmart-price-filter, .alv-filter-price) > .woodmart-price-filter > ul > li {
	margin: 0 !important;
}

:is(.widget.woodmart-price-filter, .alv-filter-price) > .woodmart-price-filter > ul > li > a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 7px 9px;
	border: 1px solid #e3e4e7;
	border-radius: 7px;
	background: #fff;
	color: #4b4d52;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.7;
	text-align: center;
	text-decoration: none;
}

:is(.widget.woodmart-price-filter, .alv-filter-price) > .woodmart-price-filter > ul > li > a.current-state {
	border-color: #efb9bc;
	background: #fff5f5;
	color: #b9151c;
}

/* Hover و Focus */
@media (hover: hover) and (pointer: fine) {
	.alv-filter-size .wd-filter-list > li:not(.chosen):not(.wd-active):not(.active):not(:has(> a:is(.wd-active, [aria-current="page"]))):hover,
	.alv-filter-brand .wd-filter-list > li:not(.chosen):not(.wd-active):not(.active):not(:has(> a:is(.wd-active, [aria-current="page"]))):hover {
		border-color: #dc8d92;
		background-color: #fff8f8;
		box-shadow: 0 2px 8px rgb(0 0 0 / 5%);
	}

	.alv-filter-categories :is(.product-categories, .wd-nav-product-cat) > li:not(.current-cat, .current-cat-parent) > a:hover {
		border-color: #dc8d92;
		background: #fff8f8;
		box-shadow: 0 2px 8px rgb(0 0 0 / 5%);
	}

	.alv-filter-color .wd-filter-list > li:not(.chosen, .wd-active, .active) > a:hover {
		border-color: #dc8d92;
		background: #fff8f8;
	}
}

.woodmart-woocommerce-layered-nav a.layered-nav-link:focus-visible,
:is(.widget.woodmart-price-filter, .alv-filter-price) a:focus-visible {
	position: relative;
	z-index: 3;
	outline: 2px solid #d71920;
	outline-offset: 2px;
	border-radius: 7px;
}

/* سطح دسترسی رابط */
body.alv-hide-filter-counts .woodmart-woocommerce-layered-nav .wd-filter-list > li > .count,
body.alv-hide-filter-counts .widget_product_categories .product-categories .count,
body.alv-hide-filter-counts .widget_product_categories .wc-block-product-categories-list-item-count,
body.alv-hide-filter-counts .wd-product-categories .count,
body.alv-hide-filter-counts .wd-nav-product-cat .count,
body.alv-hide-filter-counts .product-categories .count {
	display: none !important;
}

body.alv-hide-filter-counts .alv-filter-size .wd-filter-list > li > a.layered-nav-link {
	padding-left: 10px !important;
}

body.alv-hide-filter-counts .alv-filter-brand .wd-filter-list > li > a.layered-nav-link {
	padding-left: 12px !important;
}

body.alv-hide-filter-counts .alv-filter-categories :is(.product-categories, .wd-nav-product-cat) > li > a {
	padding-left: 11px;
}

body.alv-hide-stock-filter [data-alv-stock-hidden="1"],
body.alv-hide-stock-filter :is(.wd-sidebar, .area-sidebar-shop, .alv-shop-filter-sidebar) li:has(> a[href*="stock_status=instock"]),
body.alv-hide-stock-filter :is(.wd-sidebar, .area-sidebar-shop, .alv-shop-filter-sidebar) li:has(input[value*="instock"]) {
	display: none !important;
}

/* اسکرول دسکتاپ */
.woodmart-woocommerce-layered-nav .wd-scroll-content {
	scrollbar-width: thin;
	scrollbar-color: #bfc2c6 transparent;
}

.woodmart-woocommerce-layered-nav .wd-scroll-content::-webkit-scrollbar {
	width: 5px;
}

.woodmart-woocommerce-layered-nav .wd-scroll-content::-webkit-scrollbar-track {
	background: transparent;
}

.woodmart-woocommerce-layered-nav .wd-scroll-content::-webkit-scrollbar-thumb {
	border-radius: 10px;
	background: #bfc2c6;
}

.woodmart-woocommerce-layered-nav .wd-scrollbar-thumb {
	border-radius: 10px !important;
	background-color: #bfc2c6 !important;
}

/* موبایل */
@media (max-width: 767px) {
	.alv-mobile-filter-footer,
	.alv-filter-footer-spacer,
	.alv-filter-clearbar {
		display: none !important;
	}

	/* هدر فقط در پنل فیلتر فروشگاه */
	.alv-shop-filter-sidebar .wd-heading.alv-filter-heading {
		position: sticky;
		top: 0;
		z-index: 50;
		display: grid;
		grid-template-areas: "clear title close";
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		align-items: center;
		gap: 8px;
		min-height: 56px;
		margin: 0 !important;
		padding: 6px 14px !important;
		border-bottom: 1px solid #ececef;
		background: #fff;
		direction: rtl;
	}

	.alv-shop-filter-sidebar .close-side-widget,
	.alv-shop-filter-sidebar .close-side-widget a {
		display: inline-flex !important;
		align-items: center;
		gap: 7px;
		min-height: 44px;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		background: transparent !important;
		color: #2f3135 !important;
		font-size: 15px !important;
		font-weight: 700 !important;
		line-height: 1.4;
		text-decoration: none !important;
		box-shadow: none !important;
	}

	.alv-shop-filter-sidebar .wd-heading.alv-filter-heading > .close-side-widget {
		grid-area: close;
		justify-self: end;
	}

	.alv-shop-filter-sidebar .alv-filter-heading__title {
		grid-area: title;
		max-width: 94px;
		overflow: hidden;
		color: #26282c;
		font-size: 14px;
		font-weight: 800;
		line-height: 1.4;
		text-align: center;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.alv-shop-filter-sidebar .alv-filter-clear-all {
		grid-area: clear;
		justify-self: start;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 44px;
		margin: 0;
		padding: 6px 4px;
		border: 0;
		border-radius: 7px;
		background: transparent;
		color: #c5161d;
		font-family: inherit;
		font-size: 13px;
		font-weight: 700;
		line-height: 1.4;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.alv-shop-filter-sidebar .alv-filter-clear-all::before {
		content: "×";
		margin-left: 6px;
		font-size: 18px;
		font-weight: 400;
		line-height: 1;
	}

	.alv-shop-filter-sidebar .alv-filter-clear-all[hidden] {
		display: none !important;
	}

	.alv-shop-filter-sidebar .alv-filter-clear-all:active {
		background: #fff1f2;
	}

	.alv-shop-filter-sidebar :is(.alv-filter-clear-all, .close-side-widget, .close-side-widget a):focus-visible {
		outline: 2px solid #d71920;
		outline-offset: 2px;
		border-radius: 7px;
	}

	/* حذف اسکرول داخلی فیلترها */
	.alv-shop-filter-sidebar .woodmart-woocommerce-layered-nav :is(.wd-scroll, .wd-scroll-content) {
		width: 100% !important;
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
	}

	.alv-shop-filter-sidebar .woodmart-woocommerce-layered-nav :is(.wd-scrollbar, .wd-scrollbar-track, .wd-scrollbar-thumb) {
		display: none !important;
	}

	.alv-shop-filter-sidebar .woodmart-woocommerce-layered-nav .wd-scroll-content {
		scrollbar-width: none;
	}

	.alv-shop-filter-sidebar .woodmart-woocommerce-layered-nav .wd-scroll-content::-webkit-scrollbar {
		display: none;
		width: 0;
		height: 0;
	}

	.alv-shop-filter-sidebar :is(.area-sidebar-shop, .widget-area) {
		padding-top: 0 !important;
		padding-bottom: 20px !important;
	}

	/* فیلترهای سریع */
	.alv-shop-filter-sidebar .alv-quick-filters {
		display: grid;
		gap: 8px;
		width: 100%;
		margin: 0;
		padding: 10px 16px 12px;
		border-bottom: 1px solid #ececef;
		background: #fff;
	}

	.alv-shop-filter-sidebar .alv-quick-filters[data-items="1"] {
		grid-template-columns: 1fr;
	}

	.alv-shop-filter-sidebar .alv-quick-filters[data-items="2"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.alv-shop-filter-sidebar .alv-quick-filter-button {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 7px;
		width: 100%;
		min-width: 0;
		min-height: 48px;
		margin: 0;
		padding: 8px 9px;
		border: 1px solid #dedfe2;
		border-radius: 9px;
		background: #fff;
		color: #383a3f;
		font-family: inherit;
		font-size: 12.5px;
		font-weight: 700;
		line-height: 1.4;
		text-align: center;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
		transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 100ms ease;
	}

	.alv-shop-filter-sidebar .alv-quick-filter-button__text {
		min-width: 0;
		overflow: visible;
		text-overflow: clip;
		white-space: normal;
		line-height: 1.35;
	}

	.alv-shop-filter-sidebar .alv-quick-filter-button__icon {
		position: relative;
		flex: 0 0 auto;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 22px;
		height: 22px;
		border-radius: 50%;
		background: #f3f3f4;
		color: #64666b;
		font-size: 12px;
		font-weight: 800;
		line-height: 1;
	}

	.alv-shop-filter-sidebar .alv-quick-filter-button[data-filter-status="onsale"] .alv-quick-filter-button__icon::before {
		content: "٪";
	}

	.alv-shop-filter-sidebar .alv-quick-filter-button[data-filter-status="instock"] .alv-quick-filter-button__icon {
		border: 1.5px solid #bfc2c7;
		border-radius: 5px;
		background: #fff;
	}

	.alv-shop-filter-sidebar .alv-quick-filter-button[data-filter-status="instock"] .alv-quick-filter-button__icon::before {
		content: "";
	}

	.alv-shop-filter-sidebar .alv-quick-filter-button.is-active {
		border-color: #e31b23;
		background: #e31b23;
		color: #fff;
		box-shadow: 0 3px 10px rgb(227 27 35 / 18%);
	}

	.alv-shop-filter-sidebar .alv-quick-filter-button.is-active .alv-quick-filter-button__icon {
		background: rgb(255 255 255 / 18%);
		color: #fff;
	}

	.alv-shop-filter-sidebar .alv-quick-filter-button[data-filter-status="instock"].is-active {
		border-color: #e31b23;
		background: #fff3f4;
		color: #b70f17;
		box-shadow: none;
	}

	.alv-shop-filter-sidebar .alv-quick-filter-button[data-filter-status="instock"].is-active .alv-quick-filter-button__icon {
		border-color: #e31b23;
		background: #e31b23;
		color: #fff;
	}

	.alv-shop-filter-sidebar .alv-quick-filter-button[data-filter-status="instock"].is-active .alv-quick-filter-button__icon::before {
		content: "✓";
	}

	.alv-shop-filter-sidebar .alv-quick-filter-button:active {
		transform: scale(0.985);
	}

	.alv-shop-filter-sidebar .alv-quick-filter-button:focus-visible {
		outline: 2px solid #202124;
		outline-offset: 2px;
	}

	.alv-shop-filter-sidebar .alv-stock-widget-original {
		display: none !important;
	}

	/* آکاردئون‌ها */
	.alv-shop-filter-sidebar .alv-accordion-widget {
		margin-bottom: 0 !important;
		padding: 7px 16px 9px !important;
		border-bottom: 1px solid #ececef;
	}

	.alv-shop-filter-sidebar .alv-accordion-widget > .widget-title {
		display: block !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		background: transparent !important;
	}

	.alv-shop-filter-sidebar .alv-accordion-widget.alv-is-open > .widget-title {
		margin-bottom: 8px !important;
	}

	.alv-shop-filter-sidebar .alv-filter-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		min-height: 48px;
		margin: 0;
		padding: 10px 14px;
		border: 1px solid #e6e7ea;
		border-radius: 10px;
		background: #fafafb;
		color: #313338;
		font-family: inherit;
		font-size: 15px;
		font-weight: 700;
		line-height: 1.4;
		text-align: right;
		cursor: pointer;
		box-shadow: none;
		-webkit-tap-highlight-color: transparent;
	}

	.alv-shop-filter-sidebar .alv-filter-toggle__label {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.alv-shop-filter-sidebar .alv-filter-toggle__icon {
		flex: 0 0 auto;
		width: 10px;
		height: 10px;
		margin-right: 12px;
		border-right: 2px solid #85858a;
		border-bottom: 2px solid #85858a;
		transform: rotate(45deg);
		transition: transform 160ms ease;
	}

	.alv-shop-filter-sidebar .alv-accordion-widget.alv-is-open .alv-filter-toggle__icon {
		transform: rotate(225deg);
	}

	.alv-shop-filter-sidebar .alv-filter-toggle:focus-visible {
		outline: 2px solid #e31b23;
		outline-offset: 2px;
	}

	.alv-shop-filter-sidebar .alv-filter-accordion-panel {
		display: block;
		width: 100%;
		padding: 0 0 4px;
	}

	.alv-shop-filter-sidebar .alv-filter-accordion-panel[hidden] {
		display: none !important;
	}

	.alv-shop-filter-sidebar .alv-accordion-widget.alv-has-active-filter .alv-filter-toggle {
		border-color: #edc7ca;
		background: #fff7f7;
		color: #bc141b;
	}

	.alv-shop-filter-sidebar .alv-accordion-widget.alv-has-active-filter .alv-filter-toggle__icon {
		border-color: #d71920;
	}

	/* سایز موبایل */
	.alv-shop-filter-sidebar .alv-filter-size .wd-filter-list {
		gap: 10px;
		padding: 2px 4px 0 !important;
	}

	.alv-shop-filter-sidebar .alv-filter-size .wd-filter-list > li.wc-layered-nav-term {
		min-height: 52px;
		height: auto !important;
		border-radius: 10px;
	}

	.alv-shop-filter-sidebar .alv-filter-size .wd-filter-list > li > a.layered-nav-link {
		align-items: center;
		min-height: 52px !important;
		height: 100% !important;
		padding-top: 8px !important;
		padding-bottom: 8px !important;
		font-size: 14px;
		font-weight: 700;
	}

	.alv-shop-filter-sidebar .alv-filter-size .wd-filter-list .wd-swatch {
		flex: 1 1 auto;
		justify-content: center !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		text-align: center;
		direction: rtl;
	}

	.alv-shop-filter-sidebar .alv-filter-size .wd-filter-list .wd-swatch-text {
		display: block !important;
		width: 100% !important;
		max-width: none !important;
		overflow: visible !important;
		text-overflow: clip !important;
		white-space: normal !important;
		word-break: normal;
		overflow-wrap: normal;
		font-size: 14px;
		font-weight: 700;
		line-height: 1.4;
		text-align: center;
		direction: rtl;
	}

	body.alv-show-filter-counts .alv-shop-filter-sidebar .alv-filter-size .wd-filter-list > li > a.layered-nav-link {
		min-height: 56px !important;
		padding-right: 10px !important;
		padding-left: 41px !important;
	}

	body.alv-show-filter-counts .alv-shop-filter-sidebar .alv-filter-size .wd-filter-list > li:is(.chosen, .wd-active, .active) > a.layered-nav-link,
	body.alv-show-filter-counts .alv-shop-filter-sidebar .alv-filter-size .wd-filter-list > li > a.layered-nav-link:is(.wd-active, [aria-current="page"]) {
		padding-right: 36px !important;
	}

	body.alv-show-filter-counts .alv-shop-filter-sidebar .alv-filter-size .wd-filter-list .wd-swatch-text {
		font-size: 13px;
		line-height: 1.45;
	}

	body.alv-show-filter-counts .alv-shop-filter-sidebar .alv-filter-size .wd-filter-list > li > .count {
		left: 8px;
		min-width: 24px;
		height: 23px;
		padding: 0 4px;
		font-size: 10.5px;
	}

	/* قیمت موبایل */
	.alv-shop-filter-sidebar .alv-filter-price .woodmart-price-filter > ul {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		margin: 0;
		padding: 2px 4px 0;
	}

	.alv-shop-filter-sidebar .alv-filter-price .woodmart-price-filter > ul > li {
		min-width: 0;
		margin: 0 !important;
	}

	.alv-shop-filter-sidebar .alv-filter-price .woodmart-price-filter > ul > li:first-child {
		grid-column: 1 / -1;
	}

	.alv-shop-filter-sidebar .alv-filter-price .woodmart-price-filter > ul > li > a {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 48px;
		padding: 8px 10px;
		border: 1px solid #e1e3e6;
		border-radius: 9px;
		background: #fff;
		color: #3f4146;
		font-size: 12.5px;
		font-weight: 700;
		line-height: 1.55;
		text-align: center;
		text-decoration: none;
		white-space: normal;
	}

	.alv-shop-filter-sidebar .alv-filter-price .woodmart-price-filter > ul > li > a.current-state {
		border-color: #e31b23;
		background: #fff3f4;
		color: #b70f17;
		box-shadow: inset 0 0 0 1px rgb(227 27 35 / 8%);
	}

	.alv-shop-filter-sidebar .alv-filter-price .woodmart-price-filter > ul > li > a:active {
		transform: scale(0.985);
	}
}

@media (min-width: 768px) {
	.alv-filter-clear-all,
	.alv-quick-filters,
	.alv-mobile-filter-footer,
	.alv-filter-footer-spacer,
		.alv-filter-clearbar {
		display: none !important;
	}

	:is(
		.alv-filter-size,
		.alv-filter-price,
		.alv-filter-brand,
		.alv-filter-color,
		.alv-filter-categories
	) > .widget-title {
		position: relative;
		margin: 0 0 12px !important;
		padding: 0 12px 0 0 !important;
		color: #2f3135;
		font-size: 14.5px;
		font-weight: 800;
		line-height: 1.7;
	}

	:is(
		.alv-filter-size,
		.alv-filter-price,
		.alv-filter-brand,
		.alv-filter-color,
		.alv-filter-categories
	) > .widget-title::before {
		content: "";
		position: absolute;
		top: 50%;
		right: 0;
		width: 3px;
		height: 18px;
		border-radius: 999px;
		background: var(--alv-filter-red);
		transform: translateY(-50%);
	}
}

@media (max-width: 374px) {
	.alv-shop-filter-sidebar .alv-quick-filters[data-items="2"] {
		grid-template-columns: 1fr;
	}
}

/* آخرین محصولات مشاهده‌شده: بیرون از کشوی فیلتر و در انتهای نتایج فروشگاه. */
@media (max-width: 767px) {
	body.alv-main-shop-page .alv-shop-filter-sidebar .alv-recently-viewed-widget {
		display: none !important;
	}

	body.alv-main-shop-page .alv-recently-viewed-section {
		display: block;
		width: 100%;
		min-width: 0;
		margin: 24px 0 4px;
		padding: 18px 0 4px;
		border-top: 1px solid #e5e6e9;
		direction: rtl;
	}

	body.alv-main-shop-page .alv-recently-viewed-section__title {
		margin: 0 0 11px;
		padding: 0;
		color: #292b2f;
		font-size: 16px;
		font-weight: 800;
		line-height: 1.6;
		text-align: right;
	}

	body.alv-main-shop-page .alv-recently-viewed-section__list {
		display: grid !important;
		grid-auto-columns: clamp(132px, 42vw, 156px);
		grid-auto-flow: column;
		gap: 11px;
		width: 100%;
		margin: 0 !important;
		padding: 1px 1px 10px !important;
		overflow-x: auto;
		overflow-y: hidden;
		list-style: none !important;
		scroll-snap-type: x proximity;
		scrollbar-width: thin;
		scrollbar-color: #c6c8cc transparent;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-inline: contain;
	}

	body.alv-main-shop-page .alv-recently-viewed-section__list::-webkit-scrollbar {
		height: 4px;
	}

	body.alv-main-shop-page .alv-recently-viewed-section__list::-webkit-scrollbar-thumb {
		border-radius: 999px;
		background: #c6c8cc;
	}

	body.alv-main-shop-page .alv-recently-viewed-section__list > li {
		display: flex !important;
		flex-direction: column;
		min-width: 0;
		margin: 0 !important;
		padding: 8px !important;
		border: 1px solid #e5e6e9;
		border-radius: 10px;
		background: #fff;
		box-shadow: 0 2px 9px rgb(20 22 26 / 4%);
		scroll-snap-align: start;
	}

	body.alv-main-shop-page .alv-recently-viewed-section__list > li[hidden] {
		display: none !important;
	}

	body.alv-main-shop-page .alv-recently-viewed-section__list > li > a {
		display: flex !important;
		flex-direction: column;
		gap: 7px;
		min-width: 0;
		color: #303237;
		font-size: 12.5px;
		font-weight: 650;
		line-height: 1.55;
		text-align: right;
		text-decoration: none;
	}

	body.alv-main-shop-page .alv-recently-viewed-section__list > li img {
		float: none !important;
		display: block;
		width: 100% !important;
		height: auto !important;
		max-width: none !important;
		aspect-ratio: 3 / 4;
		margin: 0 !important;
		border-radius: 7px;
		background: #f7f7f8;
		object-fit: contain;
	}

	body.alv-main-shop-page .alv-recently-viewed-section__list .product-title {
		display: -webkit-box;
		overflow: hidden;
		min-height: 3.1em;
		font-size: 12.5px;
		line-height: 1.55;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	body.alv-main-shop-page .alv-recently-viewed-section__list :is(.amount, ins) {
		color: #c5161d;
		font-size: 12px;
		font-weight: 800;
		text-decoration: none;
	}

	body.alv-main-shop-page .alv-recently-viewed-section__list del .amount {
		color: #777a80;
		font-size: 10.5px;
		font-weight: 500;
	}

	body.alv-main-shop-page .alv-recently-viewed-section__list a:focus-visible {
		outline: 2px solid #d71920;
		outline-offset: 2px;
		border-radius: 7px;
	}
}

@media (min-width: 768px) {
	body.alv-main-shop-page .alv-shop-filter-sidebar .alv-recently-viewed-widget {
		margin-top: 22px !important;
		padding-top: 18px !important;
		border-top: 1px solid #e5e6e9;
	}
}

/* «همه قیمت‌ها» در حالت عادی نباید فیلتر فعال به نظر برسد. */
:is(.widget.woodmart-price-filter, .alv-filter-price)
a.current-state[data-alv-price-all="1"] {
	border-color: #e3e4e7 !important;
	background: #fff !important;
	color: #4b4d52 !important;
	box-shadow: none !important;
}

/* نشانه غیررنگی برای بازه قیمت انتخاب‌شده. */
:is(.widget.woodmart-price-filter, .alv-filter-price)
a.current-state[data-alv-price-range="1"] {
	gap: 6px;
}

:is(.widget.woodmart-price-filter, .alv-filter-price)
a.current-state[data-alv-price-range="1"]::before {
	content: "✓";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--alv-filter-red);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
	.alv-filter-size .wd-filter-list > li,
	.alv-filter-brand .wd-filter-list > li,
	.alv-filter-toggle__icon,
	.alv-quick-filter-button {
		transition: none !important;
	}
}

/* نسخه 3.3.0: اصلاح یکپارچه UI/UX موبایل و صفحه اصلی فروشگاه */
@media (max-width: 767px) {
	/*
	 * :has پیش از اجرای JavaScript هم پنل واقعی فروشگاه را هدف می‌گیرد؛
	 * بنابراین عرض اصلاح‌شده از همان اولین بازشدن دیده می‌شود.
	 */
	:is(.wd-side-hidden, .wd-sidebar):is(
		.alv-shop-filter-sidebar,
		:has(.woodmart-woocommerce-layered-nav),
		:has(.widget_product_categories)
	) {
		width: min(82vw, 360px) !important;
	}

	.alv-shop-filter-sidebar .alv-filter-toggle__meta {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 23px;
		height: 23px;
		margin-inline-start: 7px;
		padding-inline: 6px;
		border: 1px solid #efc5c8;
		border-radius: 999px;
		background: #fff3f4;
		color: #a91218;
		font-size: 11px;
		font-weight: 800;
	}

	.alv-shop-filter-sidebar .alv-filter-toggle__meta[hidden] {
		display: none;
	}

	/* رنگ: تصویر واقعی 80×80 طیف رنگ، همراه نام کوچک زیر تصویر. */
	.alv-shop-filter-sidebar .alv-filter-color .wd-filter-list {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.alv-shop-filter-sidebar .alv-filter-color .wd-filter-list > li.wc-layered-nav-term {
		display: flex !important;
		min-width: 0;
		min-height: 108px;
		margin: 0 !important;
		border: 1px solid #e2e3e6;
		border-radius: 9px;
		background: #fff;
	}

	.alv-shop-filter-sidebar .alv-filter-color .wd-filter-list > li > a.layered-nav-link {
		display: flex !important;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		width: 100%;
		min-width: 0;
		padding: 7px 5px 5px !important;
		border: 0 !important;
		background: transparent !important;
	}

	.alv-shop-filter-sidebar .alv-filter-color .wd-swatch.wd-bg {
		width: 80px !important;
		height: 80px !important;
		min-width: 80px !important;
		border: 1px solid #bfc2c7 !important;
		border-radius: 7px !important;
		box-shadow: none !important;
		overflow: hidden;
	}

	.alv-shop-filter-sidebar .alv-filter-color .wd-swatch.wd-bg .wd-swatch-bg {
		width: 100% !important;
		height: 100% !important;
		min-width: 0 !important;
		border: 0 !important;
		border-radius: inherit !important;
		box-shadow: none !important;
	}

	.alv-shop-filter-sidebar .alv-filter-color :is(
		.alv-color-source-label,
		.wd-swatch-text,
		.wd-filter-lable,
		.wd-filter-label,
		.layer-term-lable
	) {
		display: none !important;
	}

	.alv-shop-filter-sidebar .alv-filter-color .alv-color-name {
		display: block;
		min-width: 0;
		overflow: hidden;
		color: #35373b;
		font-size: 10.5px;
		font-weight: 600;
		line-height: 1.2;
		text-align: center;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.alv-shop-filter-sidebar .alv-filter-color .wd-filter-list > li:is(.chosen, .wd-active, .active),
	.alv-shop-filter-sidebar .alv-filter-color .wd-filter-list > li:has(> a:is(.wd-active, [aria-current="page"])) {
		border-color: var(--alv-filter-red);
		background: #fff4f5;
		box-shadow: 0 0 0 1px rgb(215 25 32 / 8%);
	}

	/* قیمت در موبایل یک‌ستونه است تا بازه‌ها نشکنند. */
	.alv-shop-filter-sidebar :is(.widget.woodmart-price-filter, .alv-filter-price) > .alv-filter-accordion-panel > .woodmart-price-filter > ul,
	.alv-shop-filter-sidebar :is(.widget.woodmart-price-filter, .alv-filter-price) > .woodmart-price-filter > ul {
		display: grid !important;
		grid-template-columns: 1fr !important;
		gap: 7px;
	}

	.alv-shop-filter-sidebar :is(.widget.woodmart-price-filter, .alv-filter-price) .woodmart-price-filter li > a {
		min-height: 44px;
		font-size: 12.5px !important;
		white-space: nowrap;
	}

	/* لوگوهای برند در قاب ثابت و خوانا. */
	.alv-shop-filter-sidebar .alv-filter-brand .wd-filter-list {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.alv-shop-filter-sidebar .alv-filter-brand .wd-filter-list > li {
		min-height: 54px;
	}

	.alv-shop-filter-sidebar .alv-filter-brand .wd-swatch.wd-bg {
		width: 56px !important;
		height: 34px !important;
		padding: 4px !important;
		border: 1px solid #ececef !important;
		border-radius: 6px !important;
		background: #fff !important;
	}

	.alv-shop-filter-sidebar .alv-filter-brand .wd-swatch-bg img {
		width: 100% !important;
		height: 100% !important;
		object-fit: contain !important;
	}

	/* برندهای بدون لوگو هم‌اندازه و هم‌تراز برندهای تصویری باشند. */
	.alv-shop-filter-sidebar .alv-filter-brand .wd-swatch.wd-text {
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 100% !important;
		min-height: 34px;
		padding: 4px 6px !important;
		border: 1px solid #ececef !important;
		border-radius: 6px !important;
		background: #fff !important;
	}

	.alv-shop-filter-sidebar .alv-filter-brand .wd-swatch.wd-text .wd-swatch-text {
		display: -webkit-box !important;
		overflow: hidden;
		font-size: 11.5px;
		line-height: 1.35;
		text-align: center;
		white-space: normal;
		overflow-wrap: anywhere;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	/* رنگ بدون تصویر خالی یا شکسته دیده نشود؛ نام در مرکز کارت باقی بماند. */
	.alv-shop-filter-sidebar .alv-filter-color .alv-color-no-swatch > a.layered-nav-link {
		min-height: 108px;
		padding-inline: 10px !important;
		background: #fafafb !important;
	}

	.alv-shop-filter-sidebar .alv-filter-color .alv-color-no-swatch .alv-color-name {
		font-size: 12px;
		font-weight: 700;
		white-space: normal;
	}

	/* فهرست‌های بلند در اولین نما کوتاه‌اند و با دکمه قابل گسترش هستند. */
	.alv-shop-filter-sidebar :is(
		.alv-filter-size,
		.alv-filter-color,
		.alv-filter-categories
	) li[hidden] {
		display: none !important;
	}

	.alv-shop-filter-sidebar .alv-filter-more {
		display: flex;
		align-items: center;
		justify-content: center;
		width: calc(100% - 8px);
		min-height: 44px;
		margin: 9px 4px 1px;
		padding: 8px 12px;
		border: 1px solid #e2e3e6;
		border-radius: 9px;
		background: #fff;
		color: #b70f17;
		font-family: inherit;
		font-size: 12.5px;
		font-weight: 750;
		line-height: 1.4;
		cursor: pointer;
		box-shadow: none;
		-webkit-tap-highlight-color: transparent;
	}

	.alv-shop-filter-sidebar .alv-filter-more:active {
		background: #fff3f4;
	}

	.alv-shop-filter-sidebar .alv-filter-more:focus-visible {
		outline: 2px solid #e31b23;
		outline-offset: 2px;
	}

	/* سلسله‌مراتب دسته‌ها و محدوده لمس استاندارد. */
	.alv-shop-filter-sidebar .alv-filter-categories .product-categories li > a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding-block: 8px;
		color: #393b40;
		font-size: 13px;
	}

	.alv-shop-filter-sidebar .alv-filter-categories .product-categories .children {
		margin-inline-start: 12px;
		padding-inline-start: 11px;
		border-inline-start: 1px solid #e1e2e5;
	}

	.alv-shop-filter-sidebar .alv-filter-categories .current-cat > a,
	.alv-shop-filter-sidebar .alv-filter-categories .current-cat-parent > a {
		color: #ae1017;
		font-weight: 750;
	}

	/* صفحه اصلی فروشگاه: مسیر تصمیم‌گیری کوتاه و بدون فضای خالی. */
	body.alv-main-shop-page .alv-shop-filter-sidebar .alv-filter-content {
		display: flex !important;
		flex-direction: column;
		min-height: 0 !important;
		padding-top: 0 !important;
	}

	body.alv-main-shop-page .alv-shop-filter-sidebar .alv-shop-category-widget {
		order: 1;
		margin: 0 !important;
		padding: 12px 16px 11px !important;
		border-bottom: 1px solid #ececef;
		background: #fff;
	}

	body.alv-main-shop-page .alv-shop-filter-sidebar .alv-shop-category-widget > .widget-title {
		display: block !important;
		margin: 0 0 2px !important;
		padding: 0 !important;
		border: 0 !important;
		background: transparent !important;
		color: #27292d;
		font-size: 15px;
		font-weight: 800;
		line-height: 1.5;
	}

	body.alv-main-shop-page .alv-shop-filter-sidebar .alv-shop-filter-note {
		margin: 0 0 10px;
		color: #62666c;
		font-size: 11.5px;
		font-weight: 500;
		line-height: 1.65;
	}

	body.alv-main-shop-page .alv-shop-filter-sidebar .alv-shop-category-widget > :is(.product-categories, .wd-nav-product-cat),
	body.alv-main-shop-page .alv-shop-filter-sidebar .alv-shop-category-widget > .alv-filter-accordion-panel > :is(.product-categories, .wd-nav-product-cat) {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		width: 100%;
		margin: 0 !important;
		padding: 0 !important;
	}

	body.alv-main-shop-page .alv-shop-filter-sidebar .alv-shop-category-widget :is(.product-categories, .wd-nav-product-cat) > li {
		display: block !important;
		min-width: 0;
		margin: 0 !important;
		padding: 0 !important;
	}

	body.alv-main-shop-page .alv-shop-filter-sidebar .alv-shop-category-widget :is(.product-categories, .wd-nav-product-cat) > li > a {
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 48px;
		padding: 7px 8px !important;
		border: 1px solid #e1e3e6;
		border-radius: 9px;
		background: #fff;
		color: #35373b;
		font-size: 12.5px;
		font-weight: 700;
		line-height: 1.45;
		text-align: center;
		text-decoration: none;
	}

	body.alv-main-shop-page .alv-shop-filter-sidebar .alv-shop-category-widget :is(.product-categories, .wd-nav-product-cat) > li:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		width: calc(50% - 4px);
		justify-self: center;
	}

	body.alv-main-shop-page .alv-shop-filter-sidebar .alv-shop-category-widget :is(.product-categories, .wd-nav-product-cat) > li > a:active {
		border-color: #e31b23;
		background: #fff3f4;
		color: #b70f17;
	}

	body.alv-main-shop-page .alv-shop-filter-sidebar .alv-quick-filters {
		order: 2;
	}

	body.alv-main-shop-page .alv-shop-filter-sidebar .alv-filter-price {
		order: 3;
	}

	body.alv-main-shop-page .alv-shop-filter-sidebar .alv-stock-widget-original {
		order: 4;
	}

}

/* گفتینو هنگام بازبودن پنل، روی گزینه‌های فیلتر قرار نگیرد. */
body.alv-filter-panel-open :is(
	#goftino_w,
	[id^="goftino"],
	[class*="goftino"],
	iframe[src*="goftino"]
) {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

	/* پشتیبان قبل از اجرای JavaScript برای گفتینو در پنل باز Woodmart. */
	@media (max-width: 767px) {
		body:has(:is(.wd-side-hidden, .wd-sidebar):is(.wd-opened, .woodmart-opened, .opened):is(:has(.woodmart-woocommerce-layered-nav), :has(.widget_product_categories))) iframe#goftino_w {
			opacity: 0 !important;
			visibility: hidden !important;
			pointer-events: none !important;
	}
}

@media (max-width: 374px) {
	.alv-shop-filter-sidebar .wd-heading.alv-filter-heading {
		gap: 5px;
		padding-inline: 10px !important;
	}

	.alv-shop-filter-sidebar .alv-filter-heading__title {
		max-width: 82px;
		font-size: 13px;
	}

	.alv-shop-filter-sidebar .alv-filter-clear-all {
		font-size: 12px;
	}

	.alv-shop-filter-sidebar .alv-filter-clear-all::before {
		display: none;
	}

	.alv-shop-filter-sidebar .alv-quick-filters {
		grid-template-columns: 1fr !important;
	}
}
