.bb-code-ltr {
	direction: ltr;
	unicode-bidi: isolate;
	display: inline-block;
	letter-spacing: 0;
}

.searchform input.s,
.wd-search-suggestions .wd-entities-title,
.product_title.entry-title {
	unicode-bidi: plaintext;
}

.bb-out-of-stock-badge,
.ajax-out-of-stock-badge {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 2px 8px;
	border-radius: 4px;
	color: #c5272a;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.6;
	white-space: nowrap;
	direction: rtl;
}

.product-element-top {
	position: relative;
}

.bb-out-of-stock-badge--loop {
	position: absolute;
	inset-block-start: 10px;
	inset-inline-start: 10px;
	z-index: 5;
}

.wd-search-suggestions .bb-ajax-out-of-stock .price {
	margin-top: 4px;
}
.woocommerce form .form-row .required { visibility: visible; }

.wd-show-product-gallery-wrap > a::before {
	content: "\f101" !important;
}
.ums-account-menu ul li a {
	font-family: baarobandil !important;
}
.ums-footer-login-link {
	background: red;
	padding: 11px;
	border-radius: 25px;
}
.ums-title-form {
	margin-top: 50px;
}
.wd-header-mobile-nav .wd-tools-icon::before {
	color: #ffaf04 !important;
}
.ums-footer-login-link a {
	color: #ffffff !important;
	font-size: 22px;
	font-weight: bold;
}
body .tooltip .tooltip-inner {
	background-color: #1f40b9;
}
body .tooltip.bs-tooltip-top .arrow {
	border-top-color: #1f40b9;
}
div.tooltip.top .tooltip-arrow {
	background-color: #1f40b9;
}
a.wd-swatch.wd-enabled.wd-bg.wd-tooltip {
	width: 200px;
	height: 200px;
}
.wd-action-btn.wd-style-icon .button {
	display: none;
}
.wd-add-cart-icon > a:before {
	content: "\f126" !important;
}
[class*="wd-swatches"].wd-bg-style-1 .wd-swatch.wd-bg:after {
	border-bottom: 2px solid #2247cc !important;
}
.custom-price-filter-wrapper .price_slider {
	margin-bottom: 20px;
}
.custom-price-filter-wrapper .ui-slider {
	position: relative;
	text-align: left;
	background: #e2e2e2;
	border-radius: 2px;
	height: 5px;
}
.custom-price-filter-wrapper .ui-slider .ui-slider-handle {
	position: absolute;
	z-index: 2;
	width: 18px;
	height: 18px;
	cursor: pointer;
	background-color: #0073aa;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	top: -7px;
	margin-left: -9px;
	outline: none;
}
.custom-price-filter-wrapper .ui-slider .ui-slider-range {
	position: absolute;
	z-index: 1;
	font-size: 0.7em;
	display: block;
	border: 0;
	border-radius: 2px;
	background-color: #0073aa;
}
.filter-price-inputs {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-top: 15px;
}
.filter-price-inputs .price_from,
.filter-price-inputs .price_to {
	display: flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 5px 10px;
	width: 100%;
	direction: rtl;
}
.filter-price-inputs span {
	color: #777;
	margin-left: 5px;
	white-space: nowrap;
}
.filter-price-inputs input[type="text"] {
	width: 100%;
	border: none !important;
	padding: 0 !important;
	box-shadow: none !important;
	text-align: left;
}
.widget_price_filter button {
	margin-top: 15px;
	width: 100%;
}
.wd-hint:before {
	font-size: 15px !important;
	font-weight: 100 !important;
}
table.shop_attributes[class*="woocommerce-group-attributes-layout-"] .attribute_name_values th.attribute_name {
	width: 50% !important;
}
.post-single-page .post-title {
	margin-bottom: 50px;
}
.price del .woocommerce-Price-amount {
	position: relative;
	display: inline-block;
}
.price del .woocommerce-Price-amount::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background: #bbb;
	top: 50%;
	transform: translateY(-50%);
}
.wd-action-btn.wd-style-text > a {
	font-weight: 100 !important;
	color: gray !important;
	font-size: 12px !important;
}
.woocommerce table.shop_attributes tr:nth-child(even) th {
	color: #000000 !important;
	border-radius: 6px;
}
table.shop_attributes[class*="woocommerce-group-attributes-layout-"] .attribute_name_values td.attribute_value,
table.shop_attributes[class*="wd-wga-layout-"] .attribute_name_values td.attribute_value {
	font-weight: inherit !important;
}
table.shop_attributes[class*="woocommerce-group-attributes-layout-"] .attribute_group_row,
table.shop_attributes[class*="wd-wga-layout-"] .attribute_group_row {
	background: #f8f8f8 !important;
	border-top: 0 !important;
}
table.shop_attributes[class*="woocommerce-group-attributes-layout-"] .attribute_group_row > th.attribute_group_name,
table.shop_attributes[class*="wd-wga-layout-"] .attribute_group_row > th.attribute_group_name {
	background: #f8f8f8 !important;
	letter-spacing: 0 !important;
	border-radius: 6px;
}
.attribute_group_row::before {
	content: none !important;
	display: none !important;
}
table.shop_attributes[class*="woocommerce-group-attributes-layout-"] tr,
table.shop_attributes[class*="wd-wga-layout-"] tr {
	display: table-row;
	border-top: 0 !important;
}
table.shop_attributes[class*="woocommerce-group-attributes-layout-"] .attribute_name_values tr {
	border-bottom: 1px solid #e1e1e16e !important;
}
.shop_attributes :is(.wd-attr-name, .wd-attr-term) {
	width: 100%;
	border-radius: 6px;
	padding: 17px 7px 17px;
	margin: 0 0 25px 0;
	font-size: 15px;
}
.shop_attributes {
	--wd-attr-brd-width: 0 !important;
	background: none !important;
	--wd-attr-v-gap: -40px !important;
}
.wd-linked-variations-heading {
	font-weight: 700;
	font-size: 22px;
}
.woocommerce table.shop_attributes tr:nth-child(even) td {
	width: -webkit-fill-available;
	text-align: right !important;
}
.attribute_name_values {
	font-size: 100%;
}
.woocommerce table.shop_attributes.woocommerce-group-attributes-layout-1 th {
	width: 38%;
	padding: 17px 7px 17px;
	margin: 0 0 25px 0;
	font-size: 14px;
}
.wd-shop-ordering {
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.wd-shop-ordering form.woocommerce-ordering {
	display: flex;
	align-items: center;
	padding: 10px 20px;
	background-color: #eaf0f6;
	border-radius: 12px;
	box-sizing: border-box;
}
.wd-shop-ordering ul.desktop-ordering {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
	flex-grow: 1;
}
.wd-shop-ordering ul.desktop-ordering li {
	margin: 0 4px;
}
.wd-shop-ordering ul.desktop-ordering li.ordering-label {
	font-weight: bold;
	margin-left: 10px;
	font-size: 12px;
}
.wd-shop-ordering ul.desktop-ordering a {
	display: block;
	padding: 8px 12px;
	border-radius: 20px;
	text-decoration: none;
	color: #4a5568;
	font-size: 12px;
	transition: all 0.25s ease;
	background-color: transparent;
}
.wd-shop-ordering ul.desktop-ordering a:hover {
	color: #0056b3;
}
.wd-shop-ordering ul.desktop-ordering a.active {
	color: #1b5aac;
	font-weight: 700;
}
.wd-shop-ordering .total-products-wrapper {
	white-space: nowrap;
	color: #666;
	font-size: 14px;
	padding: 0 10px;
	flex-shrink: 0;
}
.wd-shop-ordering select.mobile-ordering {
	display: none;
}
@media (max-width: 768px) {
	.wd-shop-ordering ul.desktop-ordering,
	.wd-shop-ordering .total-products-wrapper {
		display: none;
	}

	.wd-shop-ordering select.mobile-ordering {
		display: block;
		width: 100%;
	}

	.wd-shop-ordering form.woocommerce-ordering {
		background-color: transparent;
		padding: 0;
	}
}
:is(
	.wd-entry-content,
	.entry-content,
	.is-layout-flow,
	.is-layout-constrained,
	.is-layout-constrained > .wp-block-group__inner-container
) > * {
	margin-top: 15px;
}
.widget_price_filter .filter-price-inputs {
	display: none !important;
}
.widget_price_filter .price_slider_amount {
	justify-content: center;
	margin-top: 15px;
}
.widget_price_filter .price_label {
	width: 100%;
	text-align: center;
	color: #333;
	font-size: 15px;
}
.widget_price_filter .button {
	margin-top: 10px;
	width: 100%;
}
.wd-account-style-text .wd-tools-text {
	padding: 15px !important;
	border-radius: 7px !important;
	border: 1px solid #e0e0e2 !important;
	box-shadow: 0 0 6px #eb116469 !important;
}
.wd-shop-result-count .woocommerce-result-count {
	font-size: 13px;
}
#wd-dbf863b9 {
	background: #eaf0f6;
	padding-left: 20px;
	border-radius: 8px;
}
.wd-products-shop-view a:before {
	font-size: 123%;
}
@media (max-width: 576px) {
	.wd-action-btn.wd-style-text > a:before {
		margin-right: 10px;
	}
}
.wd-nav-arrows[class*="wd-hover"].wd-pos-sep .wd-btn-arrow {
	opacity: 1 !important;
	visibility: visible !important;
	transform: none;
}
.product-grid-item .wd-add-btn > a:focus span:not(.wd-tooltip-label),
.product-grid-item .wd-add-btn > a:hover span:not(.woodmart-tooltip-label),
.wd-hover-base:not(.product-in-carousel):not(.hover-width-small):not(.add-small-button) .wd-add-btn > a:focus span:not(.wd-tooltip-label),
.wd-hover-base:not(.product-in-carousel):not(.hover-width-small):not(.add-small-button) .wd-add-btn > a:hover span:not(.wd-tooltip-label),
.wd-hover-button .hover-mask > a:focus span:not(.wd-tooltip-label),
.wd-hover-button .hover-mask > a:hover span:not(.wd-tooltip-label),
.wd-hover-info-alt .product-actions > a:focus span:not(.woodmart-tooltip-label),
.wd-hover-info-alt .product-actions > a:hover span:not(.woodmart-tooltip-label),
.woodmart-hover-quick .wd-add-btn > a:focus span:not(.woodmart-tooltip-label),
.wd-hover-quick .wd-add-btn > a:hover span:not(.woodmart-tooltip-label),
.wd-hover-standard .btn-add > a:focus span:not(.wd-tooltip-label),
.wd-hover-standard .btn-add > a:hover span:not(.wd-tooltip-label),
.wd-price-table .wd-plan-footer .add-to-cart-loop:focus span:not(.wd-tooltip-label),
.wd-price-table .wd-plan-footer .add-to-cart-loop:hover span:not(.wd-tooltip-label) {
	transform: none !important;
}
.wd-add-btn-replace .add-to-cart-loop:before {
	content: none !important;
}
.wd-product.wd-hover-fw-button .wd-add-btn > a {
	border: 1px solid #e81269 !important;
	background-color: transparent !important;
	color: #eb1164 !important;
}
.wd-product.wd-hover-fw-button .wd-add-btn > a:hover {
	color: var(--btn-accented-color-hover) !important;
	box-shadow: var(--btn-accented-box-shadow-hover);
	background-color: var(--btn-accented-bgcolor-hover) !important;
}
.wd-buttons .wd-action-btn > a {
	display: none !important;
}
@media (min-width: 768px) and (max-width: 1024px) {
	.wd-action-btn.wd-style-text > a:before {
		font-size: 20px !important;
	}

	.wd-sidebar-opener.wd-filter-icon > a:before,
	.wd-burger-icon > a:before {
		content: "\f15c" !important;
	}
}
@media (min-width: 577px) and (max-width: 767px) {
	.wd-action-btn.wd-style-text > a:before {
		font-size: 20px !important;
	}

	.wd-sidebar-opener.wd-filter-icon > a:before,
	.wd-burger-icon > a:before {
		content: "\f15c" !important;
	}
}
.wd-swatch-bg{
	border-radius: 0px !important;
}

