:root {
	--wd-cat-brd-radius: 50px;
	--wd-text-font: IRansansX;
	--wd-text-font-weight: 400;
	--wd-text-color: rgb(118,118,118);
	--wd-text-font-size: 14px;
	--wd-title-font: IRansansX;
	--wd-title-font-weight: 600;
	--wd-title-color: rgb(36,36,36);
	--wd-entities-title-font: IRansansX;
	--wd-entities-title-font-weight: 600;
	--wd-entities-title-transform: none;
	--wd-entities-title-color: #333333;
	--wd-entities-title-color-hover: rgb(51 51 51 / 65%);
	--wd-alternative-font: IRansansX;
	--wd-widget-title-font: IRansansX;
	--wd-widget-title-font-weight: 600;
	--wd-widget-title-transform: uppercase;
	--wd-widget-title-color: #333;
	--wd-widget-title-font-size: 15px;
	--wd-header-el-font: IRansansX;
	--wd-header-el-font-weight: 700;
	--wd-header-el-transform: uppercase;
	--wd-header-el-font-size: 13px;
	--wd-otl-style: dotted;
	--wd-otl-width: 2px;
	--wd-primary-color: rgb(45,90,138);
	--wd-alternative-color: rgb(251,188,52);
	--btn-default-bgcolor: rgb(237,26,68);
	--btn-default-bgcolor-hover: rgb(208,23,60);
	--btn-accented-transform: none;
	--btn-accented-bgcolor: rgb(237,26,68);
	--btn-accented-bgcolor-hover: rgb(208,23,60);
	--btn-transform: none;
	--wd-form-brd-width: 1px;
	--notices-success-bg: rgb(69,150,71);
	--notices-success-color: #fff;
	--notices-warning-bg: rgb(224,178,82);
	--notices-warning-color: rgb(255,255,255);
	--wd-link-color: rgb(51,51,51);
	--wd-link-color-hover: #242424;
}
.wd-age-verify-wrap {
	--wd-popup-width: 500px;
}
.wd-popup.wd-promo-popup {
	background-image: none;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: left center;
}
.wd-promo-popup-wrap {
	--wd-popup-width: 800px;
}
.wd-page-title .wd-page-title-bg img {
	object-fit: cover;
}
.wd-footer {
	background-image: none;
	background-repeat: no-repeat;
}
html .wd-carousel .wd-carousel-item .post.wd-post .wd-entities-title {
	font-size: 16px;
}
:is(.page, .search-no-results, .error404) :is(.wd-page-content, .whb-header) {
	background-image: none;
	background-repeat: repeat;
}
.woodmart-archive-shop:not(.single-product) :is(.wd-page-content, .whb-header) {
	background-image: none;
	background-repeat: repeat;
}
.single-product :is(.wd-page-content, .whb-header) {
	background-image: none;
	background-repeat: repeat;
}
.woodmart-archive-blog :is(.wd-page-content, .whb-header) {
	background-image: none;
	background-repeat: repeat;
}
.single-post :is(.wd-page-content, .whb-header) {
	background-image: none;
	background-repeat: repeat;
}
.woodmart-archive-portfolio :is(.wd-page-content, .whb-header) {
	background-image: none;
	background-repeat: repeat;
}
body, [class*=color-scheme-light], [class*=color-scheme-dark], .wd-search-form[class*="wd-header-search-form"] form.searchform, .wd-el-search .searchform {
	--wd-form-color: rgb(166,168,173);
	--wd-form-placeholder-color: rgb(166,168,173);
	--wd-form-brd-color: rgb(225,225,227);
	--wd-form-brd-color-focus: rgb(225,225,227);
	--wd-form-bg: #FFFFFF	;
}
.wd-nav-arrows.wd-pos-sep:not(:where(.wd-custom-style)) {
	--wd-arrow-size: 40px;
	--wd-arrow-icon-size: 16px;
	--wd-arrow-offset-h: 20px;
	--wd-arrow-color: rgb(237,26,68);
	--wd-arrow-color-hover: rgb(208,23,60);
	--wd-arrow-bg-dis: rgb(255,255,255);
	--wd-arrow-radius: 10px;
	--wd-arrow-shadow: 0px 0px 0px 0px rgba(255,255,255,0);
}
.wd-nav-pagin-wrap:not(.wd-custom-style) {
	--wd-pagin-bg: rgb(237,26,68);
	--wd-pagin-bg-hover: rgb(208,23,60);
}
.wd-nav-scroll {
	--wd-nscroll-height: 3px;
	--wd-nscroll-bg: rgb(237,26,68);
	--wd-nscroll-drag-bg-hover: rgb(208,23,60);
}
.mfp-wrap.wd-popup-quick-view-wrap {
	--wd-popup-width: 920px;
}
.woocommerce-product-gallery {
	--wd-gallery-gap: 20px;
}

