:root {
	--wd-text-font: iranyekan;
	--wd-text-font-weight: 400;
	--wd-text-color: rgb(118,118,118);
	--wd-text-font-size: 15px;
	--wd-title-font: iranyekan;
	--wd-title-font-weight: 500;
	--wd-title-color: #242424;
	--wd-entities-title-font: iranyekan;
	--wd-entities-title-font-weight: 500;
	--wd-entities-title-color: #333333;
	--wd-entities-title-color-hover: rgb(51 51 51 / 65%);
	--wd-alternative-font: iranyekan;
	--wd-widget-title-font: iranyekan;
	--wd-widget-title-font-weight: 500;
	--wd-widget-title-transform: capitalize;
	--wd-widget-title-color: #333;
	--wd-widget-title-font-size: 16px;
	--wd-header-el-font: iranyekan;
	--wd-header-el-font-weight: 600;
	--wd-header-el-transform: capitalize;
	--wd-header-el-font-size: 14px;
	--wd-otl-style: dotted;
	--wd-otl-width: 2px;
	--wd-primary-color: rgb(125,120,225);
	--wd-alternative-color: rgba(40,40,230,0.2);
	--btn-default-bgcolor: rgb(240,235,255);
	--btn-default-bgcolor-hover: rgb(240,235,255);
	--btn-default-color: rgb(125,120,225);
	--btn-default-color-hover: rgb(125,120,225);
	--btn-accented-bgcolor: rgb(125,120,225);
	--btn-accented-bgcolor-hover: rgb(125,120,225);
	--btn-transform: capitalize;
	--wd-form-brd-width: 1px;
	--notices-success-bg: #459647;
	--notices-success-color: #fff;
	--notices-warning-bg: rgb(244,67,54);
	--notices-warning-color: #fff;
	--wd-link-color: rgb(125,120,225);
	--wd-link-color-hover: rgb(125,120,225);
	--wd-sticky-btn-height: 100px;
}
.wd-age-verify-wrap {
	--wd-popup-width: 500px;
}
.wd-popup.wd-promo-popup {
	background-color: #111111;
	background-image: none;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: left center;
}
.wd-promo-popup-wrap {
	--wd-popup-width: 800px;
}
:is(.woodmart-archive-shop .wd-builder-off,.wd-wishlist-content,.related-and-upsells,.cart-collaterals,.wd-shop-product,.wd-fbt) .wd-products-with-bg, :is(.woodmart-archive-shop .wd-builder-off,.wd-wishlist-content,.related-and-upsells,.cart-collaterals,.wd-shop-product,.wd-fbt) .wd-products-with-bg :is(.wd-product,.wd-cat) {
	--wd-prod-bg:rgb(255,255,255);
	--wd-bordered-bg:rgb(255,255,255);
}
:is(.woodmart-woocommerce-layered-nav, .wd-product-category-filter) .wd-scroll-content {
	max-height: 223px;
}
.wd-page-title .wd-page-title-bg img {
	object-fit: cover;
	object-position: center center;
}
.wd-footer {
	background-color: rgb(255,255,255);
	background-image: none;
}
html .wd-nav-mobile > li > a {
	text-transform: capitalize;
}
html .post.wd-post:not(.blog-design-small) .wd-entities-title {
	font-size: 18px;
}
html .product.wd-cat .wd-entities-title, html .product.wd-cat.cat-design-replace-title .wd-entities-title, html .wd-masonry-first .wd-cat:first-child .wd-entities-title {
	font-size: 16px;
	text-transform: none;
}
:is(.page, .search-no-results, .error404) :is(.wd-page-content, .whb-header) {
	background-color: rgb(246,246,246);
	background-image: none;
}
.woodmart-archive-shop:not(.single-product) :is(.wd-page-content, .whb-header) {
	background-color: rgb(246,246,246);
	background-image: none;
}
.single-product :is(.wd-page-content, .whb-header) {
	background-color: rgb(246,246,246);
	background-image: none;
}
.woodmart-archive-blog :is(.wd-page-content, .whb-header) {
	background-color: rgb(246,246,246);
	background-image: none;
}
html .btn.wd-buy-now-btn {
	background: rgb(107,163,49);
}
html .btn.wd-buy-now-btn:hover {
	background: rgb(95,158,44);
}
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-bg: rgb(255,255,255);
}
.mfp-wrap.wd-popup-quick-view-wrap {
	--wd-popup-width: 920px;
}

@media (max-width: 1024px) {
	:root {
		--wd-sticky-btn-height: 95px;
	}

}

