/*
Theme Name: SHOPI Child
Theme URI: https://codisa.ir
Description: چایلد تم قالب شاپی - برای سفارشی‌سازی بدون از دست رفتن تغییرات در آپدیت
Author: Custom
Author URI: https://codisa.ir
Template: shopi
Version: 1.0.0
Text Domain: shopi-child
*/

/* =====================================================
   CSS سفارشی - عکس محصولات در اسلایدر
   ===================================================== */

/* دسکتاپ */
.item-product .box-pic {
    max-width: 220px !important;
    max-height: 200px !important;
    min-height: 200px !important;
}

.item-product .box-pic img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

/* تبلت */
@media (max-width: 1024px) {
    .item-product .box-pic {
        max-width: 180px !important;
        max-height: 160px !important;
        min-height: 160px !important;
    }
}

/* موبایل بزرگ */
@media (max-width: 767px) {
    .item-product .box-pic {
        max-width: 160px !important;
        max-height: 140px !important;
        min-height: 140px !important;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .item-product .box-pic {
        max-width: 140px !important;
        max-height: 130px !important;
        min-height: 130px !important;
    }
}

/* ==================================================
   بزرگتر کردن عکس محصول در کارت صفحه اصلی + گرد کردن گوشه‌ها
   ================================================== */

/* ----- حذف ستاره امتیاز در همه کارت‌ها ----- */
.item-product .box-rate,
.item-product-offer .box-rate {
    display: none !important;
}

/* =====================================================
   ۱. کارت‌های معمولی و آفر (item-product + item-product-offer)
   ===================================================== */

.item-product,
.item-product-offer {
    padding: 16px 16px 20px 16px !important;
}

.item-product .box-pic,
.item-product-offer .box-pic {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    margin: 0 auto 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    padding: 0 !important;
}

.item-product .box-pic img,
.item-product .box-pic img.primary-img,
.item-product .box-pic img.wp-post-image,
.item-product-offer .box-pic img,
.item-product-offer .box-pic img.primary-img,
.item-product-offer .box-pic img.wp-post-image {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-height: unset !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 14px !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    transition: transform 0.35s ease !important;
}

.item-product:hover .box-pic img,
.item-product-offer:hover .box-pic img {
    transform: scale(1.04) !important;
}

/* =====================================================
   ۲. کارت‌های تب‌دار (item-product-tabs)
   ===================================================== */

.item-product-tabs img,
.item-product-tabs img.wp-post-image,
.item-product-tabs a img {
    border-radius: 14px !important;
    overflow: hidden !important;
}

/* =====================================================
   ۳. عکس‌های خاص با کلاس‌های Tailwind (مثل مبل نیلپر)
   سایز حفظ می‌شود + گوشه گرد
   ===================================================== */

img.max-w-\[140px\].wp-post-image,
img.max-h-\[125px\].wp-post-image,
img.object-contain.wp-post-image,
img.mr-auto.wp-post-image,
img.-mt-14.wp-post-image {
    max-width: 140px !important;
    max-height: 125px !important;
    width: auto !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 14px !important;
    -webkit-border-radius: 14px !important;
    overflow: hidden !important;
    clip-path: inset(0 round 14px) !important;
}

/* =====================================================
   غلبه قطعی بر Elementor
   ===================================================== */

.elementor img {
    border-radius: 14px !important;
}

.elementor .item-product-tabs a img,
.elementor .item-product-tabs img,
.elementor .item-product-tabs img.wp-post-image,
.elementor .section-slider-product-tab img {
    border-radius: 14px !important;
    -webkit-border-radius: 14px !important;
    overflow: hidden !important;
    clip-path: inset(0 round 14px) !important;
}

.e-con {
    --border-radius: 14px !important;
    border-radius: 14px !important;
}

/* =====================================================
   ریسپانسیو
   ===================================================== */

@media (max-width: 1024px) {
    .item-product,
    .item-product-offer {
        padding: 14px 14px 16px 14px !important;
    }

    .item-product .box-pic,
    .item-product-offer .box-pic {
        border-radius: 12px !important;
        margin-bottom: 10px !important;
    }

    .item-product .box-pic img,
    .item-product-offer .box-pic img {
        border-radius: 12px !important;
    }

    .item-product-tabs img {
        border-radius: 12px !important;
    }

    img.max-w-\[140px\].wp-post-image,
    img.max-h-\[125px\].wp-post-image,
    img.object-contain.wp-post-image,
    img.mr-auto.wp-post-image,
    img.-mt-14.wp-post-image {
        border-radius: 12px !important;
        -webkit-border-radius: 12px !important;
        clip-path: inset(0 round 12px) !important;
    }
}

@media (max-width: 767px) {
    .item-product,
    .item-product-offer {
        padding: 12px 12px 14px 12px !important;
    }

    .item-product .box-pic,
    .item-product-offer .box-pic {
        border-radius: 10px !important;
        margin-bottom: 8px !important;
    }

    .item-product .box-pic img,
    .item-product-offer .box-pic img {
        border-radius: 10px !important;
    }

    .item-product-tabs img {
        border-radius: 10px !important;
    }

    .elementor img {
        border-radius: 10px !important;
    }

    .elementor .item-product-tabs a img,
    .elementor .item-product-tabs img,
    .elementor .item-product-tabs img.wp-post-image,
    .elementor .section-slider-product-tab img {
        border-radius: 10px !important;
        -webkit-border-radius: 10px !important;
        clip-path: inset(0 round 10px) !important;
    }

    img.max-w-\[140px\].wp-post-image,
    img.max-h-\[125px\].wp-post-image,
    img.object-contain.wp-post-image,
    img.mr-auto.wp-post-image,
    img.-mt-14.wp-post-image {
        border-radius: 10px !important;
        -webkit-border-radius: 10px !important;
        clip-path: inset(0 round 10px) !important;
    }
}





/* ==================================================   بزرگ‌تر کردن گالری + کم کردن فاصله بالا و پایین ================================================== */

.box-gallery-main {
    height: 520px !important;
    padding: 12px 20px !important;          /* فاصله بالا و پایین کم شد */
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

/* عکس داخل گالری */
.box-gallery-main .swiper-slide,
.box-gallery-main .swiper-slide a {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.box-gallery-main .swiper-slide img,
.box-gallery-main .swiper-slide a img {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
}

/* تبلت */
@media (max-width: 1024px) {
    .box-gallery-main {
        height: 380px !important;
        padding: 10px 12px !important;
    }
}

/* موبایل */
@media (max-width: 767px) {
    .box-gallery-main {
        height: 320px !important;
        padding: 8px 10px !important;
    }
}

.box-gallery-main {
    height: 540px !important;
    padding: 8px 16px !important;           /* فاصله خیلی کم */
}

.box-gallery-main .swiper-slide img {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
}
/* ==================================================   بزرگ‌تر کردن گالری + کم کردن فاصله بالا و پایین ================================================== */
