/*
Theme Name: Karauos Child - Steamwash
Template: karauos
Version: 1.0.0
Text Domain: karauos-child
*/
body:is(.tax-product_cat, .post-type-archive-product)
.woocommerce-archive ul.products.products-responsive-columns .tmt-product-item > .price {
    order: 2;
    position: static !important;
    transform: none !important;
    margin: 0 0 8px;
    font-weight: 700;
    line-height: 1.6;
}

body:is(.tax-product_cat, .post-type-archive-product)
.woocommerce-archive .tmt-product-item > .woocommerce-loop-product__title {
    order: 1;
}

body:is(.tax-product_cat, .post-type-archive-product)
.woocommerce-archive .tmt-product-item > a.button {
    order: 3;
}

body:is(.tax-product_cat, .post-type-archive-product)
.woocommerce-archive ul.products .tmt-product-item > .sw-price-inquiry {
    background: transparent !important;
    border: 0;
    padding: 0;
    box-shadow: none;
}

body:is(.tax-product_cat, .post-type-archive-product)
.woocommerce-archive .tmt-product-item > .sw-price-inquiry > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 4px 8px;
    border: 1px solid #c4d5e4;
    border-radius: 6px;
    background: #eef5fb;
    color: #0b4b78 !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
}

@media (max-width: 990px) {
    header:has(.tmt-navbar-wrapper.open-menu) {
        z-index: 100000 !important;
    }

    header:not(.position-header):has(.tmt-navbar-wrapper.open-menu) {
        position: relative;
    }
}

@media (max-width: 767px) {
    body.single-post h1 {
        font-size: 26px !important;
        line-height: 1.45 !important;
    }
}

