/* Homepage category circle slider — Bukhamsen-style bubbles, RTL-aware */
.nova-category-bubbles {
    padding: 0.75rem 0 1rem;
    background: var(--bs-body-bg);
}

.nova-category-bubbles__nav.nova-menu-swipe {
    padding: 0;
    background: transparent;
    border-bottom: 0;
}

.nova-category-bubbles__nav .nova-menu-swipe__track {
    gap: 1rem;
    padding: 0.35rem 2.75rem;
    mask-image: linear-gradient(
        90deg,
        transparent 0,
        #000 1.5rem,
        #000 calc(100% - 1.5rem),
        transparent 100%
    );
}

.nova-category-bubbles__item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 5.75rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.nova-category-bubbles__item:hover {
    transform: translateY(-3px);
    color: inherit;
}

.nova-category-bubbles__circle {
    --bubble-bg: #0d9488;
    width: 5rem;
    height: 5rem;
    margin: 0 auto 0.45rem;
    border-radius: 50%;
    background: var(--bubble-bg);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--bubble-bg) 45%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.35rem;
    border: 3px solid color-mix(in srgb, #fff 88%, var(--bubble-bg));
}

.nova-category-bubbles__circle--photo {
    padding: 0;
    background: #f1f5f9;
    border-color: #fff;
}

.nova-category-bubbles__circle--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: none;
}

.nova-category-bubbles__circle--icon {
    /* colored --bubble-bg from inline style */
    background: var(--bubble-bg);
}

.nova-category-bubbles__circle--icon .nova-category-bubbles__fallback-icon,
.nova-category-bubbles__circle--icon > i {
    font-size: 1.65rem;
    color: #fff;
}

.nova-category-bubbles__fallback-icon {
    pointer-events: none;
}

.nova-category-bubbles__circle--all {
    background: linear-gradient(145deg, #1e3a5f, #2563eb);
}

.nova-category-bubbles__label {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 5.75rem;
    margin: 0 auto;
    color: var(--bs-body-color);
}

.nova-category-bubbles__nav .nova-menu-swipe__track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

@media (max-width: 575.98px) {
    .nova-category-bubbles__circle {
        width: 4.5rem;
        height: 4.5rem;
    }

    .nova-category-bubbles__item {
        width: 4.85rem;
    }

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

/* Mobile app preview (admin iframe) — tighter, cleaner, more "native" */
body.mobile-app-preview-mode .nova-category-bubbles {
    padding: 0.5rem 0 0.75rem;
    background: #fff;
}

body.mobile-app-preview-mode .nova-category-bubbles__nav .nova-menu-swipe__track {
    gap: 0.75rem;
    padding: 0.25rem 1rem;
    scroll-snap-type: x proximity;
    mask-image: none;
}

body.mobile-app-preview-mode .nova-category-bubbles__item {
    width: 4.65rem;
}

body.mobile-app-preview-mode .nova-category-bubbles__circle {
    width: 4.1rem;
    height: 4.1rem;
    border-width: 2px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

body.mobile-app-preview-mode .nova-category-bubbles__label {
    font-size: 0.7rem;
    font-weight: 800;
    max-width: 4.65rem;
}
