/*style dokmehaye sorting mahsoolat*/
.custom-sorting-buttons {
    justify-content: space-between;
    gap: 10px;
	  margin-bottom: 0px;
	  margin-top: 57px;
     flex-wrap: wrap; /* اضافه شده برای موبایل */
}


.custom-sorting-buttons .sorting-button {
    background-color: #83c347;
    color: white;
    padding: 4px 11px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
     flex: 1 !important; /* دکمه‌ها فضای مساوی دریافت می‌کنند */
    white-space: nowrap; /* از شکستن متن جلوگیری می‌کند */
}


.custom-sorting-buttons .sorting-button:hover {
    background-color: #426223 !important;
}


.custom-sorting-buttons .sorting-button:active {
    background-color: #426223 !important;
}


/* بهینه‌سازی برای موبایل */
@media (max-width: 768px) {
    .custom-sorting-buttons .sorting-button {
        font-size: 11px;
        padding: 4px 7px;
    }
.custom-sorting-buttons {
        gap: 5px;
    }
}
/*style dokmehaye sorting mahsoolat*/



/*size fonte tab tozihate mahsool*/
.rd-product-tabs li{
 font-size: 17px !important;
}
/*size fonte tab tozihate mahsool*/



/*size fonte navare peymayesh site*/
.rd-breadcrumbs {   
	  font-size: 12px; 
}

.rd-breadcrumbs > ul {

 padding: 10px 20px!important;

 line-height: 21px!important;
	
}
/*size fonte navare peymayesh site*/



/*size & style fonte jadvale vizhegihaye mahsool*/
.woocommerce table.shop_attributes td{
font-style: normal;
 font-size: 14px;
 color: #111111;
}
/*size & style fonte jadvale vizhegihaye mahsool*/



/*size fonte title archive neveshteha va tak neveshte*/
.rd-single-details .rd-title{
 font-size: 21px !important;

}
.rd-el-archive .rd-title{
 font-size: 21px !important;
}



@media (max-width: 768px) {
    .rd-single-details .rd-title {
      font-size: 14px !important;

    }
.rd-el-archive .rd-title {
      font-size: 14px !important;
    }
}	
/*size fonte title archive neveshteha va tak neveshte*/



/*width mega menu*/
.rd-nav-5365517225 .rd-middle {
  --rd-drp-wt: 1200px !important;
}
/*width mega menu*/



/*style mojoodi tak mahsool*/
div.rd-stock-warp{
	padding-right: 10px;
	padding-top: 0px;
	margin-top: 0px;
}

div.woocommerce-variation.single_variation div.woocommerce-variation-price span.price div.rd-price{
		padding-top: 11px;
	  margin-bottom: -20px;
}

div.woocommerce-variation.single_variation div.woocommerce-variation-price span.price div.rd-price span.woocommerce-Price-amount.amount{
	color: #000000 !important;
	text-shadow: -1px 1px 2px black !important;
}

div.woocommerce-variation.single_variation div.woocommerce-variation-availability div.rd-stock-warp
div.stock.out-of-stock{
	text-shadow: -1px 1px 2px black !important;
}

div.woocommerce-variation.single_variation div.woocommerce-variation-availability div.rd-stock-warp
div.stock.in-stock{
	text-shadow: -1px 1px 2px black !important;
}
/*style mojoodi tak mahsool*/



/*hazfe tozihate archive mahsoolat*/
div.rd-archive-description{
	display: none !important;
}
/*hazfe tozihate archive mahsoolat*/



/*hazfe button saaf mahsool*/
a.reset_variations{
	visibility: none !important;
	display: none !important;
}
/*hazfe button saaf mahsool*/



/*style moshahede bishatre tozihate tak mahsool*/
.wc-fade-wrapper {
    position: relative;
    line-height: 1.9;
}

/* متن محدود شده */
.wc-fade-content {
    max-height: 350px;   /* ارتفاع بخش اولیه */
    overflow: hidden;
    transition: max-height 1.5s ease;
}

/* گرادیان محو از پایین */
.wc-fade-overlay {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    height: 170px;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
    pointer-events: none;
    transition: opacity 1.5s ease;
}

/* دکمه */
.wc-fade-toggle {
    position: relative;
    z-index: 2;
    background-color: #fff;
    display: inline-block;
    margin-top: 10px;
    cursor: pointer;
    color: #0073aa;
    font-weight: bold;
    user-select: none;
	padding-right: 14px;
}

