.bm-filters {
	--bm-blue: #4f6fcf;
	--bm-blue-dark: #3d5cb8;
	--bm-blue-soft: #eef2ff;
	--bm-border: #e6e8ef;
	--bm-field-h: 52px;
	--bm-field-radius: 12px;
	--bm-field-border: #e4e4e7;
	--bm-field-border-focus: #4f6fcf;
	--bm-text: #1a1a1a;
	--bm-muted: #52525b;
	--bm-radius: 16px;
	font-family: "Yekan Bakh", Tahoma, "Segoe UI", Arial, sans-serif;
	color: var(--bm-text);
	direction: rtl;
	width: 100%;
	max-width: 320px;
	display: flex;
	flex-direction: column;
	gap: 0;
	border: 1px solid var(--bm-border);
	border-radius: var(--bm-radius);
	background: #fff;
	padding: 16px 18px;
	box-sizing: border-box;
}

.bm-filters *,
.bm-filters *::before,
.bm-filters *::after {
	box-sizing: border-box;
}

.bm-filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 14px;
	margin-bottom: 0;
	border-bottom: 1px solid var(--bm-border);
}

.bm-filters__heading {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--bm-text);
	line-height: 1.3;
}

.bm-filters__clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
	border-radius: 10px;
	border: 1px solid #f0d5d5;
	background: #fff7f7;
	color: #d64545;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bm-filters__clear:hover,
.bm-filters__clear:focus {
	background: #ffeaea;
	border-color: #e8b4b4;
	color: #c03535;
}

.bm-filters__stock {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	cursor: pointer;
	user-select: none;
	padding-top: 16px;
	margin-top: 0;
	border-top: 1px solid var(--bm-border);
}

.bm-filters__stock-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	color: var(--bm-text);
}

.bm-filters__switch {
	position: relative;
	width: 46px;
	height: 26px;
	flex: 0 0 auto;
}

.bm-filters__switch input {
	position: absolute;
	inset: 0;
	opacity: 0;
	margin: 0;
	cursor: pointer;
	z-index: 2;
}

.bm-filters__switch-ui {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #d9dde8;
	transition: background 0.2s ease;
}

.bm-filters__switch-ui::after {
	content: "";
	position: absolute;
	top: 3px;
	right: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.18);
	transition: transform 0.2s ease;
}

.bm-filters__switch input:checked + .bm-filters__switch-ui {
	background: var(--bm-blue);
}

.bm-filters__switch input:checked + .bm-filters__switch-ui::after {
	transform: translateX(-20px);
}

.bm-filters__section {
	border: 0;
	border-top: 1px solid var(--bm-border);
	margin: 0;
	padding: 16px 0;
}

.bm-filters__section:first-of-type {
	border-top: 0;
}

.bm-filters__section:last-of-type {
	padding-bottom: 16px;
}

.bm-filters__summary {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	cursor: pointer;
	user-select: none;
	padding: 2px 0;
}

.bm-filters__summary::-webkit-details-marker {
	display: none;
}

.bm-filters__title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	color: var(--bm-text);
}

.bm-filters__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bm-blue);
	flex: 0 0 auto;
}

.bm-filters__chevron {
	display: inline-flex;
	width: 18px;
	height: 18px;
	color: #a0a7b8;
	transition: transform 0.25s ease;
	margin-inline-end: 2px;
}
.bm-filters__chevron svg { width: 18px; height: 18px; }

.bm-filters__section:not([open]) .bm-filters__chevron {
	transform: rotate(0deg);
}
.bm-filters__section[open] .bm-filters__chevron { transform: rotate(180deg); }

.bm-filters__body {
	padding-top: 14px;
}

.bm-filters__price-text {
	margin: 0 0 14px;
	font-size: 13px;
	color: #4b5568;
	text-align: right;
	direction: rtl;
}

.bm-filters__price-text .woocommerce-Price-currencySymbol::before,
.bm-filters__index-meta .woocommerce-Price-currencySymbol::before {
	inline-size: 12px;
	block-size: 12px;
	flex-basis: 12px;
}

.bm-filters__slider {
	position: relative;
	height: 28px;
	display: flex;
	align-items: center;
	margin: 0 4px;
	/* RTL: ارزان‌ترین (min) on the right, گران‌ترین (max) on the left */
	direction: rtl;
}

.bm-filters__track {
	position: absolute;
	left: 0;
	right: 0;
	height: 4px;
	border-radius: 999px;
	background: #e5e7ef;
	overflow: hidden;
}

.bm-filters__range {
	position: absolute;
	top: 0;
	bottom: 0;
	background: var(--bm-blue);
}

.bm-filters__range-input {
	position: absolute;
	inset-inline: 0;
	width: 100%;
	appearance: none;
	background: transparent;
	pointer-events: none;
	margin: 0;
	height: 28px;
}

.bm-filters__range-input::-webkit-slider-thumb {
	appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--bm-blue);
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(61, 92, 184, 0.35);
	pointer-events: auto;
	cursor: pointer;
	position: relative;
	z-index: 2;
}

.bm-filters__range-input::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--bm-blue);
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(61, 92, 184, 0.35);
	pointer-events: auto;
	cursor: pointer;
}

.bm-filters__range-input::-moz-range-track {
	background: transparent;
	border: 0;
}

.bm-filters__price-ends {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	font-size: 12px;
	color: #52525b;
	direction: rtl;
}

.bm-filters__price-inputs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 14px;
	direction: rtl;
}

