
/* nave bar ***************************************** */

.search-box {
    border: 1px solid black;
    box-shadow: 0px 0px 0px 0px #C4C4C41A, 0px 4px 10px 0px #C4C4C41A, 0px 17px 17px 0px #C4C4C417, 0px 39px 23px 0px #C4C4C40D, 0px 108px 30px 0px #C4C4C400;
}

.search-box input::placeholder {
    color: #d1d1d1;
}

.search-box i {
    position: absolute;
    top: calc(50% + 2px);
    left: 15px;
    font-size: 24px;
    transform: translateY(-50%);
    color: black;
}
html[dir='rtl'] .bx-arrow-back{
    transform: rotate(180deg);
}
.menu-page-content{
    overflow: hidden;
}
.menu-page-content aside .body-box ul {
    max-height: 650px;
    overflow-y: auto;
    padding-right: 20px;
}

.menu-page-content aside .body-box li {
    margin-bottom: 25px;
    cursor: pointer;
    width: 250px;
    padding: 14px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.menu-page-content aside .body-box li.active,
.menu-page-content aside .body-box li:hover {
    background-color: var(--main-color);
    color: #fff;
}

.menu-page-content aside .body-box li.active .item-img,
.menu-page-content aside .body-box li:hover .item-img {
    background-color: white;
}

.menu-page-content aside .body-box li .item-name {
    font-size: 20px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-page-content aside .body-box li .item-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.menu-page-content aside .body-box li .item-img img {
    object-fit: cover;
    border-radius: 50%;
    margin: 2.5px 2.5px 0 0;
}

/* main content ************************************************************ */
/* scroll section ***************************************** */

.menu-page-content main {
    width: calc(100% - 650px);
}

main .main-head .left-text-box {
    width: 100%;
    max-width: 300px;
}

main .main-head .left-text-box h6 {
    font-size: 16px;
    font-weight: 600;
    line-height: 19.2px;
}

main .main-head .left-text-box p {
    font-size: 11px;
    font-weight: 400;
    line-height: 13.2px;
    margin-top: 5px;
}



main .main-head .left-text-box .state {
    color: var(--green-color);
    font-size: 10px;
    font-weight: 400;
    line-height: 12px;
}

main .main-head .control-tabs .tab {
    background-color: #d1d1d1;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 16.8px;
    text-align: center;
    min-width: 150px;
    flex-grow: 1;
    transition: all 0.3s;
}

main .main-head .control-tabs .tab.active,
main .main-head .control-tabs .tab:hover {
    background-color: var(--main-color);
    color: white;
}

main .place-menu .menu-tab {
    padding: 9px 20px;
    background-color: transparent;
    border: 1px solid var(--main-color);
    border-radius: 100px;
    flex-grow: 1;
    transition: background-color 0.3s;
    font-size: 14px;
    font-weight: 500;
    line-height: 16.8px;
}

main .place-menu .menu-tab.active {
    background-color: var(--main-color);
    color: white;
    font-weight: 600;
}

main .place-info a {
    font-size: 12px;
    font-weight: 700;
    line-height: 14.4px;
    box-shadow: 0px 9px 15px 0px #00000024, 0px 4px 20px 0px #FFD10017;
}

main .place-info a.chat-btn {
    font-size: 10px;
    font-weight: 500;
    line-height: 12px;
}

main .place-info a.chat-btn i {
    font-size: 14px;
    line-height: 14px;
    color: #FFED99;
}

main .place-info a .total-price {
    font-size: 12px;
    font-weight: 500;
    line-height: 14.4px;
}

main .place-info a .count {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #FFE366;
    font-size: 10px;
    font-weight: 500;
    line-height: 12px;
}

.scroll-section .product-slide {
    width: 100%;
    height: 230px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.scroll-section .product-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    background: var(--main-color);
}

.scroll-section .product-slide .info-box {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 10px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(8, 78, 90, 0.6) 100%);
    color: white;
    width: 100%;
    backdrop-filter: blur(1.5px);
}

.scroll-section .product-slide .info-box .box-head {
    font-size: 12px;
    font-weight: 600;
    line-height: 14.4px;
}

.scroll-section .product-slide .info-box .box-bottom {
    font-size: 9px;
    font-weight: 400;
    line-height: 10.8px;
    margin-top: 5px;
}

#place-info {
    display: none;
}

#place-info h6 {
    font-size: 16px;
    font-weight: 500;
    line-height: 19.2px;
}

#place-info p {
    color: #8C8C8C;
    font-size: 12px;
    font-weight: 400;
    line-height: 14.4px;
}

#place-info .left-info-box {
    width: 335px;
    max-width: 100%;
    flex-shrink: 0;
}

#place-info .left-info-box .time {
    font-size: 11px;
    font-weight: 300;
    line-height: 13.2px;
}

#place-info .left-info-box .info-table {
    background-color: var(--main-color);
    color: #fff;
    padding: 14px 20px;
    border-radius: 20px;
    width: 100%;
}

#place-info .left-info-box .info-table span {
    font-size: 11px;
    font-weight: 600;
    line-height: 13.2px;
}

#place-info .left-info-box .info-table span.time {
    font-size: 11px;
    font-weight: 300;
    line-height: 13.2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#place-info .right-info-box .clint-rev-box .clint-img {
    height: 100%;
}

