/* RESET leve */
*{
    box-sizing:border-box;
}

/* FUNDO */
body{
    margin:0;
    font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background:#f4f6fb;
}

/* CONTAINER INTELIGENTE */
.container{
    width:100%;
    max-width:520px; /* largura perfeita para leitura */
    margin:auto;
    padding:20px;
}


/* TITULO */
h1{
    text-align:center;
    margin-bottom:25px;
    font-size:28px;
}

@media(min-width:900px){
    h1{
        font-size:32px;
    }
}


/* CARD DO PRATO */
.card{
    background:white;
    padding:22px;
    border-radius:18px;
    box-shadow:0 8px 20px rgba(0,0,0,0.06);
    margin-bottom:20px;
}

/* ITENS */
.item{
    background:white;
    padding:18px;
    border-radius:16px;
    box-shadow:0 4px 14px rgba(0,0,0,0.05);
    margin-bottom:14px;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

/* evita texto esmagado */
.item-info{
    max-width:70%;
}

.preco{
    color:#16a34a;
    font-weight:bold;
}

.descricao-individual{
    font-size:14px;
    color:#666;
    margin-top:4px;
}

.titulo-prato{
    font-size:20px;
    font-weight:bold;
    margin-bottom:6px;
    text-align: center;
}

/* INPUT */
input[type="number"]{
    width:70px;
    height:48px;
    font-size:18px;
    border-radius:12px;
    border:1px solid #ddd;
    text-align:center;
}

/* TOTAL */
#total{
    font-size:24px;
    font-weight:bold;
    text-align:center;
    margin:25px 0;
}

/* BOTÃO */
button{
    width:100%;
    padding:18px;
    border:none;
    border-radius:16px;
    background:#22c55e;
    color:white;
    font-size:20px;
    font-weight:bold;
    cursor:pointer;
}

/* BOTÃO FIXO */
.botao-box{
    position: sticky;
    bottom: 0;
    background: transparent;
    padding: 12px;
}

@media (max-width:600px){

    .container{
        padding:15px;
    }

    h1{
        font-size:22px;
    }

    .card{
        padding:18px;
    }

    .item{
        padding:15px;
    }

    input[type="number"]{
        width:60px;
        height:44px;
        font-size:16px;
    }

    button{
        font-size:18px;
        padding:16px;
    }
}
@media (min-width:900px){

    body{
        background:#e9eef5;
    }

    .container{
        margin-top:40px;
    }

}
.contador{
    display:flex;
    align-items:center;
    gap:12px;
}

/* BOTÕES */
.contador button{
    width:40px;
    height:40px;
    border-radius:12px;
    border:none;

    display:flex;              /* 🔥 SEGREDO */
    align-items:center;        /* centraliza vertical */
    justify-content:center;    /* centraliza horizontal */

    font-size:24px;
    font-weight:bold;
    line-height:1;             /* evita desalinhamento */

    background:#22c55e;
    color:white;
    cursor:pointer;
}


/* efeito clique */
.contador button:active{
    transform:scale(0.92);
}

/* número */
.contador span{
    font-size:18px;
    font-weight:bold;
    min-width:20px;
    text-align:center;
}
/* CARD DO FORMULÁRIO */
.form-card{
    background:white;
    padding:24px;
    border-radius:18px;
    box-shadow:0 8px 24px rgba(0,0,0,0.06);
    margin-bottom:20px;
}

/* GRUPO */
.form-group{
    display:flex;
    flex-direction:column;
    margin-bottom:18px;
}

/* LABEL */
label{
    font-weight:600;
    margin-bottom:6px;
}

/* INPUTS E SELECTS */
.form-group input,
.form-group select{
    width:100%;
    padding:14px;
    border-radius:12px;
    border:1px solid #ddd;
    font-size:16px;
    background:white;
}

/* foco bonito (nível app) */
.form-group input:focus,
.form-group select:focus{
    outline:none;
    border:1px solid #22c55e;
    box-shadow:0 0 0 3px rgba(34,197,94,0.15);
}


