body {
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

main{
    flex: 1;
}

#modal-1{
    width: 70% !important;
    height: 80%;
}

#modal-1 .md-content{
    height: 100%;
}

#modal-1 .imagem{
    float: right;
    display: flex;
    max-width: 47%;
    max-height: 100%;
    overflow-x: hidden;
    height: 100%;
    justify-content: center;
}

#modal-1 .imagem img{
    height: 100%;
}

#modal-1 .dados{
    width: 51%;
    height: 100%;
    display: flex;
    align-content: space-between;
    justify-content: space-between;
    padding: 0;
}

#modal-1 .dados input[type=number]{
    text-align: center;
    width: 50px;
    font-size: 15px !important;
    margin: 0;
    height: fit-content;
    border-radius: 3px;
    border: 1px solid #333;
}

#modal-1 .dados .valores{
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    margin-top: 10px;
}

#modal-1 .dados .qtd{
    width: 28%;
    display: flex;
    justify-content: space-between;
}

#modal-1 .dados .qtd i{
    background: #333;
    color: white;
    padding: 5px;
    border-radius: 3px;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#modal-1 .dados .valores p{
    width: fit-content;
    font-size: 20px;
    font-weight: bold;
}

#modal-1 .dados .composicoes,
#modal-1 .dados .adicionais,
#modal-1 .dados .pontos,
#modal-1 .dados .partes,
#modal-1 .dados .bordas,
#modal-1 .dados .utensilios{
    width: 100%;
    overflow-y: auto;
    margin-bottom: 7px;
    padding: 0 17px 0;
}

#modal-1 .dados .composicao,
#modal-1 .dados .adicional,
#modal-1 .dados .ponto,
#modal-1 .dados .parte,
#modal-1 .dados .borda,
#modal-1 .dados .utensilio{
    width: 100%;
    border: 1px solid #333;
    padding: 5px 10px;
    border-radius: 3px 3px 0px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#modal-1 .dados .composicao div,
#modal-1 .dados .adicional div,
#modal-1 .dados .ponto div,
#modal-1 .dados .parte div,
#modal-1 .dados .borda div,
#modal-1 .dados .utensilio div{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#modal-1 .dados .utensilio div{
    flex-wrap: wrap;
}

#modal-1 .dados .composicao small,
#modal-1 .dados .adicional small,
#modal-1 .dados .ponto small,
#modal-1 .dados .parte small,
#modal-1 .dados .borda small,
#modal-1 .dados .utensilio small{
    width: 70%;
}

#modal-1 .dados .composicao p,
#modal-1 .dados .adicional p,
#modal-1 .dados .ponto p,
#modal-1 .dados .parte p,
#modal-1 .dados .borda p{
    font-weight: bold;
    font-size: 17px;
}

#modal-1 .dados .utensilio p {
    font-weight: bold;
    font-size: 15px;
}

#modal-1 .dados .composicao i,
#modal-1 .dados .adicional i,
#modal-1 .dados .ponto i,
#modal-1 .dados .parte i,
#modal-1 .dados .borda i,
#modal-1 .dados .utensilio i{
    font-size: 20px;
}

#modal-1 .dados .utensilios > div{
    width: 100%;
    display: flex;
    flex-direction: column;
}

#modal-1 .dados .utensilios > div label{
    width: 100%;
    display: flex;
    justify-content: flex-start;
    border: none;
    margin: 14px 0 3px 0;
    font-weight: bold;
}

#modal-1 .composicoes input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    display: none;
}

#modal-1 .composicoes input[type="checkbox"]:checked + label::before {
    content: 'x';
    color: #333333;
    font-size: 18px;
    font-weight: bold;
}

label {
    position: relative;
    display: flex;
    height: 16px;
    width: 16px;
    border: 2px solid #6c6c6c;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    margin: 0;
}

#modal-1 table input{
    height: 17px;
    width: 17px;
    border: 0.5px solid #333;
    border-radius: 3px;
    box-shadow: none;
    margin: 0;
    vertical-align: middle;
    color: #333;
}

#modal-1 .topo,
#modal-1 .detalhes{
    width: 100%;
}

#modal-1 .topo{
    /* min-height: 14vh; */
}


#modal-1 .topo small{
    text-transform: uppercase;
}

#modal-1 .detalhes{
    height: 45vh;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    align-content: flex-start;
}

#modal-1 .topo small{
    font-size: 16px;
}

#modal-1 .detalhes .obs{
    width: 100%;
    padding: 17px 17px;
}

#modal-1 .detalhes .obs p{
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 15px;
}

#modal-1 .detalhes textarea{
    border-radius: 3px;
    padding: 5px;
    font-size: 16px;
    width: 100%;
    resize: none;
}