@media (max-width: 1024px) {
	.woocommerce-product-gallery {
		--wd-gallery-gap: 20px;
	}

}

@media (max-width: 768.98px) {
	.woocommerce-product-gallery {
		--wd-gallery-gap: 10px;
	}

}
:root{
--wd-container-w: 1720px;
--wd-form-brd-radius: 30px;
--btn-default-color: #fff;
--btn-default-color-hover: #fff;
--btn-accented-color: #fff;
--btn-accented-color-hover: #fff;
--btn-default-brd-radius: 5px;
--btn-default-box-shadow: none;
--btn-default-box-shadow-hover: none;
--btn-accented-brd-radius: 5px;
--btn-accented-box-shadow: none;
--btn-accented-box-shadow-hover: none;
--wd-brd-radius: 8px;
}

@media (min-width: 1720px) {
section.elementor-section.wd-section-stretch > .elementor-container {
margin-left: auto;
margin-right: auto;
}
}


.wd-page-title {
background-color: rgb(45,90,138);
}

/* ═══════════════════════════════════════════════════════════
   ام‌دی‌اف بازار — استایل‌های سفارشی سراسری (نسخه نهایی)
   ═══════════════════════════════════════════════════════════

   فهرست بخش‌ها:
    ۰) توکن‌های طراحی (رنگ برند + پالت چوبی + گردی)
    ۱) باکس «توضیحات بیشتر» صفحه محصول
    ۲) توضیحات دسته‌بندی (باکس + ادامه‌مطلب + تایپوگرافی + رسپانسیو)
    ۳) باکس ویدئوی نمونه
    ۴) تاریخ آخرین بروزرسانی
    ۵) هم‌ارتفاعی کارت‌های محصول
    ۶) زیردسته‌های صفحه دسته (تبلت)
    ۷) ریست لمس/فوکوس
    ۸) وضعیت قیمت (در حال قیمت‌گذاری / ناموجود)
    ۹) قیمت کارت محصول آرشیو (تبلت)
   ۱۰) عنوان اسلایدرها (تبلت/موبایل)
   ۱۱) فاصله محصولات مرتبط (تبلت)
   ۱۲) عنوان صفحه محصول (تبلت)
   ۱۳) فرم ورود ووکامرس
   ═══════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════
   ۰) توکن‌های طراحی — تغییر هویت سایت فقط از همین‌جا
   ═══════════════════════════════════════════ */
:root {
    /* رنگ برند: rgb(255,112,67) */
    --mdf-accent:       #FF7043;
    --mdf-accent-dark:  #E64A19;   /* هاور و گرادیان دکمه */
    --mdf-accent-text:  #C2410C;   /* لینک‌ها — تیره‌تر برای خوانایی */
    --mdf-accent-soft:  #FFF3EE;
    --mdf-accent-rgb:   255, 112, 67;

    /* پالت چوبی — باکس‌های کرم MDF */
    --mdf-wood:         #C4956A;
    --mdf-wood-bg:      #F8F5EF;
    --mdf-wood-bg-rgb:  248, 245, 239;
    --mdf-wood-border:  #EADFCE;

    /* خنثی */
    --mdf-ink:          #2B2521;
    --mdf-muted:        #8A8178;
    --mdf-border:       #ECEAE7;

    /* گردی استاندارد سایت */
    --mdf-radius:       8px;
}


/* ═══════════════════════════════════════════
   ۱) باکس «توضیحات بیشتر» صفحه محصول
   ═══════════════════════════════════════════ */

.wd-more-desc .wd-more-desc-inner {
    line-height: 22px !important;
}


/* ═══════════════════════════════════════════
   ۲) توضیحات دسته‌بندی — رسپانسیو + ادامه مطلب
   ═══════════════════════════════════════════ */

/* ── ۲.۱) باکس اصلی ───────────────────────── */
.wd-term-desc,
.wd-term-desc.wd-entry-content,
.term-description {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;

    background: var(--mdf-wood-bg) !important;
    border: 1px solid var(--mdf-wood-border) !important;
    border-radius: var(--mdf-radius) !important;

    padding: 26px 30px !important;
    margin-top: 30px !important;
    margin-bottom: 30px !important;

    color: #3d3225 !important;
    font-size: 14px !important;
    line-height: 2 !important;

    text-align: justify !important;
    text-align-last: right !important;

    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    /* متغیر ارتفاع برای رسپانسیو */
    --mdf-desc-max-height: 280px;
    max-height: var(--mdf-desc-max-height) !important;
    overflow: hidden !important;

    transition: max-height .5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ── ۲.۲) حالت باز ────────────────────────── */
.wd-term-desc.wd-description-open,
.term-description.wd-description-open {
    max-height: 5000px !important; /* Fallback */
    padding-bottom: 26px !important;
}

