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

/* ==================================================
   دکمه تماس بگیرید
================================================== */
.contact-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    background-color: var(--elementor-primary-color);
    color: var(--elementor-primary-text-color);
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-button:hover {
    background-color: var(--elementor-primary-color-hover);
    color: var(--elementor-primary-text-color);
}

/* ==================================================
   استایل اسلایدر و تصاویر
================================================== */
.elementor-widget-slider img,
.elementor-widget-swiper img,
.elementor-widget-image-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ریسپانسیو اسلایدر */
@media (min-width: 1025px) {
    .elementor-widget-slider,
    .elementor-widget-swiper,
    .elementor-widget-image-carousel {
        height: 700px;
    }
}
@media (max-width: 1024px) {
    .elementor-widget-slider,
    .elementor-widget-swiper,
    .elementor-widget-image-carousel {
        height: 450px;
    }
}
@media (min-width: 415px) and (max-width: 480px) {
    .elementor-widget-slider,
    .elementor-widget-swiper,
    .elementor-widget-image-carousel {
        height: 320px;
    }
}
@media (min-width: 376px) and (max-width: 414px) {
    .elementor-widget-slider,
    .elementor-widget-swiper,
    .elementor-widget-image-carousel {
        height: 280px;
    }
}
@media (max-width: 375px) {
    .elementor-widget-slider,
    .elementor-widget-swiper,
    .elementor-widget-image-carousel {
        height: 240px;
    }
}

/* ==================================================
   دکمه محصولات با رنگ قالب
================================================== */
.product-button {
    display: inline-block;
    width: 100%;
    max-width: 320px;
    padding: 15px 20px;
    background-color: var(--elementor-primary-color);
    color: var(--elementor-primary-text-color);
    border: 2px solid var(--elementor-primary-color);
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.product-button:hover {
    background-color: var(--elementor-primary-color-hover);
    border-color: var(--elementor-primary-color-hover);
    color: var(--elementor-primary-text-color);
}

/* ==================================================
   استایل قیمت محصول
================================================== */
.product-price {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
}

.product-price .sale-price {
    color: #e60000;
    font-size: 20px;
    font-weight: bold;
}

.product-price del {
    color: #777;
    font-size: 16px;
}

/* ==================================================
   جزئیات محصول
================================================== */
.product-details {
    font-size: 14px;
    line-height: 1.6;
}

.product-details span {
    font-weight: bold;
}

/* ==================================================
   مخفی کردن دسته‌بندی محصولات در المنتور
================================================== */
.elementor .elementor-widget .wd-product-cats {
    display: none !important;
}

/* ==================================================
   ریسپانسیو محصولات
================================================== */
@media (max-width: 480px) {
    .product-button {
        max-width: 100%;
        padding: 12px 15px;
        font-size: 13px;
    }

    .product-price {
        font-size: 16px;
    }

    .product-price .sale-price {
        font-size: 18px;
    }

    .product-details {
        font-size: 13px;
    }
}

/* ==================================================
   Special Offer اولیه مخفی تا JS بررسی کند
================================================== */
.elementor-widget-Offer_Products {
    display: none;
}
/* ==================================================
  color: #fff;
  padding: 8px 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.3s;
}

.term-readmore-btn:hover {
  background-color: #005177;
}
/* راست‌چین کردن کل جدول ویژگی‌ها */
.woocommerce div.product .woocommerce-product-attributes.shop_attributes,
.wd-single-attrs {
    text-align: right !important;
    direction: rtl !important;
}

/* راست‌چین کردن نام ویژگی‌ها */
.woocommerce div.product .woocommerce-product-attributes-item__label,
.wd-attr-name-label {
    text-align: right !important;
    float: right !important;
}

/* راست‌چین کردن مقدار ویژگی‌ها و جلوگیری از برعکس شدن متن انگلیسی */
.woocommerce div.product .woocommerce-product-attributes-item__value,
.woocommerce div.product .wd-attr-term,
.woocommerce div.product .woocommerce-product-attributes-item__value p {
    text-align: right !important;
    direction: ltr !important;        /* متن انگلیسی چپ به راست */
    unicode-bidi: embed !important;   /* جلوگیری از معکوس شدن متن انگلیسی */
    float: right !important;
    clear: both !important;
}

/* واکنش‌گرا برای موبایل و تبلت */
@media only screen and (max-width: 768px) {
    .woocommerce div.product .woocommerce-product-attributes.shop_attributes,
    .wd-single-attrs {
        text-align: right !important;
        font-size: 14px !important;
    }

    .woocommerce div.product .woocommerce-product-attributes-item__label,
    .woocommerce div.product .woocommerce-product-attributes-item__value,
    .woocommerce div.product .wd-attr-term,
    .woocommerce div.product .woocommerce-product-attributes-item__value p {
        float: right !important;
        display: block !important;
        margin: 2px 0 !important;
    }
}
/* مخفی کردن تصاویر دسته‌بندی در آرشیو محصولات */
.archive .product-category img,
.tax-product_cat .product-category img {
    display: none !important;
}