@media (min-width: 360px) and (max-width: 767px) {
    body:is(.tax-product_cat, .post-type-archive-product)
    .woocommerce-archive ul.products.products-responsive-columns {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 0;
    }

    .woocommerce-archive ul.products.products-responsive-columns::before,
    .woocommerce-archive ul.products.products-responsive-columns::after {
        content: none !important;
        display: none !important;
    }

    body:is(.tax-product_cat, .post-type-archive-product)
    .woocommerce-archive ul.products.products-responsive-columns > li.product {
        display: flex;
        float: none !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0;
        margin: 0 !important;
        padding: 0;
    }

    body:is(.tax-product_cat, .post-type-archive-product)
    .woocommerce-archive .products .product .tmt-product-item {
        flex: 1;
        align-items: stretch;
        justify-content: flex-start;
        min-width: 0;
        height: auto;
        padding: 10px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #fff;
        box-sizing: border-box;
        text-align: right;
    }

    body:is(.tax-product_cat, .post-type-archive-product)
    .woocommerce-archive .tmt-product-item > a:first-child img {
        display: block;
        width: 100%;
        height: 130px;
        margin: 0;
        object-fit: contain;
    }

    body:is(.tax-product_cat, .post-type-archive-product)
    .woocommerce-archive .tmt-product-item > .woocommerce-loop-product__title {
        margin: 8px 0 6px;
        padding: 0;
        font-size: 16px;
        line-height: 1.65;
        overflow-wrap: anywhere;
    }

    body:is(.tax-product_cat, .post-type-archive-product)
    .woocommerce-archive ul.products .tmt-product-item > .price {
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    body:is(.tax-product_cat, .post-type-archive-product)
    .woocommerce-archive .tmt-product-item > a.button {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        margin: auto 0 0;
        padding: 6px 4px !important;
        border-radius: 6px;
        font-size: 12px;
        text-align: center;
        white-space: normal !important;
    }
}


/* عنوان اصلی مقاله و محصول */
body.single-post .elementor-widget-tmt-title h1.title,
body.single-post h1.entry-title,
body.single-product .elementor-widget-tmt-title :is(h1, h2).title,
body.single-product h1.product_title {
    font-size: 32px !important;
    line-height: 1.5 !important;
}

/* تیترهای H2 داخل مقاله و توضیحات محصول */
body.single-post :is(.tmt-content, .entry-content) h2,
body.single-product .woocommerce-Tabs-panel--description h2 {
    font-size: 24px !important;
    line-height: 1.55 !important;
}

/* حذف زیرخط H2 و عناصر داخل آن در همه عرض‌ها */
body.single-post :is(.tmt-content, .entry-content) h2,
body.single-post :is(.tmt-content, .entry-content) h2 *,
body.single-product .woocommerce-Tabs-panel--description h2,
body.single-product .woocommerce-Tabs-panel--description h2 *,
body.single-product .elementor-widget-tmt-title h2.title,
body.single-product .elementor-widget-tmt-title h2.title * {
    text-decoration: none !important;
}

/* تیترهای H3 داخل مقاله و توضیحات محصول */
body.single-post :is(.tmt-content, .entry-content) h3,
body.single-product .woocommerce-Tabs-panel--description h3 {
    font-size: 20px !important;
    line-height: 1.6 !important;
}

/* متن مقاله و توضیحات محصول */
body.single-post :is(.tmt-content, .entry-content) :is(p, li),
body.single-product :is(
    .woocommerce-product-details__short-description,
    .woocommerce-Tabs-panel--description
) :is(p, li) {
    font-size: 16px !important;
    line-height: 36px !important;
    text-align: justify !important;
    text-align-last: start;
}

/* اندازه و راست‌چین کردن تیترها در موبایل */
@media (max-width: 767px) {
    body.single-post .elementor-widget-tmt-title h1.title,
    body.single-post h1.entry-title,
    body.single-product .elementor-widget-tmt-title :is(h1, h2).title,
    body.single-product h1.product_title {
        font-size: 26px !important;
        text-align: right !important;
    }

    body.single-post :is(.tmt-content, .entry-content) h2,
    body.single-product .woocommerce-Tabs-panel--description h2 {
        font-size: 22px !important;
        text-align: right !important;
    }

    body.single-post :is(.tmt-content, .entry-content) h3,
    body.single-product .woocommerce-Tabs-panel--description h3 {
        font-size: 19px !important;
        text-align: right !important;
    }
}

/* استیم‌واش ـ ترتیب عکس، قیمت، نام و دکمه در محصولات مرتبط */
body.single-product .elementor-element-e17c83c
ul.products > li.product > .tmt-product-item > .price {
    position: static !important;
    transform: none !important;
    order: 1;
    margin: 6px 0 8px;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    overflow-wrap: anywhere;
}

body.single-product .elementor-element-e17c83c
ul.products > li.product > .tmt-product-item > .woocommerce-loop-product__title {
    order: 2;
}

body.single-product .elementor-element-e17c83c
ul.products > li.product > .tmt-product-item > a.button {
    order: 3;
}

/* استیم‌واش ـ چیدمان دو ستونه محصولات مرتبط در موبایل */
@media (max-width: 767px) {
    body.single-product .elementor-element-e17c83c ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 0;
        padding: 0;
    }

    body.single-product .elementor-element-e17c83c ul.products::before,
    body.single-product .elementor-element-e17c83c ul.products::after {
        display: none;
    }

    body.single-product .elementor-element-e17c83c ul.products > li.product {
        display: flex;
        float: none;
        width: auto !important;
        min-width: 0;
        max-width: none !important;
        margin: 0 !important;
    }

    body.single-product .elementor-element-e17c83c .tmt-product-item {
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        padding: 8px;
        text-align: right;
    }

    body.single-product .elementor-element-e17c83c .tmt-product-item img {
        display: block;
        width: 100%;
        height: 110px;
        margin: 0 0 6px;
        object-fit: contain;
    }

    body.single-product .elementor-element-e17c83c .woocommerce-loop-product__title {
        margin: 0 0 8px;
        padding: 0;
        font-size: 14px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    body.single-product .elementor-element-e17c83c
    ul.products > li.product > .tmt-product-item > .price {
        margin: 0 0 8px;
        font-size: 12px;
    }

    body.single-product .elementor-element-e17c83c .tmt-product-item > a.button {
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 100%;
        min-height: 44px;
        margin: auto 0 0;
        padding: 6px !important;
        font-size: 12px;
        line-height: 1.4;
        text-align: center;
        white-space: normal !important;
    }
}


/* استیم‌واش ـ ظاهر دکمه استعلام در محصولات مرتبط */
body.single-product .elementor-element-e17c83c
ul.products > li.product > .tmt-product-item > .price:has(> .sw-related-price-inquiry) {
    position: static !important;
    transform: none !important;
    display: block !important;
    order: 1;
    align-self: stretch;
    width: 100%;
    margin: 0 0 8px;
    padding: 0 !important;
    background: transparent !important;
}

body.single-product .elementor-element-e17c83c
ul.products > li.product > .tmt-product-item > .price > .sw-related-price-inquiry {
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 6px 4px;
    border: 1px solid #0b4b78;
    border-radius: 6px;
    background: #0b4b78 !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none !important;
}



/* استیم‌واش ـ خلوت کردن نمای موبایل */
@media (max-width: 767px) {
    /* آیکن‌های شناور روی محتوا */
    .floating-contact-buttons,
    .elementor-widget-tmt-scroll-to-top,
    iframe#goftino_w {
        display: none !important;
    }

    /* بلوک‌های تلفن در هدر کارائوس */
    header .elementor-element-771339a,
    header .elementor-element-da8cec2 {
        display: none !important;
    }
}