
/* START restaurant categories nav */
.active-category {
    background-color: var(--mb-colour) !important;
    color: #ffffff !important;
}
.food-menu-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 0 auto;
    background-color: #f7f7f7;
    padding: 20px 0;
}

@media (max-width: 767.98px) {
    .food-menu-wrapper {
        padding-top: 7px !important;
        padding-bottom: 0px !important;
    }
    .food-menu-wrapper-shadow {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
}

.food-menu-cat-box {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
}

/* Hide Scrollbar on Large Displays */
@media (min-width: 768px) {
    .food-menu-cat-box {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    .food-menu-cat-box::-webkit-scrollbar {
        display: none; /* WebKit-based browsers (Chrome, Safari, Opera) */
    }
}

/* Show and Style Scrollbar on Mobile Devices */
@media (max-width: 767px) {
    /* For Firefox */
    .food-menu-cat-box {
        scrollbar-width: thin; /* Makes the scrollbar thinner in Firefox */
        scrollbar-color: var(--mb-colour) #f1f1f1; /* Thumb color: var(--mb-colour), Track color: #f1f1f1 */
        position: relative; /* Enables positioning for additional effects */
    }

    /* For WebKit-based browsers (Chrome, Safari, Edge) */
    .food-menu-cat-box::-webkit-scrollbar {
        height: 6px; /* Horizontal scrollbar thickness (height) */
    }

    .food-menu-cat-box::-webkit-scrollbar-thumb {
        background-color: var(--mb-colour); /* Thumb color */
        border-radius: 4px; /* Rounded corners for the thumb */
    }

    .food-menu-cat-box::-webkit-scrollbar-track {
        background-color: #f1f1f1; /* Track background color */
    }
}


    .food-menu-cat {
        margin-right: 5px;
        overflow: visible;
        border-radius: 12px;
        display: inline-block;
        font-family: var(--title-font-family);
        font-weight: 600;
        font-size: 16px;
        line-height: 22px;
        font-style: normal;
        letter-spacing: 0em;
        padding: 10px 15px;
        position: relative;
        text-align: center;
        background-color: white;
        z-index: 0;
        -webkit-transition: all 0.4s ease;
        -moz-transition: all 0.4s ease;
        -ms-transition: all 0.4s ease;
        -o-transition: all 0.4s ease;
        transition: all 0.4s ease;
        white-space: nowrap; /* Ensure the text doesn't wrap */
    }

    a.food-menu-cat:hover{
        color:initial;
    }

.food-menu-paddle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 65px;
    height: 65px; /* Set height to match the item */
    display: flex;
    font-size: 36px;
    border-radius: 50%;
    align-items: center;
    color: var(--headings-color);
    cursor: pointer;
    z-index: 1;
    justify-content: center;
    background-color: #F7F7F7;
}

    .left-food-menu-paddle {
        left: -12px;
        -webkit-box-shadow: 15px 0px 15px -15px rgba(107,106,107,0.78);
        -moz-box-shadow: 15px 0px 15px -15px rgba(107,106,107,0.78);
        box-shadow: 15px 0px 15px -15px rgba(107,106,107,0.78);
    }

.right-food-menu-paddle {
    right: -12px;
    -webkit-box-shadow: -15px 0px 15px -15px rgba(107,106,107,0.78);
    -moz-box-shadow: -15px 0px 15px -15px rgba(107,106,107,0.78);
    box-shadow: -15px 0px 15px -15px rgba(107,106,107,0.78);
}

    .hidden {
        display: none !important;
    }


    /* Hide paddles on screens smaller than 768px (adjust as needed) */
    @media (max-width: 767px) {
        .food-menu-paddle {
            display: none;
        }

        .food-menu-cat-box {
            padding-bottom: 5px;
            scrollbar-width: thin; /* Firefox */
            -ms-overflow-style: auto; /* IE and Edge */
        }

            .food-menu-cat-box::-webkit-scrollbar {
                display: block; /* Chrome, Safari, Opera */
                height: 8px; /* Adjust height for horizontal scrollbar */
            }

            .food-menu-cat-box::-webkit-scrollbar-thumb {
                background-color: #888; /* Scrollbar color */
                border-radius: 10px; /* Rounded corners for the scrollbar */
            }

            .food-menu-cat-box::-webkit-scrollbar-track {
                background-color: #f1f1f1; /* Track color */
            }
    }
    /* END restaurant categories nav */


/* START restaurant category list items */
.food-item-container {
    display: flex;
}

.food-item-image-container {
    margin-right: 10px;
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 12px;
    flex-shrink: 0;
}

    .food-item-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.food-item-name {
    text-decoration: none !important;
}

    .food-item-name span {
        background-color: #EB6753;
        border: 1px solid #EB6753;
        border-radius: 8px;
        color: #ffffff;
        padding: 0 5px;
        font-size: 12px;
    }

.add-food-to-basket-btn {
    background-color: #F7F7F7 !important;
    border-radius: 50% !important;
    line-height: 14px !important;
    padding: 10px !important;
}


@media (max-width: 600px) {
    .food-item-image-container {
        width: 80px;
        height: 80px;
    }
}
/* END restaurant category list items */

/* START Menu Items Grid Layout */
.food-digital-menu-section > div {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, 135px);
    gap: 10px;
}

/* Ensure articles don't break the grid */
.food-digital-menu-section article.listing-style1 {
    width: 135px;
    display: flex !important;
    flex-direction: column;
    cursor: pointer;
    float: none !important;
    clear: none !important;
}

.food-digital-menu-section .list-thumb {
    position: relative;
    flex-shrink: 0;
}

.food-digital-menu-section .list-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    box-shadow: 0px -3px 4px rgba(24, 26, 32, 0.07);
}

.digital-menu-discount-tag {
    line-height: initial;
    background-color: #EB6753;
    border-radius: 6px;
    top: 10px;
    color: #ffffff;
    font-family: var(--title-font-family);
    font-weight: 600;
    font-size: 14px;
    left: 5px;
    padding: 3px 10px;
    position: absolute;
}

.digital-menu-info-tag {
    line-height: initial;
    background-color: var(--mb-colour);
    border-radius: 16px;
    top: 10px;
    color: #ffffff;
    font-family: var(--title-font-family);
    font-weight: 600;
    font-size: 14px;
    right: 5px;
    padding: 3px 12px;
    position: absolute;
}

.digital-menu-price-container {
    line-height: initial;
    background-color: #ffffff;
    border-radius: 6px;
    bottom: 10px;
    color: var(--headings-color);
    font-family: var(--title-font-family);
    font-weight: 600;
    font-size: 14px;
    left: 5px;
    padding: 3px 10px;
    position: absolute;
}

.food-digital-menu-section .food-item-container {
    flex: 1 1 auto;
}

/* Ensure modals don't interfere with grid layout */
.food-digital-menu-section .advance-feature-modal {
    display: contents;
}

/* Mobile - full width */
@media (max-width: 767px) {
    .food-digital-menu-section article.listing-style1 {
        width: 100%;
        height: 100%;
    }

    .food-digital-menu-section > div {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
}


/* END Menu Items Grid Layout */



