/* ============================================
   catalog-block.css — заголовок + слайдер категорий
   ============================================ */

.catalog-section {
    width: 100%;
    background: #2e2725;
    padding: 48px 0;
}

.cat-heading {
    text-align: left;
    margin: 0 0 24px;
}

.cat-heading__title {
    color: #fff !important;
    font-size: 32px !important;
    font-weight: 600 !important;
    font-style: normal !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    text-align: left !important;
    margin: 0 0 12px !important;
}

.cat-heading__subtitle {
    color: #b3aca3;
    font-size: 18px;
    line-height: 1.5;
    text-align: left;
    max-width: 640px;
    margin: 0;
}

.catalog-block {
    margin: 0;
}

.cat-slider-wrap {
    position: relative;
    user-select: none;
}

.cat-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.cat-track::-webkit-scrollbar {
    display: none;
}

.cat-card {
    flex: 0 0 calc(33.333% - 8px);
    min-height: 320px;
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

.cat-card:hover,
.cat-card:focus,
.cat-card:active {
    color: #fff;
    text-decoration: none;
    transform: scale(1.018);
}

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.cat-card:hover img {
    transform: scale(1.055);
}

.cat-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.55) 0%,
        rgba(0,0,0,.10) 45%,
        rgba(0,0,0,0) 100%
    );
}

.cat-card__content {
    position: absolute;
    bottom: 14px;
    left: 16px;
    right: 16px;
}

.cat-card__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}

.cat-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #e53935, #f2992e);
    opacity: 0;
    transition: opacity .25s ease;
}

.cat-card:hover::after {
    opacity: 1;
}

.cat-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background .2s, opacity .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.cat-arrow:hover {
    background: #fff;
}

.cat-arrow.disabled {
    opacity: .3;
    pointer-events: none;
}

.cat-arrow svg {
    width: 18px;
    height: 18px;
    stroke: #222;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cat-prev { left: -16px; }
.cat-next { right: -16px; }

.cat-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}

.cat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.cat-dot.active {
    background: #e53935;
    transform: scale(1.35);
}

@media (max-width:640px){

    .cat-heading__title{
        font-size:24px!important;
    }

    .cat-heading__subtitle{
        font-size:15px;
    }

    .cat-card{
        flex:0 0 80vw;
        min-height:240px;
    }

    .cat-prev{left:-4px;}
    .cat-next{right:-4px;}
}