.bm-filters .bm-filters__price-inputs input[data-bm-price-min],
.bm-filters .bm-filters__price-inputs input[data-bm-price-max] {
	width: 100% !important;
	min-height: var(--bm-field-h) !important;
	height: var(--bm-field-h) !important;
	border: 1px solid var(--bm-field-border) !important;
	border-radius: var(--bm-field-radius) !important;
	padding: 0 16px !important;
	text-align: center;
	font-size: 14px !important;
	line-height: 1.4 !important;
	font-family: inherit !important;
	color: var(--bm-text);
	background: #fff !important;
	box-shadow: none !important;
	outline: none !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bm-filters .bm-filters__price-inputs input[data-bm-price-min]:focus,
.bm-filters .bm-filters__price-inputs input[data-bm-price-max]:focus {
	border-color: var(--bm-field-border-focus) !important;
	box-shadow: 0 0 0 3px rgba(79, 111, 207, 0.15) !important;
}

.bm-filters__price-inputs input::-webkit-outer-spin-button,
.bm-filters__price-inputs input::-webkit-inner-spin-button {
	appearance: none;
	margin: 0;
}

.bm-filters .bm-filters__price-inputs input[data-bm-price-min],
.bm-filters .bm-filters__price-inputs input[data-bm-price-max] {
	-webkit-appearance: none !important;
	appearance: textfield !important;
}

.bm-filters__active-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.bm-filters__active-tag {
	font-size: 12px;
	color: var(--bm-blue-dark);
}

.bm-filters__sizes {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.bm-filters__size {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border: 1px solid var(--bm-border);
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
	font-size: 14px;
	font-weight: 600;
	color: var(--bm-text);
	user-select: none;
}

.bm-filters__size input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.bm-filters__size.is-active,
.bm-filters__size:has(input:checked) {
	border-color: var(--bm-blue);
	background: var(--bm-blue-soft);
	color: var(--bm-blue-dark);
}

.bm-filters__colors {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px 10px;
}

.bm-filters__color {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	user-select: none;
}

.bm-filters__color input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.bm-filters__swatch {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: flex;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bm-filters__stripe {
	flex: 1 1 0;
	display: block;
	min-width: 0;
	height: 100%;
}

.bm-filters__swatch.has-border {
	box-shadow: inset 0 0 0 1px #d7dbe6;
}

.bm-filters__color.is-active .bm-filters__swatch,
.bm-filters__color:has(input:checked) .bm-filters__swatch {
	transform: translateY(-1px);
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--bm-blue);
}

.bm-filters__color-name {
	font-size: 11px;
	line-height: 1.4;
	color: #4b5568;
	text-align: center;
}

/* Shop archive layout helpers when Theme Builder template is active */
.bm-shop-layout.e-con,
.bm-shop-layout {
	width: 100%;
	max-width: 1676px;
	margin-inline: auto;
	box-sizing: border-box;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: flex-start !important;
}

.bm-shop-sidebar.e-con,
.bm-shop-sidebar {
	flex: 0 0 320px !important;
	width: 320px !important;
	max-width: 100%;
	position: sticky;
	top: 96px;
	align-self: flex-start;
}

.bm-shop-main.e-con,
.bm-shop-main {
	flex: 1 1 0 !important;
	min-width: 280px;
	width: auto !important;
}

.elementor-widget-bm-shop-filters {
	--bm-filters-ready: 1;
}

.bm-filters-wrap {
	width: 100%;
}

.bm-mobile-chips,
.bm-sheet-backdrop,
.bm-sheet--ordering,
.bm-sheet__handle,
.bm-sheet__head--mobile-only {
	display: none;
}

.bm-sheet--filters {
	display: block;
}

.bm-sheet--filters .bm-sheet__body {
	padding: 0;
	overflow: visible;
}

.bm-sheet--filters .bm-filters {
	max-width: none;
}

.bm-filters__index,
.bm-sheet__back,
.bm-sheet__foot {
	display: none;
}

/* Hide default WooCommerce / Elementor ordering select */
.bm-shop-main .woocommerce-ordering,
.elementor-564 .woocommerce-ordering,
body.post-type-archive-product .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering,
body.tax-product_tag .woocommerce-ordering {
	display: none !important;
}

/* Result count + ordering share one Elementor toolbar row */
.bm-shop-toolbar.e-con,
.bm-shop-toolbar {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 12px 28px !important;
	width: 100%;
	margin: 0 0 18px;
	direction: rtl;
}

.bm-shop-toolbar .elementor-widget-bm-shop-result-count,
.bm-shop-toolbar .elementor-widget-bm-shop-ordering {
	width: auto !important;
	max-width: 100%;
	margin: 0 !important;
	flex: 0 1 auto;
}

.bm-shop-toolbar .elementor-widget-bm-shop-result-count {
	flex: 0 0 auto;
}

.bm-result-count,
.woocommerce-result-count.bm-result-count {
	margin: 0 !important;
	padding: 0;
	font-family: "Yekan Bakh", Tahoma, "Segoe UI", Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #52525b !important;
	white-space: nowrap;
}

/* Hide default WC/Elementor result count above product grid */
.bm-shop-main .woocommerce > .woocommerce-result-count:not(.bm-result-count),
.elementor-widget-wc-archive-products .woocommerce-result-count:not(.bm-result-count) {
	display: none !important;
}

.bm-ordering {
	--bm-blue: #3d5cb8;
	--bm-text: #1a1a1a;
	--bm-muted: #52525b;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	direction: rtl;
	width: auto;
	max-width: 100%;
	margin: 0;
	font-family: "Yekan Bakh", Tahoma, "Segoe UI", Arial, sans-serif;
}

.bm-ordering__label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 600;
	color: var(--bm-text);
	white-space: nowrap;
}

.bm-ordering__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: var(--bm-text);
	flex: 0 0 auto;
}

.bm-ordering__icon svg {
	display: block;
	width: 18px;
	height: 18px;
}

.bm-ordering__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bm-ordering__item {
	margin: 0;
	padding: 0;
}

.bm-ordering__link {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	font-size: 13px;
	font-weight: 500;
	color: #52525b;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
	white-space: nowrap;
}

.bm-ordering__link:hover,
.bm-ordering__link:focus {
	color: var(--bm-text);
}

.bm-ordering__link.is-active {
	color: #3d5cb8;
	font-weight: 700;
	border-bottom-color: #3d5cb8;
}

.bm-ordering__check {
	display: none;
}

/*
 * Same breakpoint as bottom-nav:
 * #bm-bottom-nav is hidden from min-width:1280px
 * → chip/sheet filter UI while bottom-nav is visible (<1280px)
 */