@media (max-width: 768.98px) {
	:root {
		--wd-sticky-btn-height: 60px;
	}

}
:root{
--wd-container-w: 1600px;
--wd-form-brd-radius: 5px;
--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: 12px;
}



.wd-page-title {
background-color: rgb(125,120,225);
}

/* =========================================
   WoodMart Sticky Add to Cart
   Custom Desktop Layout
========================================= */

.wd-sticky-btn .tan-sticky-controls {
    display: none;
}

@media (min-width: 992px) {

    /* ساختار اصلی نوار */
    .wd-sticky-btn .wd-sticky-btn-container {
        --sticky-image-size: 76px;

        display: grid !important;

        grid-template-columns:
            var(--sticky-image-size)
            minmax(100px, 220px)
            max-content
            max-content
            max-content
            minmax(12px, 1fr)
            max-content;

        grid-template-rows: auto;
        align-items: center;
        column-gap: 14px;
        direction: rtl;
    }

    /* آزادسازی عناصر برای Grid */
    .wd-sticky-btn .wd-sticky-btn-content,
    .wd-sticky-btn .wd-sticky-btn-cart {
        display: contents !important;
    }

    /* 1 - تصویر محصول: سمت راست */
    .wd-sticky-btn .wd-sticky-btn-thumbnail {
        grid-column: 1;
        grid-row: 1;
        width: var(--sticky-image-size);
        margin: 0;
    }

    .wd-sticky-btn .wd-sticky-btn-thumbnail img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 10px;
    }

    /* 2 - نام محصول */
    .wd-sticky-btn .wd-sticky-btn-info {
        grid-column: 2;
        grid-row: 1;
        align-self: center;

        min-width: 0;
        max-width: 220px;
        margin: 0;
    }

    .wd-sticky-btn .wd-entities-title {
        font-size: 16px !important;
        line-height: 1.5;
        margin: 0;

        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;

        white-space: normal;
        overflow: hidden;
        overflow-wrap: break-word;
    }

    /* 3 - قیمت محصول */
    .wd-sticky-btn .wd-sticky-btn-cart > .price {
        grid-column: 3;
        grid-row: 1;
        align-self: center;

        font-size: 20px !important;
        font-weight: 600;
        display: block;
        margin: 0;
        white-space: nowrap;
    }

    /* ترتیب عدد و تومان */
    .wd-sticky-btn .price
    .woocommerce-Price-amount bdi {
        display: inline-flex !important;
        flex-direction: row !important;
        direction: rtl !important;
        align-items: baseline;
        white-space: nowrap;
    }

    /* 4 - ویژگی‌ها و تعداد */
    .wd-sticky-btn .tan-sticky-controls {
        grid-column: 4;
        grid-row: 1;

        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        min-width: 0;
        margin: 0;
    }

    /* انتخاب ویژگی‌ها */
    .wd-sticky-btn .tan-sticky-attribute select {
        width: 100px;
        max-width: 100%;
        height: 40px;
        padding: 0 10px;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: #fff;
        font-size: 13px;
    }
	
/* فلش انتخابگر ویژگی‌ها */
.wd-sticky-btn .tan-sticky-attribute {
    position: relative;
}

/* استایل انتخابگر */
.wd-sticky-btn .tan-sticky-attribute select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: none !important;
    direction: rtl;
    text-align: right;
    padding-left: 32px !important;
    padding-right: 12px !important;
    cursor: pointer;
}

/* فلش سفارشی بنفش */
.wd-sticky-btn .tan-sticky-attribute::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #8746D2;
    border-bottom: 2px solid #8746D2;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

    /* تعداد */
    .wd-sticky-btn .tan-sticky-quantity {
        display: flex;
        align-items: center;

        height: 40px;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
        direction: ltr;
        flex-shrink: 0;
    }

    .wd-sticky-btn .tan-sticky-quantity button {
        width: 28px;
        height: 38px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .wd-sticky-btn .tan-sticky-quantity input {
        width: 35px;
        height: 38px;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        text-align: center;
        -moz-appearance: textfield;
        appearance: textfield;
    }

    .wd-sticky-btn .tan-sticky-quantity
    input::-webkit-inner-spin-button,
    .wd-sticky-btn .tan-sticky-quantity
    input::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    /* 5 - دکمه افزودن به سبد خرید */
    .wd-sticky-btn .wd-sticky-add-to-cart {
        grid-column: 5;
        grid-row: 1;
        align-self: center;
				min-width: 300px;
        max-width: 300px;
        margin: 0;
        white-space: nowrap;
    }

    /* 6 - مقایسه و علاقه‌مندی سمت چپ */
    .wd-sticky-btn .wd-sticky-btn-actions {
        grid-column: 7;
        grid-row: 1;

        display: flex;
        align-items: center;
        justify-content: flex-end;
        justify-self: end;

        direction: rtl;
        gap: 16px;
        margin: 0;
        white-space: nowrap;
    }

}

