.koltuk-story {
    --koltuk-story-size: 110px;
    --koltuk-story-gap: 16px;
    display: block;
    background: #fff;
    margin: 0;
    padding: 20px 0 6px;
}

.koltuk-story-track {
    display: flex;
    gap: var(--koltuk-story-gap);
    margin: 0;
    padding: 2px 16px 10px;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding: 0 16px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.koltuk-story-track::-webkit-scrollbar {
    display: none;
}

.koltuk-story-item {
    flex: 0 0 var(--koltuk-story-size);
    width: var(--koltuk-story-size);
    margin: 0;
    padding: 0;
    list-style: none;
    scroll-snap-align: start;
}

/* Az ürün varken ortalar, taşınca kaydırmayı bozmaz */
.koltuk-story-item:first-child {
    margin-left: auto;
}

.koltuk-story-item:last-child {
    margin-right: auto;
}

.koltuk-story-link {
    display: block;
    color: #333;
    text-align: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.koltuk-story-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: var(--koltuk-story-size);
    height: var(--koltuk-story-size);
    border: 1px solid #e3e3e3;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
    transition: border-color .2s ease, transform .2s ease;
}

/* Kare görselin daireye köşeleri kesilmeden sığması için kenar ≤ çap / √2 */
.koltuk-story-img {
    display: block;
    width: calc(var(--koltuk-story-size) * .69);
    height: calc(var(--koltuk-story-size) * .69);
    object-fit: contain;
}

.koltuk-story-name {
    display: -webkit-box;
    margin-top: 8px;
    min-height: 2.6em;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.3;
    overflow-wrap: break-word;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (hover: hover) {
    .koltuk-story-track {
        cursor: grab;
    }

    .koltuk-story-link:hover .koltuk-story-ring {
        border-color: #b5b5b5;
        transform: translateY(-2px);
    }

    .koltuk-story-link:hover .koltuk-story-name {
        color: #000;
    }
}

.koltuk-story-track.koltuk-story-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.koltuk-story-track.koltuk-story-dragging .koltuk-story-link {
    pointer-events: none;
}

@media (max-width: 767px) {
    .koltuk-story {
        --koltuk-story-size: clamp(76px, calc((100vw - 58px) / 3.5), 96px);
        --koltuk-story-gap: 14px;
        padding-top: 14px;
    }

    .koltuk-story-name {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .koltuk-story-ring {
        transition: none;
    }
}
