product-card .product-card-wrapper{
    display: flex;
    flex-direction: column;
    height: 100%;
}
product-card .product-card-image{
    position: relative;
    overflow: hidden;
    border-radius:12px;
    display: flex;
    justify-content: center;
    margin-bottom:20px;
    aspect-ratio: var(--aspect-ratio);
}

product-card .product-card-image .empty-image-class{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
product-card .block-product-card__second-image{
    opacity: 0;
    transition: opacity 0.3s;
    position: absolute;
    top: 0;
    left: 0;
}

product-card:hover .block-product-card__second-image{
    opacity: 1;
}
product-card theme-product-form{
    margin-top: auto;
}

product-card .product-card-title{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
product-card .block-product-card__price{
    margin-top: 16px;
}
product-card .product-card_tags{
    display:flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

product-card .product-card_tag{
    border-radius:30px;
    border:1px solid #FF744F4D;
    padding:2px 20px;
}
product-card form button{
    width: 100%;
    margin-top: 20px;
}
product-card form button.loading .button__content{
    color: transparent;
}
product-card form button.loading svg{
    color: rgb(var(--color-text));
}
product-card .product-card_tag{
    color: rgba(var(--color-light-text));
    text-align: center;
}
@media(max-width:768px){
    product-card .product-card-image{
        margin-bottom:4vw;
    }
    product-card .product-card-title{
        margin-bottom:1.3333vw;
    }
    product-card .block-product-card__price{
        margin-bottom:4vw;
    }
    product-card .product-card_tag{
        padding:2px 14px; 
    }
    product-card theme-product-form{
        bottom:4vw;
    }
    product-card form button{
        margin-top: 0px;
    }
}