/**
 * استایل‌های responsive برای محتوای صفحه سینگل محصول
 * برای جلوگیری از خارج شدن تصاویر از container
 */

/* تصاویر در محتوای محصول */
.m-single-product-start .entry-content img,
.m-single-product-start .woocommerce-Tabs-panel img,
.m-single-product-start .wc-tab img,
.m-single-product-start .m-start-tabs-content img,
.m-single-product-start .woocommerce-product-details__short-description img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
}

/* تصاویر در محتوای تب‌ها */
.m-single-product-start .woocommerce-Tabs-panel--description img,
.m-single-product-start .woocommerce-Tabs-panel--additional_information img,
.m-single-product-start .woocommerce-Tabs-panel--reviews img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
}

/* تصاویر در محتوای اصلی محصول */
.m-single-product-start .product-content img,
.m-single-product-start .product-description img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
}

/* تصاویر در iframe و embed */
.m-single-product-start .entry-content iframe,
.m-single-product-start .woocommerce-Tabs-panel iframe,
.m-single-product-start .wc-tab iframe {
    max-width: 100%;
    height: auto;
}

/* تصاویر در جداول */
.m-single-product-start .entry-content table img,
.m-single-product-start .woocommerce-Tabs-panel table img {
    max-width: 100%;
    height: auto;
}

/* تصاویر در لیست‌ها */
.m-single-product-start .entry-content ul img,
.m-single-product-start .entry-content ol img,
.m-single-product-start .woocommerce-Tabs-panel ul img,
.m-single-product-start .woocommerce-Tabs-panel ol img {
    max-width: 100%;
    height: auto;
}

/* برای موبایل - اطمینان از responsive بودن */
@media (max-width: 768px) {
    .m-single-product-start .entry-content img,
    .m-single-product-start .woocommerce-Tabs-panel img,
    .m-single-product-start .wc-tab img,
    .m-single-product-start .m-start-tabs-content img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 10px 0;
    }
    
    .m-single-product-start .entry-content iframe,
    .m-single-product-start .woocommerce-Tabs-panel iframe {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* تصاویر در جداول */
    .m-single-product-start .entry-content table,
    .m-single-product-start .woocommerce-Tabs-panel table {
        width: 100% !important;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .m-single-product-start .entry-content table img,
    .m-single-product-start .woocommerce-Tabs-panel table img {
        max-width: 100% !important;
    }
}

/* برای تبلت */
@media (min-width: 769px) and (max-width: 1024px) {
    .m-single-product-start .entry-content img,
    .m-single-product-start .woocommerce-Tabs-panel img {
        max-width: 100%;
        height: auto;
    }
}

