
/* Remove WooCommerce grid behavior */
.my-wc-slider ul.products,
.my-wc-slider .products {
    display: block !important;
}

/* Remove star rating div*/

.review-rating, .my-wc-slider .swiper-pagination, .my-wc-slider .ast-woo-product-category  {
    display: none !important;
}

/* Make WooCommerce product card fit inside slide */
.my-wc-slider .product {
    width: auto !important;
    float: none !important;
}

/* Swiper Slide FIX — LET SWIPER CONTROL WIDTH */
.my-wc-slider .swiper-slide {
    width: auto !important;
    height: auto !important;
}

.ast-desktop .my-wc-slider .product a img {
    width: calc((100vw / 4) - 10px );
    height: calc((100vw / 4) - 10px ) !important;           /* adjust as you like */
    object-fit: contain;       /* keeps image centered & cropped */
    object-position: center;
    display: block;
}

.my-wc-slider .woocommerce-loop-product__title{
    max-width: calc((100vw / 4) - 10px );
    text-align: center;
    margin: auto;
    font-size: clamp(0.5rem, calc(0.5rem + 1vw), 1rem);
    display: flex;
    justify-content: center;
    flex-direction: row;
}

.my-wc-slider span.price {
    display: flex;
    width: 100%;
    text-align: center;
    justify-content: center;
}

.my-wc-slider .tip-add-brand_name, .my-wc-slider .sku_class1{
    display: none;
}

.my-wc-slider .add_to_cart_button{
    width: 100%;
    text-align: center;
}



@media screen and (max-width: 480px){

    .my-wc-slider .product a img {
        width: 100%;        /* adjust as you like */
        object-fit: contain;       /* keeps image centered & cropped */
        object-position: center;
        display: block;
    }

    .my-wc-slider span.price{
        width: 100%;
        display: inline-block;
        text-align: center;
    }

    .my-wc-slider .woocommerce-loop-product__title{
        max-width: 100%;
        text-align: center;
        margin: auto;
        font-size: clamp(0.5rem, calc(0.5rem + 1vw), 1rem);
        display: flex;
        justify-content: center;
        flex-direction: row;
    }

    .my-wc-slider .ast-woo-product-category{
        display: none;
    }

    .my-wc-slider .swiper-button-next::after, .my-wc-slider .swiper-button-prev::after{
        font-size: 15px;
        font-weight: bold;
    }

}
    
