/* =========================================
   PRODUCT CARD
========================================= */

.yprm-prodotto-card {
    border: 1px solid #f5f1eb;
    padding: 15px;
    background: #f5f1eb;
    position: relative;
    transition: all 0.3s ease;
    min-width: 0;
    box-sizing: border-box;
}

.yprm-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* =========================================
   IMAGE
========================================= */

.yprm-image {
    position: relative;
    overflow: hidden;
}

.yprm-image img {
    width: 100%;
    display: block;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.yprm-image .main-image {
    z-index: 1;
}

.yprm-image .hover-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 2;
}

/* hover image switch */

.yprm-prodotto-card:hover .hover-image {
    opacity: 1;
}

.yprm-prodotto-card:hover .main-image {
    opacity: 0;
    transform: scale(1.05);
}

/* =========================================
   CONTENT
========================================= */

.yprm-content {
    padding: 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.yprm-title-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.yprm-content h3 {
    font-size: 16px;
    color: var(--main-color);
    font-weight: 600;
    font-family: var(--font-secondary);
    margin: 0;
}

.yprm-separator {
    width: 10px;
    /* lunghezza linea */
    height: 1px;
    /* spessore */
    background: var(--main-color);
    /* colore */
    display: block;
}



/* =========================================
   PRICE
========================================= */

.yprm-price del {
    display: block;
    font-size: 13px;
    color: var(--main-color);
}

.yprm-price ins {
    display: block;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: var(--main-color);
}

.woocommerce-Price-amount.amount {
    color: var(--main-color);
}

/* =========================================
   BUTTON
========================================= */

.button .icon {
    display: none !important;
}

.yprm-cart .button {
    background: #f5f1eb;
    color: var(--main-color);
    border: 1px solid var(--main-color);
    padding: 5px 30px !important;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.3s ease;
    text-transform: uppercase !important;
}

.yprm-prodotto-card:hover .yprm-cart .button {
    background: var(--main-color);
    color: #f5f1eb !important;
}

.add_to_cart_button.loading .text {
    opacity: 0.5;
}

.add_to_cart_button.loading::after {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
    animation: spin .6s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.added_to_cart {
    display: none !important;
}

.yprm-sold-out-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--main-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    z-index: 20;
    text-transform: uppercase;
    text-align: center;
}


.related .products .yprm-cart .button {
    padding: 5px 5px !important;
    font-size: 12px;
}

.related .products .yprm-content h3,
.related .products .woocommerce-Price-amount.amount {
    font-size: 14px;
}


/* @media (min-width: 1200px) and (max-width: 1490px) {

    .related.products ul.products .slick-slide {
        width: 33.333% !important;
    }

}
@media (min-width: 1491px) {

    .related.products ul.products .slick-slide {
        width: 25% !important;
    }

}
 */



/* @media (min-width: 1200px) and (max-width: 1490px) {
    html[lang="fr-FR"] .slick-slider.yprm-content {
        gap: 0;
    }
} */



@media(max-width:1200px) {

    .slick-slider .yprm-sold-out-badge {
        top: 5px;
        right: 5px;
        width: 50px;
        height: 50px;
        font-size: 10px;
    }

    .slick-slider .yprm-cart .button {

        font-size: 0 !important;

        width: auto;
        height: auto;

        padding: 0 !important;

        display: flex;
        align-items: center;
        justify-content: center;

        position: relative;
        padding: 10px !important;
    }

    .slick-slider .yprm-cart .button::before {
        content: "";

        width: 18px;
        height: 18px;

        display: block;

        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;

        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e03c31' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'%3E%3C/circle%3E%3Ccircle cx='20' cy='21' r='1'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E");
    }

    .slick-slider .yprm-prodotto-card:hover .yprm-cart .button::before {

        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'%3E%3C/circle%3E%3Ccircle cx='20' cy='21' r='1'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E");
    }

}






@media (min-width: 1200px) and (max-width: 1489.98px) {
  .yprm-cart .button {
        padding: 5px 10px !important;
    }
    .yprm-title-price {
        gap: 5px;
    }

    .yprm-content h3 {
        font-size: 15px;
    }
}

@media (min-width: 992px) and (max-width: 1024px) {



     .yprm-cart .button {
        padding: 5px 10px !important;
    }
    .yprm-title-price {
        gap: 5px;
    }

    .yprm-content h3 {
        font-size: 15px;
    }

   

}

@media (max-width:1199.98px){

       .yprm-cart .button {
        padding: 5px 10px !important;
    }
    .yprm-title-price {
        gap: 5px;
    }
       .yprm-cart .button {

        font-size: 0 !important;

        width: auto;
        height: auto;

        padding: 0 !important;

        display: flex;
        align-items: center;
        justify-content: center;

        position: relative;
        padding: 10px !important;
    }

    .yprm-cart .button::before {
        content: "";

        width: 18px;
        height: 18px;

        display: block;

        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;

        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e03c31' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'%3E%3C/circle%3E%3Ccircle cx='20' cy='21' r='1'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E");
    }

    .yprm-prodotto-card:hover .yprm-cart .button::before {

        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'%3E%3C/circle%3E%3Ccircle cx='20' cy='21' r='1'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E");
    }
}
@media (max-width: 991.98px) {
  
    .yprm-cart .button {
        padding: 5px 10px !important;
    }
    .yprm-title-price {
        gap: 5px;
    }
   
}


@media(max-width:768px) {

    .yprm-cart .button {

        font-size: 0 !important;

        width: auto;
        height: auto;

        padding: 0 !important;

        display: flex;
        align-items: center;
        justify-content: center;

        position: relative;
        padding: 10px !important;
    }

    .yprm-cart .button::before {
        content: "";

        width: 18px;
        height: 18px;

        display: block;

        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;

        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e03c31' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'%3E%3C/circle%3E%3Ccircle cx='20' cy='21' r='1'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E");
    }

    .yprm-prodotto-card:hover .yprm-cart .button::before {

        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'%3E%3C/circle%3E%3Ccircle cx='20' cy='21' r='1'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E");
    }




    .yprm-prodotto-card {
        border: 1px solid #f5f1eb;
        padding: 0px;
    }
    .yprm-title-price {
        display: flex;
        align-items: start;
        justify-content:left;
        gap:0px;
        flex-direction: column;
    }
    .yprm-content h3,.woocommerce-Price-amount.amount {
        font-size: 15px;
    }
    .yprm-separator{
        display:none;
    }
    .yprm-cart .button {
        padding: 10px!important;
        font-size: 10px;
    }
    .yprm-sold-out-badge {
        top: 5px;
        right: 5px;
        width: 40px;
        height: 40px;
        font-size: 9px;

    }

}

