/* ========================================= */
/* 1. PALETA E RESET BASICO */
/* ========================================= */

:root {
    --verde-limao: #A8E10C;
    --laranja: #FFB347;
    --terra: #8B5A2B;
    --grama: #82B440;
    --fundo-claro: #fffefc;
    --texto: #333;
    --sombra: rgba(0,0,0,0.15);
    --sombra-profissional: rgba(0, 0, 0, 0.08); /* Sombra mais suave */
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: var(--fundo-claro);
    color: var(--texto);
    overflow-x: hidden;
    padding-top: 85px; /* Compensa a altura da nav ajustada */
    line-height: 1.6;
}

main {
    width: 100%;
    margin: 0 auto;
}

/* Base Headings */
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--terra);
}


/* ========================================= */
/* 2. HEADER E BOTÕES CTA */
/* ========================================= */

/* HEADER fixo */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(90deg, var(--verde-limao), var(--laranja));
    color: white;
    padding: 15px 0; /* Ajustado */
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.site-logo {
    height: 60px; /* Ajuste para o novo tamanho */
    vertical-align: middle;
}

.logo-link {
    margin-right: auto; 
    margin-left: 20px; 
    padding: 0;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    color: #fffbe5;
    border-bottom: 2px solid white;
}

.cta-btn {
    background: var(--laranja);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
    display: inline-block;
    transition: all 0.3s ease;
    margin-right: 20px;
}

.cta-btn:hover {
    background: var(--grama);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}


/* ========================================= */
/* 3. HOME PAGE (INDEX.HTML) */
/* ========================================= */

/* HERO, Grama, Terra, Como Funciona, Variedades inalterados (estão ótimos) */

.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Adicione estas classes ao seu style.css */
.status-admin-color {
    color: var(--laranja); /* #FFB347 */
}
.status-funcionario-color {
    color: var(--grama); /* #82B440 */
}
.hero-img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    filter: brightness(0.70); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 90%;
    animation: fadeIn 2s ease forwards;
}

.hero-content h1 {
    font-size: 3.2em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    color: white; 
}

.hero-content p {
    font-size: 1.4em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.tag-confianca {
    margin-top: 30px;
    padding: 10px 20px;
    background: rgba(168, 225, 12, 0.85);
    color: var(--texto);
    font-weight: 600;
    border-radius: 5px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.tag-confianca i {
    margin-right: 8px;
    color: white; 
}

.grama {
    width: 100%;
    height: 70px;
    background: var(--grama);
    border-top-left-radius: 50% 25px;
    border-top-right-radius: 50% 25px;
    box-shadow: 0 -4px 10px var(--sombra);
    position: relative;
    z-index: 5;
}

.terra {
    width: 100%;
    height: 90px;
    background: var(--terra);
    border-top-left-radius: 50% 35px;
    border-top-right-radius: 50% 35px;
    box-shadow: inset 0 10px 10px rgba(0,0,0,0.25);
}

.como-funciona {
    padding: 60px 20px;
    text-align: center;
    background: var(--fundo-claro);
}

.como-funciona h3 {
    font-size: 2em;
    color: var(--laranja);
    margin-bottom: 40px;
}

.passos-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.passo {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    padding: 25px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.passo:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.icone-passo {
    font-size: 3.5em;
    color: var(--grama);
    margin-bottom: 15px;
}

.passo h4 {
    color: var(--terra);
    margin-bottom: 10px;
    font-size: 1.3em;
}

.passo .cta-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--laranja);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--laranja);
    transition: color 0.3s, border-color 0.3s;
}

.passo .cta-link:hover {
    color: var(--grama);
    border-color: var(--grama);
}

.detalhe-passo {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #555;
    font-style: italic;
}


.variedades-do-quintal {
    padding: 60px 20px;
    text-align: center;
    background: #faf8f4;
}

.variedades-do-quintal h3 {
    font-size: 2em;
    color: var(--grama);
    margin-bottom: 10px;
}

.variedades-do-quintal p {
    max-width: 700px;
    margin: auto;
    font-size: 1.1em;
    margin-bottom: 40px;
}

