/* Сетка каталога как у товаров */
.catalog-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
    padding: 3rem;
}

/* Карточки в стиле product-card из main.css */
.catalog-products-grid .product-card {
    background-color: var(--white);
    border-radius: 0.9375rem;
    overflow: hidden;
    box-shadow: 0 0.3125rem 1.25rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.catalog-products-grid .product-card:hover {
    transform: translateY(-0.625rem);
    box-shadow: 0 0.9375rem 2.5rem rgba(0, 0, 0, 0.2);
}

.catalog-products-grid .product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.catalog-products-grid .product-link:hover {
    text-decoration: none;
    color: inherit;
}

.catalog-products-grid .product-image {
    width: 100%;
    height: 12.5rem;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.catalog-products-grid .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.catalog-products-grid .product-card:hover .product-image img {
    transform: scale(1.05);
}

.catalog-products-grid .product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #999;
    background: #f5f5f5;
}

.catalog-products-grid .product-info {
    padding: 1.5rem 1.5rem 0 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: space-between;
}

.catalog-products-grid .product-title {
    font-family: 'Novelist', serif;
    color: var(--main-text-color);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.catalog-products-grid .product-card:hover .product-title {
    color: var(--primary-peach);
}

.catalog-products-grid .product-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Контейнер для цены и кнопки внизу */
.catalog-products-grid .product-footer,
.catalog-products-grid .product-bottom {
    margin-top: auto;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.catalog-products-grid .add-to-cart-btn {
    width: 100%;
    margin-top: 0.75rem;
}

/* Адаптив для планшетов */
@media (max-width: 768px) {
    .catalog-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .catalog-products-grid .product-image {
        height: 10rem;
    }
    
    .catalog-products-grid .product-info {
        padding: 1rem;
    }
    
    .catalog-products-grid .product-title {
        font-size: 1.1rem;
    }
    
    .catalog-products-grid .product-description {
        font-size: 0.85rem;
    }
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
    .catalog-products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .catalog-products-grid .product-image {
        height: 8rem;
    }
    
    .catalog-products-grid .product-info {
        padding: 0.75rem;
    }
    
    .catalog-products-grid .product-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .catalog-products-grid .product-description {
        font-size: 0.8rem;
    }
}