/*
CTC Separate Stylesheet
Updated: 2025-12-09 17:13:29
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Template: hello-elementor
Author: Elementor Team
Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
Tags: accessibility-ready,flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready
Version: 3.4.5.1765287809
*/
/* wrapper کلی برای کنترل موقعیت تصاویر */
.product-image-swap-wrapper {
    position: relative;
    overflow: hidden;
}

/* دوتا تصویر داخل یک کانتینر */
.product-image-swap-wrapper .product-image-inner img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.35s ease;
}

/* تصویر اصلی همیشه دیده میشه */
.product-image-swap-wrapper .main-image {
    position: relative;
    z-index: 1;
    opacity: 1;
}

/* تصویر هاور روی هم قرار می‌گیره ولی مخفیه تا زمان هاور */
.product-image-swap-wrapper .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
}

/* هنگام هاور بر لی آیتم محصول تصویر دوم دیده می‌شود */
.woocommerce ul.products li.product:hover .product-image-swap-wrapper .hover-image {
    opacity: 1;
}

/* گاهی قالب‌ها برای img کلاس‌های اضافه می‌ذارن؛ این دو خط کمک می‌کنه که تصویر دوم روی تصویر اصلی بیاد */
.woocommerce ul.products li.product .product-image-swap-wrapper .main-image {
    transition: opacity 0.35s ease;
}
.woocommerce ul.products li.product:hover .product-image-swap-wrapper .main-image {
    opacity: 0;
}