@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&display=swap');

body {

    direction: rtl;
    font-family: "El Messiri", sans-serif;

}

:root {
    /* --- COLORS --- */
    /* Category Bar */
    --ebmenu1stbar-bg: #ffffff;
    --ebmenu1stbar-btn-bg: #ffffff;
    --ebmenu1stbar-btn-text: #0C0121;
    --ebmenu1stbar-active-bg: #0C0121;
    --ebmenu1stbar-active-text: #ffffff;
    --ebmenu1stbar-nav-arrow-bg: #ffffff;
    --ebmenu1stbar-nav-arrow-color: #0C0121;
    --ebmenu1crds-slider-wrapper-radius: 20px;
    --ebmenu1crds-slider-wrapper-border: #0C0121;
}

/* =========================================
   CATEGORY BAR 
   ========================================= */
.ebmenu1stbar-container {
    position: sticky;
    top: 80px;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    background: var(--ebmenu1stbar-bg);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 10px 0;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 0.45em 1.2em rgba(2, 6, 23, 0.35)
}

.ebmenu1crds-category-block {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ebmenu1stbar-scroll-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 90px);
    margin: 0 auto;
    padding: 0 10px;
    overflow: hidden;

    border: 2px solid var(--ebmenu1crds-slider-wrapper-border);
    border-radius: var(--ebmenu1crds-slider-wrapper-radius);
    position: relative;
    box-shadow: 0 0.45em 1.2em rgba(2, 6, 23, 0.35);
}

.ebmenu1stbar-scroll-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;

    background: linear-gradient(to left,
            rgba(82, 80, 80, 0.3) 0%,
            transparent 100%);

    pointer-events: none;
    /* مهم جداً */
    z-index: 2;
}

.ebmenu1stbar-scroll-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 100%;

    background: linear-gradient(to right, rgba(82, 80, 80, 0.3) 0%, transparent 100%);

    pointer-events: none;
    /* مهم جداً */
    z-index: 2;
}

.ebmenu1stbar-items-list {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 12px;
    padding: 5px 0;
    -ms-overflow-style: none;
    /* Hide scrollbar IE */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    align-items: center;
    justify-content: flex-start;
}

.ebmenu1stbar-items-list::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.ebmenu1stbar-cat-item {
    flex: 0 0 auto;
    /* Prevents shrinking */
    padding: 8px 16px;
    border-radius: 50px;
    border: none;
    background: var(--ebmenu1stbar-btn-bg);
    color: var(--ebmenu1stbar-btn-text);
    font-size: var(--ebmenu1stbar-fs-item);
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.ebmenu1stbar-cat-item.ebmenu1stbar-active {
    background: var(--ebmenu1stbar-active-bg);
    color: var(--ebmenu1stbar-active-text);
}

.ebmenu1stbar-nav-btn {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ebmenu1stbar-nav-arrow-bg);
    color: var(--ebmenu1stbar-nav-arrow-color);
    display: flex;
    /* Hidden on mobile by default */
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    z-index: 5;
}

.ebmenu1stbar-prev {
    right: 5px;
}

.ebmenu1stbar-next {
    left: 5px;
}


@media (min-width: 1024px) {
    .ebmenu1stbar-items-list {
        justify-content: center;
        /* Center items on desktop if they don't overflow */
    }

    .ebmenu1stbar-nav-btn {
        display: flex;
        /* Show navigation buttons */
    }

    .ebmenu1crds-action-container {
        display: flex;
        flex-direction: row;
        gap: 8px;
    }
}