.variedades-categorias {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.variedade-categoria {
    width: 220px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--sombra);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.variedade-categoria:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.variedade-categoria img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.variedade-categoria h4 {
    color: var(--laranja);
    margin: 15px 0 5px;
}

.variedade-categoria p {
    padding: 0 15px 20px;
    font-size: 0.95em;
}


/* --- INÍCIO: MELHORIAS NAS SEÇÕES SOLTAS --- */

/* Depoimentos (Melhor contraste e separação) */
.depoimentos {
    padding: 70px 20px;
    background: linear-gradient(to bottom, #f7f3f0, #fffefc); /* Fundo mais claro e suave */
    text-align: center;
    border-top: 1px solid #f0eadd;
}

.depoimento-card {
    border-radius: 10px; 
    border-left: 5px solid var(--laranja);
    box-shadow: 0 4px 15px var(--sombra-profissional); /* Sombra mais limpa */
}

/* Sobre (Design como um cartão de apresentação) */
.sobre {
    padding: 70px 20px;
    background: white; /* Fundo branco puro para destaque */
    text-align: center;
    box-shadow: 0 0 30px var(--sombra-profissional); /* Grande sombra para parecer flutuante */
    margin: 40px auto;
    max-width: 900px;
    border-radius: 15px;
    border: 1px solid #f0f0f0;
}

.sobre h3 {
    color: var(--grama);
    font-size: 2.2em;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--verde-limao);
    display: inline-block;
    padding-bottom: 5px;
}

/* Contato (Visual Institucional, Focado na Localização) */
.contato {
    padding: 60px 20px;
    background: #3a3f47; /* Fundo escuro para contraste profissional */
    text-align: center;
    color: white;
}

.contato h3 {
    color: var(--laranja);
    font-size: 2em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.contato p {
    color: #ccc;
    font-size: 1.1em;
}

.contato iframe {
    margin: 20px auto;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6); /* Sombra mais forte no mapa */
    display: block;
}

.contato-info a {
    color: var(--verde-limao); /* Link em verde para destaque */
    text-decoration: none;
    font-weight: 600;
}

.contato-info a:hover {
    color: var(--laranja);
    text-decoration: underline;
}

/* Footer (Mais robusto e com separação clara) */
footer {
    background: var(--terra); 
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.95em;
    border-top: 5px solid var(--laranja); /* Linha de separação robusta */
}

/* --- FIM: MELHORIAS NAS SEÇÕES SOLTAS --- */


/* ========================================= */
/* 4. ESTILOS DE PEDIDO.HTML */
/* ========================================= */

.pedido-form-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.pedido-form-container h2 {
    color: var(--grama);
    margin-bottom: 10px;
    text-align: center;
}

.instrucoes {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* Abas de Categoria */
.categorias-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.tab-button {
    background: #f7f7f7;
    color: var(--terra);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px 5px 0 0;
    font-weight: 600;
}

.tab-button.active, .tab-button:hover {
    background: var(--laranja);
    color: white;
}

.tab-manual {
    background: #ffecb3;
    color: #ff9800;
}

.tab-manual.active, .tab-manual:hover {
    background: #ff9800;
    color: white;
}

/* Lista de Produtos no Pedido */
.lista-produtos-cliente {
    list-style: none;
    padding: 0;
}

.lista-produtos-cliente li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    gap: 10px;
}

.lista-produtos-cliente li:last-child {
    border-bottom: none;
}

.nome-produto {
    flex-grow: 1;
    font-weight: 600;
    color: var(--terra);
}

.input-quantidade {
    width: 150px;
    padding: 8px;
    text-align: right;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.input-quantidade:focus {
    border-color: var(--laranja);
    outline: none;
}

/* Resumo da Sacola */
.resumo-pedido-area {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    border: 1px solid #eee;
}

.resumo-pedido-area h3 {
    color: var(--laranja);
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

#lista-de-compras li {
    background: white;
    padding: 8px 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    border: 1px solid #f0f0f0;
}

.btn-remover {
    background: #e76f51; 
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 0.8em;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.3s;
}

.btn-remover:hover {
    background: #f44336;
}

.manual-tag {
    background: var(--terra);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: 600;
}

.frete-aviso {
    color: var(--grama);
    font-size: 0.9em;
    margin-top: 10px;
    font-weight: 600;
}

/* Formulário Principal */
#form-pedido h3 {
    color: var(--grama);
    margin-top: 30px;
    margin-bottom: 20px;
    border-top: 2px solid var(--laranja);
    padding-top: 20px;
}

#form-pedido input, #form-pedido textarea, #form-pedido select {
    /* ... (Estilos existentes) ... */
    border: 1px solid #ccc; /* Bordas mais visíveis */
}


