/* Custom Sale Badge - Spider v4.7.0 */
.custom-sale-badge-spider {
    position: absolute !important;
    top: -50px !important;
    left: -50px !important;
    z-index: 2 !important;
    pointer-events: none !important;
    overflow: visible !important;
    line-height: 0 !important;
    clip: auto !important;
    clip-path: none !important;
}

/* Slick Slider — ТІЛЬКИ для слайдерів з бейджем */
.slick-list.csb-has-badge {
    padding-top: 40px !important;
    padding-left: 40px !important;
    margin-top: -60px !important;
    margin-left: -60px !important;
}

.csb-has-badge .slick-slide,
.csb-has-badge .slick-slide > div {
    overflow: visible !important;
}

/* WooCommerce + тема */
.product, .type-product, li.product,
.products .product,
ul.products li.product,
.woocommerce ul.products li.product,
.woocommerce ul.products,
ul.products,
.products,
.woocommerce .products,
.product a,
.product > a,
.product .woocommerce-LoopProduct-link,
.woocommerce ul.products li.product .woocommerce-LoopProduct-link,
.products .product a.woocommerce-LoopProduct-link,
.woocommerce-loop-product__link,
.product .attachment-woocommerce_thumbnail,
.product .wp-post-image,
.woocommerce-product-gallery,
.woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery__image,
.product .astra-shop-thumbnail-wrap,
.product .ast-shop-thumbnail-wrap,
.product .product-image-wrap,
.product .product-inner,
.product .product-image,
.product .product-thumbnail,
.ast-woo-product-image,
.product .image-wrap,
.product .thumbnail-wrap,
.product .product-loop-image-wrap,
.product .box-image,
.product .product-image-wrapper,
.product .product-thumb,
.product .product-media {
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
}

.custom-sale-badge-spider img {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    display: block !important;
    object-fit: contain !important;
}

/* Планшет */
@media (max-width: 768px) {
    .custom-sale-badge-spider {
        top: -15px !important;
        left: -15px !important;
    }
    .custom-sale-badge-spider img {
        width: 130px !important;
        height: 130px !important;
        max-width: 130px !important;
        max-height: 130px !important;
    }
}

/* Мобільний */
@media (max-width: 480px) {
    .custom-sale-badge-spider {
        top: -10px !important;
        left: -10px !important;
    }
    .custom-sale-badge-spider img {
        width: 130px !important;
        height: 130px !important;
        max-width: 130px !important;
        max-height: 130px !important;
    }
}

/* Сторінка товару */
.single-product .custom-sale-badge-spider {
    top: -60px !important;
    left: -60px !important;
    z-index: 2 !important;
}

.single-product .custom-sale-badge-spider img {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
}

@media (max-width: 768px) {
    .single-product .custom-sale-badge-spider {
        top: -20px !important;
        left: -20px !important;
    }
    .single-product .custom-sale-badge-spider img {
        width: 160px !important;
        height: 160px !important;
        max-width: 160px !important;
        max-height: 160px !important;
    }
}

@media (max-width: 480px) {
    .single-product .custom-sale-badge-spider {
        top: -10px !important;
        left: -10px !important;
    }
    .single-product .custom-sale-badge-spider img {
        width: 140px !important;
        height: 140px !important;
        max-width: 140px !important;
        max-height: 140px !important;
    }
}