/* Neutralize WooCommerce group attribute table styling back to Woodmart defaults. */
table.shop_attributes[class*="woocommerce-group-attributes-layout-"] .attribute_group_row {
    background: transparent !important;
}

table.shop_attributes[class*="woocommerce-group-attributes-layout-"] .attribute_group_row>th.attribute_group_name {
    background: transparent !important;
    text-align: inherit;
    text-decoration: none;
    color: inherit;
    border: 0;
}

table.shop_attributes[class*="woocommerce-group-attributes-layout-"] .attribute_group_row>th.attribute_group_name a {
    color: inherit;
    text-decoration: none;
}

table.shop_attributes[class*="woocommerce-group-attributes-layout-"] tr {
    display: table-row;
    border-top: 0;
}

/*
======================================================
  کد نهایی CSS بر اساس ساختار HTML شما
======================================================
*/

/* 1. تمام عرض کردن کانتینر اصلی قالب */
.wd-shop-ordering {
    max-width: 100% !important;
    /* محدودیت عرض قالب را برمی‌دارد */
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 2. استایل باکس داخلی با پس‌زمینه آبی-خاکستری */
.wd-shop-ordering form.woocommerce-ordering {
    display: flex;
    /* فعال کردن Flexbox برای چیدمان */
    align-items: center;
    /* تراز عمودی همه آیتم‌ها در وسط */
    width: 100%;
    padding: 10px 20px;
    margin-bottom: 30px;
    background-color: #eaf0f6;
    /* رنگ پس‌زمینه دلخواه شما */
    border-radius: 12px;
    box-sizing: border-box;
}

/* 3. استایل لیست مرتب‌سازی و حل مشکل جایگاه تعداد کالا */
.wd-shop-ordering ul.desktop-ordering {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    flex-grow: 1;
    /* مهم: این خط لیست را بزرگ کرده و تعداد کالا را به انتها هل می‌دهد */
}

.wd-shop-ordering ul.desktop-ordering li {
    margin: 0 4px;
}

.wd-shop-ordering ul.desktop-ordering li.ordering-label {
    font-weight: bold;
    margin-left: 10px;
}

.wd-shop-ordering ul.desktop-ordering a {
    display: block;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    color: #4a5568;
    font-size: 14px;
    transition: all 0.25s ease;
    background-color: transparent;
}

/* 4. استایل هاور و آیتم فعال */
.wd-shop-ordering ul.desktop-ordering a:hover {
    color: #0056b3;
}

.wd-shop-ordering ul.desktop-ordering a.active {
    color: #1b5aac;
    font-weight: 700;
}

/* 5. استایل تعداد کالا */
.wd-shop-ordering .total-products-wrapper {
    white-space: nowrap;
    color: #666;
    font-size: 14px;
    padding: 0 10px;
    flex-shrink: 0;
}

/* 6. مدیریت نمایش در موبایل */
.wd-shop-ordering select.mobile-ordering {
    display: none;
}

@media (max-width: 768px) {

    .wd-shop-ordering ul.desktop-ordering,
    .wd-shop-ordering .total-products-wrapper {
        display: none;
    }

    .wd-shop-ordering select.mobile-ordering {
        display: block;
        width: 100%;
    }

    .wd-shop-ordering form.woocommerce-ordering {
        background-color: transparent;
        padding: 0;
    }
}

:is(.wd-entry-content, .entry-content, .is-layout-flow, .is-layout-constrained, .is-layout-constrained>.wp-block-group__inner-container)>* {
    margin-top: 15px;
}



/* 1. مخفی کردن بخش اضافی "از" و "تا" */
.widget_price_filter .filter-price-inputs {
    display: none !important;
}

/* 2. مرتب‌سازی و وسط‌چین کردن بخش اصلی نمایش قیمت */
.widget_price_filter .price_slider_amount {
    justify-content: center;
    /* آیتم باقی‌مانده را در مرکز قرار می‌دهد */
    margin-top: 15px;
    /* ایجاد فاصله از اسلایدر بالایی */
}

/* 3. استایل‌دهی به متن قیمت برای خوانایی بهتر */
.widget_price_filter .price_label {
    width: 100%;
    /* عرض کامل می‌گیرد تا متن وسط‌چین شود */
    text-align: center;
    color: #333;
    /* رنگ تیره‌تر برای خوانایی */
    font-size: 15px;
}

/* 4. استایل دکمه فیلتر (اگر وجود داشته باشد) */
.widget_price_filter .button {
    margin-top: 10px;
    width: 100%;
}

/*Group Attribute*/
.attribute_row>td {
    width: 100% !important;
}

.shop_attributes .attribute_name {
    width: 30% !important;
}

.shop_attributes .attribute_value {
    display: flex !important;
    width: 70% !important;
}

.shop_attributes tr {
    margin-bottom: 0 !important;
}

.shop_attributes tr.alt,
.shop_attributes tr.alt td {
    background-color: white !important;
}

.shop_attributes tr {
    border-bottom: 1px dotted rgba(0, 0, 0, .1);
}

.shop_attributes .attribute_group_row {
    border: none !important;
}

.attribute_group_row {
    position: relative;
}

.attribute_group_row::before {
    content: "";
    position: absolute;
    display: flex;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, .1);
    z-index: 1;
}

.attribute_group_row .attribute_group_name {
    background: #fff;
    /* برا مخفی کردن خط زیرش که این سفید میاد روش */
    display: inline-block;
    padding: 0 25px;
    position: relative;
    z-index: 2;
    width: max-content !important;
}

.woocommerce table.shop_attributes tr:nth-child(2n) td,
.woocommerce table.shop_attributes tr:nth-child(2n) th {
    text-align: right;
}

/**/
/*.wd-swatch-bg{*/

/*    {*/
/*    border: 2px solid;*/
/*}*/

/*#wd-16378052 {*/
/*    font-size: 46px;*/
/*    font-weight: 900;*/
/*}*/

/*text align*/
.wp-block-wd-container:is(.wd-dir-col, .wd-dir-col-rev):not([class*="wd-align-is-"])>*:not(:is(.wd-custom-width, [class*="wd-align-s-"])) {
    text-align: justify;
    padding: 0 20px 0 20px;
}

.snapppay-widget {
    margin-top: 20px;
}