/* ========================================= */
/* 5. ESTILOS DE CHECKOUT.HTML */
/* ========================================= */

.checkout-container { 
    max-width: 700px; 
    margin: 50px auto; 
    padding: 30px; 
}
.card-checkout { 
    background: #fff; 
    padding: 25px; 
    border-radius: 10px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.1); 
    margin-bottom: 25px; 
}
.card-checkout h3 { 
    color: var(--grama); 
    border-bottom: 2px solid var(--laranja); 
    padding-bottom: 10px; 
    margin-bottom: 15px; 
}

.lista-itens-checkout { 
    list-style: none; 
    padding: 0; 
}
.lista-itens-checkout li { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 8px 0; 
    border-bottom: 1px dotted #ddd; 
    font-size: 0.95em; 
}
.lista-itens-checkout li:last-child { 
    border-bottom: none; 
}
.item-custo { 
    margin-left: auto; 
    margin-right: 15px; 
    font-weight: bold; 
    color: var(--terra); 
    min-width: 60px;
    text-align: right;
}

.tag-alerta-custo { 
    font-size: 0.8em; 
    color: #e76f51; 
    font-weight: 600; 
    margin-left: 10px; 
}

/* Tabela de Valores */
.tabela-valores { 
    display: grid; 
    grid-template-columns: 1fr auto; 
    gap: 8px 15px; 
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.tabela-valores p { 
    text-align: left; 
    font-weight: 500; 
    margin: 0; 
}
.tabela-valores strong { 
    text-align: right; 
    margin: 0; 
    font-size: 1.1em; 
}
.total { 
    font-weight: 700 !important; 
    color: var(--terra) !important; 
    font-size: 1.2em !important; 
    border-top: 2px solid var(--grama);
    padding-top: 10px;
    grid-column: 1 / 3;
    display: flex;
    justify-content: space-between;
}
.total-final { 
    font-size: 1.4em !important; 
    color: var(--laranja) !important; 
}

.data-entrega-final { 
    text-align: center; 
    font-size: 1.2em; 
    margin-bottom: 25px; 
    color: var(--terra); 
}
.destaque-final { 
    width: 100%; 
    padding: 15px; 
    font-size: 1.2em; 
    margin-bottom: 10px;
}
.btn-editar { 
    display: block; 
    margin-top: 15px; 
    text-align: center; 
    color: var(--laranja); 
    text-decoration: none; 
    font-weight: 600;
    transition: color 0.3s; 
}
.btn-editar:hover { 
    color: var(--grama); 
}
.aviso-critico { 
    color: #e76f51; 
    background: #fff0e8; 
    border: 1px solid #e76f51; 
    padding: 10px; 
    border-radius: 5px; 
    margin-top: 15px; 
    font-weight: 600; 
    font-size: 0.9em;
}


/* ========================================= */
/* 6. ESTILOS DE ACOMPANHAMENTO.HTML */
/* ========================================= */

.acompanhamento-container { 
    max-width: 800px; 
    margin: 50px auto; 
    padding: 30px; 
}
.status-card { 
    text-align: center; 
    padding: 30px; 
    border-radius: 10px; 
    margin-bottom: 30px; 
    color: white; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.status-card h3 { 
    color: white; 
    margin-bottom: 5px; 
    font-size: 1.5em;
}
.status-principal { 
    font-size: 3em; 
    font-weight: bold; 
    margin-bottom: 10px; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.status-detalhe {
    font-size: 1.1em;
}
.card-detalhes { 
    background: #fff; 
    padding: 20px; 
    border-radius: 8px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    margin-bottom: 20px; 
}
.card-detalhes h3 { 
    color: var(--terra); 
    border-bottom: 1px solid #eee; 
    padding-bottom: 10px; 
    margin-bottom: 15px; 
}
.lista-itens-acompanhamento { 
    list-style-type: disc; 
    margin-left: 25px; 
    font-size: 0.95em;
}

/* Cores de Status (Para a página de acompanhamento) */
.status-pendente { background: #f4a261; }
.status-processando { background: var(--laranja); }
.status-entregue { background: var(--grama); }
.status-cancelado { background: #e76f51; }


/* ========================================= */
/* 7. RESPONSIVIDADE (MEDIA QUERIES) */
/* ========================================= */

@media screen and (max-width: 900px) {
    .variedades-categorias {
        gap: 20px;
    }
    .variedade-categoria {
        width: 45%; 
        max-width: none;
    }
    .sobre {
        margin: 30px 10px;
    }
}

@media screen and (max-width: 600px) {
    /* NAV/HEADER */
    nav {
        flex-wrap: wrap;
        justify-content: center;
        padding-bottom: 5px;
    }
    .site-logo {
        height: 50px; /* Logo ajustada para mobile */
    }
    .logo-link {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-bottom: 5px;
    }
    nav a, .cta-btn {
        margin: 0 5px;
        font-size: 0.8em;
        padding: 8px 15px;
    }
    body {
        padding-top: 105px; /* Compensa nav que pode ter 2 linhas */
    }

    /* HERO */
    .hero-content h1 {
        font-size: 1.8em;
    }
    .hero-content p {
        font-size: 1em;
    }

    /* GERAL */
    .passos-container, .depoimento-container {
        flex-direction: column;
        align-items: center;
    }
    .passo, .depoimento-card, .variedade-categoria {
        width: 90%;
        min-width: unset;
        max-width: unset;
        margin-bottom: 20px;
    }
    
    /* PEDIDO */
    .categorias-tabs {
        flex-direction: column;
    }
    .tab-button {
        width: 100%;
        border-radius: 5px;
        margin-bottom: 5px;
    }
    .lista-produtos-cliente li {
        flex-direction: column;
        align-items: flex-start;
    }
    .input-quantidade {
        width: 100%;
        margin-top: 5px;
    }
    
    /* CHECKOUT */
    .tabela-valores {
        grid-template-columns: 1fr auto;
    }
    .lista-itens-checkout li {
        flex-wrap: wrap;
    }
    .item-custo {
        order: 3; /* Coloca o preço na linha de baixo */
        width: 100%;
        text-align: left;
        margin: 5px 0 0 0;
    }
    
    /* CONTATO/SOBRE */
    .sobre {
        margin: 20px 0;
        border-radius: 0; /* Remove bordas arredondadas em telas pequenas */
    }
}

/* ========================================= */
/* ADMIN PANEL (Geral) */
/* ========================================= */

.admin-panel {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

.admin-panel h2 {
    color: var(--terra);
    border-bottom: 3px solid var(--laranja);
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-size: 2.2em;
}

.admin-panel h3 {
    color: var(--grama);
    font-size: 1.6em;
    margin-bottom: 20px;
    padding-top: 20px;
}

/* Contêiner de Produtos e Usuários (Layout de Duas Colunas) */
.produtos-gestao-container {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Formulário (1/3) e Lista (2/3) */
    gap: 30px;
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fdfdfd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.card-admin {
    padding: 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card-admin h4 {
    color: var(--laranja);
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Formulários de Cadastro (Produto e Usuário) */
.adicionar-produto form input, 
.adicionar-produto form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.adicionar-produto form button {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
}

/* Listagem de Produtos e Usuários */
.lista-produtos-ul {
    list-style: none;
    padding: 0;
}

.lista-produtos-ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
    border-bottom: 1px dashed #eee;
}

.lista-produtos-ul li:last-child {
    border-bottom: none;
}

/* Estilos de Categoria na Lista de Produtos */
.categoria-header-admin {
    font-weight: 700;
    color: var(--terra);
    background: #f0eadd;
    padding: 5px 10px;
    margin: 10px 0 5px 0;
    border-radius: 3px;
    width: 100%;
    box-sizing: border-box;
}

/* Botão de Deleção (Lixeira) */
.btn-delete {
    background: none;
    border: none;
    color: #e76f51;
    cursor: pointer;
    transition: color 0.2s;
    padding: 5px;
}

.btn-delete:hover {
    color: #f44336;
}

/* Estilos de Status de Usuário */
.lista-produtos-ul .status-admin-text {
    font-weight: bold;
    color: var(--laranja); /* Cor Laranja para ADMIN */
    font-size: 0.9em;
}

.lista-produtos-ul .status-funcionario-text {
    font-weight: bold;
    color: var(--grama); /* Cor Verde para FUNCIONÁRIO */
    font-size: 0.9em;
}


/* ========================================= */
/* ADMIN PANEL (Pedidos) */
/* ========================================= */

.pedidos-lista {
    margin-top: 20px;
}

.card-pedido {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 25px;
    border-left: 5px solid; /* A cor será definida pela classe de status */
    transition: all 0.3s ease;
}

/* Cores de Status da Borda Esquerda */
.status-pendente { border-left-color: #f4a261; }
.status-processando { border-left-color: var(--laranja); }
.status-entregue { border-left-color: var(--grama); }
.status-cancelado { border-left-color: #e76f51; }

.pedido-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.pedido-header h4 {
    color: var(--terra);
    font-size: 1.3em;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 700;
    color: white;
    font-size: 0.85em;
    min-width: 90px;
    text-align: center;
}

/* Cores de Status do Badge */
.status-pendente .status-badge { background: #f4a261; }
.status-processando .status-badge { background: var(--laranja); }
.status-entregue .status-badge { background: var(--grama); }
.status-cancelado .status-badge { background: #e76f51; }

.dados-financeiros, .itens-pedido {
    margin: 15px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.dados-financeiros p {
    font-size: 0.95em;
    margin: 0;
}
.dados-financeiros p strong {
    font-weight: 700;
}

.itens-pedido {
    grid-template-columns: 1fr;
}

.itens-pedido h5 {
    color: var(--terra);
    margin-bottom: 5px;
    font-weight: 600;
    grid-column: 1 / 3;
}

.itens-pedido ul {
    list-style: none;
    padding: 0;
}

.itens-pedido ul li {
    font-size: 0.95em;
    padding: 3px 0;
    border-bottom: 1px dotted #eee;
    display: flex;
    justify-content: space-between;
}

.itens-pedido ul li:last-child {
    border-bottom: none;
}

.tag-manual-admin {
    background: #3a3f47;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75em;
    margin-left: 10px;
    font-weight: 500;
}

.pedido-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.form-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-status select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    min-width: 150px;
}

.btn-delete-full {
    background: #e76f51;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 600;
}

.btn-delete-full:hover {
    background: #d65842;
}


/* ========================================= */
/* RESPONSIVIDADE ADMIN */
/* ========================================= */

@media screen and (max-width: 850px) {
    .produtos-gestao-container {
        grid-template-columns: 1fr; /* Empilha as colunas em telas menores */
    }
    .pedido-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .form-status {
        flex-direction: column;
        align-items: stretch;
    }
    .form-status select, .form-status button {
        width: 100%;
    }
    .dados-financeiros {
        grid-template-columns: 1fr;
    }
}

/* Correção no seu arquivo de estilo (Ex: style.css) */

.quantidade-control {
    display: flex; /* Mantenha o flex para alinhar lado a lado */
    align-items: center;
    width: 120px; /* Largura total desejada */
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden; 
}

.quantidade-control .input-quantidade {
    text-align: center;
    flex-grow: 1; /* PERMITE QUE O INPUT OCUPE O ESPAÇO RESTANTE */
    min-width: 30px; /* Garante que o número '0' caiba */
    margin: 0; 
    border: none; 
    height: 38px; 
    padding: 5px 0; 
    font-weight: bold; 
    background-color: #fff; 
    color: #333;
    -webkit-appearance: none;
    -moz-appearance: textfield; 
}

.quantidade-control button {
    /* Largura fixa para os botões */
    width: 30px; 
    height: 38px; 
    flex-shrink: 0; /* IMPEDE QUE OS BOTÕES ENCOLHAM (Isso garante que eles fiquem visíveis) */
    
    background-color: #f0f0f0; 
    border: none; 
    padding: 0; /* Zera o padding para ter mais espaço */
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    line-height: 1;
    transition: background-color 0.2s;
}

/* As linhas divisórias podem permanecer como estão */
.quantidade-control .btn-decrement {
    border-right: 1px solid #ccc; 
}
.quantidade-control .btn-increment {
    border-left: 1px solid #ccc;
}