/* حالت باز */
.wc-fade-wrapper.open .wc-fade-content {
    max-height: 5000px;
}

.wc-fade-wrapper.open .wc-fade-overlay {
    opacity: 0;
    visibility: hidden;
}
/*style moshahede bishatre tozihate tak mahsool*/



/*style moshahede bishatre jadvale vizhegihaye tak mahsool*/
.wc-attr-fade-wrapper {
    position: relative;
    width: 100%;
}

/* جدول ویژگی‌ها */
.wc-attr-fade-wrapper table {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 350px;
    overflow: hidden;
    box-sizing: border-box;
    transition: max-height 1.5s ease;
}

/* یکسان ماندن عرض ردیف‌ها و سلول‌ها */
.wc-attr-fade-wrapper table tbody {
    display: table;
    width: 100%;
    table-layout: fixed;
}

/* گرادیان محو پایین جدول */
.wc-attr-overlay {
    position: absolute;
    bottom: 0px;
    left: 0;
    z-index: 1;
    right: 0;
    height: 350px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        #fff
    );
    pointer-events: none;
    transition: opacity 1.5s ease;
}

/* دکمه */
.wc-attr-toggle {
    position: relative;
    z-index: 2;
    background-color: #fff;
    display: inline-block;
    margin-top: 10px;
    padding-right: 14px;
    cursor: pointer;
    color: #0073aa;
    font-weight: bold;
    user-select: none;
}

/* حالت باز */
.wc-attr-fade-wrapper.open table {
    max-height: 2000px;
}

.wc-attr-fade-wrapper.open .wc-attr-overlay {
    opacity: 0;
    visibility: hidden;
}
/*style moshahede bishatre jadvale vizhegihaye tak mahsool*/



/*makhfi kardane fielde keshvar az safhe tasvie hesab*/
#billing_country_field {
    display: none !important;
}
/*makhfi kardane fielde keshvar az safhe tasvie hesab*/



/*makhfi kardane dokme wishlist yith safhe tak mahsool*/
.fc-product-wishlist-btn::before{
    display:none !important;
    content:none !important;
}
/*makhfi kardane dokme wishlist yith safhe tak mahsool*/



/*tak khat kardane navare peymayeshe site dar desktop va mobile*/
/* نوار مسیر سایت */
.rd-breadcrumbs {
    width: 100%;
    overflow: hidden;
    direction: rtl;
}

.rd-breadcrumbs > ul {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;

    /* هماهنگ با عرض محتوای قالب */
    width: calc(100% - 0px);
    max-width: 1600px;
    margin-right: auto;
    margin-left: auto;

    overflow-x: auto;
    overflow-y: hidden;

    white-space: nowrap;
    list-style: none;

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
}

/* مخفی‌کردن ظاهر اسکرول */
.rd-breadcrumbs > ul::-webkit-scrollbar {
    display: none;
}

/* جلوگیری از شکستن مسیرها */
.rd-breadcrumbs > ul > li {
    display: block;
    flex: 0 0 auto;
    white-space: nowrap;
}

.rd-breadcrumbs a,
.rd-breadcrumbs strong {
    display: inline-block;
    white-space: nowrap;
}
/*tak khat kardane navare peymayeshe site dar desktop va mobile*/



/*style tozihate paieene dastebandi mahsoolat*/
/* ==================================================
   توضیحات سئوی پایین دسته‌بندی محصولات
================================================== */

/* مخفی‌کردن توضیحات پیش‌فرض بالای صفحه */
.tax-product_cat .rd-archive-description {
    display: none !important;
}

/* باکس اصلی */
.tax-product_cat .fara-category-seo {
    flex: 0 0 calc(100% - 20px);
    clear: both;
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);

    margin: 20px 10px 8px;

    padding: 28px 30px;
    direction: rtl;
    background: #fff;
    border: 1px solid #e9edf0;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(20, 30, 45, 0.045);
    box-sizing: border-box;
}

body.tax-product_cat .rd-gap-warp > .fara-category-seo {
    flex-basis: calc(100% - 18px);
    width: calc(100% - 18px);
    max-width: calc(100% - 18px);

    margin-right: 9px;
    margin-left: 9px;

    position: relative;
    top: 10px;
    margin-top: 20px !important;
    margin-bottom: 18px;
}

/* ردیف عنوان */
.tax-product_cat .fara-category-seo__header {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 14px;
    margin-bottom: 18px;
}

