/* ===== Mobile First – базовые стили для самых маленьких экранов ===== */

.product-cards-wrap {
    /*max-width: 1400px;*/
    margin: 0 auto;
    padding: 15px 10px; /* небольшие отступы по бокам */
}

.product-cards-grid {
    display: grid;
    grid-template-columns: 1fr; /* на мобильных одна колонка */
    gap: 20px;
    grid-auto-rows: 1fr;
}

.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 10px;
    height: 100%;
    box-sizing: border-box;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.product-card-image {
    width: 100%;
    height: 200px; /* на мобильных картинка чуть выше */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
    flex-shrink: 0;
}

/* Ссылка вокруг картинки – чтобы занимала всю область */
.product-card-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer; /* рука при наведении */
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* как вы просили */
    display: block;
}

.product-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    text-align: center;
    line-height: 1.4;
    padding: 0 5px;
    word-break: break-word;
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* ===== Планшеты (от 576px) – 2 колонки ===== */
@media (min-width: 576px) {
    .product-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-card-image {
        height: 180px;
    }
}

/* ===== Планшеты (от 768px) – 3 колонки ===== */
@media (min-width: 768px) {
    .product-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Ноутбуки (от 992px) – 4 колонки ===== */
@media (min-width: 992px) {
    .product-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== Широкие экраны (от 1200px) – 5 колонок ===== */
@media (min-width: 1200px) {
    .product-cards-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ===== Блок заявки внизу (без разделителя) ===== */
.product-cards-footer {
    margin-top: 40px;
    padding: 20px 0 10px;
    /* border-top удалён */
}

/* Стили для заголовка – можно оставить инлайн, но добавим для адаптации */
.product-cards-footer .uk-heading {
    font-size: 24px;
    margin-bottom: 20px;
}

.product-cards-footer .uk-text-center {
    text-align: center;
}