@media (max-width: 1279px) {
	/*
	 * Responsive shop hierarchy:
	 * title/count → categories → filters → products.
	 * Elementor nests the title and product widgets inside .bm-shop-main;
	 * display:contents lets those widgets join the parent flow so they can be
	 * ordered without duplicating markup or maintaining a second template.
	 */

	/* Hide product count (“X کالا”) on tablet/mobile; keep ordering. */
	.elementor-element-bmcount1,
	.bm-shop-toolbar .elementor-widget-bm-shop-result-count,
	.bm-shop-toolbar .bm-result-count {
		display: none !important;
	}

	.bm-shop-layout > .e-con-inner {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 0 !important;
	}

	.bm-shop-main.e-con,
	.bm-shop-main {
		display: contents !important;
	}

	.bm-shop-title-only {
		order: 1;
		width: 100% !important;
		margin: 0 0 8px !important;
		padding: 0 !important;
	}

	.bm-shop-categories.e-con,
	.bm-shop-categories {
		order: 2;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		gap: 0 !important;
		border: 0 !important;
		border-bottom: 0 !important;
		min-height: 0 !important;
		overflow: visible !important;
	}

	.bm-shop-categories > .e-con-inner,
	.bm-shop-categories.e-con > .e-con-inner {
		margin: 0 !important;
		padding: 0 !important;
		gap: 0 !important;
		min-height: 0 !important;
		border: 0 !important;
		overflow: visible !important;
	}

	.bm-shop-title-only .elementor-heading-title {
		font-size: 20px !important;
	}

	.bm-shop-categories__row.e-con,
	.bm-shop-categories__row,
	.bm-shop-categories__badges .elementor-grid,
	.bm-shop-categories__badges .elementor-loop-container,
	.bm-shop-categories__badges .e-loop {
		flex-wrap: nowrap !important;
	}

	/* Same full-bleed swipe row as .bm-mobile-chips (filter / sort chips). */
	.bm-shop-categories__row.e-con,
	.bm-shop-categories__row {
		display: flex !important;
		align-items: center !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		gap: 8px !important;
		box-sizing: border-box;
		width: calc(100% + 32px) !important;
		max-width: none !important;
		margin-inline: -16px !important;
		margin-block: 0 !important;
		min-height: 40px !important;
		padding: 6px 16px 0 !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		scroll-padding-inline: 16px;
		direction: rtl;
		border: 0 !important;
	}

	.bm-shop-categories__row::-webkit-scrollbar {
		display: none;
	}

	.bm-shop-categories__badges {
		flex: 0 0 auto;
		max-width: none !important;
		overflow: visible;
	}

	.bm-shop-categories__badges .elementor-grid,
	.bm-shop-categories__badges .elementor-loop-container,
	.bm-shop-categories__badges .e-loop {
		width: max-content;
		gap: 8px !important;
	}

	.bm-shop-categories__row > .bm-shop-categories__badges,
	.bm-shop-categories__row > .bm-shop-categories__badges > .elementor-widget-container,
	.bm-shop-categories__row > .bm-shop-categories__badges > .elementor-widget-container > .elementor-loop-container {
		display: contents !important;
	}

	.bm-shop-categories__row > .bm-cat-badge--all,
	.bm-shop-categories__row > .bm-shop-categories__badges .e-loop-item {
		flex: 0 0 auto !important;
	}

	body .bm-shop-categories .elementor-widget-button .elementor-button,
	body .bm-shop-categories .bm-cat-badge .elementor-button {
		position: relative;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		flex: 0 0 auto;
		min-height: 40px !important;
		height: 40px !important;
		padding: 0 14px !important;
		border: 1px solid #e4e4e7 !important;
		border-radius: 999px !important;
		background: #fff !important;
		color: #18181b !important;
		font-family: "Yekan Bakh", Tahoma, "Segoe UI", Arial, sans-serif !important;
		font-size: 13px !important;
		font-weight: 500 !important;
		line-height: 1 !important;
		text-decoration: none !important;
		box-shadow: none !important;
		white-space: nowrap !important;
		transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	}

	body .bm-shop-categories .elementor-button:hover,
	body .bm-shop-categories .elementor-button:focus {
		border-color: #cfd3dc !important;
		background: #fafafa !important;
		color: #18181b !important;
	}

	body.post-type-archive-product .bm-cat-badge--all .elementor-button,
	body.woocommerce-shop .bm-cat-badge--all .elementor-button,
	body.tax-product_cat .bm-cat-badge--all .elementor-button,
	body .bm-shop-categories .is-active .elementor-button,
	body .bm-shop-categories a.is-active.elementor-button {
		border-color: #4f6fcf !important;
		background: #eef2ff !important;
		color: #3d5cb8 !important;
	}

	.bm-shop-sidebar.e-con,
	.bm-shop-sidebar {
		flex: 1 1 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		position: static !important;
		top: auto !important;
		order: 3;
		margin: 0 0 8px !important;
		min-height: 0 !important;
		gap: 0 !important;
		padding: 0 !important;
	}

	.bm-shop-sidebar > .e-con-inner {
		margin: 0 !important;
		padding: 0 !important;
		gap: 0 !important;
	}

	.bm-shop-toolbar.e-con,
	.bm-shop-toolbar {
		order: 4;
		width: 100% !important;
		min-height: 20px;
		margin: 0 0 14px !important;
		padding: 0 !important;
	}

	.elementor-widget-wc-archive-products {
		order: 5;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	.elementor-widget-bm-shop-empty-state {
		order: 6;
		width: 100% !important;
	}

	.bm-shop-main > .elementor-widget-html {
		order: 7;
	}

	.bm-filters {
		max-width: none;
		border: 0;
		border-radius: 0;
		padding: 0;
		background: transparent;
	}

	.bm-filters__swatch {
		width: 44px;
		height: 44px;
	}

	/* Desktop ordering bar hidden — sort opens from chip */
	.bm-shop-main .bm-ordering,
	.elementor-widget-bm-shop-ordering {
		display: none !important;
	}

	/*
	 * Full-bleed relative to shop layout padding (16px), NOT 100vw.
	 * 100vw + calc(50% - 50vw) overflows the document when a vertical
	 * scrollbar shrinks clientWidth below the viewport width.
	 */
	.bm-mobile-chips {
		display: flex !important;
		align-items: center;
		gap: 8px;
		box-sizing: border-box;
		width: calc(100% + 32px);
		max-width: none;
		margin-inline: -16px;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		min-height: 40px;
		padding: 6px 16px 0;
		scroll-padding-inline: 16px;
		direction: rtl;
	}

	/* Real padding keeps both edge chips fully visible without a clipped spacer. */
	.bm-mobile-chips::before,
	.bm-mobile-chips::after { content: none; }

	.bm-filters-wrap {
		width: 100%;
		max-width: 100%;
		overflow-x: clip;
	}

	.bm-mobile-chips::-webkit-scrollbar {
		display: none;
	}

	body .bm-mobile-chips .bm-chip {
		position: relative;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 6px !important;
		flex: 0 0 auto;
		min-height: 40px !important;
		height: 40px !important;
		padding: 0 14px !important;
		border: 1px solid #e4e4e7 !important;
		border-radius: 999px !important;
		background: #fff !important;
		color: #18181b !important;
		font-family: "Yekan Bakh", Tahoma, "Segoe UI", Arial, sans-serif !important;
		font-size: 13px !important;
		font-weight: 500 !important;
		line-height: 1 !important;
		text-decoration: none !important;
		box-shadow: none !important;
		cursor: pointer;
		white-space: nowrap;
		transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	}

	body .bm-mobile-chips .bm-chip:hover,
	body .bm-mobile-chips .bm-chip:focus {
		border-color: #cfd3dc !important;
		background: #fafafa !important;
		color: #18181b !important;
	}

	body .bm-mobile-chips .bm-chip.is-active {
		border-color: #4f6fcf !important;
		background: #eef2ff !important;
		color: #3d5cb8 !important;
	}

	body .bm-mobile-chips .bm-chip--layout {
		width: 40px;
		min-width: 40px;
		padding: 0 !important;
	}

	.bm-chip--layout .bm-chip__icon--list {
		display: none;
	}

	body.bm-shop-grid--two .bm-chip--layout .bm-chip__icon--grid {
		display: none;
	}

	body.bm-shop-grid--two .bm-chip--layout .bm-chip__icon--list {
		display: inline-flex;
	}

	.bm-chip__icon {
		display: inline-flex;
		width: 16px;
		height: 16px;
		color: currentColor;
	}

	.bm-chip__icon svg {
		display: block;
		width: 16px;
		height: 16px;
		stroke-width: 1.75;
	}

	.bm-chip__chevron {
		display: inline-flex;
		width: 16px;
		height: 16px;
		opacity: 0.75;
	}
	.bm-chip__chevron svg { width: 16px; height: 16px; stroke-width: 1.75; }

	.bm-chip__badge {
		position: absolute;
		top: -4px;
		left: -4px;
		min-width: 18px;
		height: 18px;
		padding: 0 5px;
		border-radius: 999px;
		background: #4f6fcf;
		color: #fff;
		font-size: 11px;
		font-weight: 700;
		line-height: 18px;
		text-align: center;
		box-shadow: 0 0 0 2px #fff;
	}

	.bm-sheet-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 9998;
		background: rgba(16, 24, 40, 0.45);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.2s ease, visibility 0.2s ease;
	}

	.bm-sheet-backdrop.is-open {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.bm-sheet {
		display: flex;
		flex-direction: column;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9999;
		max-height: min(88vh, 720px);
		border-radius: 20px 20px 0 0;
		background: #fff;
		box-shadow: 0 -8px 30px rgba(16, 24, 40, 0.16);
		transform: translateY(105%);
		transition: transform 0.25s ease, visibility 0.25s ease;
		overflow: hidden;
		visibility: hidden;
		pointer-events: none;
	}

	.bm-sheet.is-open {
		transform: translateY(0);
		visibility: visible;
		pointer-events: auto;
	}

	.bm-sheet--filters {
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		max-height: none;
		height: 100%;
		height: 100dvh;
		min-height: 100dvh;
		border-radius: 0;
		box-shadow: none;
		z-index: 10003;
	}

	.bm-sheet--ordering {
		z-index: 10003;
	}

	.bm-sheet--filters .bm-sheet__handle {
		display: none;
	}

	.bm-sheet-backdrop {
		z-index: 10002;
	}

	.bm-sheet--filters .bm-sheet__body {
		display: flex;
		flex-direction: column;
		min-height: 0;
		padding: 0 16px;
	}

	.bm-sheet--filters .bm-filters {
		display: flex;
		flex-direction: column;
		flex: 1 1 auto;
		min-height: 100%;
	}

	.bm-sheet--filters .bm-sheet__foot {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		flex: 0 0 auto;
		margin-top: auto;
		position: sticky;
		bottom: 0;
		padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid #eef0f5;
		background: #fff;
		z-index: 2;
	}

	.bm-sheet--filters .bm-sheet__apply {
		flex: 1 1 auto;
		min-height: 48px;
		padding: 0 18px;
		border: 0;
		border-radius: 12px;
		background: var(--bm-blue);
		color: #fff;
		font: inherit;
		font-size: 15px;
		font-weight: 700;
		cursor: pointer;
		appearance: none;
		-webkit-appearance: none;
	}

	.bm-sheet--filters .bm-sheet__apply[aria-busy="true"] {
		opacity: 0.72;
	}

	.bm-sheet--filters .bm-sheet__clear {
		flex: 0 0 auto;
		padding: 8px 4px;
		color: #e11d48;
		font-size: 14px;
		font-weight: 600;
		text-decoration: none;
		white-space: nowrap;
	}

	.bm-sheet--filters .bm-sheet__clear:hover,
	.bm-sheet--filters .bm-sheet__clear:focus {
		color: #be123c;
	}

	.bm-sheet__handle {
		display: block;
		width: 42px;
		height: 4px;
		margin: 10px auto 0;
		border-radius: 999px;
		background: #d8dde8;
		flex: 0 0 auto;
	}

	.bm-sheet__head,
	.bm-sheet__head--mobile-only {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 14px 16px 10px;
		border-bottom: 1px solid #eef0f5;
		flex: 0 0 auto;
	}

	.bm-sheet--filters .bm-sheet__head,
	.bm-sheet--filters .bm-sheet__head--mobile-only {
		padding: 14px 16px 12px;
	}

	.bm-sheet__title {
		font-size: 16px;
		font-weight: 700;
		color: #1a1a1a;
	}

	.bm-sheet__close {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		width: 34px !important;
		height: 34px !important;
		min-width: 34px;
		min-height: 34px;
		padding: 0 !important;
		margin: 0 !important;
		border: 0 !important;
		border-radius: 10px !important;
		background: #f3f5f9 !important;
		color: #4b5568 !important;
		line-height: 0 !important;
		box-shadow: none !important;
		cursor: pointer;
		flex: 0 0 auto;
		appearance: none;
		-webkit-appearance: none;
		transition: none !important;
	}

	.bm-sheet__close:hover,
	.bm-sheet__close:focus,
	.bm-sheet__close:focus-visible,
	.bm-sheet__close:active {
		background: #f3f5f9 !important;
		color: #4b5568 !important;
		border: 0 !important;
		box-shadow: none !important;
		outline: none !important;
		transform: none !important;
		filter: none !important;
	}

	.bm-sheet__close svg,
	.bm-sheet__close .lucide-x,
	.bm-sheet__close:hover svg,
	.bm-sheet__close:hover .lucide-x {
		animation: none !important;
		transform: none !important;
		transition: none !important;
	}

	.bm-sheet__close svg path,
	.bm-sheet__close:hover svg path {
		animation: none !important;
		stroke-dasharray: none !important;
	}

	.bm-sheet__close svg {
		display: block;
		width: 16px;
		height: 16px;
		flex: 0 0 auto;
	}

	.bm-sheet__body {
		overflow: auto;
		-webkit-overflow-scrolling: touch;
		padding: 12px 16px 28px;
		flex: 1 1 auto;
	}

	.bm-sheet--filters .bm-sheet__body {
		padding-top: 0;
		padding-left: 16px;
		padding-right: 16px;
	}

	.bm-sheet--filters .bm-sheet__body {
		scrollbar-width: none;
	}

	.bm-sheet--filters .bm-sheet__body::-webkit-scrollbar {
		display: none;
	}

	/* The sheet already owns the title; retain only the optional clear action. */
	.bm-sheet--filters .bm-filters__heading {
		display: none;
	}

	.bm-sheet--filters .bm-filters__head {
		display: none;
		border-bottom: 0;
		padding-bottom: 0;
	}

	.bm-sheet--filters .bm-filters__section:first-of-type {
		border-top: 0;
	}

	.bm-sheet--filters .bm-filters {
		padding: 0;
	}

	.bm-sheet--ordering .bm-sheet__body {
		padding: 0 0 12px;
	}

	.bm-sheet--ordering .bm-sheet__head {
		border-bottom: 1px solid #eef0f5;
	}

	.bm-sheet--ordering .bm-sheet__close {
		background: transparent !important;
		border-radius: 0 !important;
		color: #6b7280 !important;
	}

	.bm-sheet--ordering .bm-ordering {
		display: block !important;
		width: 100%;
		margin: 0;
	}

	.bm-sheet--ordering .bm-ordering__label {
		display: none;
	}

	.bm-sheet--ordering .bm-ordering__list {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	.bm-sheet--ordering .bm-ordering__item {
		width: 100%;
		margin: 0;
	}

	.bm-sheet--ordering .bm-ordering__link {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		width: 100%;
		padding: 16px;
		border: 0;
		border-bottom: 1px solid #eef0f5;
		border-radius: 0;
		font-size: 14px;
		font-weight: 500;
		color: #1a1a1a;
		background: transparent;
		box-sizing: border-box;
	}

	.bm-sheet--ordering .bm-ordering__link:hover,
	.bm-sheet--ordering .bm-ordering__link:focus {
		color: #1a1a1a;
		background: #fafbfc;
	}

	.bm-sheet--ordering .bm-ordering__link.is-active {
		color: #1a1a1a;
		font-weight: 500;
		border-bottom-color: #eef0f5;
	}

	.bm-sheet--ordering .bm-ordering__item:last-child .bm-ordering__link {
		border-bottom: 0;
	}

	.bm-sheet--ordering .bm-ordering__text {
		flex: 1 1 auto;
		text-align: right;
	}

	.bm-sheet--ordering .bm-ordering__check {
		display: none;
		align-items: center;
		justify-content: center;
		width: 22px;
		height: 22px;
		color: #4f6fcf;
		flex: 0 0 auto;
	}

	.bm-sheet--ordering .bm-ordering__link.is-active .bm-ordering__check {
		display: inline-flex;
	}

	.bm-sheet--ordering .bm-ordering__check svg {
		display: block;
		width: 18px;
		height: 18px;
	}

	/* Chip opened a single category — hide the rest */
	.bm-sheet--filters.is-section-only .bm-filters__head,
	.bm-sheet--filters.is-section-only .bm-filters__index {
		display: none;
	}

	.bm-sheet--filters.is-section-only [data-bm-section] {
		display: none !important;
	}

	.bm-sheet--filters.is-section-only [data-bm-section].is-only {
		display: block !important;
		border: 0;
		padding: 0;
		margin: 0;
	}

	.bm-sheet--filters.is-section-only [data-bm-section].is-only.bm-filters__stock {
		display: flex !important;
	}

	.bm-sheet--filters.is-section-only [data-bm-section].is-only > .bm-filters__summary {
		display: none;
	}

	.bm-sheet--filters.is-section-only [data-bm-section].is-only > .bm-filters__body {
		padding-top: 4px;
	}

	html.bm-sheet-open,
	html.bm-sheet-open body {
		overflow: hidden;
	}
}

/* Tablet: Digikala-style full-screen filter index + drill-down. */
@media (min-width: 768px) and (max-width: 1279px) {
	.bm-sheet--filters {
		inset: 0;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		max-height: none;
		height: 100%;
		height: 100dvh;
		border-radius: 0;
		box-shadow: none;
	}

	.bm-sheet--filters .bm-sheet__handle {
		display: none;
	}

	.bm-sheet--filters .bm-sheet__head,
	.bm-sheet--filters .bm-sheet__head--mobile-only {
		justify-content: flex-start;
		gap: 8px;
		padding: 12px 16px;
		border-bottom: 1px solid #eef0f5;
	}

	.bm-sheet--filters .bm-sheet__title {
		flex: 1 1 auto;
		min-width: 0;
		text-align: right;
		font-size: 16px;
		font-weight: 700;
	}

	.bm-sheet--filters .bm-sheet__close {
		margin-inline-start: auto;
		background: transparent !important;
		width: 36px !important;
		height: 36px !important;
		min-width: 36px;
		min-height: 36px;
		border-radius: 0 !important;
		color: #111827 !important;
		transition: none !important;
	}

	.bm-sheet--filters .bm-sheet__close:hover,
	.bm-sheet--filters .bm-sheet__close:focus,
	.bm-sheet--filters .bm-sheet__close:focus-visible,
	.bm-sheet--filters .bm-sheet__close:active {
		background: transparent !important;
		color: #111827 !important;
		transform: none !important;
	}

	.bm-sheet--filters .bm-sheet__close svg {
		width: 20px;
		height: 20px;
	}

	.bm-sheet--filters .bm-sheet__back {
		display: none;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		padding: 0;
		margin: 0 0 0 -6px;
		border: 0;
		border-radius: 0;
		background: transparent;
		color: #111827;
		cursor: pointer;
		flex: 0 0 auto;
		appearance: none;
		-webkit-appearance: none;
		transition: none;
	}

	body .bm-sheet--filters .bm-sheet__back:hover,
	body .bm-sheet--filters .bm-sheet__back:focus,
	body .bm-sheet--filters .bm-sheet__back:focus-visible,
	body .bm-sheet--filters .bm-sheet__back:active {
		background: transparent !important;
		color: #111827 !important;
		border: 0 !important;
		box-shadow: none !important;
		outline: none !important;
		transform: none !important;
		filter: none !important;
		opacity: 1 !important;
	}

	.bm-sheet--filters.is-section-only .bm-sheet__back {
		display: none !important;
	}

	.bm-sheet--filters .bm-sheet__back svg {
		display: block;
		width: 22px;
		height: 22px;
		stroke-width: 2;
	}

	.bm-sheet--filters .bm-sheet__body {
		display: flex;
		flex-direction: column;
		padding: 0;
		padding-top: 0;
		overflow: hidden;
		flex: 1 1 auto;
		min-height: 0;
	}

	.bm-sheet--filters .bm-filters {
		display: flex;
		flex-direction: column;
		flex: 1 1 auto;
		min-height: 0;
		width: 100%;
		max-width: none;
		padding: 0;
		border: 0;
		border-radius: 0;
		overflow: hidden;
	}

	.bm-sheet--filters .bm-filters__head {
		display: none;
	}

	.bm-sheet--filters .bm-filters__index {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		order: 2;
		flex: 1 1 auto;
		width: 100%;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
	}

	body .bm-sheet--filters button.bm-filters__index-row,
	.bm-sheet--filters .bm-filters__index-row {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: 12px !important;
		width: 100% !important;
		max-width: none !important;
		min-width: 0 !important;
		min-height: 58px !important;
		height: auto !important;
		margin: 0 !important;
		padding: 16px 20px !important;
		border: 0 !important;
		border-bottom: 1px solid #eef0f5 !important;
		border-radius: 0 !important;
		background: #fff !important;
		box-shadow: none !important;
		color: #111827 !important;
		font-family: inherit !important;
		font-size: 15px !important;
		font-weight: 500 !important;
		line-height: 1.4 !important;
		text-align: right !important;
		white-space: normal !important;
		cursor: pointer;
		appearance: none !important;
		-webkit-appearance: none !important;
	}

	.bm-filters__index-copy {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 4px;
		min-width: 0;
		flex: 1 1 auto;
	}

	.bm-filters__index-title {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		font-size: 15px;
		font-weight: 500;
		color: #111827;
		line-height: 1.4;
	}

	.bm-filters__index-row.is-active .bm-filters__index-title::before {
		content: "";
		width: 7px;
		height: 7px;
		border-radius: 50%;
		background: var(--bm-blue);
		flex: 0 0 auto;
	}

	.bm-filters__index-meta {
		display: block;
		font-size: 12px;
		font-weight: 400;
		color: #9ca3af;
		line-height: 1.4;
	}

	.bm-filters__index-meta:empty {
		display: none;
	}

	.bm-filters__index-chevron {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		color: #9ca3af;
		flex: 0 0 auto;
		width: 20px;
		height: 20px;
		opacity: 1;
	}

	.bm-filters__index-chevron svg {
		width: 18px;
		height: 18px;
		stroke-width: 2;
	}

	.bm-sheet--filters:not(.is-section-only) [data-bm-section]:not(.bm-filters__stock) {
		display: none;
	}

	.bm-sheet--filters .bm-filters__stock {
		order: 1;
		flex: 0 0 auto;
		margin: 0;
		padding: 16px 20px;
		border-top: 0;
		border-bottom: 1px solid #eef0f5;
	}

	.bm-sheet--filters.is-section-only .bm-filters__stock {
		display: none !important;
	}

	.bm-sheet--filters.is-section-only [data-bm-section].is-only {
		order: 3;
		flex: 1 1 auto;
		min-height: 0;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
		padding: 0;
		margin: 0;
		border: 0;
	}

	.bm-sheet--filters.is-section-only [data-bm-section].is-only > .bm-filters__body {
		padding: 0;
	}

	.bm-sheet--filters.is-section-only .bm-filters__active-tags {
		display: none;
	}

	.bm-sheet--filters.is-section-only .bm-filters__sizes {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.bm-sheet--filters.is-section-only .bm-filters__size {
		justify-content: flex-start;
		gap: 12px;
		width: 100%;
		min-height: 56px;
		padding: 14px 20px;
		border: 0;
		border-bottom: 1px solid #eef0f5;
		border-radius: 0;
		background: transparent;
		color: #111827;
		font-weight: 500;
	}

	.bm-sheet--filters.is-section-only .bm-filters__size.is-active,
	.bm-sheet--filters.is-section-only .bm-filters__size:has(input:checked) {
		background: transparent;
		color: #111827;
	}

	.bm-sheet--filters.is-section-only .bm-filters__size::before {
		content: "";
		width: 22px;
		height: 22px;
		border: 1.5px solid #d1d5db;
		border-radius: 6px;
		background: #fff;
		flex: 0 0 auto;
		box-sizing: border-box;
	}

	.bm-sheet--filters.is-section-only .bm-filters__size:has(input:checked)::before {
		border-color: var(--bm-blue);
		background-color: var(--bm-blue);
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
		background-size: 14px;
		background-position: center;
		background-repeat: no-repeat;
	}

	.bm-sheet--filters.is-section-only [data-bm-section="color"].is-only > .bm-filters__body {
		padding: 20px 16px 28px;
	}

	.bm-sheet--filters.is-section-only .bm-filters__colors {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 20px 12px;
	}

	.bm-sheet--filters.is-section-only .bm-filters__color {
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		gap: 8px;
		width: auto;
		padding: 0;
		border-bottom: 0;
	}

	.bm-sheet--filters.is-section-only .bm-filters__color::before {
		content: none;
		display: none;
	}

	.bm-sheet--filters.is-section-only .bm-filters__swatch {
		width: 56px;
		height: 56px;
		border-radius: 16px;
		flex: 0 0 auto;
	}

	.bm-sheet--filters.is-section-only .bm-filters__color.is-active .bm-filters__swatch,
	.bm-sheet--filters.is-section-only .bm-filters__color:has(input:checked) .bm-filters__swatch {
		transform: none;
		box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--bm-blue);
	}

	.bm-sheet--filters.is-section-only .bm-filters__color-name {
		font-size: 12px;
		font-weight: 500;
		color: #4b5568;
		text-align: center;
	}

	.bm-sheet--filters.is-section-only [data-bm-section="price"].is-only > .bm-filters__body {
		padding: 20px 20px 24px;
	}

	.bm-sheet--filters .bm-sheet__foot {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		order: 4;
		flex: 0 0 auto;
		padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid #eef0f5;
		background: #fff;
	}

	.bm-sheet--filters .bm-sheet__apply {
		flex: 1 1 auto;
		min-height: 48px;
		padding: 0 18px;
		border: 0;
		border-radius: 12px;
		background: var(--bm-blue);
		color: #fff;
		font: inherit;
		font-size: 15px;
		font-weight: 700;
		cursor: pointer;
		appearance: none;
		-webkit-appearance: none;
	}

	.bm-sheet--filters .bm-sheet__clear {
		flex: 0 0 auto;
		padding: 8px 4px;
		color: #e11d48;
		font-size: 14px;
		font-weight: 600;
		text-decoration: none;
		white-space: nowrap;
	}

	.bm-sheet--filters .bm-sheet__clear:hover,
	.bm-sheet--filters .bm-sheet__clear:focus {
		color: #be123c;
	}
}

@media (max-width: 767px) {
	.bm-ordering {
		gap: 8px 12px;
		margin-bottom: 14px;
	}

	.bm-ordering__link {
		padding: 6px 8px;
		font-size: 12px;
	}

	/* Keep shop discovery compact: one swipeable category row, then filters. */
	.bm-shop-categories.e-con,
	.bm-shop-categories {
		margin-bottom: 0 !important;
		padding-bottom: 0 !important;
		overflow: visible !important;
		border-bottom: 0 !important;
	}

	.bm-shop-categories__row.e-con,
	.bm-shop-categories__row,
	.bm-shop-categories__badges .elementor-grid,
	.bm-shop-categories__badges .elementor-loop-container,
	.bm-shop-categories__badges .e-loop {
		flex-wrap: nowrap !important;
	}

}

/*
 * The layout toggle is intentionally limited to compact phones (<=639px).
 */
@media (max-width: 639px) {
	body.bm-shop-grid--one .elementor-564 .bm-shop-main .woocommerce ul.products {
		row-gap: 12px !important;
	}

	body.bm-shop-grid--one .elementor-564 .bm-shop-main .woocommerce ul.products li.product.bm-product-card-wrap .bm-product-card {
		display: flex !important;
		flex-direction: row !important;
		align-items: stretch !important;
		height: auto !important;
		min-height: 148px;
	}

	body.bm-shop-grid--one .elementor-564 .bm-shop-main .bm-product-card__media-wrap {
		flex: 0 0 clamp(128px, 34vw, 180px) !important;
		width: clamp(128px, 34vw, 180px) !important;
		min-height: 148px;
		aspect-ratio: auto !important;
	}

	body.bm-shop-grid--one .elementor-564 .bm-shop-main .bm-product-card__body {
		justify-content: flex-start;
		gap: 7px;
		padding: 12px !important;
		min-width: 0;
	}

	body.bm-shop-grid--one .elementor-564 .bm-shop-main .bm-product-card__title,
	body.bm-shop-grid--one .elementor-564 .bm-shop-main .bm-product-card__title a {
		min-height: 0 !important;
	}

	body.bm-shop-grid--one .elementor-564 .bm-shop-main .bm-product-card__footer {
		margin-top: auto;
	}
}

@media (min-width: 640px) {
	body .bm-mobile-chips .bm-chip--layout {
		display: none !important;
	}
}

@media (max-width: 374px) {
	body.bm-shop-grid--one .elementor-564 .bm-shop-main .bm-product-card__media-wrap {
		flex-basis: 112px !important;
		width: 112px !important;
	}
}

/* Pagination visual styles live in Elementor:
 * Archive Products → Style → Pagination + Advanced → Custom CSS
 */
.bm-shop-layout {
	position: relative;
}

.bm-shop-layout.is-ajax-loading {
	pointer-events: none;
}

.bm-shop-layout.is-ajax-loading .bm-shop-sidebar,
.bm-shop-layout.is-ajax-loading .elementor-widget-bm-shop-ordering,
.bm-shop-layout.is-ajax-loading .bm-shop-main > .elementor-widget-wc-archive-products {
	opacity: 0;
	transition: opacity .18s ease;
}

.bm-shop-skeleton-layer {
	position: absolute;
	z-index: 50;
	inset: 0;
	pointer-events: none;
}

.bm-shop-skeleton,
.bm-shop-skeleton-filter,
.bm-shop-skeleton-ordering {
	position: absolute;
}

.bm-shop-skeleton {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	background: #fff;
}

.bm-shop-skeleton-filter {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-height: 390px;
	padding: 20px;
	border: 1px solid #e4e4e7;
	border-radius: 16px;
	background: #fff;
}

.bm-shop-skeleton-filter__title { width: 38%; height: 20px; }
.bm-shop-skeleton-filter__row { width: 100%; height: 14px; }
.bm-shop-skeleton-filter__row:nth-of-type(3) { width: 82%; }
.bm-shop-skeleton-filter__row:nth-of-type(4) { width: 68%; }
.bm-shop-skeleton-filter__row:nth-of-type(5) { width: 91%; }

.bm-shop-skeleton-filter__swatches {
	display: grid;
	grid-template-columns: repeat(4, 24px);
	gap: 12px;
}

.bm-shop-skeleton-filter__swatches .bm-skeleton-shape {
	width: 24px;
	height: 24px;
	border-radius: 50%;
}

.bm-shop-skeleton-filter__range { width: 100%; height: 8px; margin-top: 8px; }

.bm-shop-skeleton-ordering {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 44px;
	padding: 4px 0;
	background: #fff;
}

.bm-shop-skeleton-ordering .bm-skeleton-shape { width: 72px; height: 14px; }
.bm-shop-skeleton-ordering__label { width: 118px !important; }

.bm-shop-skeleton__card {
	padding: 10px 10px 14px;
	border: 1px solid #e4e4e7;
	border-radius: 16px;
	background: #fff;
}

.bm-skeleton-shape,
.bm-shop-skeleton__image,
.bm-shop-skeleton__line {
	display: block;
	overflow: hidden;
	position: relative;
	border-radius: 8px;
	background: #eceef3;
}

.bm-skeleton-shape::after,
.bm-shop-skeleton__image::after,
.bm-shop-skeleton__line::after {
	content: '';
	position: absolute;
	inset: 0;
	transform: translateX(100%);
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent);
	animation: bm-shop-shimmer 1.25s infinite;
}

.bm-shop-skeleton__image {
	width: 100%;
	aspect-ratio: 1 / 1;
	margin-bottom: 14px;
}

.bm-shop-skeleton__line {
	height: 12px;
	margin-top: 10px;
}

.bm-shop-skeleton__line--title { width: 88%; }
.bm-shop-skeleton__line--short { width: 58%; }
.bm-shop-skeleton__line--price { width: 42%; margin-right: auto; margin-top: 16px; }

@keyframes bm-shop-shimmer {
	to { transform: translateX(-100%); }
}

@media (max-width: 1024px) {
	.bm-shop-skeleton { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bm-shop-skeleton-filter {
		min-height: 48px;
		padding: 0;
		border: 0;
		flex-direction: row;
		align-items: center;
		gap: 8px;
	}
	.bm-shop-skeleton-filter__title,
	.bm-shop-skeleton-filter__row { width: 92px; height: 38px; border-radius: 20px; }
	.bm-shop-skeleton-filter__row:nth-of-type(n) { width: 92px; }
	.bm-shop-skeleton-filter__swatches,
	.bm-shop-skeleton-filter__range { display: none; }
}

@media (max-width: 639px) {
	.bm-shop-skeleton { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.bm-skeleton-shape::after,
	.bm-shop-skeleton__image::after,
	.bm-shop-skeleton__line::after { animation-duration: 2.5s; }
}

/* Elementor shop empty-state widget */
.elementor-widget-bm-shop-empty-state {
	display: none;
}

.elementor-editor-active .elementor-widget-bm-shop-empty-state,
.bm-shop-main:has(.elementor-products-nothing-found) .elementor-widget-bm-shop-empty-state {
	display: block;
}

.bm-shop-main:has(.bm-empty-state) .elementor-products-nothing-found {
	display: none !important;
}

.bm-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 430px;
	padding: 48px 24px;
	border: 1px solid #e4e4e7;
	border-radius: 20px;
	background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
	text-align: center;
}

.bm-empty-state__visual {
	width: 112px;
	height: 112px;
	margin-bottom: 18px;
	padding: 8px;
	border-radius: 28px;
	background: #f4f6ff;
}

.bm-empty-state__visual svg { display: block; width: 100%; height: 100%; }

.bm-empty-state__title {
	margin: 0 0 10px;
	color: #18181b;
	font-size: 22px;
	font-weight:700;
	line-height: 1.5;
}

.bm-empty-state__description {
	max-width: 520px;
	margin: 0 0 22px;
	color: #71717a;
	font-size: 14px;
	line-height: 1.9;
}

.bm-empty-state__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 46px;
	padding: 11px 20px;
	border-radius: 11px;
	background: #4f6fcf;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 8px 20px rgba(79,111,207,.22);
	transition: transform .18s ease, background-color .18s ease;
}

.bm-empty-state__button:hover,
.bm-empty-state__button:focus {
	background: #3f5db5;
	transform: translateY(-1px);
}

.bm-empty-state__hint {
	margin: 18px 0 0;
	color: #a1a1aa;
	font-size: 12px;
	line-height: 1.8;
}

@media (max-width: 639px) {
	.bm-empty-state { min-height: 360px; padding: 36px 18px; border-radius: 16px; }
	.bm-empty-state__visual { width: 92px; height: 92px; border-radius: 24px; }
	.bm-empty-state__title { font-size: 18px; }
	.bm-empty-state__button { width: 100%; max-width: 280px; }
}

/* Archive product grid (was Elementor HTML widget — kept here to avoid raw CSS text leak) */
.elementor-564 .bm-shop-main .woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
}

