.woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border: 1px solid #e9e9e9 !important;
    border-radius: 4px !important;
    padding: 15px !important;
    padding-bottom: 45px !important;
    margin: 0 !important;
    width: auto !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.woocommerce ul.products li.product:hover {
    transform: scale(1.03) translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
    border-color: #00a046 !important;
    z-index: 10 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link { display: flex !important; flex-direction: column !important; flex-grow: 1 !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__link img { max-height: 180px !important; width: auto !important; margin: 0 auto 15px !important; display: block !important; object-fit: contain !important; }

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
    color: #333 !important;
    font-weight: normal !important;
    line-height: 1.4 !important;
    margin: 0 0 5px 0 !important;
    flex-grow: 1 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.woocommerce ul.products li.product .price { position: absolute !important; bottom: 10px !important; left: 15px !important; font-size: 18px !important; font-weight: bold !important; color: #000000 !important; display: block !important; }

.woocommerce ul.products li.product .button {
    position: absolute !important;
    bottom: 15px !important;
    right: 5px !important;
    background: transparent !important;
    color: #00a046 !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    font-size: 0 !important; 
    border: none !important;
}
.woocommerce ul.products li.product .button::before { content: '🛒' !important; font-size: 26px !important; line-height: 36px !important; display: block !important; }

/* Основной класс (добавлен flex-wrap: nowrap) */
.rating-actions-row { 
    display: flex !important; 
    justify-content: space-between !important; 
    align-items: center !important; 
    margin-top: auto !important; 
    margin-bottom: 15px !important; 
    height: 24px !important; 
    flex-wrap: nowrap !important; 
}
.card-rating-wrapper { display: flex; align-items: center; gap: 5px; }
.review-count { font-size: 14px; color: #404040; }

.star-rating { overflow: hidden; position: relative; height: 1.2em; line-height: 1; font-size: 14px !important; width: 85px !important; font-family: 'star' !important; }
.star-rating::before { content: '\73\73\73\73\73' !important; color: #e0e0e0 !important; float: left; top: 0; left: 0; position: absolute; letter-spacing: 2px; }
.star-rating span { overflow: hidden; float: left; top: 0; left: 0; position: absolute; padding-top: 1.5em; }
.star-rating span::before { content: '\53\53\53\53\53' !important; top: 0; position: absolute; left: 0; color: #ffa900 !important; letter-spacing: 2px; white-space: nowrap; }

.woocommerce .products .star-rating { display: block; margin: 0; float: none; }

.card-actions { display: flex !important; align-items: center; gap: 6px; }
.woocommerce ul.products li.product > .woosc-btn,
.woocommerce ul.products li.product > .woosw-btn { display: none !important; }

.card-actions .woosc-btn, .card-actions .woosw-btn { font-size: 0 !important; background: transparent !important; border: none !important; padding: 0 !important; color: #888 !important; display: inline-flex !important; transition: transform 0.2s; }
.card-actions .woosc-btn::before { content: '\2696' !important; color: #ffa900 !important; font-size: 22px !important; }
.card-actions .woosw-btn::before { content: '\2661' !important; font-size: 22px !important; }
.card-actions .woosw-btn.woosw-added::before { content: '\2665' !important; color: #f84147 !important; }
.card-actions .woosc-btn:hover, .card-actions .woosw-btn:hover { transform: scale(1.1) !important;}

/* Цвет при наведении для Сравнения */
.card-actions .woosc-btn:hover::before {color: #ffa900 !important;}
/* Цвет при наведении для Избранного */
.card-actions .woosw-btn:hover::before {color: #f84147 !important;}

.woocommerce ul.products li.product .card-actions { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 10px !important; margin: 0 !important; }
.woocommerce ul.products li.product .card-actions .woosc-btn, 
.woocommerce ul.products li.product .card-actions .woosw-btn { margin: 0 !important; display: inline-flex !important; }
/* Іконка обраного в картці товару */
.card-actions .woosw-btn::before {
    content: '\2661' !important;
    font-size: 28px !important; 
	color: #FF3D3D;
}

/* Якщо додано в обране (зафарбоване серце) */
.card-actions .woosw-btn.woosw-added::before {
    content: '\2665' !important;
    font-size: 28px !important;
    color: #f84147 !important;
}
.card-rating-wrapper, 
.card-actions {
    flex-shrink: 0 !important;
}

.woocommerce .related.products .rating-actions-row,
.woocommerce .up-sells .rating-actions-row {
    flex-wrap: nowrap !important;
    gap: 2px !important;
    height: 24px !important;
}
.woocommerce .related.products .star-rating,
.woocommerce .up-sells .star-rating {
    font-size: 11px !important;
    width: 65px !important;
}

.woocommerce .related.products .review-count,
.woocommerce .up-sells .review-count {
    font-size: 11px !important;
}

.woocommerce .related.products .card-actions .woosc-btn::before,
.woocommerce .up-sells .card-actions .woosc-btn::before {
    font-size: 18px !important;
}

.woocommerce .related.products .card-actions .woosw-btn::before,
.woocommerce .up-sells .card-actions .woosw-btn::before {
    font-size: 20px !important;
}
@media (max-width: 768px) {
    .woocommerce ul.products li.product .button { bottom: 1px !important;} 
	.rating-actions-row { 
        flex-direction: row !important; 
        flex-wrap: nowrap !important; 
        height: auto !important; 
        gap: 2px !important; 
        margin-bottom: 10px !important;
    }
	.woocommerce ul.products li.product .star-rating {
        font-size: 11px !important;
        width: 65px !important;
    }
    .woocommerce ul.products li.product .review-count {
        font-size: 11px !important;
    }
    .woocommerce ul.products li.product .card-actions .woosc-btn::before {
        font-size: 18px !important;color: #ffa900;
    }
    .woocommerce ul.products li.product .card-actions .woosw-btn::before {
        font-size: 20px !important;color: #FF3D3D;
    }
    .rating-actions-row {
        gap: 2px !important;
        flex-wrap: nowrap !important;
    }
}