/* فقط صفحه علاقه‌مندی‌ها */
body.page-id-31 .wd-my-account-sidebar {
    display: none !important;
}

/* حذف ساختار دو ستونه حساب کاربری */
body.page-id-31 .woocommerce-my-account-wrapper {
    display: block !important;
    width: 100% !important;
}

/* علاقه‌مندی‌ها تمام عرض شود */
body.page-id-31 .woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.page-id-31 .woocommerce-my-account-wrapper > div {
    width: 100% !important;
    max-width: 100% !important;
}

/* 5 ستون در صفحه علاقه‌مندی‌ها */
body.page-id-31 .wd-wishlist-content .wd-products {
    --wd-col-lg: 5 !important;
	  --wd-col-md: 3 !important;
    --wd-col-sm: 2 !important;
}


/* ==========================================
   2TAN - MOBILE STICKY ADD TO CART
   WoodMart | Final Mobile CSS
========================================== */

@media (max-width: 991px) {

    /* --------------------------------------
       1. Main Sticky Bar
    -------------------------------------- */

    body.single-product .wd-sticky-btn {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        padding: 0 !important;
        margin: 0;

        background: #ffffff !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);

        overflow: visible !important;
        box-sizing: border-box;
    }

    /* --------------------------------------
       2. Main Grid Container
    -------------------------------------- */

    .wd-sticky-btn .wd-sticky-btn-container {
        display: grid !important;

        grid-template-columns:
            repeat(12, minmax(0, 1fr));

        grid-template-rows:
            minmax(22px, auto)
            minmax(22px, auto)
            46px;

        column-gap: 6px;
        row-gap: 8px;

        align-items: center;
        direction: rtl;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        padding: 12px 14px
            calc(12px + env(safe-area-inset-bottom, 0px))
            !important;

        margin: 0 !important;
        background: #ffffff !important;
        overflow: visible !important;
        box-sizing: border-box;
    }

    /* --------------------------------------
       3. Unwrap Grid Elements
    -------------------------------------- */

    .wd-sticky-btn .wd-sticky-btn-content,
    .wd-sticky-btn .wd-sticky-btn-cart,
    .wd-sticky-btn .tan-sticky-controls {
        display: contents !important;
    }

    /* --------------------------------------
       4. Hide Product Image
    -------------------------------------- */

    .wd-sticky-btn .wd-sticky-btn-thumbnail {
        display: none !important;
    }

    /* --------------------------------------
       5. Product Title
       Top Right - One Line
    -------------------------------------- */

    .wd-sticky-btn .wd-sticky-btn-info {
        grid-column: 1 / 9;
        grid-row: 1;

        display: block !important;
        align-self: end;
        justify-self: stretch;

        width: 100% !important;
        min-width: 0;
        max-width: 100% !important;

        padding: 0 !important;
        margin: 0 !important;

        direction: rtl !important;
        text-align: right !important;
    }

    .wd-sticky-btn .wd-entities-title {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        font-size: 14px !important;
        font-weight: 600;
        line-height: 1.5;

        direction: rtl !important;
        text-align: right !important;

        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    /* --------------------------------------
       6. Product Price
       Below Product Title
    -------------------------------------- */

    .wd-sticky-btn .wd-sticky-btn-cart > .price {
        grid-column: 1 / 9;
        grid-row: 2;

        display: block !important;
        align-self: start;
        justify-self: stretch;

        width: 100%;
        min-width: 0;

        font-size: 14px !important;
        font-weight: 600;
        line-height: 1.5;
        color: #8746D2;

        direction: rtl !important;
        text-align: right !important;
        white-space: nowrap;

        padding: 0 !important;
        margin: 0 !important;
    }

    /* Price Number + Currency Order */

    .wd-sticky-btn .price
    .woocommerce-Price-amount bdi {
        display: inline-flex !important;
        flex-direction: row !important;
        direction: rtl !important;
        align-items: baseline;
        white-space: nowrap;
    }

    /* --------------------------------------
       7. Product Color Selector
       Top Left
    -------------------------------------- */

    .wd-sticky-btn .tan-sticky-attribute {
        grid-column: 9 / 13;
        grid-row: 1 / 3;

        position: relative;
        display: block;

        width: 100%;
        min-width: 0;

        align-self: center;
        justify-self: stretch;

        margin: 0;
        padding: 0;
    }

    .wd-sticky-btn .tan-sticky-attribute select {
        display: block !important;

        width: 100% !important;
        min-width: 0;
        max-width: 100%;
        height: 44px !important;
        min-height: 44px !important;

        padding: 0 12px 0 32px !important;

        border: 1px solid #dddddd;
        border-radius: 10px;

        background-color: #ffffff !important;
        background-image: none !important;

        font-size: 13px;
        color: #333333;

        direction: rtl;
        text-align: right;

        appearance: none !important;
        -webkit-appearance: none !important;

        box-shadow: none !important;
        cursor: pointer;
    }

    /* Custom Purple Dropdown Arrow */

    .wd-sticky-btn .tan-sticky-attribute::after {
        content: "";

        position: absolute;
        left: 14px;
        top: 50%;

        width: 7px;
        height: 7px;

        border-right: 2px solid #8746D2;
        border-bottom: 2px solid #8746D2;

        transform: translateY(-70%) rotate(45deg);

        pointer-events: none;
    }

    /* --------------------------------------
       8. Add To Cart Button
       Bottom Right - 2/3 Width
    -------------------------------------- */

    .wd-sticky-btn .wd-sticky-add-to-cart {
        grid-column: 1 / 9;
        grid-row: 3;

        display: flex !important;
        align-items: center;
        justify-content: center;

        width: 100% !important;
        max-width: none !important;
        min-width: 0;

        height: 46px !important;
        min-height: 46px !important;

        padding: 0 8px !important;
        margin: 0 !important;

        background-color: #8746D2 !important;
        color: #ffffff !important;

        border: none !important;
        border-radius: 12px !important;

        font-size: 14px !important;
        font-weight: 600;
        line-height: 1.4;
        text-align: center;

        white-space: nowrap;
        overflow: hidden;

        box-shadow: none !important;
        cursor: pointer;
    }

    .wd-sticky-btn .wd-sticky-add-to-cart:hover {
        background-color: #7638BD !important;
        color: #ffffff !important;
    }

    /* --------------------------------------
       9. Quantity Selector
       Bottom Left - 1/3 Width
    -------------------------------------- */

    .wd-sticky-btn .tan-sticky-quantity {
        grid-column: 9 / 13;
        grid-row: 3;

        display: flex !important;
        align-items: center;
        justify-content: space-between;

        width: 100%;
        min-width: 0;

        height: 46px !important;
        min-height: 46px !important;

        padding: 0;
        margin: 0;

        border: 1px solid #dddddd;
        border-radius: 10px;

        background-color: #ffffff;
        direction: ltr;

        overflow: hidden;
        box-sizing: border-box;
    }

    /* Plus / Minus Buttons */

    .wd-sticky-btn .tan-sticky-quantity button {
        display: flex;
        align-items: center;
        justify-content: center;

        flex: 0 0 28px;
        width: 28px;
        min-width: 0;
        height: 44px;

        padding: 0 !important;
        margin: 0 !important;

        border: none !important;
        border-radius: 0 !important;

        background: transparent !important;
        color: #333333 !important;

        font-size: 18px;
        font-weight: 500;

        box-shadow: none !important;
        cursor: pointer;
    }

    /* Quantity Input */

    .wd-sticky-btn .tan-sticky-quantity input {
        flex: 1 1 0;

        width: 0 !important;
        min-width: 0;
        height: 44px !important;

        padding: 0 !important;
        margin: 0 !important;

        border: none !important;
        border-radius: 0 !important;

        background: transparent !important;
        box-shadow: none !important;

        color: #333333;
        font-size: 14px;
        font-weight: 500;

        text-align: center;
        direction: ltr;

        -moz-appearance: textfield;
        appearance: textfield;
    }

    /* Hide Native Number Arrows */

    .wd-sticky-btn .tan-sticky-quantity
    input::-webkit-inner-spin-button,
    .wd-sticky-btn .tan-sticky-quantity
    input::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    /* --------------------------------------
       10. Hide Wishlist & Compare
    -------------------------------------- */

    .wd-sticky-btn .wd-sticky-btn-actions {
        display: none !important;
    }

    /* --------------------------------------
       11. Scroll To Top Button Position
    -------------------------------------- */

    body.single-product
    .scrollToTop.wd-sticky-btn-shown {
        bottom: calc(
            200px + env(safe-area-inset-bottom, 0px)
        ) !important;
    }

}

/* ==========================================
   END MOBILE STICKY ADD TO CART
========================================== */


/* =====================================
   2TAN - Sticky Add to Cart Loading
   Desktop + Mobile
===================================== */

/* حالت پردازش دکمه */
.wd-sticky-btn .wd-sticky-add-to-cart.tan-sticky-loading {
    position: relative !important;
    color: transparent !important;
    pointer-events: none !important;
    cursor: wait !important;
}

/* مخفی کردن آیکن قبلی دکمه */
.wd-sticky-btn .wd-sticky-add-to-cart.tan-sticky-loading::before {
    opacity: 0 !important;
}

/* اسپینر سفید */
.wd-sticky-btn .wd-sticky-add-to-cart.tan-sticky-loading::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;

    top: 50% !important;
    left: 50% !important;

    width: 22px !important;
    height: 22px !important;
    box-sizing: border-box !important;

    margin: -11px 0 0 -11px !important;

    border: 2px solid rgba(255,255,255,0.35) !important;
    border-top-color: #ffffff !important;
    border-radius: 50% !important;

    background: transparent !important;
    opacity: 1 !important;

    animation: tanStickySpin 0.7s linear infinite !important;
    pointer-events: none;
    z-index: 2;
}

