:root {
    /* --- COLORS --- */
    /* Category Bar */
    --ebmenu1stbar-bg: rgba(245, 245, 245, 0.8);
    --ebmenu1stbar-btn-bg: #ffffff;
    --ebmenu1stbar-btn-text: #0B2D72;
    --ebmenu1stbar-active-bg: #0B2D72;
    --ebmenu1stbar-active-text: #ffffff;
    --ebmenu1stbar-nav-arrow-bg: #ffffff;
    --ebmenu1stbar-nav-arrow-color: #0B2D72;

    /* Cards Section */
    --ebmenu1crds-title-color: #0B2D72;
    --ebmenu1crds-card-border: #E02310;
    --ebmenu1crds-card-bg: #ffffff;
    --ebmenu1crds-name-color: #1a2b40;
    --ebmenu1crds-price-color: #E02310;
    --ebmenu1crds-desc-color: #0B2D72;
    --ebmenu1crds-add-bg: #E02310;
    --ebmenu1crds-add-text: #ffffff;
    --ebmenu1crds-img-border: #ffffff;
    --ebmenu1crds-img-shadow: rgba(0, 0, 0, 0.15);

    /* --- WIDTHS/SIZES --- */
    --ebmenu1crds-img-size: clamp(100px, 25vw, 140px);
    --ebmenu1crds-card-max-width: 800px;

    /* --- FONT SIZES --- */
    --ebmenu1stbar-fs-item: clamp(0.8rem, 2.5vw, 0.95rem);
    --ebmenu1crds-fs-title: clamp(1.2rem, 4vw, 1.5rem);
    --ebmenu1crds-fs-name: clamp(1rem, 3vw, 1.15rem);
    --ebmenu1crds-fs-price: clamp(0.95rem, 2.5vw, 1.1rem);
    --ebmenu1crds-fs-desc: clamp(0.75rem, 2vw, 0.85rem);

    /* QUANTITY CONTROLS --- */
    --ebmenu1crds-qty-border-color: #000000;
    --ebmenu1crds-qty-text-color: #000000;
    --ebmenu1crds-qty-bg: #ffffff;

    /* Variable Widths & Heights */
    --ebmenu1crds-action-width: var(--ebmenu1crds-img-size);
    /* Matches image width */
    --ebmenu1crds-qty-height: 35px;
    --ebmenu1crds-border-width: 1.5px;
}

/* =========================================
   CATEGORY BAR (Section 4)
   ========================================= */
.ebmenu1stbar-container {
    position: sticky;
    top: 40px;
    width: 100%;
    background: var(--ebmenu1stbar-bg);
    backdrop-filter: blur(10px);
    z-index: 900;
    padding: 10px 0;
    transition: background 0.3s ease;
}
.ebmenu1crds-category-block {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ebmenu1stbar-scroll-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    padding: 0 40px;
    /* Space for nav arrows */
}

.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 10px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.ebmenu1stbar-prev {
    right: 5px;
}

.ebmenu1stbar-next {
    left: 5px;
}

/* =========================================
   CARDS SECTION (Section 5)
   ========================================= */
.ebmenu1crds-section {
    display: flex;
    flex-direction: column;
    width: calc(100vw - 2em);
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 15px;
    gap: 25px;
    /* Distance between components */
}

.ebmenu1crds-title-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.ebmenu1crds-category-title {
    color: var(--ebmenu1crds-title-color);
    font-size: var(--ebmenu1crds-fs-title);
    position: relative;
    text-align: center;
    width: fit-content;
    margin: 0% auto;
}

/* Border bottom for title similar to image */
.ebmenu1crds-category-title::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 25%;
    width: 50%;
    height: 2px;
    background: var(--ebmenu1stbar-active-bg);
}

#ebmenu1crds-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px; 
}
.ebmenu1crds-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Distance between the title and cards is handled here via flex parent gap */
}

.ebmenu1crds-card {
    display: flex;
    justify-content: space-between;
    background: var(--ebmenu1crds-card-bg);
    gap: 10px;
    direction: rtl;
    width: 100%;
}

.ebmenu1crds-card-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: var(--ebmenu1crds-card-bg);
    border: 1.5px dashed var(--ebmenu1crds-card-border);
    border-radius: 15px;
    padding: 10px;
    gap: 10px;
    direction: rtl;
}

.ebmenu1crds-content-side {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    align-items: flex-start;
    font-weight: 600;
    font-size:var(--ebmenu1crds-fs-price);
}

.ebmenu1crds-add-btn {
    background: var(--ebmenu1crds-add-bg);
    color: var(--ebmenu1crds-add-text);
    padding: 6px 15px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.9rem;
}

.ebmenu1crds-media-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    /* Perfect distance between the image and the buttons below it */
    flex: 0 0 var(--ebmenu1crds-img-size);
    /* Prevents shrinking */
}

.ebmenu1crds-img {
    width: var(--ebmenu1crds-img-size);
    /* height: var(--ebmenu1crds-img-size); */
    aspect-ratio: 1/1;
    object-fit: fill;
    border-radius: 12px;
    border: 4px solid var(--ebmenu1crds-img-border);
    box-shadow: 0 4px 12px var(--ebmenu1crds-img-shadow);
}

.ebmenu1crds-action-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
   
   
}

/* Add Button */
.ebmenu1crds-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    /* width: var(--ebmenu1stbar-width-full); */
    width: fit-content;
    height: var(--ebmenu1crds-qty-height);
    background: var(--ebmenu1crds-add-bg);
    color: var(--ebmenu1crds-add-text);
    border-radius: 8px;
    border: none;
    font-weight: bold;
    font-size: var(--ebmenu1crds-fs-name);
    cursor: pointer;
}

/* =========================================
   QUANTITY CONTROLS (The Pill Shape)
   ========================================= */
.ebmenu1crds-qty-controls {
    /* Using Flexbox to perfectly align the -, number, and + */
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* width: var(--ebmenu1stbar-width-full); */
    width: fit-content;
    height: var(--ebmenu1crds-qty-height);
    border: var(--ebmenu1crds-border-width) solid var(--ebmenu1crds-qty-border-color);
    border-radius: 50px;
    background-color: var(--ebmenu1crds-qty-bg);
    overflow: hidden;
    direction: ltr;
}

.ebmenu1crds-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    /* height: var(--ebmenu1stbar-width-full); */
    height: 100%;
    background: transparent;
    border: none;
    color: var(--ebmenu1crds-qty-border-color);
    font-size: var(--ebmenu1crds-fs-title);
    font-weight: bolder;
    cursor: pointer;
    padding-inline: 8px;
}

.ebmenu1crds-qty-value-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    padding-inline: 8px;
    border-left: var(--ebmenu1crds-border-width) solid var(--ebmenu1crds-qty-border-color);
    border-right: var(--ebmenu1crds-border-width) solid var(--ebmenu1crds-qty-border-color);
}

.ebmenu1crds-qty-value {
    font-weight: bold;
    color: var(--ebmenu1crds-qty-text-color);
    font-size: var(--ebmenu1crds-fs-price);
}

/* =========================================
   DESKTOP ADAPTATIONS
   ========================================= */
@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-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* Two columns on desktop */
        max-width: 1200px;
        margin: 0 auto;


    }

    .ebmenu1crds-action-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        /* width: var(--ebmenu1crds-action-width);  */
        width: fit-content;
        gap: 8px;
    }
}