.elementor-564 .bm-shop-main .woocommerce ul.products::before,
.elementor-564 .bm-shop-main .woocommerce ul.products::after {
	display: none !important;
	content: none !important;
}

.elementor-564 .bm-shop-main .woocommerce ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	box-sizing: border-box;
}

/* Legacy chrome only when unified BM card is absent */
.elementor-564 .bm-shop-main .woocommerce ul.products li.product:not(.bm-product-card-wrap) {
	border: 1px solid #e4e4e7;
	border-radius: 16px;
	padding: 10px 10px 14px;
	background: #fff;
}

.elementor-564 .bm-shop-main .woocommerce ul.products li.product.bm-product-card-wrap {
	border: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.elementor-564 .bm-shop-main .woocommerce ul.products li.product:not(.bm-product-card-wrap) a img {
	border-radius: 12px;
	margin-bottom: 12px;
}

.elementor-564 .bm-shop-main .woocommerce ul.products li.product:not(.bm-product-card-wrap) .woocommerce-loop-product__title {
	font-size: 14px;
	line-height: 1.55;
	color: #1a1a1a !important;
	padding: 0;
}

.elementor-564 .bm-shop-main .woocommerce ul.products li.product:not(.bm-product-card-wrap) .price {
	color: #3d5cb8;
	font-size: 14px;
}

.elementor-564 .bm-shop-main .woocommerce ul.products li.product:not(.bm-product-card-wrap) .button {
	background: #4f6fcf;
	color: #fff;
	border-radius: 9px;
	padding: 10px;
	font-size: 12px;
}

.elementor-564 .bm-shop-main .woocommerce .woocommerce-ordering {
	margin-bottom: 16px;
}

@media (max-width: 1024px) {
	.elementor-564 .bm-shop-main .woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.bm-shop-grid--one .elementor-564 .bm-shop-main .woocommerce ul.products {
		grid-template-columns: 1fr;
	}

	body.bm-shop-grid--two .elementor-564 .bm-shop-main .woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Tablet through 1024: three products per row. */
@media (min-width: 768px) and (max-width: 1024px) {
	body .elementor-564 .bm-shop-main .woocommerce ul.products,
	body.bm-shop-grid--one .elementor-564 .bm-shop-main .woocommerce ul.products,
	body.bm-shop-grid--two .elementor-564 .bm-shop-main .woocommerce ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}

	.bm-shop-skeleton {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Three-column catalog from 1024 up; hide the mobile layout toggle. */
@media (min-width: 1024px) {
	body .bm-mobile-chips .bm-chip--layout {
		display: none !important;
	}
}

@media (max-width: 639px) {
	.elementor-564 .bm-shop-main .woocommerce ul.products {
		grid-template-columns: 1fr;
	}

	body.bm-shop-grid--two .elementor-564 .bm-shop-main .woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	body.bm-shop-grid--two .elementor-564 .bm-shop-main .woocommerce ul.products li.product:not(.bm-product-card-wrap) {
		padding: 7px 7px 10px;
		border-radius: 13px;
	}

	body.bm-shop-grid--two .elementor-564 .bm-shop-main .woocommerce ul.products li.product:not(.bm-product-card-wrap) a img {
		margin-bottom: 8px;
		border-radius: 9px;
	}

	body.bm-shop-grid--two .elementor-564 .bm-shop-main .woocommerce ul.products li.product:not(.bm-product-card-wrap) .woocommerce-loop-product__title,
	body.bm-shop-grid--two .elementor-564 .bm-shop-main .woocommerce ul.products li.product:not(.bm-product-card-wrap) .price {
		font-size: 12px;
	}

	body.bm-shop-grid--two .elementor-564 .bm-shop-main .woocommerce ul.products li.product:not(.bm-product-card-wrap) .button {
		width: 100%;
		padding: 9px 6px;
		font-size: 11px;
		text-align: center;
	}
}

/* Category archive hero */
.bm-cat-hero {
	position: relative;
	isolation: isolate;
}

body:not(.tax-product_cat) .bm-cat-hero {
	display: none !important;
}

body.tax-product_cat .bm-shop-title-only {
	display: none !important;
}

.bm-cat-hero.e-con::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 18, 32, 0.25) 0%, rgba(11, 18, 32, 0.72) 100%);
	border-radius: inherit;
	pointer-events: none;
	z-index: 1;
}

