﻿.category-wrapper {
    display: flex;
    align-items: center;
    position: sticky; 
    top: 0;
    z-index: 1000;
    background: white;
}

.category-bar {
    display: flex;
    overflow-x: auto;
    white-space: nowrap; 
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    scroll-behavior: smooth;
    flex: 1; 
    padding: 10px 0 !important;
}

    .category-bar::-webkit-scrollbar {
        display: none; 
    }

.menu-icon {
    flex: 0 0 auto; 
    padding: 10px 5px 10px 15px;
    cursor: pointer;
    font-size: 20px;
}


.category {
    flex: 0 0 auto;
    padding: 10px 20px;
    cursor: pointer;
    text-align: center;
}

.menumodal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
    z-index: 10000;
}


.menumodal-content {
    background-color: white;
    padding: 20px;
    border-radius: 20px;
    width: 90%; 
    max-width: 600px; 
    position: fixed;
    left: 50%;
    top: 50%;
    scrollbar-width: none;
    transition: bottom 0.3s ease-in-out;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
}

   
    .menumodal-content h4 {
        position: sticky;
        top: 0;
        background-color: white;
        padding: 20px;
        z-index: 1;
        margin: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 60px; 
    }


.close {
    font-size: 28px;
    cursor: pointer;
    color: #333;
    background-color: transparent;
    border: none;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}


.menumodal-content .modal-body {
    max-height: calc(80vh - 60px); 
    overflow-y: auto;
    padding-top: 20px;
    scrollbar-width: none;
}


@media (min-width: 769px) {
    .menumodal-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); 
        width: 90%;
        max-width: 600px;
    }

        
        .menumodal-content h4 {
            position: sticky;
            top: 0;
            background-color: white;
            z-index: 1;
            height: 60px;
        }

   
    .close {
        font-size: 28px;
        cursor: pointer;
        color: #333;
        position: sticky;
        top: 20px;
        right: 20px;
        z-index: 2;
    }

   
    .menumodal-content .modal-body {
        max-height: calc(80vh - 60px);
        overflow-y: auto;
    }
}


@media (max-width: 768px) {
    .menumodal-content {
        position: fixed;
        bottom: -100% !important;
        left: 0;
        width: 100%;
        max-width: none;
        border-radius: 20px 20px 0 0;
        transition: bottom 0.3s ease-in-out;
    }

   
    .menumodal.open .menumodal-content {
        bottom: 0;
    }

   
    .menumodal-content h4 {
        position: sticky;
        top: 0;
        background-color: white;
        z-index: 1;
        height: 60px;
    }

 
    .close {
        font-size: 28px;
        cursor: pointer;
        color: #333;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 2;
    }


    .menumodal-content .modal-body {
        max-height: calc(50vh - 60px);
        overflow-y: auto;
    }
}



.container-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.category-section {
    padding: 5px 0 0 10px;
}

    .category-section h5 {
        margin-top: 10px;
    }


.modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}



.btn-primario-modal {
    background-color: var(--main-color) !important;
}

.btn-secondario-modal {
    background-color: var(--second-color) !important;
}

.border-dark-botao-modal {
    border: 3px solid #000000 !important;
}

.font-bold {
    font-weight: bold;
}
