/* ============================================================
   Product Card — кнопки избранного и корзины, ценовой ряд
   fantastic.md
   ============================================================ */

/* ── Кнопка «Добавить в избранное» (в правом верхнем углу изображения) ── */

.category-favorite-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #d6dde7;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: #6f7f95;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.category-favorite-btn:hover {
    border-color: #ef9aaa;
    color: #c21e3a;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .16);
}

.category-favorite-btn.active {
    border-color: #ef9aaa;
    color: #c21e3a;
    background: #fff1f4;
}

/* ── Кнопка «В корзину» (в ценовом блоке) ── */

.category-cart-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #d6dde7;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: #6f7f95;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.category-cart-btn:hover {
    border-color: #0d6efd;
    color: #0d6efd;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .16);
}

/* ── Контейнер кнопок действий (избранное + корзина) ── */

.product-card-price-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* ── Ценовой ряд (цена + кнопки) ── */

.product-card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.product-card-price-row > span {
    min-width: 0;
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    overflow-wrap: anywhere;
}

.product-card-price-row .old-price {
    font-size: 1em;
    line-height: 1.1;
}

/* ── Responsive ── */

@media (max-width: 640px) {
    .Content_Goods_Group[view=icon] .Content_Goods_PriceBlock_Value_lei,
    .Content_Goods_Group[view=icon] .Content_Goods_PriceBlock_Value_usd {
        font-size: 16px;
        line-height: 1.15;
    }
}

@media (max-width: 414px) {
    .Content_Goods_Group[view=icon] .Content_Goods_ItemBlock {
        width: 50% !important;
        box-sizing: border-box;
        padding: 10px 8px !important;
        height: auto;
        min-height: 305px;
        border-right: 1px solid #ebebeb;
    }

    .Content_Goods_Group[view=icon] .Content_Goods_ItemBlock:nth-child(2n) {
        border-right: 0;
    }

    .Content_Goods_Group[view=icon] .Content_Goods_PriceBlock_Value_lei,
    .Content_Goods_Group[view=icon] .Content_Goods_PriceBlock_Value_usd {
        font-size: 14px;
        line-height: 1.1;
    }

    .product-card-price-row .old-price {
        font-size: 1em;
    }
}