#modal-1 .total {
    width: 100%;
    display: flex;
    align-items: center;
    font-size: 20px;
    margin: 0;
    font-weight: bold;
    flex-wrap: wrap;
    justify-content: space-between;
    height: 13vh;
    align-content: space-between;
}

#modal-1 .total p{
    width: fit-content;
}

#modal-1 .total button{
    width: 100%;
    height: 45px;
}

#modal-1 i.fa.fa-close {
    color: #242424;
    padding: 0px 5px;
    font-size: 25px !important;
    border-radius: 3px;
}

    #modal-1 input[type='checkbox'] {
        width: 20px;
        height: 20px;
        appearance: none;          /* Remove estilo padrão */
        -webkit-appearance: none;  /* Safari */
        background-color: #fff;
        border: 2px solid #555;
        border-radius: 4px;
        cursor: pointer;
        position: relative;
        transition: background 0s;
    }

    #modal-1 input[type='checkbox']:checked {
        background-color: #333;
        border-color: #333;
    }

    #modal-1 input[type='checkbox']:checked::after {
        content: '';
        position: absolute;
        top: 2px;
        left: 6px;
        width: 5px;
        height: 10px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

    #modal-1 button{
        cursor: pointer;
    }

    #modal-1 button[disabled] {
        background: gray !important;
    }

/* MODAL - 2 */
#modal-2{
    height: 95%;
}

#modal-2 .md-content{
    max-height: 100%;
}

#modal-2 .topo_venda{
    height: 6%;
}

#modal-2 .topo_venda p{
    font-size: 20px;
}

#modal-2 .dados {
    width: 100%;
    max-height: 70%;
    overflow-y: auto;
    align-content: flex-start;
    height: 70%;
}

#modal-2 .produto{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: space-between;
    min-height: 100px;
}

#modal-2 .infos{
    width: 78%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

#modal-2 .detalhes{
    width: 100%;
}

#modal-2 .nome{
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

#modal-2 .nome p {
    width: fit-content !important;
}

#modal-2 .adicionais div,
#modal-2 .pontos div ,
#modal-2 .partes div ,
#modal-2 .bordas div ,
#modal-2 .utensilios div {
    display: flex;
    justify-content: space-between;
}

#modal-2 .adicionais p,
#modal-2 .pontos p,
#modal-2 .partes p,
#modal-2 .bordas p,
#modal-2 .utensilios p {
    width: fit-content !important;
}

#modal-2 .fa-trash{
    font-size: 15px;
    padding: 7px 0px;
}

#modal-2 .total{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#modal-2 .img_prod{
    width: 90px;
    height: 100px;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    border-radius: 3px;
}

#modal-2 .img_prod img{
    height: 100%;
}

#modal-2 .qtd{
    width: 30%;
    display: flex;
    justify-content: space-between;
    height: 25px;
}

#modal-2 .qtd i{
    background: #333;
    color: white;
    padding: 5px;
    box-sizing: border-box;
    border-radius: 3px;
    width: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#modal-2 .qtd input{
    width: 28%;
}

#modal-2 input[type=number]{
    text-align: center;
    width: 50px;
    font-size: 15px !important;
    border-radius: 3px;
    border: 1px solid #333;
    height: 100%;
}

#modal-2 .total p{
    width: fit-content;
    text-align: right;
    height: fit-content;
    font-size: 18px;
    font-weight: bold;
}

#modal-2 button{
    font-weight: bold;
    border-radius: 3px;
    padding: 7px;
}

#modal-2 .limpar{
    width: 30%;
    border: 1px solid #333;
    background: transparent;
    color: #333;
}

#modal-2 .finalizar{
    width: 69%;
    color: white;
}

#modal-2 .total_final{
    height: 10%;
}

#modal-2 .total_final input{
    border: none;
    background: transparent;
    color: #333;
}

#modal-2 .obs{
    margin-bottom: 10px;
}

#modal-2 hr{
    border-top: 1px solid #a0a0a0;
    margin: 13px 0;
}

#modal-2 .vazio{
    display: flex;
    justify-content: center;
    width: 100%;
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.col-1{
    width: 10%;
}

.col-2{
    width: 20%;
}

.col-3{
    width: 30%;
}

.col-4{
    width: 40%;
    text-align: left;
}

.col-5{
    width: 50%;
    text-align: left;
}

.col-6{
    width: 60%;
}

.col-7{
    width: 70%;
}

.col-9{
    width: 90%;
    text-align: left;
}

.col-10{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
}

.vermais-guia .fa-close{
    font-size: 20px;
}

.qtde{
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

#modal-1 .dados tr i {
    width: 25%;
    vertical-align: middle;
}

#modal-1 .dados tr input[type="number"] {
    width: 45%;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* SCROLL BAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(100, 100, 100, 0); /* Transparente inicialmente */
    border-radius: 4px;
    transition: background-color 0.3s;
}