.bm-cat-hero > .e-con-inner,
.bm-cat-hero.e-con > .elementor-element {
	position: relative;
	z-index: 2;
}

.bm-cat-hero__title .elementor-heading-title,
.bm-cat-hero .elementor-heading-title {
	margin: 0;
	color: #fff !important;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.bm-cat-hero__desc,
.bm-cat-hero .woocommerce-category-description,
.bm-cat-hero .term-description {
	margin: 0;
	max-width: 42rem;
}

.bm-cat-hero__desc p,
.bm-cat-hero .term-description p {
	margin: 0;
}

.bm-cat-hero__desc .term-description,
.bm-cat-hero__desc .term-description p {
	color: rgba(255, 255, 255, 0.92) !important;
}

@media (max-width: 767px) {
	.bm-cat-hero {
		min-height: 180px;
	}
}

/* Shop category badges (Elementor loop-grid + badge loop-item) */
.bm-shop-categories.e-con,
.bm-shop-categories {
	flex: 1 1 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
	min-width: 0;
}

@media (min-width: 1280px) {
	.bm-shop-layout > .e-con-inner {
		display: grid !important;
		grid-template-columns: 320px minmax(0, 1fr);
		align-items: start;
		column-gap: 28px;
		row-gap: 0;
	}

	.bm-shop-main.e-con,
	.bm-shop-main {
		display: contents !important;
	}

	.bm-shop-sidebar.e-con,
	.bm-shop-sidebar {
		grid-column: 1;
		grid-row: 1 / span 12;
		width: 320px !important;
		max-width: 320px !important;
		flex: 0 0 320px !important;
	}

	.bm-shop-title-only,
	.bm-shop-categories.e-con,
	.bm-shop-categories,
	.bm-shop-toolbar.e-con,
	.bm-shop-toolbar,
	.elementor-widget-wc-archive-products,
	.elementor-widget-bm-shop-empty-state,
	.bm-shop-main > .elementor-widget-html {
		grid-column: 2;
		width: 100% !important;
		max-width: 100% !important;
	}

	.bm-shop-title-only {
		grid-row: 1;
		margin: 0 0 10px !important;
	}

	.bm-shop-categories.e-con,
	.bm-shop-categories {
		grid-row: 2;
		margin: 0 0 10px !important;
		padding: 0 !important;
		border: 0 !important;
		border-bottom: 0 !important;
	}

	.bm-shop-toolbar.e-con,
	.bm-shop-toolbar {
		grid-row: 3;
		margin: 0 0 16px !important;
	}

	.elementor-widget-wc-archive-products,
	.elementor-widget-bm-shop-empty-state {
		grid-row: 4;
	}
}

.bm-shop-categories__title {
	display: none !important;
}

.bm-shop-title-only {
	width: 100%;
	margin: 0 0 8px !important;
	padding: 0 !important;
}

.bm-shop-title-only .elementor-widget-container,
.bm-shop-title-only .elementor-heading-title {
	margin: 0 !important;
	padding: 0 !important;
	text-align: right !important;
}

.bm-shop-title-only .elementor-heading-title {
	font-family: "Yekan Bakh", Tahoma, "Segoe UI", Arial, sans-serif !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: #111827 !important;
	letter-spacing: -0.02em;
}

.bm-shop-categories__row.e-con,
.bm-shop-categories__row {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 10px !important;
	width: 100%;
	min-width: 0;
}

.bm-shop-categories__row > .elementor-widget-button,
.bm-shop-categories__row > .elementor-widget-loop-grid {
	width: auto !important;
	max-width: 100%;
	margin: 0 !important;
}

.bm-shop-categories__badges {
	width: auto !important;
	max-width: 100%;
	flex: 1 1 auto;
	min-width: 0;
}

.bm-shop-categories__badges .elementor-grid,
.bm-shop-categories__badges .elementor-loop-container,
.bm-shop-categories__badges .e-loop {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center;
	gap: 10px !important;
	grid-template-columns: none !important;
	width: 100%;
}

.bm-shop-categories__badges .e-loop-item,
.bm-shop-categories__badges .elementor-grid-item {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
}

.bm-cat-badge-wrap.e-con,
.bm-cat-badge-wrap {
	width: auto !important;
	min-height: 0 !important;
	padding: 0 !important;
}

.bm-shop-categories .elementor-widget-button,
.bm-shop-categories .bm-cat-badge-wrap .elementor-widget-button {
	width: auto !important;
	margin: 0 !important;
}

.bm-shop-categories .elementor-widget-button .elementor-button,
.bm-cat-badge .elementor-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 38px !important;
	padding: 8px 16px !important;
	border: 1px solid #e4e7ef !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: #2f3441 !important;
	font-family: "Yekan Bakh", Tahoma, "Segoe UI", Arial, sans-serif;
	font-size: 13px !important;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: none !important;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bm-cat-badge .elementor-button:hover {
	background: #fff !important;
	border-color: #4f6fcf !important;
	color: #3d5cb8 !important;
}

/* "همه" looks like the other chips on category archives (Elementor paints it primary). */
body.tax-product_cat .bm-cat-badge--all .elementor-button {
	background: #f4f6fb !important;
	color: #2f3441 !important;
	border: 1px solid #e4e7ef !important;
}

body.tax-product_cat .bm-cat-badge--all .elementor-button:hover {
	border-color: #4f6fcf !important;
}

/* "همه" on main shop, and the current category on archive pages */
body.post-type-archive-product .bm-cat-badge--all .elementor-button,
body.woocommerce-shop .bm-cat-badge--all .elementor-button,
.bm-shop-categories .is-active .elementor-button,
.bm-shop-categories a.is-active.elementor-button {
	background: #4f6fcf !important;
	color: #fff !important;
	border-color: #4f6fcf !important;
}

@media (max-width: 767px) {
	.bm-shop-categories__row.e-con,
	.bm-shop-categories__row,
	.bm-shop-categories__badges .elementor-grid,
	.bm-shop-categories__badges .elementor-loop-container,
	.bm-shop-categories__badges .e-loop {
		flex-wrap: nowrap !important;
	}

	.bm-shop-categories__row.e-con,
	.bm-shop-categories__row {
		overflow-x: auto;
		overflow-y: hidden;
	}

	.bm-shop-categories__badges {
		flex: 0 0 auto;
		max-width: none !important;
	}

	.bm-shop-categories__badges .elementor-grid,
	.bm-shop-categories__badges .elementor-loop-container,
	.bm-shop-categories__badges .e-loop {
		width: max-content;
	}

	/* Flatten Elementor's Loop Grid wrappers so "همه" and taxonomy items
	 * participate in one continuous, swipeable category list. */
	.bm-shop-categories__row > .bm-shop-categories__badges,
	.bm-shop-categories__row > .bm-shop-categories__badges > .elementor-widget-container,
	.bm-shop-categories__row > .bm-shop-categories__badges > .elementor-widget-container > .elementor-loop-container {
		display: contents !important;
	}

	.bm-shop-categories__row > .bm-cat-badge--all,
	.bm-shop-categories__row > .bm-shop-categories__badges .e-loop-item {
		flex: 0 0 auto !important;
	}
}

/*
 * Mobile/tablet category chips — must follow global .bm-shop-categories
 * rules so the swipe row matches .bm-mobile-chips (filter / sort).
 */
@media (max-width: 1279px) {
	.bm-shop-categories__row.e-con,
	.bm-shop-categories__row {
		flex-wrap: nowrap !important;
		gap: 8px !important;
	}

	.bm-shop-categories__badges .elementor-grid,
	.bm-shop-categories__badges .elementor-loop-container,
	.bm-shop-categories__badges .e-loop {
		flex-wrap: nowrap !important;
		gap: 8px !important;
	}

	body.behetmiad-site .bm-shop-categories .elementor-widget-button .elementor-button.elementor-size-sm,
	body.behetmiad-site .bm-shop-categories .bm-cat-badge .elementor-button.elementor-size-sm,
	body .bm-shop-categories .elementor-widget-button .elementor-button,
	body .bm-shop-categories .bm-cat-badge .elementor-button {
		min-height: 40px !important;
		height: 40px !important;
		padding: 0 14px !important;
		padding-block: 0 !important;
		border: 1px solid #e4e4e7 !important;
		background: #fff !important;
		color: #18181b !important;
		font-weight: 500 !important;
		line-height: 1 !important;
	}

	body .bm-shop-categories .elementor-button:hover,
	body .bm-shop-categories .elementor-button:focus {
		border-color: #cfd3dc !important;
		background: #fafafa !important;
		color: #18181b !important;
	}

	body.post-type-archive-product .bm-cat-badge--all .elementor-button,
	body.woocommerce-shop .bm-cat-badge--all .elementor-button,
	body.tax-product_cat .bm-cat-badge--all .elementor-button,
	body .bm-shop-categories .is-active .elementor-button,
	body .bm-shop-categories a.is-active.elementor-button,
	body .bm-shop-categories .bm-cat-badge.is-active .elementor-button {
		border-color: #4f6fcf !important;
		background: #eef2ff !important;
		color: #3d5cb8 !important;
	}
}