/* انیمیشن چرخش */
@keyframes tanStickySpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* حذف ضربدر قرمز اضافی در تمام بخش‌های سایت */
a.remove-item-button {
    display: none !important;
}


/* کلیک‌پذیر شدن تمام سطح کارت‌های محصول */

/* محدود به کارت‌های سفارشی */
.wd-product:has(.wp-block-wd-container.wd-7e02d8fc) {
    cursor: pointer;
}

/* جلوه ظاهری هنگام قرارگیری موس روی کارت */
@media (hover: hover) {
    .wd-product:has(.wp-block-wd-container.wd-7e02d8fc):hover {
        transition: transform 0.2s ease;
    }
}



/* 2TAN - Product Card Hover Expansion */

@media (hover: hover) and (min-width: 768px) {

    /* کارت محصول */
    .wd-product:has(.wd-7e02d8fc) {
        position: relative;
        z-index: 1;
        overflow: visible !important;
    }

    /* هنگام هاور بالاتر از کارت‌های دیگر */
    .wd-product:has(.wd-7e02d8fc):hover,
    .wd-product:has(.wd-7e02d8fc):focus-within {
        z-index: 50;
    }

    /* کانتینر کارت */
    .wd-product:has(.wd-7e02d8fc) > .wd-product-wrapper {
        position: relative;
        overflow: visible !important;
        background: #fff;
        border-radius: 12px;
    }

    /* ادامه سفید کارت در پایین */
    .wd-product:has(.wd-7e02d8fc) > .wd-product-wrapper::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 60px;
				margin-top: -10px;
        background: #fff;
        border-radius: 0 0 12px 12px;
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility .25s ease;
    }

    /* دکمه مشاهده محصول */
    .wd-product:has(.wd-7e02d8fc) .wp-block-wd-button {
        position: absolute !important;
        top: 100%;
        left: 14px;
        right: 14px;
        width: auto !important;
        height: 45px !important;
        margin: 0 0 8px !important;
        z-index: 2;

        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);

        transition:
            opacity .25s ease,
            transform .25s ease,
            visibility .25s ease;
    }

    /* ظاهر شدن پس‌زمینه و دکمه */
    .wd-product:has(.wd-7e02d8fc):hover
    > .wd-product-wrapper::after,
    .wd-product:has(.wd-7e02d8fc):focus-within
    > .wd-product-wrapper::after {
        opacity: 1;
        visibility: visible;
    }

    .wd-product:has(.wd-7e02d8fc):hover
    .wp-block-wd-button,
    .wd-product:has(.wd-7e02d8fc):focus-within
    .wp-block-wd-button {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}


/* سفید کردن متن و آیکن پیام خطای ووکامرس */

.wd-wc-notices .woocommerce-error,
.wd-wc-notices .woocommerce-error li,
.wd-wc-notices .woocommerce-error a,
.wd-wc-notices .woocommerce-error::before,
.wd-wc-notices .woocommerce-error li::before {
    color: #FFFFFF !important;
}