/* ── ۲.۳) محو شدن انتهای متن — فقط حالت بسته ── */
.wd-term-desc:not(.wd-description-open)::after,
.term-description:not(.wd-description-open)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(var(--mdf-wood-bg-rgb), 0),
        rgba(var(--mdf-wood-bg-rgb), .75) 45%,
        var(--mdf-wood-bg) 100%
    );
}

/* ── ۲.۴) عناوین ──────────────────────────── */
.wd-term-desc h2,
.wd-term-desc h3,
.wd-term-desc .entry-title,
.term-description h2,
.term-description h3 {
    color: var(--mdf-ink) !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.7 !important;
    margin: 0 0 18px 0 !important;
    padding-bottom: 9px !important;
    border-bottom: 2px solid var(--mdf-wood) !important;
    display: inline-block !important;
    text-align: right !important;
}

/* ── ۲.۵) پاراگراف‌ها ──────────────────────── */
.wd-term-desc p,
.term-description p {
    margin: 0 0 13px 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    text-align: inherit !important;
    text-align-last: inherit !important;
}

/* ── ۲.۶) لینک‌ها ─────────────────────────── */
.wd-term-desc a,
.term-description a {
    color: var(--mdf-accent-text) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color .2s ease !important;
}
.wd-term-desc a:hover,
.term-description a:hover {
    color: #9A3412 !important;
}

/* ── ۲.۷) لیست‌ها ─────────────────────────── */
.wd-term-desc ul,
.term-description ul {
    padding-right: 22px !important;
    margin: 5px 0 14px 0 !important;
    text-align: right !important;
}
.wd-term-desc ol,
.term-description ol {
    padding-right: 25px !important;
    text-align: right !important;
}
.wd-term-desc li,
.term-description li {
    margin-bottom: 7px !important;
    line-height: 1.9 !important;
}
.wd-term-desc li::marker,
.term-description li::marker {
    color: var(--mdf-wood) !important;
}

/* ── ۲.۸) دکمه «ادامه مطلب» ────────────────── */
.mdf-description-more {
    position: absolute !important;
    right: 50% !important;
    bottom: 13px !important;
    transform: translateX(50%) !important;
    z-index: 5 !important;

    border: 1px solid var(--mdf-accent-text) !important;
    border-radius: var(--mdf-radius) !important;
    background: var(--mdf-wood-bg) !important;
    color: var(--mdf-accent-text) !important;
    padding: 6px 18px !important;

    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.7 !important;

    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.04) !important;

    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease !important;
}
.mdf-description-more:hover {
    background: var(--mdf-accent-dark) !important;
    color: #fff !important;
    transform: translateX(50%) translateY(-2px) !important;
}

/* دکمه در حالت باز: زیر متن، وسط‌چین */
.wd-term-desc.wd-description-open .mdf-description-more,
.term-description.wd-description-open .mdf-description-more {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    display: table !important;
    margin: 18px auto 0 !important;
}
.wd-term-desc.wd-description-open .mdf-description-more:hover,
.term-description.wd-description-open .mdf-description-more:hover {
    transform: translateY(-2px) !important;
}

/* مخفی کردن Fade در حالت باز */
.wd-term-desc.wd-description-open::after,
.term-description.wd-description-open::after {
    display: none !important;
}

/* ── ۲.۹) رسپانسیو ────────────────────────── */

/* دسکتاپ */
@media (min-width: 1025px) {
    .wd-term-desc,
    .wd-term-desc.wd-entry-content,
    .term-description {
        padding: 28px 32px !important;
        --mdf-desc-max-height: 285px;
    }
}

/* تبلت */
@media (min-width: 769px) and (max-width: 1024px) {
    .wd-term-desc,
    .wd-term-desc.wd-entry-content,
    .term-description {
        padding: 23px 25px !important;
        margin: 25px 0 !important;
        --mdf-desc-max-height: 255px;
    }
    .wd-term-desc h2, .wd-term-desc h3,
    .term-description h2, .term-description h3 {
        font-size: 18px !important;
    }
}

/* موبایل */
@media (max-width: 768px) {
    .wd-term-desc,
    .wd-term-desc.wd-entry-content,
    .term-description {
        padding: 19px 20px !important;
        margin: 20px 0 !important;
        border-radius: var(--mdf-radius) !important;
        font-size: 13px !important;
        line-height: 1.95 !important;
        --mdf-desc-max-height: 230px;
    }
    .wd-term-desc h2, .wd-term-desc h3,
    .term-description h2, .term-description h3 {
        font-size: 17px !important;
        margin-bottom: 14px !important;
        padding-bottom: 7px !important;
    }
    .wd-term-desc p, .term-description p {
        line-height: 1.95 !important;
        margin-bottom: 11px !important;
    }
    .mdf-description-more {
        font-size: 12px !important;
        padding: 5px 15px !important;
        bottom: 11px !important;
    }
}