body.scrolling ::-webkit-scrollbar-thumb {
    background-color: rgba(100, 100, 100, 0.4); /* Aparece durante o scroll */
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

body.scrolling {
    scrollbar-color: rgba(100,100,100,0.4) transparent;
}
/* ---------------------------------------- */

.prods{
    z-index: 992 !important;
    position: relative !important;
    
}

@media only screen and (max-width: 480px){
    html, body{
        max-width: 100%;
        overflow-x: hidden;
    }

    .menu_foto {
        margin-top: -3em;
        margin-bottom: 15px;
    }

    .categoria p {
        font-size: 18px;
    }

    .item{
        max-width: 100%;
        min-width: 99.3%;
        min-height: 120px;
        padding: 17px 0;
        border: none;
        border-bottom: 1px solid #4444442e;
        height: auto;
    }

    .item-texto {
        width: 65%;
    }

    .item p {
        font-size: 15px;
    }

    .item-img {
        max-width: 35%;
        height: 100px;
        border-radius: 3px;
    }

    .descricao {
        color: #595959;
        font-size: 12px !important;
        font-weight: 400 !important;
        line-height: 16px;
        white-space: pre-line;
        word-break: break-word !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 33px;
        padding-right: 9px;
    }

    .prods{
        z-index: 1000 !important;
        position: relative !important;
        
    }

    .vermais-guia{
        right: -100%;
        width: 100%;
    }

    .show {
        right: 0;
        z-index: 9999999;
    }

    #modal-1{
        width: 100% !important;
        height: 100%;
        z-index: 999999;
    } 

    #modal-1 .md-content{
        padding: 0;
        height: 100%;
    }

    #modal-1 .fa-angle-left {
        position: absolute;
        top: 13px;
        left: 19px;
        font-size: 23px;
        background: #ffffff;
        border-radius: 50%;
        padding: 10px;
        height: 35px;
        width: 35px;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0px 0px 4px 1px #3333336e;
        color: #d41717;
    }

    #modal-1 .imagem {
        max-width: 100%;
        max-height: 30%;
        width: 100%;
        overflow: hidden;
        align-items: center;
    }

    #modal-1 .imagem img{
        height: auto;
        width: 100%;
    }

    #modal-1 .dados {
        width: 100%;
        height: 81%;
        padding: 0px;
        overflow-y: auto;
    }

    #modal-1 .topo_venda p {
        font-size: 20px;
        width: 100%;
    }

    #modal-1 .dados .qtd {
        width: 33%;
    }

    #modal-1 .detalhes {
        height: 70%;
        overflow-y: visible;
    }

    #modal-1 .total {
        height: 18%;
        padding: 12px 17px 12px;
        box-sizing: border-box;
        overflow: hidden;
        box-shadow: -2px -8px 11px -9px #00000042;
    }

    #modal-1 .total input {
        height: 38%;
    }

    #modal-1 .total button {
        height: 50%;
        font-size: 18px;
    }

    #modal-1 .col-7 {
        width: 65%;
    }

    #modal-1 .col-2 {
        width: 25%;
    }

    #modal-1 .topo{
        padding: 8.5px 17px 8.5px;
        min-height: 107px;
        height: auto;
    }

    #modal-1 .dados .valores {
        margin-top: 5px;
    }

    #modal-1 .dados_infos {
        height: fit-content;
        overflow: hidden;
        width: 100%;
    }

    #modal-1 .dados_detalhes{
        width: 100%;
    }


    #modal-2{
        width: 100% !important;
        height: 100%;
        z-index: 999999;
    }

    #modal-2 .img_prod {
        width: 20%;
    }

    #modal-2 .adicionais p,
    #modal-2 .pontos p,
    #modal-2 .composicoes p,
    #modal-2 .obs p,
    #modal-2 .partes p,
    #modal-2 .bordas p,
    #modal-2 .utensilios p{
        font-size: 16px;
    }

    #modal-2 .qtd {
        width: 42%;
        height: 30px;
    }

    #modal-2 .qtd i {
        width: 30px;
        font: 18px;
    }

    #modal-2 .limpar,
    #modal-2 .finalizar{
        height: 100%;
    }

    .md-show + body {
        overflow: hidden;
        height: 100%;
    }

    .fa-close {
        font-size: 4em !important;
    }

    .itens-menu-prod {
        width: fit-content;
        height: 100%;
        display: flex;
        align-items: center;
        padding: 10px;
    }

    .navbar-nav>li>a {
        font-size: 18px;
    }

    .separador{
        display: none !important;
    }

    .info .fa-info-circle{
        font-size: 20px;
    }

    .texto_menu_foto .nome {
        font-weight: bold;
    }

    #modal-1 .topo_venda {
        padding: 0 16px;
    }

    #modal-1 .dados .composicao small, 
    #modal-1 .dados .adicional small, 
    #modal-1 .dados .ponto small, 
    #modal-1 .dados .parte small , 
    #modal-1 .dados .borda small , 
    #modal-1 .dados .utensilio small {
        text-align: end;
        font-size: 10px;
    }

    .categoria {
        padding: 0;
        border-radius: 3px;
        box-sizing: border-box;
        width: 90%;
        margin: 20px auto 20px auto;
    }

    #modal-2 .nome div p:last-child {
        width: 27% !important;
        text-align: end;
    }
    #modal-2 .adicionais div p:last-child {
        width: 34% !important;
        text-align: end;
    }

    #modal-2 .dados {
        padding-right: 13px;
    }

}

