/* =========================================
   СЕТКА ТОВАРОВ
========================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
/*    grid-template-columns: repeat(4, 1fr);  */  
    gap: 15px; /*30 */
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: #ffffff;
    background-color: color-mix(in srgb, #f0f0f0 50%, transparent);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
    font-family: 'Inter', sans-serif; /* Добавляем новый шрифт ко всей карточке */
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.product-card figure {
    margin-bottom: 20px;
}

.product-card img {
    width: 100%;
    aspect-ratio: 1/1;  /*4/3*/
    object-fit: cover; /*contain cover*/
    border-radius: 12px;
    margin-bottom: 15px;
    background-color: transparent;
/*    background-color: #f1f5f9;*/
}

.product-card figcaption {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    text-align: center;
    line-height: 1.4;
}

.product-status {
/*background-color: color-mix(in srgb, #f97316 50%, transparent);*/
    background: #f8fafc;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.price-item {
    font-size: 13px;
    color: #475569;
    font-weight: 500;/*500 normal*/
    margin-bottom: 0; /* 2px 5px*/
    line-height: 1.3;
}
.price-item:last-child {
    margin-bottom: 0;
    font-weight: 700;/*normal*/
    color: #0f172a;
    font-size: 16px;
    margin-top: 4px; /*8px*/
    padding-top: 4px; /* 8px*/
    border-top: 1px dashed #cbd5e1;
}

.product-pricing {
    /* Стили для фона всей плашки с ценами, если нужно */
background-color: color-mix(in srgb, #f8f9fa 50%, transparent);
/*    background-color: #f8f9fa;*/
    border-radius: 8px;
    padding: 10px 15px;
}

.price-row {
    display: flex;
    justify-content: space-between; /* Раздвигает текст и цену по краям */
    align-items: center;            /* Выравнивает их по вертикали */
    margin-bottom: 0;             /* 2 px8 px Отступ между строками */
    padding: 2px 0;
}

/* Оформление для последней строки "Итого", как на скриншоте */
.total-row {
    border-top: 1px dashed #ccc;
    padding-top: 4px;      /*8px */
    font-weight: bold;
}

.order-contract-btn:hover {
    background: #ea580c;
}

.order-contract-btn:active {
    transform: scale(0.98);
}




