.custom-wishlist-btn {
    cursor: pointer;
    position: absolute;
    transition: all 0.2s ease;
    flex-direction: row-reverse;
    top: .5em;
    right: .5em;
    z-index: 100;
}


.custom-wishlist-btn .wishlist-icon {
    width: 20px;
    height: 20px;
    display: block;
    transition: all .5s linear;
}

.custom-wishlist-btn .wishlist-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all .5s ease-in-out;
}


.custom-wishlist-btn:hover .wishlist-icon svg path {
    fill: #DC3545;
}

.custom-wishlist-btn .wishlist-icon svg path {
    stroke: #DC3545;
    fill: transparent;
    transition: all .5s var(--transition);
}

.custom-wishlist-btn.added .wishlist-icon svg path {
    stroke: #DC3545;
    fill: #DC3545;
}

.wishlist-counter {
    position: absolute;
    top: -5px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: var(--theme-color-accent);
    color: var(--theme-color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    font-size: 12px;
    font-weight: 600;
}

.wishlist-text {
    font-size: 12px;
    color: var(--theme-color-primary);
    display: block;
    line-height: 1;
    position: absolute;
    top: -25px;
    width: max-content;
    opacity: 0;
    /* transform: translatex(-10px); */
    transition: all .5s linear;
    z-index: 5;
    right: 0;
    background: rgba(255, 255, 255, .7);
    filter: drop-shadow(-1px 0 1px rgba(0, 0, 0, .2));
    padding: .5em;
    border-radius: 3px;
}

.custom-wishlist-btn:hover .wishlist-text {
    transform: translatex(0);
    opacity: 1;

}

/* 
.custom-wishlist-btn:hover .shop-page-products-wrapper .single-product figure:hover button.custom-wishlist-btn .wishlist-text {
    transform: translateX(0);
    opacity: 1;
} */

/* .custom-wishlist-btn .wishlist-icon {
    color: #e74c3c;
    font-size: 16px;
    transition: transform 0.2s ease;
} */

/* .custom-wishlist-btn:hover {
    background-color: #f9f9f9;
    border-color: #ccc;
} */

/* .custom-wishlist-btn.added {
    background-color: #ffe6e6;
    border-color: #e74c3c;
} */

/* .custom-wishlist-btn.added .wishlist-icon {
    transform: scale(1.2);
} */

.custom-wishlist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* .custom-wishlist-btn {
    display: block;
    align-items: center;
    width: 25px;
    height: 25px;
    cursor: pointer;
    position: absolute;
    transition: all 0.2s ease;
    right: 10px;
    bottom: 10px;
} */

.cart-flex.woocommerce-cart-form__contents {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.cart-flex__category {
    width: 100%;
    background: #fff9e4;
    padding: 1em;
    font-size: 20px;
    text-transform: uppercase;
}

.wishlist-item {
    padding: 1em;
    border: 1px solid #d1d1f1;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all .5s linear;
}

.wishlist-item img {
    max-width: 100%;
    height: auto;
}

.wishlist-info {
    text-align: center;
    margin-top: 8px;
}

.wishlist-info h2 {
    font-size: 16px;
    margin: 4px 0;
}

.wishlist-info .price {
    font-weight: bold;
    color: #333;
}

.wishlist-cart-actions {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.wishlist-info .custom-wishlist-btn {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

/*СТРАНИЦА ИЗБРАННОЕ*/
.cart-flex__row.wishlist-item {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-direction: column;
    width: calc(100% / 3 - .6666666666em);
}

.cart-flex__row.wishlist-item .cart-flex__col.cart-flex__col--product {
    width: 100%;
    max-width: unset;
}

.cart-product-item a {
    border-radius: 3px;
    overflow: hidden;
    display: block;
    transition: all .5s var(--transition);
}

.cart-product-item a:hover img {
    filter: brightness(1.05);
    transform: scale(1.05);

}

.cart-product-item a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all .5s var(--transition);
}

.cart-product-item__summary a.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-top: .5em;
    line-height: 120%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 65px;
}

.cart-flex__col.cart-flex__col--price {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 1em;
}

.cart-product-item__summary .sku {
    font-size: 14px;
    color: var(--theme-color-grey);
}

.cart-flex__col.cart-flex__col--price span.price span {
    font-size: 18px;
    font-weight: 600;
}

.cart-flex__col.cart-flex__col--total {
    width: 100%;
}

.wishlist-item .product-remove {
    width: 25px;
    height: 25px;
    position: absolute;
    top: 1.5em;
    right: 1.5em;
}

.wishlist-item .product-remove .custom-wishlist-btn {
    position: relative;
    height: 100%;
    width: 100%;
    padding: 0;
    top: unset;
    right: unset;
}

.wishlist-item .product-remove .custom-wishlist-btn .wishlist-icon {
    width: 100%;
    height: 100%;
}

.wishlist-item .product-remove .custom-wishlist-btn .wishlist-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.wishlist-cart-actions .button {
    padding: 7px 20px;
    display: block;
    max-width: 100%;
    color: #fff;
    border-radius: 5px;
    transition: all .5s linear;
    width: 100%;
    text-align: center;
    transition: all .5s var(--transition);
}

.button.wishlist-in-cart {
    background: var(--theme-color-accent);
}

.button.wishlist-in-cart:hover {
    background: var(--theme-color-primary);
    color: var(--white);
}

/* .wishlist-cart-actions .button.add_to_cart_button {
    background: var(--theme-color-primary);
    color: var(--theme-color-accent);
} */

.wishlist-cart-actions .button.add_to_cart_button :hover {
    background: var(--theme-color-accent);
    color: #fff;
}


.empty-wl {
    display: flex;
    flex-direction: column;
    gap: 1em;
    align-items: center;
    justify-content: center;



    background: transparent;
    border: none;
    position: relative;
    font-size: 24px;
    color: #343434;
    text-align: center;
    padding: 50px 0;

}

.empty-wl:before {
    content: '';
    width: 75px;
    height: 4px;
    display: block;
    margin: 0 auto;
    background: var(--theme-color-accent);
}

.empty-wl p {
    font-size: 20px;
    text-align: center;
}

@media(max-width: 768px) {
    .cart-flex__row.wishlist-item {
        padding: .5em;
    }
}

@media (max-width: 576px) {
    .cart-flex__row.wishlist-item {
        position: relative;
        display: flex;
        gap: 10px;
        align-items: center;
        flex-direction: column;
        width: calc(100% / 2 - .5em);
    }

    .cart-product-item__summary a.product-name {
        font-size: 16px;
        height: 55px;
    }

}

@media (max-width: 480px) {
    .cart-flex__row.wishlist-item {
        width: 100%;
    }
}