﻿/* =========================
   DIGIKALA-LIKE STORY CAROUSEL (RTL) - FINAL
   ========================= */

/* Optional: full-width wrapper (background + subtle divider) */
.dk-story-wrap {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #f1f2f4;
}

/* Recommended: place inside container */
.dk-story-host {
    background: #fff;
    border-radius: 12px;
    padding: 10px 8px;
    margin-top: 10px;
}

/* Row */
.dk-story {
    position: relative;
    display: flex;
    align-items: center;
    direction: rtl;
    padding: 2px 0;
    gap: 6px;
}

/* Scroll track */
.dk-story__track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 6px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
}

    .dk-story__track::-webkit-scrollbar {
        display: none;
    }

/* Item */
.dk-story__item {
    width: 84px;
    flex: 0 0 auto;
    text-decoration: none;
    text-align: center;
    user-select: none;
    color: #0c0c0c;
}

    .dk-story__item:focus {
        outline: none;
    }

/* Circular image frame (flat, very light border) */
.dk-story__ring {
    width: 66px;
    height: 66px;
    margin: 0 auto 6px;
    border-radius: 50%;
    padding: 2px;
    background: #fff;
    border: 1px solid #e6e8ec; /* digikala-like light ring */
    display: grid;
    place-items: center;
}

    /* Image */
    .dk-story__ring img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        background: #f6f7f9;
        display: block;
    }

/* Text */
.dk-story__label {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 6px;
    color: #3f4064; /* digikala-ish dark blue-gray */
}

/* Nav buttons (desktop) */
.dk-story__nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e6e8ec;
    background: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}

/* Show arrows only on hover like Digikala */
.dk-story:hover .dk-story__nav {
    opacity: 1;
    pointer-events: auto;
}

.dk-story__nav:active {
    transform: scale(.98);
}

.dk-story__nav[disabled] {
    opacity: .25;
    cursor: default;
    pointer-events: none;
}

/* Mobile: hide arrows, slightly smaller */
@media (max-width: 576px) {
    .dk-story__nav {
        display: none;
    }

    .dk-story__item {
        width: 78px;
    }

    .dk-story__ring {
        width: 62px;
        height: 62px;
    }

    .dk-story__label {
        font-size: 11.5px;
    }
}
.dk-story__nav {
    position: relative;
    z-index: 5;
}

.dk-story__track {
    z-index: 1;
}
/* DK Story RTL ضمانتی */
.dk-story__track {
    direction: rtl !important;
}