#place-info .right-info-box .clint-rev-box .clint-img img {
    object-fit: cover;
    border-radius: 50%;
}

#place-info .right-info-box .clint-rev-box .text-box h6 {
    font-size: 12px;
    font-weight: 400;
    line-height: 14.4px;
    margin-top: 10px;
    margin-bottom: 10px;
}

#place-info .bottom-box .social-icons a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--main-color);
    color: #fff;
    font-size: 24px;
}

#place-info .bottom-box button {
    background-color: var(--main-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 8px;
}

.rtl main .place-menu .menu-tab {
    display: flex;
    flex-direction: row-reverse;
    gap: 5px;
}

.rtl .categories-menu .cat-item {
    display: flex;
    flex-direction: row-reverse;
    max-width: 170px;
}

.categories-menu .cat-item img {
    object-fit: contain;
}

.categories-menu .cat-item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* popup cart ******************************************* */


/* popup book **************** */

.offcanvas .popup-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 260px;
    object-fit: cover;
    z-index: -1;
}

.offcanvas .offcanvas-body {
    padding-bottom: 20px;
    overflow-y: auto;
    max-height: 50vh;
}



.offcanvas .popup-book .offcanvas-body {
    margin-top: 180px;
}

.offcanvas .popup-book .offcanvas-body button {
    background-color: var(--main-color);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 16.8px;
    width: 48%;
}

.offcanvas .popup-book .offcanvas-body button span {
    color: #FFF6CC;
    font-size: 14px;
    font-weight: 600;
    line-height: 16.8px;
}

.offcanvas .popup-book .offcanvas-body div div h6 {
    font-size: 16px;
    font-weight: 600;
    line-height: 19.2px;
}

.offcanvas .popup-book .offcanvas-body div div p {
    font-size: 11px;
    font-weight: 400;
    line-height: 13.2px;
    color: #8C8C8C;
}

.offcanvas .popup-book .offcanvas-body div div .state {
    color: var(--green-color);
    font-size: 10px;
    font-weight: 400;
    line-height: 12px;
}

.offcanvas .popup-book .offcanvas-body .other-notes {
    font-size: 12px;
    font-weight: 300;
    line-height: 14.4px;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--main-color);
    background-color: #FAF8F6;
    box-shadow: 0px 0px 0px 0px #C4C4C41A,
        0px 4px 10px 0px #C4C4C41A,
        0px 17px 17px 0px #C4C4C417,
        0px 39px 23px 0px #C4C4C40D,
        0px 108px 30px 0px #C4C4C400;
}

.offcanvas .popup-book .step-tow {
    display: none;
}

.offcanvas .popup-book .step-one {
    /* max-height: 270px; */
    overflow-y: auto;
    padding-bottom: 20px;
    padding-right: 5px;
    margin-top: 10px;
}

.offcanvas.offcanvas-end {
    border-left: 0 !important;
    border-right: 0 !important;
}

.offcanvas .popup-book .offcanvas-body input[type="range"] {
    min-width: 170px;
}



/* Desktop */
aside {
    position: relative;
    background-color: white;
    height: 100%;
    max-width: 290px;
    transition: all 0.3s ease;
    z-index: 50;
}

/* Hide control on desktop */
aside .control {
    display: none;
}

aside .aside-container {
    max-width: 290px;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .menu-page-content {
        position: relative;
    }

    aside {
        position: absolute;
        top: 0;
        inset-inline-start: -290px; /* <-- بديل left */
        height: 100vh;
        background-color: white;
        transition: all 0.3s ease;
    }

    aside.show {
        inset-inline-start: 0; /* <-- بدل left: 0 */
    }

    aside .control {
        display: flex;
        position: absolute;
        top: 10px;
        inset-inline-end: -35px; /* الزر يكون على الطرف المعاكس */
        background-color: white;
        border: 1px solid #ccc;
        z-index: 51;
    }

    main {
        padding-block: 20px;
        padding-inline-start: 20px;
        padding-inline-end: 20px;
    }

    .menu-page-content aside .body-box li {
        margin-bottom: 10px;
        width: 100%;
        padding: 14px;
    }

    .menu-page-content aside .body-box li .item-img {
        width: 40px;
        height: 40px;
    }

    .menu-page-content aside .body-box li .item-name {
        font-size: 20px;
    }

    aside .head {
        padding: 0 20px;
    }

    aside .body-box {
        padding-left: 20px;
    }
}






/* Responsive *************************************** */
@media (max-width: 768px) {


    .menu-page-content aside .body-box ul {
        max-height: 60vh;
        overflow-x: hidden;
    }

    main .main-head .left-text-box {
        margin-bottom: 20px;
    }

    main .main-head {
        flex-direction: column;
    }

    .scroll-section .product-slide {
        height: 200px;
    }

    .categories-menu .cat-item {
        padding: 10px 20px;
    }

    .sub-header-container {
        flex-wrap: wrap;
    }

    .sub-header {
        min-width: 200px;
    }

    #place-info>div {
        flex-direction: column;
        gap: 20px;
    }

    #place-info .box-btns {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    #place-info .box-btns button {
        width: 100%;
    }
}