/* ═══════════════════════════════════════════
   ۳) باکس «مشاهده ویدئوی نمونه»
   ═══════════════════════════════════════════ */

.cat-sample-video-wrap {
    width: 100%;
    margin: 18px 0 20px;
}

.cat-sample-video-link {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px 16px;
    border-radius: var(--mdf-radius);

    border: 1px solid rgba(var(--mdf-accent-rgb), .18);
    background: #FFF9F6;

    text-decoration: none;
    transition: all .2s ease;
}

.cat-sample-video-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--mdf-radius);
    flex: 0 0 34px;

    display: grid;
    place-items: center;

    background: rgba(var(--mdf-accent-rgb), .12);
    color: var(--mdf-accent-dark);
}

.cat-sample-video-icon svg {
    display: block;
    width: 12px;
    height: 12px;
}

.cat-sample-video-text {
    color: var(--mdf-ink);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
}

.cat-sample-video-link:hover {
    border-color: rgba(var(--mdf-accent-rgb), .40);
    background: var(--mdf-accent-soft);
    transform: translateY(-1px);
}

/* تبلت */
@media (max-width: 1024px) {
    .cat-sample-video-text {
        font-size: 14px;
    }
    .cat-sample-video-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }
    .cat-sample-video-link {
        padding: 12px 14px;
    }
}

/* موبایل */
@media (max-width: 600px) {
    .cat-sample-video-wrap {
        margin-bottom: 16px;
    }
    .cat-sample-video-text {
        font-size: 13px;
    }
    .cat-sample-video-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }
    .cat-sample-video-link {
        padding: 11px 12px;
        gap: 10px;
    }
}


/* ═══════════════════════════════════════════
   ۴) تاریخ آخرین بروزرسانی
   ═══════════════════════════════════════════ */

/* لیست محصولات (آرشیو) — وسط، پایین کارت */
.mgp-last-update-loop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: auto !important;
    margin-bottom: 0;
    font-size: 12px;
    color: #777;
    line-height: 1.8;
    border-top: 1px solid #eee;
    padding-top: 8px;
    padding-bottom: 0;
}

/* صفحه محصول — زیر قیمت */
.mgp-last-update-single {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    margin-top: 10px;
    font-size: 12px;
    color: #777;
    line-height: 1.8;
}

.mgp-last-update svg {
    flex-shrink: 0;
    opacity: 0.7;
}


/* ═══════════════════════════════════════════
   ۵) هم‌ارتفاعی کارت‌های محصول در گرید
   ═══════════════════════════════════════════ */

.product-grid-item {
    height: 100%;
}

.product-grid-item .product-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}


/* ═══════════════════════════════════════════
   ۶) زیردسته‌های صفحه دسته — تبلت
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .mdf-subcat-wrapper {
        width: calc(100% + 30px);
        margin: 0 -15px 10px;
        box-sizing: border-box;
    }
}


/* ═══════════════════════════════════════════
   ۷) ریست کلی — حذف هایلایت لمسی و خط فوکوس
   ═══════════════════════════════════════════ */

a,
button,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
    outline: none;
}


/* ═══════════════════════════════════════════
   ۸) وضعیت قیمت: در حال قیمت‌گذاری / ناموجود
   ═══════════════════════════════════════════ */

.mdf-price-pending,
.mdf-price-outofstock {
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
}

/* در حال قیمت‌گذاری */
.mdf-price-pending {
    color: var(--mdf-accent-dark);
}

/* ناموجود */
.mdf-price-outofstock {
    color: #777;
}

/* تبلت */
@media (max-width: 1024px) {
    .mdf-price-pending,
    .mdf-price-outofstock {
        font-size: 14px;
    }
}

/* موبایل */
@media (max-width: 767px) {
    .mdf-price-pending,
    .mdf-price-outofstock {
        font-size: 12px;
        font-weight: 500;
    }
}


/* ═══════════════════════════════════════════
   ۹) قیمت کارت محصول آرشیو — تبلت
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .product-element-bottom {
        font-size: 12px !important;
    }
}


/* ═══════════════════════════════════════════
   ۱۰) عنوان اسلایدرها — تبلت / موبایل
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .wd-el-title.title.slider-title.element-title {
        font-size: 17px !important;
    }
}

@media (max-width: 767px) {
    .wd-el-title.title.slider-title.element-title {
        font-size: 15px !important;
    }
}


/* ═══════════════════════════════════════════
   ۱۱) فاصله بخش «محصولات مرتبط» — تبلت
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .container.related-and-upsells {
        margin-bottom: 32px;
    }
}


/* ═══════════════════════════════════════════
   ۱۲) عنوان صفحه محصول — تبلت
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .product_title.entry-title.wd-entities-title {
        font-size: 16px !important;
    }
}

