/* Estilos Gerais */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

header h1 {
    color: #2c3e50;
    margin: 0;
}

header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
}

h2 {
    color: #34495e;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-top: 0;
}

/* Formulários */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box; /* Para o padding não afetar a largura */
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="number"]:focus {
    border-color: #3498db;
    outline: none;
}

/* Botões */
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #3498db;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

#enviar-whatsapp {
    width: 100%;
    background-color: #25D366;
    margin-top: 15px;
}

#enviar-whatsapp:hover {
    background-color: #1EBE57;
}

/* Cardápio */
#menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.menu-item {
    background: #fff;
    padding: 0; /* Removido para a imagem preencher o topo */
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden; /* Garante que a imagem não saia do card */
}

.menu-item-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.menu-item-content {
    padding: 15px;
}


.menu-item h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.menu-item .price {
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 15px;
}

.menu-item button {
    width: 100%;
    background-color: #e67e22;
}

.menu-item button:hover {
    background-color: #d35400;
}

/* Resumo do Pedido */
#lista-pedido {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

#lista-pedido li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

#lista-pedido li:last-child {
    border-bottom: none;
}

#lista-pedido .item-controls button {
    background: none;
    border: none;
    color: #c0392b;
    cursor: pointer;
    font-size: 1.1em;
    padding: 0 5px;
}

#pedido-vazio {
    color: #95a5a6;
    text-align: center;
    padding: 20px;
    justify-content: center;
}

.total {
    text-align: right;
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 15px;
}

/* Rodapé */
footer {
    text-align: center;
    margin-top: 30px;
    color: #95a5a6;
    font-size: 0.9em;
}

/* Responsividade */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.8em;
    }
}
