.catalog-categories {
    margin: 40px 0;
}

/* GRID */
.catalog-categories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Карточка */
.cat-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;

    /* фиксируем цвет текста */
    color: #fff;
}


.cat-card:hover,
.cat-card:focus,
.cat-card:active {
    color: #fff;
    text-decoration: none;
}

/* Картинка */
.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Затемнение */
.cat-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.45) 0%,
        rgba(0,0,0,0.15) 40%,
        rgba(0,0,0,0) 100%
    );
}

/* Контент */
.cat-card__content {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
}

/* Заголовок */
.cat-card__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

/* Hover эффект (zoom) */
.cat-card:hover img {
    transform: scale(1.05);
}

/* === ГЛАВНАЯ ФИШКА — ГРАДИЕНТНАЯ ПОЛОСКА === */
.cat-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;

    background: linear-gradient(90deg, #e53935, #f2992e);

    opacity: 0;
    transition: opacity 0.25s ease;
}

/* Показываем при наведении */
.cat-card:hover::after {
    opacity: 1;
}

/* Адаптив */
@media (max-width: 992px) {
    .catalog-categories__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .catalog-categories__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}