﻿.am-catsec {
    margin: 28px 0 12px
}

.am-catsec__head {
    text-align: center;
    margin-bottom: 18px
}

.am-catsec__eyebrow {
    display: none;
}

.am-catsec__title {
    margin: 0 0 14px;
    font-family: "Montserrat","Segoe UI",Roboto,Arial,sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #1f2937;
}

.cat-rail {
    position: relative;
}

.cat-viewport {
    overflow: hidden;
}

.cat-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 6px 4px 10px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: default;
    user-select: none;
    margin: 0;
    list-style: none;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
}

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

    .cat-track img {
        -webkit-user-drag: none;
        user-drag: none;
    }

.cat-card {
    flex: 0 0 clamp(200px,18vw,280px);
    scroll-snap-align: start
}

.cat-card__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    padding: 14px;
    transition: transform .25s, box-shadow .25s
}

    .cat-card__link:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 22px rgba(0,0,0,.08)
    }

.cat-card__imgwrap {
    width: 100%;
    aspect-ratio: 16/9;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px
}

    .cat-card__imgwrap img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center
    }

.cat-card__noimg {
    width: 70%;
    height: 70%;
    background: linear-gradient(135deg,#f2f2f2,#e9e9e9);
    border-radius: 10px
}

.cat-card__name {
    text-align: center;
    font-weight: 700
}

.cat-card__count {
    margin-top: 2px;
    font-size: 12px;
    color: #777
}

.cat-arrow {
    position: absolute;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: #000;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    transition: opacity .2s, transform .2s, filter .2s;
}

.cat-rail:hover .cat-arrow,
.cat-rail:focus-within .cat-arrow {
    opacity: 1;
    pointer-events: auto;
}

.cat-arrow:hover {
    transform: translateY(-50%) scale(1.05);
    filter: brightness(1.05);
}

.cat-arrow.is-disabled,
.cat-arrow:disabled {
    opacity: .25 !important;
    pointer-events: none !important;
}

.cat-prev {
    left: 6px;
}

.cat-next {
    right: 6px;
}

@media (max-width: 900px) {
    .cat-arrow {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width:640px) {
    .cat-card {
        flex-basis: clamp(160px,60vw,240px)
    }

    .cat-card__imgwrap {
        aspect-ratio: 1/1;
    }
}
