/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/*
از اینجا انتقال داده شده ی css از rtl.css است
*/
.product-tabs-wrapper .tabs-layout-tabs>.wd-nav-tabs-wrapper {
    margin-top: calc(var(--wd-single-spacing) * -1 - 1px);
    margin-bottom: 30px;
    text-align: right;
}
.wd-hover-tiled .wd-product-countdown {
    direction:ltr;
}
.summary-inner .wd-product-countdown {
    margin-bottom: 10px;
    direction: ltr;
    text-align: right;
}
.shop_attributes tr {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.wd-single-brands.wd-layout-inline .wd-product-brands>*:not(:last-child) {
    margin-top: 10px;
}

.wd-visits-count-number:before {
    margin-inline-start: 7px;
}
p.stock.wd-style-with-bg.in-stock span:before {
    margin-inline-end: 5px;
    margin-inline-start: 5px;
}
.wd-close-side {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.scrollToTop:after {
	color: #ff6900;
}

/*
تغیییر رنگ و استایل نقل قول برای استفاده در مقالات
*/
blockquote {
	
    margin-bottom: 20px;
    padding-right: 8px;
    border-right: 5px solid #f50000d9;
    text-align: right;
    font-size: 95%;
    --wd-tags-mb: 10px;
}

/* حذف دکمه افزودن به سبد خرید در صفحات محصول
*/
.customm-contact-button {
    background-color: transparent !important;
    color: #ff6900 !important;
    padding: 10px 20px !important;
    text-decoration: none !important;
    border: 2px solid #ff6900 !important;
    border-radius: 5px !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.customm-contact-button:hover {
    background-color: #ff6900 !important;
    color: #ffffff !important;
}

.custom-category-button {
    background-color: transparent !important;
    color: #0073aa !important;
    padding: 10px 20px !important;
    text-decoration: none !important;
    border: 2px solid #0073aa !important;
    border-radius: 5px !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.custom-category-button:hover {
    background-color: #0073aa !important;
    color: #ffffff !important;
}

/* تغییر رنگ زمینه و فونت قسمت کپی رایت */
.copyrights-wrapper {
    background-color: #333; /* رنگ پس‌زمینه تیره */
    color: #fff;           /* رنگ متن روشن */
    padding: 10px;        /* ایجاد فاصله داخلی */
}
/* استایل توضیحات دسته بندی */
.term-description {
    max-height: 600px; /* ارتفاع ثابت کادر */
    overflow-y: auto; /* اسکرول عمودی */
    overflow-x: hidden; /* بدون اسکرول افقی */
    padding: 20px; /* فاصله داخلی */
    border: 1px solid #ddd; /* حاشیه دور کادر */
    background-color: #f9f9f9; /* رنگ پس‌زمینه */
    direction: rtl; /* راست‌چین کردن */
    text-align: right; /* تراز متن به راست */
}

/* استایل‌دهی به اسکرول بار */
.term-description::-webkit-scrollbar {
    width: 5px; /* عرض اسکرول بار */
}

.term-description::-webkit-scrollbar-track {
    background: #c6c6c6; /* رنگ پس‌زمینه مسیر اسکرول */
    border-radius: 5px; /* خمیدگی گوشه‌های مسیر */
}

.term-description::-webkit-scrollbar-thumb {
    background: #ff6900; /* رنگ ضامن نارنجی */
    border-radius: 2px; /* خمیدگی گوشه‌های ضامن */
}

.wd-btn-arrow .wd-arrow-inner {
    border-radius: 10px; /* خمیدگی گوشه‌های کادر فلش چپ و راست */
}
/* تست برای میز عناوین مقالات */
html{
    scroll-behavior:smooth;
}

h2[id],
h3[id],
h4[id]{
    scroll-margin-top:120px;
}

/* ایجاد فاصله توضیح کوتاه از شبکه محصولات */
.tax-product_cat .wd-term-desc.wd-entry-content,
.tax-pa_brand .wd-term-desc.wd-entry-content,
.tax-product_tag .wd-term-desc.wd-entry-content {
    margin-bottom: 40px;
}
