.products-grid {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
}
.product-item {
    max-width: 320px;
    width: 24%;
}
.product-item a {
    display: block;
}
.product-item a .product-img-container {
    position: relative;
    overflow: hidden;
}
.product-item a .product-img-container img {    
    width: 100%;
    top: 0;
    transition: opacity 0.5s ease-in-out;
    display: block;
}
.product-item a .product-img-container img.main-img {
    position: absolute;
    opacity: 1;    
}
.product-item a .product-img-container img.hover-img {
    opacity: 0;
    position: relative;
}
.product-item a:hover .product-img-container img.main-img {
    position: relative;
    opacity: 0;
}
.product-item a:hover .product-img-container img.hover-img {
    position: absolute;
    opacity: 1;
}

/* если нет галереи то нет второй картинки*/
.product-item a .product-img-container img.main-img + img.main-img {
    position: relative;
    opacity: 1;
}

.product-item a:hover .product-img-container img.main-img + img.main-img {
    position: absolute;
    opacity: 1;
}
/* END если нет галереи то нет второй картинки*/

.products-grid .product-title {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0px;
}

.products-grid .product-prices {
    text-align: center;
    font-size: 90%;
    margin-bottom: 20px;
}

/* loader */
.products-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 0;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.products-loader.hidden {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

/* Спиннер */
.spinner {
    width: 32px;
    height: 32px;
    border: 4px solid #ddd;
    border-top-color: #444;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 8px;
}

.produtc-hover-text-home {
    position: absolute;
    bottom: -20px;
    z-index: 9;
    color: #fff;
    right: 2px;
    font-size: .85em;
    font-weight: 700;
    opacity: .95;
    transition: bottom 0.5s ease-in-out;
    text-decoration: underline;
}
.product-img-container:hover .produtc-hover-text-home {
    bottom: 2px;
}
.product-wishlist {
    position: absolute;
    width: 34px;
    height: 34px;
    top: 10px;
    left: 10px;
    z-index: 10;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    border-radius: 50%;
    display: flex;
}
.product-item:hover .product-wishlist {
    opacity: 1;
}
.product-item .product-wishlist:hover {
    background-color: #000;
}
.product-wishlist span {
    font-size: 0;
    color: transparent;
    text-decoration: none;
}
.product-wishlist .yith-wcwl-add-button span {
    display: none;
}
.product-wishlist .yith-wcwl-wishlistaddedbrowse a {
    display: none;
}
.product-wishlist .yith-wcwl-add-to-wishlist svg.yith-wcwl-icon-svg,
.product-wishlist .yith-wcwl-add-to-wishlist.exists svg.yith-wcwl-icon-svg {
    color: silver;
    margin: 0;
    width: 30px;
    height: 30px;
}
.product-wishlist .yith-wcwl-add-button {
    margin: 0 !important;
}
.product-wishlist > div {
    margin: 3px 3px 0px 0px;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* END loader */

@media (max-width: 849px) {
    .product-item {
        max-width: 33.3333333333%;
        width: 33.3333333333%;
        padding: 0 9.8px 19.6px;
    }
    .products-grid .product-title {
        font-size: 19px;
        margin-top: 4px;
    }
}

@media (max-width: 549px) {
    .product-item {
        max-width: 50%;
        width: 50%;
        padding: 0 9.8px 19.6px;
    }
}