@media only screen and (max-height: 548px) {
    #modal-1 .total input,
    #modal-1 .total p{
        font-size: 18px !important;
    }

    #modal-1 .total {
        height: auto;
        padding: 0 17px 17px;
    }

    #modal-1 .total input {
        height: 60%;
        -webkit-text-fill-color: #333;
        opacity: 1;
    }

    #modal-2 .total_final input {
        color: #333;
        -webkit-text-fill-color: #333;
        opacity: 1;
    }

    #modal-1 small {
        font-size: 13px;
    }

    #modal-1 .total button {
        height: 60%;
    }

    #modal-1 .dados tr input[type="number"] {
        width: 45%;
        color: #333;
        -webkit-text-fill-color: #333;
        opacity: 1;
    }
}



@media only screen and (min-width: 480px){
    #modal-1 .dados {
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
        width: 100%;
        height: 85%;
        align-items: flex-start;
    }

    #modal-1 .imagem {
        float: right;
        display: flex;
        width: 47%;
        max-height: 100%;
        overflow-x: hidden;
        height: 100%;
        justify-content: center;
    }

    #modal-1 .detalhes {
        height: fit-content;
        overflow-y: hidden;
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
        width: 100%;
    }

    #modal-1 .detalhes .obs {
        width: 100%;
        padding: 17px 0;
    }
    
    #modal-1 .dados .composicoes, #modal-1 .dados .adicionais , #modal-1 .dados .pontos , #modal-1 .dados .partes, #modal-1 .dados .bordas , #modal-1 .dados .utensilios {
        width: 100%;
        overflow-y: auto;
        margin-bottom: 17px;
        padding: 0;
    }

    #modal-1 .total {
        width: 49%;
        display: flex;
        font-size: 20px;
        margin: 0;
        font-weight: bold;
        height: 15%;
        float: right;
        position: absolute;
        right: 20px;
        bottom: 20px;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-end;
    }

    .dados_detalhes{
        width: 100%;
    }
}


@media only screen and (min-width: 480px) and (max-width: 568px) {
    #modal-1 .imagem {
        float: right;
        display: flex;
        overflow: hidden;
        height: 30%;
        justify-content: center;
        width: 100%;
        align-items: center;
    }

    #modal-1 .imagem img {
        height: auto;
        width: 100%;
    }

    #modal-1 .total {
        width: 100%;
        position: fixed;
        right: 0;
        border: 0;
        background: white;
        bottom: 0;
    }

    #modal-1 .dados_detalhes {
        padding: 0 17px;
        margin-bottom: 5px;
    }

}

.loading{
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 3px;
    width: 65%;
    padding: 25px;
    color: white;
    font-weight: bold;
}

.loading h2{
    height: fit-content;
    display: flex;
    align-items: center;
    color: #333;
    width: 100%;
    justify-content: center;
}

.loading img{
    height: 45px;
    margin-right: 20px;
}

.bounce-top {
	-webkit-animation: bounce-top 0.9s both;
	        animation: bounce-top 0.9s both;
}

.over-btn-cart{
    display: none !important;
}

.categoria .accordion i{
    font-size: 18px;
}

#alerta-carrinho {
    display: none;
    position: absolute;
    top: -45px;
    right: 0;
    background: #4caf50;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* A setinha */
#alerta-carrinho::after {
    content: "";
    position: absolute;
    bottom: -14px;
    right: 28px;
    border-width: 8px;
    border-style: solid;
    border-color: #4caf50 transparent transparent transparent;
    background: radial-gradient(black, transparent);
}

.preco{
    position: relative !important;
}

.item {
    display: flex !important;
    justify-content: space-between !important;
}

.item-texto{
    display: flex;
    flex-wrap: wrap !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.descricao {
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    white-space: pre-line;
    word-break: break-word !important;
    display: -webkit-box;
    overflow: hidden;
}

.topo_venda {
    height: 60px;
    position: static;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


@media only screen and (min-width: 1080px) {

    .dados{
        height: 100% !important;
    }
    .dados_infos{
        width: 51%;
        max-height: 85%;
        overflow: auto;
    }

    .total{
        background: white;
    }

    .nome_prod{
        font-size: 20px !important;
    }
    
}