.top-back-and-types {
    position: fixed;
    top: 60px;
    left: 0; 
    right: 0; 
    display: inline-flex;
    white-space: nowrap;
    align-items: center;
    padding: 5px 20px;
    margin-top: 0; 
    width: 100%;
    overflow-y: hidden;
    overflow-x: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin-bottom: 4px; 
    z-index: 999; 
    background: white; 
}

.top-back-and-types::-webkit-scrollbar {
    display: none; 
}


.top-back-and-types .back-btn {
    outline: none;
    border: none;
    background: #4154f1;
    color: white;
    padding: 8px 15px;
    font-size: 16px;
    border-radius: 10px;
}

.top-back-and-types .item-types-title {
    margin-left: 40px;
    font-size: 18px;
    font-weight: 500;
    color: #8d8d8d;
}

.top-back-and-types .item-types {
    list-style: none;
    display: flex;
    column-gap: 15px;
    margin: 0px;
    position: fixed;
    top: 80px;
    margin-left: 10px;
}

.top-back-and-types .item-types .item-type {
    background: white;
    padding: 8px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    column-gap: 8px;
    margin-left: 0px;
    box-shadow: 0 4px 8px rgba(65, 84, 241, 0.5);
}

.top-back-and-types .item-types .item-type a {
    text-decoration: none;
    color: black;
}

.top-back-and-types .item-types .item-type span {
    font-size: 16px;
    font-weight: 900;
    font-family: cursive;
}

.top-back-and-types .item-types .item-type.veg svg {
    fill: #39b039;
}

.top-back-and-types .item-types .item-type.non-veg svg {
    fill: #ff2323;
}

.top-back-and-types .item-types .item-type.day-deal svg {
    fill: #c6c626;
}

.top-back-and-types .item-types .item-type.active {
    background: #4154f1;
}

.top-back-and-types .item-types .item-type.active span {
    color: white;
}

.top-back-and-types .item-types .item-type.active svg {
    fill: white;
}

@media only screen and (max-width: 450px) {
    .top-back-and-types {
        padding: 10px 5px;
        justify-content: space-between;
        margin-bottom: 5px;
        margin-left: 1px;
    }
    .top-back-and-types .back-btn {
        padding: 0px 9px;
        font-size: 30px;
    }
    .top-back-and-types .back-btn span {
        display: none;
    }
    .top-back-and-types .item-types {
        column-gap: 8px;
        padding: 0px;
        position: fixed;
        top: 80px;
        margin-left: 10px;
    }
    .top-back-and-types .item-types .item-type {
        padding: 8px 10px;
    }
}



/* Search box specific styles */
.search-box-item {
    flex-shrink: 0; /* Prevents the search box from shrinking */
}

.search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 3px 20px 4px 11px;
    box-shadow: 0 2px 4px rgba(65, 84, 241, 0.5);
    transition: width 0.3s ease;
    width: 40px; /* Collapsed width */
    overflow: hidden;
    margin: 0px 0px -2px 13px;
}


.search-box.expanded {
    width: 250px; /* Expanded width */
    padding: 4px 12px;
    border-radius: 15px;
    border: 3px solid #4154f2;
    box-shadow: 0 5px 9px -1px black;
}

.search-box i {
    font-size: 18px;
    color: #4154f2;
    /* margin-right: 8px; */
    cursor: pointer;
    margin: 0px;
}

.search-text {
    border: none;
    outline: none;
    font-size: 18px;
    color: rgb(47, 47, 48);
    font-weight: 600;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    background: transparent;
    padding: 5px;
    width: 100%;
}


/* Search box autocomplete styles */

.autocomplete-results {
    display: none; 
    height: 220px; 
    overflow-y: auto; 
    top: 56px; 
    bottom: 0px; 
    left: 50px; 
    position: absolute; 
    z-index: 99; 
    background: white; 
    cursor: pointer; 
    box-shadow: 0 4px 8px #4154f2; 
    border-radius: 10px;
    padding: 1pc;
}
  