/* عنوان */
.tax-product_cat .fara-category-seo__title {
    flex: 0 0 auto;
    max-width: 100%;
    margin: 0;
    color: #25282c;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.7;
}

/* خط کنار عنوان */
.tax-product_cat .fara-category-seo__line {
    flex: 1 1 auto;
    min-width: 35px;
    height: 1px;
    background: linear-gradient(
        to left,
        #8bd052 0%,
        rgba(139, 208, 82, 0.25) 55%,
        rgba(139, 208, 82, 0) 100%
    );
}

/* محتوای توضیحات */
.tax-product_cat .fara-category-seo__content {
    width: 100%;
    color: #606a74;
    font-size: 15px;
    font-weight: 400;
    line-height: 2.15;
    text-align: justify;
    text-justify: inter-word;
}

/* پاراگراف‌ها */
.tax-product_cat .fara-category-seo__content p {
    margin: 0 0 14px;
}

.tax-product_cat .fara-category-seo__content p:last-child {
    margin-bottom: 0;
}

/* تیترهای داخل توضیحات */
.tax-product_cat .fara-category-seo__content h2,
.tax-product_cat .fara-category-seo__content h3,
.tax-product_cat .fara-category-seo__content h4 {
    margin: 26px 0 12px;
    color: #292d32;
    font-weight: 700;
    line-height: 1.8;
}

.tax-product_cat .fara-category-seo__content h2 {
    font-size: 20px;
}

.tax-product_cat .fara-category-seo__content h3 {
    font-size: 18px;
}

.tax-product_cat .fara-category-seo__content h4 {
    font-size: 16px;
}

/* لیست‌ها */
.tax-product_cat .fara-category-seo__content ul,
.tax-product_cat .fara-category-seo__content ol {
    margin: 12px 0 18px;
    padding-right: 23px;
}

.tax-product_cat .fara-category-seo__content li {
    margin-bottom: 7px;
}

.tax-product_cat .fara-category-seo__content li::marker {
    color: #8bd052;
}

/* لینک‌ها */
.tax-product_cat .fara-category-seo__content a {
    color: #63ac2b;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.25s ease;
}

.tax-product_cat .fara-category-seo__content a:hover {
    color: #477f20;
}

/* ==================================================
   مشاهده بیشتر توضیحات دسته‌بندی
================================================== */

.tax-product_cat .fara-category-seo__body {
    position: relative;
    width: 100%;
}

/* حالت جمع‌شده */
.tax-product_cat .fara-category-seo.has-collapsible-content
.fara-category-seo__content {
    max-height: 260px;
    overflow: hidden;
    transition: max-height 0.6s ease;
}

/* محوشدگی انتهای متن */
.tax-product_cat .fara-category-seo__fade {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 95px;
    display: none;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.9) 68%,
        #fff 100%
    );
    transition: opacity 0.3s ease;
}

.tax-product_cat .fara-category-seo.has-collapsible-content
.fara-category-seo__fade {
    display: block;
}

/* حالت کاملاً باز */
.tax-product_cat .fara-category-seo.is-expanded
.fara-category-seo__fade {
    opacity: 0;
}

/* دکمه مشاهده بیشتر */
.tax-product_cat .fara-category-seo__toggle {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 132px;
    height: 42px;
    margin: 16px auto 0;
    padding: 0 18px;
    color: #5da526;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    background: #f7fbf4;
    border: 1px solid #8bd052;
    border-radius: 8px;
    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}

.tax-product_cat .fara-category-seo__toggle[hidden] {
    display: none !important;
}

.tax-product_cat .fara-category-seo__toggle:hover {
    color: #fff;
    background: #8bd052;
}

.tax-product_cat .fara-category-seo__toggle-icon {
    flex: 0 0 auto;
    transition: transform 0.35s ease;
}

.tax-product_cat .fara-category-seo.is-expanded
.fara-category-seo__toggle-icon {
    transform: rotate(180deg);
}

/* جلوگیری از باقی‌ماندن حالت هاور لمسی در موبایل */
@media (hover: none) {
    .tax-product_cat .fara-category-seo__toggle:hover {
        color: #5da526;
        background: #f7fbf4;
    }

    .tax-product_cat .fara-category-seo__toggle:active {
        color: #fff;
        background: #8bd052;
    }
}

