/* Секция каталога на главной странице */
.catalog {
    padding: 80px 0;
    background: #FDF8F2;
}

.catalog-header {
    text-align: center;
    margin-bottom: 60px;
}

.catalog-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 400;
    color: #2E2E2E;
    margin-bottom: 16px;
}

.catalog-header .subhead {
    font-size: 16px;
    font-weight: 300;
    color: #4A4A4A;
    max-width: 600px;
    margin: 0 auto;
}

/* Сетка товаров: 4 колонки на десктопе */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; /* немного уменьшили отступ для 4 колонок */
}

/* Карточка товара */
.catalog-item {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.catalog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(198,164,63,0.1);
}

.catalog-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.catalog-image {
    background: #f5f5f5;
    line-height: 0;
    text-align: center;
}

.catalog-image img {
    width: 100%;
    height: auto;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.catalog-name {
    font-size: 18px;
    margin: 15px 15px 5px;
    font-weight: 500;
    color: #2E2E2E;
    line-height: 1.4;
}

.catalog-excerpt {
    font-size: 14px;
    color: #666;
    margin: 0 15px 10px;
    line-height: 1.5;
}

.catalog-price {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #C9683B;
    margin: 0 15px 10px;
}

.catalog-button {
    display: inline-block;
    margin: 0 15px 20px;
    padding: 8px 20px;
    background: transparent;
    border: 2px solid #C6A43F;
    color: #C6A43F;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    width: fit-content;
    align-self: center;
}

.catalog-button:hover {
    background: #C6A43F;
    color: #fff;
}

/* Адаптивность */
@media screen and (max-width: 1200px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 колонки на небольших десктопах */
        gap: 20px;
    }
}

@media screen and (max-width: 992px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
        gap: 20px;
    }
    .catalog-header h2 {
        font-size: 36px;
    }
}

@media screen and (max-width: 768px) {
    .catalog {
        padding: 60px 0;
    }
    .catalog-header h2 {
        font-size: 32px;
    }
}

@media screen and (max-width: 480px) {
    .catalog-grid {
        grid-template-columns: 1fr; /* 1 колонка на мобильных */
        gap: 15px;
    }
    .catalog-name {
        font-size: 16px;
    }
    .catalog-price {
        font-size: 18px;
    }
    .catalog-button {
        width: 100%;
        text-align: center;
    }
}