/* Контейнер сітки категорій */
.main-cat-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
    width: 100%;
}

/* Окрема картка */
.main-cat-card {
    background: rgba(253,249,247,1);
    border: 1px solid #f8ebe7;
    border-radius: 4px;
    overflow: hidden;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease; */
}

/* .main-cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
} */

/* Посилання на всю площу картки */
.main-cat-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

/* Блок зображення з ефектом Zoom */
.main-cat-image-wrapper {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background-color: rgba(253,249,247,1);
}

.main-cat-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* .main-cat-card:hover .main-cat-image-wrapper img {
    transform: scale(1.04);
} */

/* Текстова частина картки */
.main-cat-content {
    padding: 25px 16px;
    text-align: center;
}

/* Назва категорії */
.main-cat-title {
    font-size: 26px;
    color: #000000;
    margin: 0 0 8px 0;
}

/* Підзаголовок категорії */
.main-cat-subtitle {
    font-size: 16px;
    color: #482c22;
    margin: 0 0 20px 0;
    line-height: 1.4;
    white-space: normal;
}

/* Текстова кнопка дій */
.main-cat-btn {
    font-size: 16px;
    color: #8d3735;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.main-cat-card:hover .main-cat-btn {
    color: #000000;
}

.main-cat-btn-arrow {
    display: inline-flex;
    margin-top: -3px;
}

/* Адаптивність під мобільні пристрої та планшети */
@media (max-width: 992px) {
    .main-cat-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .main-cat-grid-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .main-cat-image-wrapper {
        height: 280px;
    }
}