/* Horizontal swipe menu rail — RTL-aware */
.nova-menu-swipe {
    position: relative;
    padding: 0.5rem 0 0.75rem;
    background: linear-gradient(180deg, var(--bs-body-bg) 0%, color-mix(in srgb, var(--bs-body-bg) 92%, var(--bs-secondary-bg)) 100%);
    border-bottom: 1px solid var(--bs-border-color-translucent);
}

.nova-menu-swipe__inner {
    position: relative;
    max-width: 100%;
}

.nova-menu-swipe__track {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem 2.75rem;
    mask-image: linear-gradient(90deg, transparent 0, #000 2rem, #000 calc(100% - 2rem), transparent 100%);
}

.nova-menu-swipe__track::-webkit-scrollbar {
    display: none;
}

.nova-menu-swipe__chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nova-menu-swipe__chip:hover {
    transform: translateY(-2px);
    color: inherit;
}

.nova-menu-swipe__chip--pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.nova-menu-swipe__chip--pill.is-active,
.nova-menu-swipe__chip--pill:hover {
    border-color: color-mix(in srgb, var(--bs-primary) 55%, var(--bs-border-color));
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.nova-menu-swipe__chip--card {
    width: 5.5rem;
    text-align: center;
}

.nova-menu-swipe__chip-thumb {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 0.35rem;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--bs-secondary-bg);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.nova-menu-swipe__chip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nova-menu-swipe__chip-label {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    max-width: 5.5rem;
    margin: 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nova-menu-swipe__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-body-bg);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    color: var(--bs-body-color);
    opacity: 0.92;
}

.nova-menu-swipe__btn:hover {
    opacity: 1;
    background: var(--bs-primary);
    color: var(--bs-primary-color, #fff);
}

.nova-menu-swipe__btn--prev {
    inset-inline-start: 0.35rem;
}

.nova-menu-swipe__btn--next {
    inset-inline-end: 0.35rem;
}

[dir="rtl"] .nova-menu-swipe__btn--prev i.bi-chevron-left::before {
    content: "\f285";
}

[dir="rtl"] .nova-menu-swipe__btn--next i.bi-chevron-right::before {
    content: "\f284";
}

@media (max-width: 575.98px) {
    .nova-menu-swipe__btn {
        display: none;
    }

    .nova-menu-swipe__track {
        padding-inline: 1rem;
    }
}