@media (max-width: 767px) {
    .tax-product_cat .fara-category-seo.has-collapsible-content
    .fara-category-seo__content {
        max-height: 240px;
    }

    .tax-product_cat .fara-category-seo__fade {
        height: 80px;
    }

    .tax-product_cat .fara-category-seo__toggle {
        min-width: 126px;
        height: 40px;
        margin-top: 14px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tax-product_cat .fara-category-seo__content,
    .tax-product_cat .fara-category-seo__fade,
    .tax-product_cat .fara-category-seo__toggle-icon {
        transition: none;
    }
}

/* موبایل */
@media (max-width: 767px) {
    .tax-product_cat .fara-category-seo {
        flex-basis: calc(100% - 10px);
        width: calc(100% - 10px);
        max-width: calc(100% - 10px);
        margin: 10px 5px 5px;
        padding: 20px 17px;
        border-radius: 10px;
    }

    .tax-product_cat .fara-category-seo__header {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 14px;
    }

    .tax-product_cat .fara-category-seo__title {
        flex: 0 1 auto;
        font-size: 18px;
        line-height: 1.8;
    }

    .tax-product_cat .fara-category-seo__line {
        margin-top: 16px;
    }

    .tax-product_cat .fara-category-seo__content {
        font-size: 14px;
        line-height: 2;
    }

    .tax-product_cat .fara-category-seo__content h2 {
        font-size: 18px;
    }

    .tax-product_cat .fara-category-seo__content h3 {
        font-size: 16px;
    }

    .tax-product_cat .fara-category-seo__content h4 {
        font-size: 15px;
    }
}
/*style tozihate paieene dastebandi mahsoolat*/



/*style mojavezha dar footer site*/
/* ==================================================
 * مجوزها و نمادهای اعتماد فوتر فراکامپیوتر
================================================== */

/* کادر اصلی نگهدارنده تمام مجوزها */
body .fc-footer-licenses {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;

	width: 100%;
	max-width: 100%;

	margin: 10px 0 0;
	padding: 0;

	direction: rtl;
	overflow: visible;
	box-sizing: border-box;
}

/* کادر مستقل هر مجوز */
body .fc-footer-licenses .fc-footer-license {
	position: relative;
    flex: 0 0 100px !important;
	display: flex !important;
	align-items: center;
	justify-content: center;

	width: 100px !important;
	min-width: 100px !important;
	max-width: 100px !important;

	height: 120px !important;
	min-height: 120px !important;
	max-height: 120px !important;

	margin: 0 !important;
	padding: 9px !important;

	background-color: rgba(240, 231, 231, 0.19) !important;

	border: 1px solid transparent !important;
	border-radius: 11px !important;
	box-shadow: none !important;

	box-sizing: border-box !important;
	overflow: hidden;

	transform: translateY(0);
	transition:
		transform 0.25s ease,
		background-color 0.25s ease,
		border-color 0.25s ease,
		box-shadow 0.25s ease;
}

/* لینک داخلی هر مجوز */
body
.fc-footer-licenses
.fc-footer-license__link {
	display: flex !important;
	align-items: center;
	justify-content: center;

	width: 100% !important;
	height: 100% !important;

	margin: 0 !important;
	padding: 0 !important;

	background: transparent !important;
	border: 0 !important;
	outline: 0;

	color: inherit;
	text-decoration: none !important;

	box-sizing: border-box;
	cursor: pointer;
}

/* تصویر مجوز */
body
.fc-footer-licenses
.fc-footer-license__image {
	display: block !important;

	width: auto !important;
	max-width: 100% !important;

	height: auto !important;
	max-height: 100% !important;

	margin: auto !important;
	padding: 0 !important;

	background: transparent;
	border: 0;
	border-radius: 0;

	object-fit: contain;
	object-position: center;

	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
	-webkit-user-drag: none;

	transform: scale(1);
	filter: none;

	transition:
		transform 0.25s ease,
		filter 0.25s ease;
}

/* هاور واضح کادر مجوز */
body
.fc-footer-licenses
.fc-footer-license:hover {
	background-color: rgba(139, 208, 82, 0.15) !important;
	border-color: #8bd052 !important;

	box-shadow:
		0 7px 18px rgba(0, 0, 0, 0.26),
		inset 0 0 0 1px rgba(139, 208, 82, 0.10) !important;

	transform: translateY(-3px);
}

/* تغییر ملایم تصویر هنگام هاور */
body
.fc-footer-licenses
.fc-footer-license:hover
.fc-footer-license__image {
	transform: scale(1.045);
	filter: brightness(1.07);
}

/* حالت فوکوس برای کاربران کیبورد */
body
.fc-footer-licenses
.fc-footer-license:focus-within {
	background-color: rgba(139, 208, 82, 0.15) !important;
	border-color: #8bd052 !important;

	box-shadow:
		0 0 0 3px rgba(139, 208, 82, 0.20) !important;
}

/* حذف خط فوکوس پیش‌فرض لینک */
body
.fc-footer-licenses
.fc-footer-license__link:focus {
	outline: none;
}

/* ==================================================
 * حالت موبایل و نمایشگرهای باریک
================================================== */

@media (max-width: 1100px) {

	/*
	 * روی دستگاه لمسی حرکت کادر به بالا اجرا نمی‌شود؛
	 * اما بازخورد لمس با تغییر رنگ باقی می‌ماند.
	 */
	body
	.fc-footer-licenses
	.fc-footer-license:active {
		background-color: rgba(139, 208, 82, 0.15) !important;
		border-color: #8bd052 !important;

		transform: scale(0.98);
	}
}
/*style mojavezha dar footer site*/



/*style range hover-active iconhaye menu dastebandihaye mobile*/
/* آیکون دسته‌های منوی ریسپانسیو */
body .rd-mobbar-menu a.rd-menu-icon-image::before {
    transition: filter 0.3s ease;
}

/*
 * سبزشدن آیکون در حالت:
 * هاور روی متن یا فلش
 * فعال‌بودن خود دسته
 * بازبودن منوی کشویی
 */
body .rd-mobbar-menu a.rd-menu-icon-image:hover::before,
body .rd-mobbar-menu li:hover >
a.rd-menu-icon-image::before,
body .rd-mobbar-menu li.rd-menu-current >
a.rd-menu-icon-image::before,
body .rd-mobbar-menu li.rd-mob-drop-active >
a.rd-menu-icon-image::before {
    filter: brightness(0) saturate(100%)
            invert(77%) sepia(48%)
            saturate(550%) hue-rotate(45deg)
            brightness(94%) contrast(88%) !important;
}
/*style range hover-active iconhaye menu dastebandihaye mobile*/



/*style range hover-active iconhaye menu header desktop*/
/* آیکون‌های منوی دسکتاپ، به‌جز «دسته‌بندی محصولات» */
body .rd-col-right > ul > li >
a.rd-menu-icon-image:not([href="#"])::before {
    transition: filter 0.3s ease;
}

/* حالت هاور و فعال */
body .rd-col-right > ul > li >
a.rd-menu-icon-image:not([href="#"]):hover::before,

body .rd-col-right > ul > li.rd-menu-current >
a.rd-menu-icon-image:not([href="#"])::before {
    filter: brightness(0) saturate(100%)
            invert(77%) sepia(48%)
            saturate(550%) hue-rotate(45deg)
            brightness(94%) contrast(88%) !important;
}

/* آیکون «دسته‌بندی محصولات» همیشه بدون تغییر */
body .rd-col-right > ul > li >
a.rd-menu-icon-image[href="#"]::before,
body .rd-col-right > ul > li >
a.rd-menu-icon-image[href="#"]:hover::before {
    filter: none !important;
}
/*style range hover-active iconhaye menu header desktop*/



/*style ejbarie fonte kolle site be fonte ghaleb*/
:root {
    --fara-main-font: var(--rd-fn-fm), rd-iransans, IRANSans, Arial, sans-serif;
}

html,
body {
    font-family: var(--fara-main-font) !important;
}

/*
 * فونت یکپارچه تمام بخش‌های سایت
 * به‌جز نوار مدیریت وردپرس و آیکون‌های Dashicons
 */
body :where(
    p, a, span, div, section, article, aside, main, header, footer,
    nav, ul, ol, li,
    h1, h2, h3, h4, h5, h6,
    table, thead, tbody, tfoot, tr, th, td,
    label, small, strong, b, em, mark, blockquote,
    button, input, textarea, select, option, optgroup,
    fieldset, legend
):not(
    #wpadminbar,
    #wpadminbar *,
    .dashicons,
    .dashicons-before
) {
    font-family: var(--fara-main-font) !important;
}

/* Placeholder فیلدها، به‌جز نوار مدیریت */
body input:not(#wpadminbar input)::placeholder,
body textarea:not(#wpadminbar textarea)::placeholder {
    font-family: var(--fara-main-font) !important;
}
/*style ejbarie fonte kolle site be fonte ghaleb*/
