.pec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
    width: 100%;
    margin: 22px 0;
}

.pec-card,
.pec-card:hover,
.pec-card:focus {
    color: #222;
    text-decoration: none;
}

.pec-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 14px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.pec-card:hover,
.pec-card:focus {
    border-color: #c8c8c8;
    box-shadow: 0 7px 20px rgba(0, 0, 0, .10);
    transform: translateY(-2px);
}

.pec-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 165px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}

.pec-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.pec-no-image {
    color: #999;
    font-size: 13px;
}

.pec-title {
    display: -webkit-box;
    min-height: 60px;
    overflow: hidden;
    color: #222;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.pec-price {
    display: block;
    margin-top: auto;
    padding-top: 13px;
    color: #b50000;
    font-size: 18px;
    font-weight: 700;
}

@media (max-width: 520px) {
    .pec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .pec-card {
        padding: 10px;
    }

    .pec-image-wrap {
        height: 125px;
    }

    .pec-title {
        min-height: 57px;
        font-size: 14px;
    }

    .pec-price {
        font-size: 16px;
    }
}
