/* =========================
   MENU CATEGORIAS
========================= */

main nav{
    padding:10px;
    gap:15px;
    display:flex;
    overflow-x:auto;
    scrollbar-width:none;
}

main nav::-webkit-scrollbar{
    display:none;
}

main nav button{
    display: flex;
    padding:8px 14px;
    white-space:nowrap;
    border-radius:20px;
    flex-wrap: wrap;
    border:1px solid #2d2d2d45;
    background:white;
    cursor:pointer;
    transition:.3s;
}


main nav button:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,.12);
}

/* =========================
   TOPO CARDÁPIO
========================= */

.topper{
    min-height:100px;
}


/* =========================
   CARDS PRODUTOS
========================= */


main #cards{
    display:flex;
    justify-content:center;
    gap:25px;
    padding:20px;
    flex-wrap:wrap;
}


main #cards .card{
    position: relative;
    width:370px;
    min-height:400px;
    border-radius:15px;
    border:1px solid #2d2d2d45;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    background:white;
    transition:.3s;
}


main #cards .card:hover{
    transform:translateY(-5px);
    box-shadow:0 8px 20px rgba(0,0,0,.12);
}

main #cards .card img{
    width:100%;
    height:200px;
    object-fit:cover;
}

.top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px;
}


.top span{
    color:#E67E22;
    font-weight:bold;
}

main #cards .card p{
    padding:10px;
    flex:1;
}

main #cards .card button{
    margin:15px;
    padding:12px;
    border-radius:12px;
    border:none;
    background:#E67E22;
    font-weight:bold;
    cursor:pointer;
}


/* =========================
   PAINEL SUPERIOR
========================= */


.painel-wrapper{
    height:240px;
}


.painel-topo{
    width:90%;
    margin:35px auto;
    display:flex;
    gap:25px;
    align-items:flex-start;
}

.painel-topo.fixo{
    position:fixed;
    top:15px;
    left:50%;
    transform:translateX(-50%);
    width:90%;
    z-index:100;
    background:white;
    padding:15px;
    border-radius:15px;
    box-shadow:0 8px 25px rgba(0,0,0,.15);
}


/* =========================
   CARDS DO PAINEL
========================= */


.info-card,
.pedido-card{
    background:white;
    border-radius:15px;
    padding:20px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
}

.info-card{
    width:230px;
    display:flex;
    gap:15px;
    align-items:center;
}

.info-card i{
    font-size:35px;
    color:#E53935;
}



/* =========================
   PEDIDOS
========================= */
.pedido-card{
    flex:1;
    height:200px;
    display:flex;
    flex-direction:column;
}

.pedido-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.pedido-header div{
    display:flex;
    gap:10px;
    align-items:center;
}

.btn-finalizar{
    border:none;
    background:#25D366;
    color:white;
    padding:10px 15px;
    border-radius:10px;
    cursor:pointer;
    font-weight:bold;
}

#listaPedidos{
    flex:1;
    overflow-y:auto;
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:10px;
}

.pedido-footer{
    margin-top:auto;
    padding-top:12px;
    border-top:1px solid #ddd;
    display:flex;
    justify-content:space-between;
    font-weight:bold;
}

.itemPedido{
    background:#f7f7f7;
    padding:10px;
    border-radius:10px;
    display:flex;
    justify-content:space-between;
}



/* =========================
   CELULAR
========================= */



@media(max-width:700px){
    .painel-wrapper{
        height:90px;
    }

    main nav{
        padding: 30px;
        display: flex;
        flex-direction: column;
    }

    .painel-topo,
    .painel-topo.fixo{
        width:94%;
        top:10px;
        padding:8px;
        flex-direction:row;
        align-items:center;
        gap:8px;

    }


    /* Esconde informações menos importantes no celular */
    .info-card{
        display:none;
    }

    .pedido-card{
        width:100%;
        height:75px;
        padding:10px;
        border-radius:14px;
        display:flex;
        flex-direction:column;
    }


    .pedido-header{
        height:100%;
    }


    .pedido-header h3{
        font-size:14px;
        margin:0;
    }


    .pedido-header i{
        font-size:20px;
    }


    .btn-finalizar{
        padding:7px 12px;
        font-size:11px;
        border-radius:20px;
    }


    #listaPedidos{
        display:none;
    }


    .pedido-footer{
        border:none;
        padding:0;
        margin:0;
        font-size:13px;
    }


    .pedido-footer span{
        font-size:12px;
    }


    #valorTotal{
        font-size:15px;
        color:#E67E22;
    }

}