/* Shop banner category slider (single row) */
.tsr-slider {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 1100px;
    margin: 28px auto 0;
}

.tsr-viewport {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tsr-viewport::-webkit-scrollbar {
    display: none;
}

.tsr-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    margin: 0;
    padding: 2px;
    list-style: none;
}

.tsr-slider.is-short .tsr-track {
    justify-content: center;
}

.tsr-item {
    flex: 0 0 140px;
    margin: 0;
    scroll-snap-align: start;
}

.tsr-card {
    display: block;
    padding: 22px 8px 20px;
    text-align: center;
    color: #fff;
    background: rgba(20, 20, 22, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    transition: background-color 0.2s, border-color 0.2s;
}

.tsr-card:hover,
.tsr-card:focus-visible,
.tsr-card.is-active {
    color: #fff;
    background: #d9322a;
    border-color: #d9322a;
}

.tsr-name {
    display: block;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tsr-count {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #c4c4c8;
}

.tsr-card:hover .tsr-count,
.tsr-card:focus-visible .tsr-count,
.tsr-card.is-active .tsr-count {
    color: #fff;
}

.tsr-arrow {
    flex: none;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d9322a;
    color: #fff;
    cursor: pointer;
    position: relative;
    transition: opacity 0.2s;
}

.tsr-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.tsr-prev::before {
    transform: translate(-30%, -50%) rotate(-135deg);
}

.tsr-next::before {
    transform: translate(-70%, -50%) rotate(45deg);
}

.tsr-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.tsr-slider.is-short .tsr-arrow {
    display: none;
}

@media (max-width: 767px) {
    .tsr-slider {
        gap: 8px;
    }

    .tsr-item {
        flex-basis: 120px;
    }
}
