* {
    box-sizing: border-box;
}
body{margin: 0;}

button{
    background-color: #000;
    color: white;
    padding: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 20px;
    transition: background-color 0.3s ease;
    margin: 5px;
    font-size: 14px;
    min-width: 100px;
}

select{
    padding: 5px;
    min-width: 140px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
}

select option{
    font-size: 16px;
    font-weight: bold;
}
input[type="text"], input[type="number_format"], input[type="number"], input[type="email"],  input[type="password"], input[type="date"], input[type="tel"], select{
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 5px;
}

.body1 {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    background-image:url(../images/fundo.webp);
    background-repeat: no-repeat;
    background-size: cover; 
    background-position: center;
    /* background: #212121; */
    margin: 0;
    width: 100vw;
    height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    padding-top: 10px;
    padding-bottom: 10px;
}

.form2 {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    width: 400px;
    padding-bottom: 30px;
    padding-top: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0px 0px 20px #000000;
    margin-bottom: 10px;
    flex-direction: column;
}

#input_box{
    z-index: 999;
    position: fixed;
    display: none;
    top: 50%;
    left: 50%;
    height: 300px;
    width: 400px;
    margin-top: -150px;
    margin-left: -200px;
    background-color: white;
    padding: 20px;
    box-shadow: #616161;
    border-radius: 20px;
}

#input_box #input_message{
    /* background-color: #bebebe; */
    justify-content: center;
}

.barraBusca{
    margin-bottom: 15px; 
    width: 300px;
}

.grid{
    display: grid;
    width: 100%;
}

.grid div {
    display: flex;
    align-items: center;    
    padding: 5px;
    margin-bottom: 10px;
    height: 50px;
    background-color: #f1f1f1;
}
.grid_meioPag{
    display: grid;
    width: 100%;
}

.grid_meioPag div {
    display: flex;
    align-items: center;    
    padding: 5px;
    margin-bottom: 10px;
    height: 30px;
    background-color: #f1f1f1;
}

.grid_top{
    display: grid;
    width: 100%;
    border-radius: 5px;
    align-items:center;
    padding-left: 5px;
    margin-bottom: 5px;
    height: 50px;
    background-color: #090909;
    color: white;
}

.gridDelivery {
    display: grid;   
    width: 100%;
    align-items: center; 
    cursor: pointer;
    background: transparent; 
    margin-top: 1px;
}

/* cada célula dentro da linha */
.gridDelivery > div {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    height: 50px;            
    margin: 0;               
    background: transparent; 
    border-bottom: none;     
    font-family: sans-serif;
    font-size: 16px;
}

.erro-input{
    border: 2px solid #e53935 !important;
    background: #fff5f5;
}

.linhaDelivery {
    display:grid;
    grid-template-columns: 12% 12% 26% 3% 8% 10% 8% 5% 8% 8%;
    margin-top:1px; cursor:pointer;
    border-bottom: 1px solid #000;
}

/* destaque da linha selecionada */
.linhaDeliverySelecionada {
    background-color: #90c9ff !important; /* cor de destaque */
    border-left: 4px solid #007bff;
}

/* hover para melhor usabilidade */
.linhaDelivery:hover {
    background-color: #e8f4ff;
}

.btnFiltro {
    background-color: #000;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btnFiltro.ativo {
    background: #007bff;
    color: #fff;
    border-color: #0056b3;
}

.btnFiltro.btnCancelar.ativo {
    background: #c62828;
}

#btnMenuFiltros{
    display: none;
    background: #000;
    color: #fff;
    font-size: 22px;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 10px;
    cursor: pointer;
}

.filtrosWrapper{
    display: flex;
    align-items: center;
}

.acao_rest {
    height: 200px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    background-color: white;
    color: black; 
    border: 3px black solid; 
    border-radius: 7px;
    width: 200px;
    margin: 40px;
    transition: 0.2s;
}

.acao_rest:hover {
    transform: scale(1.05);
}

.acao_rest img {
    margin-bottom: 10px;
}

.flex, [flex="true"]{
    display: flex;
    align-items: center;
    padding: 1px;
    flex-direction: row;
}

.flex div, [flex="true"] div{
    margin: 10px;
}

.flex_center{
    display: flex;
    align-items: center;
    padding: 5px;
    flex-direction: row;
    justify-content: center;
    font-size: 18px;
    padding: 10px;
}

.error {
    width: 95%;
    height: 60px;
    padding: 10%;
    color: #c82a2a;
    text-align: center;
}

.linha:focus {
    outline-color: #212121;
}

.cad_est{
    font-size: 14px;
    background-color: #212121;
    color: white;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    justify-content: right;
    margin-left: auto;
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


.logo-meio{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none; 
    animation: animate__bounceIn 1s;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* .conteudo_index{
    position: fixed;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10; 
} */

.prod-imagem {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.prod-imagem a {
    width: 47px;
    height: 47px;
    display: block;
}

.prod-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* corta sem distorcer */
    object-position: center;
    border-radius: 6px;     /* opcional */
}

.esq_senha{
    padding: 15px;
}

.estab-item {
    padding: 8px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.estab-item:hover {
    background-color: #f0f0f0;
}

#listaEstabs {
    display: none;
    position: absolute;
    background: #fdfdfd;
    border: 1px solid #ddd;
    padding: 8px;
    margin-top: 5px;
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    width: 250px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
    border-radius: 6px;
}

#listaEstabs a {
    display: block;
    padding: 8px 10px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

#listaEstabs a:hover {
    background: #f0f0f0;
    cursor: pointer;
}
.dropdown-container {
    position: relative;
    display: inline-block;
    margin-left: 20px;
}

/* Links de navegação do hamburger: só aparecem no mobile */
.cabec-nav-item {
    display: none !important;
}

/* DESKTOP */
.menu-desktop{
    display:flex;
    align-items:center;
    gap:20px;
}

/* MOBILE */
@media(max-width:768px){

    .menu-desktop{
        display:none;
    }

    .cabec-nav-item {
        display: block !important;
    }

    .nome-usuario{
        font-size:16px !important;
        margin-right:10px !important;
    }

    .dropdown-menu1{
        position:absolute;
        right:0;
        top:50px;
        background:black;
        min-width:250px;
        max-width:250px;
        z-index:9999;
        border-radius:10px;
        overflow:hidden;
    }

    .dropdown-menu1 a{
        display:block;
        padding:12px;
        color:white;
        text-decoration:none;
    }

    .dropdown-menu1 a:hover{
        background:#111;
    }

    #subCadastrosMobile a{
        padding-left:25px;
    }
}

.dropdown-menu {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    min-width: 220px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 200;
    padding: 10px;
}

.dropdown-menu a {
    display: block;
    padding: 6px 12px;
    color: #333;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: #f2f2f2;
}

.dropdown-menu1 {
    position: fixed;
    background-color: white;
    border: 1px solid #ccc;
    min-width: 250px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 200;
    padding: 10px;
    right: 0;
    left: auto;
    top: 60px;
}

.dropdown-menu1 a {
    display: block;
    padding: 6px 12px;
    color: #333;
    text-decoration: none;
}

.dropdown-menu1 a:hover {
    background-color: #f2f2f2;
}

.sub-btn {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 8px 12px;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
}

.sub-btn:hover {
    background-color: #f2f2f2;
}


#msg{
    position: fixed;
    z-index: 9999;
    height: 300px;
    width: 500px;
    top: 50%;
    left: 50%;
    margin-top: -250px;
    margin-left: -150px;
    background-color: rgba(0, 0, 0, 0.4); 
    box-shadow: #616161;
    border-radius: 10px;
}

/* Labels mais previsíveis em telas menores */
#formProduto label{
  display: block;
  font-weight: 600;
  color: #333;
  margin: 8px 0 6px;
  text-align: left;
  font-family: sans-serif;

  /* remove o margin-left fixo que estoura em celular */
  margin-left: 0;
}

/* Inputs/selects: não pode ser 50% fixo, senão quebra */
#formProduto input[type="text"],
#formProduto input[type="number"],
#formProduto input[type="file"],
#formProduto select{
  width: 100%;
  max-width: 100%;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  margin: 0 0 14px 0;
  text-align: center;
  box-sizing: border-box;
}

/* Deixa os blocos internos quebrarem bonito quando faltar espaço */
#modalProduto form > div[style*="display:flex"]{
  flex-wrap: wrap;
  gap: 10px;
}

/* Ajuste do título/fechar pra não "colar" */
#modalProduto .modal-titulo{
  margin: 10px 0 16px !important;
}
#modalProduto .close-modal{
  font-size: 20px;
  padding: 6px 10px;
}

.grid_fluxos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 25px 0;
}

.col_fluxo label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.col_fluxo select {
  width: 100%;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0 10px;
  text-align: center;
}

#btnSalvarFluxos {
  width: 50%;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

#btnSalvarFluxos:hover {
  background: #303bff;
  color: #ffffff;
}


.modal {
  display: none; 
  position: fixed;
  z-index: 99;
  left: 50%;
  top: 50%;
  background-color: #fff;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  padding: 10px;
  justify-content: center;
}

.modal-conteudo{
    padding: 5px;
    justify-content: center;
    text-align: center;
}

#modalAddComanda{
    width: 330px; 
    height: 360px;
    margin-top: -180px;
    margin-left: -165px;
    z-index: 999;
}
#modalPagamentoDelivery{
    margin: 0;
    z-index: 99999;
}
#modalPagamentoDelivery .modal-body::-webkit-scrollbar {
    width: 8px;
}

#modalPagamentoDelivery .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px; /* 🔥 trilho arredondado */
}

#modalPagamentoDelivery .modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px; /* 🔥 barra arredondada */
}

#modalPagamentoDelivery .modal-body::-webkit-scrollbar-thumb:hover {
    background: #999;
}
#modal_setores{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    z-index: 999;
}
#modal_vendas{
    /* width: 330px; 
    height: 300px;
    margin-top: -150px;
    margin-left: -165px; */
    z-index: 999;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
}
.modalModo{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.6);

    display:none;

    justify-content:center;
    align-items:flex-end;

    z-index:9999;
}

.modalModoBox{
    width:100%;
    max-width:500px;

    background:#fff;

    border-radius:25px 25px 0 0;

    padding:20px;

    animation:subirModal .2s ease;
}

@keyframes subirModal{
    from{
        transform:translateY(100%);
    }
    to{
        transform:translateY(0);
    }
}

.fecharModal{
    text-align:right;
    font-size:22px;
    cursor:pointer;
    margin-bottom:10px;
}

.btnModo{
    width:100%;
    border:none;
    border-radius:14px;

    padding:18px;

    margin-top:12px;

    color:#fff;
    font-size:16px;
    font-weight:bold;

    cursor:pointer;
}

.btnDelivery{
    background:#e94560;
}

.btnLocal{
    background:#199017;
}

.btnAgendamento{
    background:#7c3aed;
}

/* DESKTOP */
@media (min-width:769px){

    .modalModo{
        align-items:center;
    }

    .modalModoBox{

        border-radius:25px;

        animation:fadeCentro .2s ease;
    }

    @keyframes fadeCentro{

        from{
            opacity:0;
            transform:scale(.95);
        }

        to{
            opacity:1;
            transform:scale(1);
        }
    }
}
/* #modalProduto{
  /* width: min(920px, 92vw);
  max-width: 92vw;

  height: auto;
  max-height: 88vh;

  overflow: auto;
  -webkit-overflow-scrolling: touch;

  margin: 0;
} */
/* #modalProduto::-webkit-scrollbar{
  width: 0;
  height: 0;
} */ */

/* Melhorias gerais do formulário dentro do modal */
#formProduto{
  width: 100%;
  box-sizing: border-box;
}
#rec_senha_box{
    width: 400px; 
    height: 300px;
    margin-top: -150px;
    margin-left: -200px;
    z-index: 9999;
}
#modalFluxo{
    width: 600px; 
    height: 600px;
    margin-top: -300px;
    margin-left: -300px;
    z-index: 999;
}
/* =========================================================
   MOBILE / TABLET
========================================================= */

@media(max-width: 900px){

    #modalFluxo{

        position: fixed !important;

        top: 50% !important;
        left: 50% !important;

        transform: translate(-50%, -50%) !important;

        width: calc(100vw - 20px) !important;
        max-width: 95vw !important;

        max-height: 95vh !important;

        overflow-y: auto !important;

        margin: 0 !important;

        box-sizing: border-box;

        border-radius: 12px;
    }

    .mobileDiv{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* TÍTULO */

    #modalFluxo h2{
        font-size: 22px !important;
    }

    /* INPUT */

    #nomeFluxo{

        width: 100% !important;
        max-width: 100% !important;

        padding: 12px !important;

        font-size: 16px;

        box-sizing: border-box;
    }

    /* CONTAINER PRINCIPAL */

    #modalFluxo > div:nth-child(2) > div:nth-child(2){

        flex-direction: column !important;

        gap: 15px !important;

        width: 100%;

        justify-content: center !important;
        align-items: center !important;
    }

    /* BLOCOS ESQUERDA/DIREITA */

    #modalFluxo > div:nth-child(2) > div:nth-child(2) > div:nth-child(1),
    #modalFluxo > div:nth-child(2) > div:nth-child(2) > div:nth-child(3){

        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* TÍTULOS DAS LISTAS */

    #modalFluxo > div:nth-child(2) > div:nth-child(2) > div:nth-child(1) > div:first-child,
    #modalFluxo > div:nth-child(2) > div:nth-child(2) > div:nth-child(3) > div:first-child{

        text-align: center !important;

        width: 100%;

        font-size: 16px;

        margin-bottom: 8px !important;
    }

    /* CAIXAS */

    #listaSetoresDisponiveis,
    #listaSequencia{

        width: 100% !important;
        max-width: 320px !important;
        min-width: 320px !important;

        min-height: 170px !important;
        max-height: 170px !important;

        box-sizing: border-box;

        font-size: 15px;

        margin: 0 auto !important;
    }

    /* BOTÕES CENTRAIS */

    #modalFluxo > div:nth-child(2) > div:nth-child(2) > div:nth-child(2){

        width: 100%;

        flex-direction: row !important;

        justify-content: center !important;

        align-items: center !important;

        margin-top: 0 !important;

        gap: 10px !important;
    }

    #btnAdicionarSetor,
    #btnRemoverSetor{

        flex: 1;

        padding: 12px !important;

        border-radius: 8px;

        font-size: 15px;

        max-width: 160px;
    }

    /* BOTÕES ORDEM */

    #btnUp,
    #btnDown{

        margin: 5px !important;

        padding: 12px 14px !important;

        font-size: 18px;
    }

    /* SALVAR */

    #btnSalvarFluxo{

        width: 100%;

        padding: 14px;

        font-size: 16px;

        border-radius: 8px;
    }
}

/* =========================================================
   CELULAR PEQUENO
========================================================= */

@media(max-width: 500px){

    #modalFluxo{

        padding: 12px !important;
    }

    #modalFluxo h2{

        font-size: 19px !important;
    }

    #listaSetoresDisponiveis,
    #listaSequencia{

        width: 100% !important;
        max-width: 260px !important;
        min-width: 260px !important;

        min-height: 150px !important;
        max-height: 150px !important;
    }

    #btnAdicionarSetor,
    #btnRemoverSetor{

        font-size: 14px;

        padding: 11px !important;
    }
}
#modalFluxoPadrao{
   width: 400px; 
    height: 400px;
    margin-top: -200px;
    margin-left: -200px;
}

#modalFluxoProd{
    width: 600px; 
    height: 300px;
    margin-top: -150px;
    margin-left: -300px;
    z-index: 999;
}
#modalVendaDelivery{
    width: 450px; 
    height: 580px;
    margin-top: -290px;
    margin-left: -225px;
    z-index: 999;
}
#modalStatus{
    width: 300px; 
    height: 280px;
    margin-top: -140px;
    margin-left: -150px;
    z-index: 99999;
}
#modalMesa{
    width: 400px; 
    height: 400px;
    margin-top: -200px;
    margin-left: -200px;
    z-index: 999;
}
#modalVendaComanda{
    width: 450px; 
    height: 580px;
    margin-top: -290px;
    margin-left: -225px;
    z-index: 998;
}
#modalAtribuir{
    width: 400px; 
    height: 400px;
    margin-top: -200px;
    margin-left: -200px;
}
/* ===== OVERLAY ===== */
#modalEstab {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 1100px;        /* retângulo horizontal */
    max-width: 96%;
    height: 650px;
    max-height: 92vh;
    z-index: 1000;
    background: #ffffff;
    border-radius: 12px;
    overflow: auto;
}

/* ===== CENTRALIZAÇÃO REAL ===== */
/* #modalEstab .modal-box {
   
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);

    
} */


#formMeioPag{
    max-height: 300px;
    overflow: auto;
   
}
.lista-meios{
     display: flex;
    flex-direction: column;
}

#impressoraVenda{
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: min(600px, 95vw);
    max-height: 85vh;

    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);

    flex-direction: column;
    overflow: hidden;

    z-index: 9999;
    font-family: sans-serif;
}

.modal-headerIp{
    position: relative;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.modal-headerIp span{
    font-size: 18px;
    font-weight: bold;
}

/* CONTEÚDO SCROLL */
.conteudo-impressao{
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}

/* BLOCO */
.bloco-impressora{
    display: flex;
    align-items: center;
    gap: 10px;

    background: #f9f9f9;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
}

/* INFO */
.info-impressora{
    min-width: 150px;
}

.info-impressora .titulo{
    font-weight: bold;
    display: block;
}

.info-impressora .sub{
    font-size: 12px;
    color: #777;
}

/* INPUT */
.bloco-impressora input{
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* BOTÃO TESTE */
.btn-teste{
    background: #eee;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-teste:hover{
    background: #ddd;
}

/* LISTA SETORES */
.lista-setores{
    display: flex;
    flex-direction: column;
}

/* FOOTER */
.modal-footer{
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
}

/* BOTÃO SALVAR */
#nomePrint{
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    background: #4CAF50;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

#nomePrint:hover{
    background: #43a047;
}

.linha-meio{
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.linha-meio label{
    display: flex;
    align-items: center;
    gap: 8px;

    padding-left: 20px; /* <<< alinhamento à direita */
}


.item-meio-bloco{
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
}
.item-meio{
    margin-right: auto;
    margin-top: 10px;
    font-size: 18px;
}
.input-bandeira{
     margin-top: 10px;
}
.box-bandeiras{
   
    display: none;
    flex-direction: column;
    gap: 5px;
}

.input-bandeira{
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
#modalEnderecoDelivery {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    width: min(600px, 95vw);
    max-height: 95vh;

    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);

    display: none;
    flex-direction: column;
    overflow: hidden;

    font-family: sans-serif;
}

#modalEnderecoDelivery .header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

#modalEnderecoDelivery .header h2 {
    margin: 0;
    font-size: 18px;
}

#modalEnderecoDelivery .close-modal {
    font-size: 18px;
    text-decoration: none;
    color: #333;
}

/* BODY COM SCROLL */
#modalEnderecoDelivery .modal-body {
    overflow-y: auto;
    max-height: calc(90vh - 120px); /* ajusta pro header + footer */
    padding: 20px;
}

/* GRID FORM */
#modalEnderecoDelivery form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

/* LINHA DUPLA */
.form-row-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* INPUT PADRÃO */
.form-row3 label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
    display: block;
}

.form-row3 input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.form-row3 input:focus {
    border-color: #000;
}

/* RODAPÉ FIXO */
.modal-actions {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #fff;
}

/* BOTÃO */
.btn-primary3 {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #000;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #222;
}

#modalGrupos{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 9990;
    font-family: sans-serif;

    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* 🔥 CAIXA DO MODAL */
.modal-grupos-box{
    pointer-events: all;
    width: min(480px, 95vw);
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* HEADER */
.modal-grupos-header{
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 16px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.modal-grupos-header h3{
    font-size: 18px;
    font-weight: 600;
}

/* BOTÃO FECHAR */
.fechar-grupos{
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
}

/* BODY */
#modalGruposBody{
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    min-height: 0;

    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bloco-adicionais{
    display: flex;
    flex-direction: column;
}

.lista-adicionais{
    max-height: 180px;
    overflow-y: auto;

    display: flex;
    flex-direction: column;
    gap: 6px;

    padding: 10px;
    background: #fafafa;
    border-radius: 10px;
}
.grupo-opcao{
    display: flex;
    flex-direction: column;

    max-height: 180px; /* 🔥 controla altura */
    overflow-y: auto;

    padding: 10px;
    border-radius: 10px;
    background: #fafafa;
}
.opcao-item{
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px;
    border-radius: 8px;
    background: #f5f5f5;

    cursor: pointer;
}

.opcao-item:hover{
    background: #eaeaea;
}

.modal-grupos-obs{
    padding: 0 15px 10px;
    display: flex;
    justify-content: center;
}

#modalObsGrupos{
    width: 90%;
    height: 65px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    font-size: 13px;
    color: #333;
    box-sizing: border-box;
    font-family: inherit;
    text-align: center;
}

.modal-grupos-footer{
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #eee;
}

.modal-grupos-footer button{
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

#btnCancelarGrupos{
    background: #f71c1c;
}

#btnConfirmarGrupos{
    background: #4CAF50;
    color: #fff;
}

.conteudo {
    flex:1;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    min-height:0;
}

.modal-grupos-conteudo {
    background: #fff;
    width: 90%;
    max-width: 500px;
    margin: 60px auto;
    padding: 15px;
    border-radius: 8px;
}
#modalReceberDelivery{
    width: 350px; 
    height: 430px;
    margin-top: -215px;
    margin-left: -175px;
}

.adicional-linha{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
    gap:10px;
}

.controle-qtd-adicional{
    display:flex;
    align-items:center;
    gap:5px;
}

.controle-qtd-adicional button{
    width:28px;
    height:28px;
    border:none;
    border-radius:6px;
    background:#eee;
    cursor:pointer;
    font-size:18px;
    font-weight:bold;
}

.qtd-adicional{
    width:45px;
    text-align:center;
    padding:4px;
}

#modalReceberVenda{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: min(380px, 92vw);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    padding: 20px;

    z-index: 999;
    font-family: sans-serif;
}

/* HEADER */
.modal-headerPg{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-headerPg span{
    font-size: 18px;
    font-weight: bold;
}

.modal-headerPg .close-modal{
    font-size: 18px;
    text-decoration: none;
    color: #555;
}

/* RESUMO */
.resumo-vendaPg{
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.card-resumoPg{
    flex: 1;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.card-resumoPg span{
    font-size: 12px;
    color: black;
}

.card-resumoPg b{
    display: block;
    margin-top: 5px;
    font-size: 16px;
}

/* destaque (falta) */
.card-resumoPg.destaque{
    background: #fff3f3;
    border: 1px solid #d98181;
}

/* FORM */
.form-pagamento{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-pagamento label{
    font-size: 13px;
    font-weight: 600;
}

.form-pagamento input,
.form-pagamento select{
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 14px;
}

/* INPUT FOCUS */
.form-pagamento input:focus,
.form-pagamento select:focus{
    border-color: #4CAF50;
}

/* BOTÃO */
#enviarPg{
    margin-top: 10px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #4CAF50;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

#enviarPg:hover{
    background: #43a047;
}

#listaCategorias {
    display: flex;
    margin-top: 40px;
    flex-direction: column;
    padding: 10px;
    overflow-y: auto;
}

#listaSetores {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 por linha */
    justify-items: center;
    align-items: center;
    margin: 0 auto;
}

.itemSetor {
    padding: 6px;
    cursor: pointer;
    border-radius: 4px;
}

.itemSetor:hover {
    background: #e6e6e6;
}

.itemSetor.selected {
    background: #d0d0d0 !important; 
}

.categoria-item {
    background: black;
    color: white;
    border: 1px solid #0d0505;
    padding: 8px;
    margin-bottom: 6px;
    border-radius: 6px;
    text-align: center;
    font-family: sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.categoria-item:hover {
    background: #ffffff;
    color: black;
}

.categoria-selecionada {
    background: white;
    color: black;
    font-weight: bold;
}
#buscaProduto {
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 14px;
}
#buscaProduto:focus {
    border-color: black;
    outline: none;
}

.conteudoB{
    flex:1;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    min-height:0;    
}

.modal-conteudoVenda{
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden; /* 🔥 IMPORTANTE */
}

/* Topo do modal */
.modal-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.modal-topo h2 {
    font-family: sans-serif;
    font-size: 22px;
    margin: 0;
}

/* .lista-prod {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 10px;
    box-sizing: border-box; 
} */

#listaProdutos::-webkit-scrollbar {
    width: 0;
    height: 0;
}

#listaProdutos {
    border: 2px #BDBDBD solid;
    height: 100%; 
    overflow-y: auto; 
    box-sizing: border-box; 
    margin-bottom: 45px;
    width: 1065px;
    -ms-overflow-style: none;  
    scrollbar-width: none;     
}

/* #carrinhoLista { 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
    flex: 1; 
    overflow-y: auto; 
    border: 1px solid #ccc; 
    padding: 5px; 
    border-radius: 5px; 
    background-color: #fff;
} */
#carrinhoLista::-webkit-scrollbar { 
    width: 0; 
    height: 0; }

/* Cartão individual
.produto-cardapio {
    border: 1px solid #ccc;
    border-radius: 10px;
    text-align: center;
    background: #fafafa;
    font-family: sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    padding-bottom: 5px;
    height: 200px;
} */

.produto-cardapio img{
    width: 100%;
    height: 120px;
    object-fit: cover; /* 🔥 ESSENCIAL */
    border-radius: 8px;
}
/* 
.produto-cardapio:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
} */

.produto-nome {
    margin-top: 6px;
    font-weight: bold;
    font-size: 14px;
    color: #222;
}

.produto-cod {
    font-size: 12px;
    color: #666;
}
.produto-qtd {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.produto-qtd button {
    font-size: 15px;
    font-weight: bold;
    color: white;
    min-width: 26px;     /* mesmo tamanho visual dos botões */
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: black;
}

.produto-qtd button:hover {
    background-color: #444;
}

.enviarProd{
    text-align: center;
    width: 50%;
    margin: 10px; 
    padding: 10px; 
    border:none; 
    background-color:#007bff; 
    color: #fff; 
    border-radius: 5px; 
    cursor:pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
}
.enviarProd:hover{
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
}

.espacoBuscar{
    flex: 0 0 20%;
    display: flex; 
    flex-direction: column; 
    height: 85%; 
    padding: 5px;
}

.qtd-valor {
    font-size: 15px;
    font-weight: bold;
    color: #222;
    min-width: 26px;     /* mesmo tamanho visual dos botões */
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
}

.btn_tool{
    margin: 5px;
}

.modal-content {
  position: relative;
  background-color: #fefefe;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  margin: auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.listaVenda {
  padding: 10px;
  background-color: white; 
  height: 280px; 
  max-height: 320px;
  overflow: auto;
  scrollbar-width: none; 
  -ms-overflow-style: none; 
}

.listaVenda::-webkit-scrollbar {
  display: none; 
}

.titulo_secao {
    background-color: #000000;
    padding: 15px;
    color: white;
    font-size: 25px;
    display: flex;
    align-items: center;
    margin-top: 1px;
}

.titulo_secao2 {
    background-color: #000000;
    padding: 15px;
    color: white;
    font-size: 25px;
    display: flex;
    align-items: center;
}

#gravar_produto {
    margin-top: 10px;
    padding: 12px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#gravar_produto:hover {
    background-color: #5d5d5d;
}

#gravar_cardapio {
    margin-top: 10px;
    padding: 12px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#gravar_cardapio:hover {
    background-color: #5d5d5d;
}

#gravar_categoria {
    margin-top: 10px;
    padding: 12px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#gravar_categoria:hover {
    background-color: #5d5d5d;
}

 #fundo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 900;
    display: none;
} 

 #fundoGrupos {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
} 

 #fundo2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
} 


.dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px #00000040;
  z-index: 10001;
  width: 400px;
  height: auto;
  font-family: sans-serif;
  display: none;
}

#confirm {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    width: 300px;
    border-radius: 10px;
    z-index: 1000;
    display: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
}

#msg_fechar {
    background: none;
    border: none;
    color: #000;
    font-size: 18px;
    cursor: pointer;
    position: absolute;
    right: 10px;
    margin-left: auto;
}

#msg_message {
    padding: 10px;
    color: black;
    text-align: center;
    margin: 20px;
}

.close_message {
    width: 70%;
    padding: 10px;
    border: none;
    background-color: #212121;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin: 0 auto; 
    display: block; 
}

.close_message:hover {
    background-color: #5a5959;
}

.atc {
    font-family: sans-serif;
    font-size: 25px;
    margin: 0;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;  /* título à esquerda, botão à direita */
    margin-bottom: 10px;
    border-bottom: 1px solid #c6c6c6;
}
.modal-title {
    font-weight: bold;
    font-family: sans-serif;
    font-size: 22px;
}
#cad_estab_voltar {
    margin-left: auto;
    border: none;
    font-size: 22px;
    font-family: sans-serif;
    cursor: pointer;
}

a{
    text-decoration: none;
    font-size: 16px;
}
a:hover {
    transform: scale(1.05);
  }

.comandaItem{
    transition: 0.2s;
}
.comandaItem:hover {
    transform: scale(1.05);
  }

.mesaItem{
    transition: 0.2s;
}
.mesaItem:hover {
    transform: scale(1.05);
  }


.a_cabec{
    color: #212121;
    font-family: sans-serif;
    margin-right: 15px;
}

.x{
    margin-left: auto;
    font-size: 25px;
    font-weight: bold;
    font-family: sans-serif;
    margin: 0 auto; 
    display: block; 
}

.buscar_produto{
    padding: 5px; 
    width: 30%; 
    /* display: none;  */
    margin-top: 10px;
}

.lista-produtos {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lista-categorias {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.listaCardapios {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.produto-linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    background: #fff;
}

.cardapio-linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    background: #fff;
}

.categoria-linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    background: #fff;
}

.produto-img-pequena {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

.categoria-nome {
    display: block;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.produto-nome {
    display: block;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.cardapio-nome {
    display: block;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.form-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 10px;
  border-radius: 8px;
  background-color: #fdfdfd;
  width: 300px;
  margin: 0 auto;
  font-family: sans-serif;
}

.form-center label {
  font-weight: bold;
  align-self: flex-start;
  margin-left: 5px;
}

.form-center input[type="text"],
.form-center select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
}

.form-center button {
  padding: 10px 15px;
  background-color: #212121;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

.form-center button:hover {
  background-color: #444;
}

/* Fundo escuro atrás do modal */
#view_img {
    width: 400px; 
    height: 400px;
    margin-top: -200px;
    margin-left: -200px;
    z-index: 1000;
}

.view_img_content img {
    width: 250px;
    height: 300px; 
    border-radius: 10px;
    object-fit: contain;
}

/* Botão "Adicionar foto" fixo no fim */
.btn-add-photo {
    padding: 12px 25px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: fit-content;
}

.btn-add-photo:hover {
    background-color: #333;
}

.tela-pedidos {
  padding: 20px;
}
.categoria {
  margin-top: 20px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
}
.produtos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.produto-card {
  width: 200px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  background: #fff;
}
.produto-img {
  max-width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}
.preco {
  color: green;
  font-weight: bold;
}
.descricao {
  font-size: 14px;
  color: #555;
}

/* Mobile-first: 1 por linha */
.restaurantes-grid{
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px;
}

/* Cartão do restaurante */
.rest-item, .rest-item_cli {
    margin: 20px;
    width: 180px;
    background: white;
    transition: 0.2s;
    border: 1px rgb(170, 170, 170) solid;
    border-radius: 7px;
    padding: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.rest-item:hover {
    transform: scale(1.05);
}
.rest-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-bottom: 5px;
}
.rest-item_cli:hover {
    transform: scale(1.05);
}
.rest-item_cli img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-bottom: 5px;
}
.rest-nome {
    font-weight: bold;
    font-size: 10px;
}
.tela-pedidos {
    max-width: 100%;
    margin: 50px;   
    }
.categoria {
    margin: 20px 0 15px;
    font-size: 22px;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
    }
    /* GRID responsivo */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1px;
    }
.produto-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    }
.produto-card:hover {
    transform: scale(1.03);
    }
.produto-img-pequena {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 6px;
    }
.produto-card h3 {
    font-size: 16px;
    margin: 5px 0;
    color: #222;
    }
.descricao {
    font-size: 13px;
    color: #666;
    min-height: 30px;
    }
.preco {
    font-weight: bold;
    color: #007b00;
    margin-top: 8px;
    font-size: 15px;
    }

.linha_cat {
    height: 50px; 
    display: flex;              /* Flex no próprio botão */
    justify-content: center;    /* Centraliza na horizontal */
    align-items: center;        /* Centraliza na vertical */
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    background-color: white;
    color: black; 
    border: 3px black solid; 
    border-radius: 7px;
    width: 200px;
    margin-left: 10px;
    transition: 0.2s;
    font-size: 18px;
    font-family: sans-serif;
    text-align: center;         /* Garantia extra para textos longos */
}
.linha_cat.ativo {
    background-color: #007bff; /* cor do botão ativo */
    color: white;
}

.linha_cat:hover {
    transform: scale(1.05);
}

/* Area de vendas */
.tela { 
    display:flex; 
    overflow: hidden;
    height: calc(100vh - 60px);
}

.menu-botoes { 
    display:flex; 
    background:#EEEEEE; 
    padding:15px; 
    align-items:center;
    margin: 10px;
}

.modal-overlay {
    display: none; /* importante */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}
.modalVenda {
    background: #fff;
    width: 100%;
    max-width: 980px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh; /* limita a altura do modal */
    margin: auto; /* garante centralização */
}
.modal-header { 
    display:flex; 
    align-items:center; 
    justify-content:space-between; 
    padding:14px 18px; 
    border-bottom:1px solid #eee;
 }

 .modal-header h3 { 
    margin:0; 
    font-size:18px;
 }

 .modal-close { 
    background:transparent;
    border:none; 
    font-size:18px; 
    cursor:pointer; 
}

.modal-body { 
    padding:16px; 
    overflow:auto; 
}

.product-grid { 
    display:grid; 
    grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); 
    gap:12px; 
}

.product-card { 
    border:1px solid #e6e6e6; 
    border-radius:8px; 
    padding:8px; 
    display:flex; 
    flex-direction:column; 
    gap:8px; 
    align-items:center; 
}

.product-card img { 
    width:100%; 
    height:100px; 
    object-fit:cover; 
    border-radius:6px; 
    background:#f2f2f2; 
}

.product-card .nome { 
    font-weight:700; 
    text-align:center; 

}
.product-card .preco { 
    color:#333; 
    font-weight:600; 
}

.product-card .add-btn { 
    margin-top:auto; 
    padding:8px 10px; 
    border-radius:6px; 
    border:none; 
    cursor:pointer; 
    background:#28a745;
    color:white; 
    font-weight:700; 

}

.esquerda {  
    margin-left:10px;
    flex:2;
    display:flex;
    flex-direction:column;
    background:#EEEEEE;
    min-height:0;
}

.direita { 
    flex:1;
    background:#EEEEEE;
    display:flex;
    align-items:stretch;
    justify-content:center;
    font-size:16px;
    padding:12px;
    min-width:300px;
    height:100%;
}

.cart { 
    width:100%; 
    max-width:360px; 
    display:flex; 
    flex-direction:column; 
    gap:8px;
}

.cart h1 { 
    margin:0 0 4px 0; 
    font-family: sans-serif; 
}

.cart-items { 
    background:white; 
    border-radius:6px; 
    padding:10px; 
    height: 85%;
    border:1px solid #eee; 
    overflow:auto; 
}

.cart-footer { 
    display:flex; 
    align-items:center; 
    justify-content:space-between; 
    gap:8px; 
}

.cart-footer .total { 
    font-weight:800; 
    font-size:20px; 
    font-family: sans-serif;
}

.cart-footer button { 
    padding:14px 20px; 
    border-radius:6px; 
    border:none; 
    cursor:pointer; 
    background:#2d9cdb; 
    color:#fff; 
    font-weight:700; 
    font-size: 20px; 
}

/* Abas de categoria */
.tabs-categorias {
    display:flex; 
    gap:8px; 
    flex-wrap:wrap; 
    align-items:center;
    padding:8px 0 12px; 
    border-bottom:1px solid #eee; 
    margin-bottom:12px;
}

.form-row { 
    display:flex;
}
.form-row input { 
    padding: 10px;
    width: 85%;
    margin-bottom: 10px;
    margin-left: auto;
}

.modal-actions{
    display:flex; 
    align-items: center;
    justify-content: center;
}

.tab-cat {
    padding:8px 12px; border:1px solid #e6e6e6; border-radius:999px; cursor:pointer;
    background:#f8f8f8; font-size:13px; user-select:none;
}
  
.tab-cat.is-active {
    background:#2d9cdb; color:#fff; border-color:#2d9cdb; font-weight:700;
}

.close-modal {
    margin-left: auto;
    font-size: 20px;
    color: black;
    text-decoration: none;
    font-weight: bold;
}

/* ================= RESET ANTI BUG ================= */
#modalProdutosVenda *{
    box-sizing: border-box;
    max-width: 100%;
}

#modalProdutosVenda{
    position: fixed;
    inset: 0;
    background: #E0E0E0;
    display: none;
    z-index: 998;
}

/* TOPO */
.topo-modal{
    display: flex;
    justify-content: flex-end;
    padding: 10px;
}

/* BOTÃO */
#close-buscar{
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 999999;
}

/* CONTAINER */
.container-venda{
    display: flex;
    height: calc(100% - 50px);
}

/* categorias */
.col-categorias{
    width: 200px;
    min-width: 200px;
}

/* produtos */
.col-produtos{
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* busca */
.busca-area{
    padding: 10px;
}

.barraBusca{
    width: 100%;
    padding: 10px;
    font-size: 16px;
}

/* lista */
.modal-conteudoVenda{
    flex: 1;
    overflow-y: auto;
}

/* grid */
.lista-prod{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 10px;
}

/* card */
.produto-cardapio{
    background: #fff;
    border-radius: 10px;
    padding: 8px;
    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    height: 220px;
}

.produto-cardapio:hover{
    transform: scale(1.03);
}

.col-carrinho{
    width: 260px;
    background: #fff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

#carrinhoLista{
    flex: 1;
    overflow-y: auto;
}

#finalizarCarrinho{
    margin-top: 10px;
}

#totalCarrinho{
    text-align: center;
    margin-top: 5px;
}

#conteudoBFooterbtn{
    width: 100%;
}

.footer-venda{
    background: #BDBDBD;
    border-top: 2px solid #000;
    padding: 8px;

    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* linhas */
.footer-venda .linha{
    display: flex;
    gap: 6px;
}

/* linha 1 (inputs) */
.linha-top input{
    height: 40px;
    border: 1px solid #999;
    border-radius: 6px;
    padding: 5px;
}

/* QTD menor */
.linha-top input[type="number"]{
    width: 70px;
}

/* CODIGO ocupa o resto */
.linha-top input[type="text"]{
    flex: 1;
}

/* botões padrão */
.btn{
    flex: 1;
    background: #000;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

/* botão principal */
.btn-acao{
    background: #2d9cdb;
    font-weight: bold;
}

/* ESCONDE NO DESKTOP */
#btnCarrinhoMobile,
#carrinhoMobile{
    display: none;
}

/* =========================
   DESKTOP NORMAL
========================= */

/* .menu-mobile{
    display:none;
} */

/* =========================
   MOBILE
========================= */

/* @media (max-width: 768px){

    .menu-desktop{
        display:none !important;
    }

    .menu-mobile{
        display:flex !important;
        margin-left:auto;
        position:relative;
    }

    .dropdown-menu-mobile{
        display:none;

        position:absolute;
        right:0;
        top:45px;

        background:#fff;
        min-width:220px;

        border-radius:10px;

        overflow:hidden;

        box-shadow:0 10px 30px rgba(0,0,0,0.2);

        z-index:99999;
    }

    .dropdown-menu-mobile a{
        display:block;
        padding:14px 16px;

        text-decoration:none;
        color:#333;

        border-bottom:1px solid #eee;

        font-size:15px;
    }

    .dropdown-menu-mobile a:last-child{
        border-bottom:none;
    }

    .dropdown-menu-mobile a:hover{
        background:#f5f5f5;
    }

} */

@media (max-width: 768px){

    body{
        overflow-x: hidden;
    }

    .titulo_secao2{ order: 1; }
    .menu-botoes{ order: 2; }
    .conteudo{ order: 3; }
    .conteudoBTotal{ order: 4; }
    .direita{ order: 5; }

    .tela{
        display: flex;
        flex-direction: column !important;
        min-height: 100vh;
        height: auto;
        padding: 0;
    }

    .esquerda{
        width: 99%;
        display: flex;
        flex-direction: column;
    }

    #conteudoBFooter{
        display: flex;
        flex-direction: column;
        padding: 2px !important;
        background-color: #BDBDBD;
        border-top: 2px black solid;
        height: 120px;
    }

    .conteudoB{
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        max-height: 350px;
    }

    .conteudoBTotal{
        display: flex;
        flex-direction: column;
        height: 300px;
        min-height: 0;
    }

    #comandas,
    #mesas{
        max-height: 250px;
    }

    .comandaItem,
    .mesaItem{
        padding: 4px;
        margin: 4px;
        width: 50px;
        height: 50px;
    }

    .imgCom{
        width: 30px;
    }

    #modalMesa{
        width: 80%; 
        margin-left: -40%;
    }

    #conteudoBFooterinput{
        display: flex;
        width: 100%;
        gap: 10px;
    }

    #conteudoBFooterinput > div{
        display: flex;
        align-items: center;
        flex: 1;
    }

    .labelconteudob{
        font-size: 12px;
        min-width: 42px;
        margin: 0;
    }

    .inputconteudob{
        flex: 1;
        width: 100% !important;
        height: 26px !important; 
        font-size: 12px;
        margin: 0 !important;
    }

    #divLI{
        margin: 0 !important;
    }

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

    .enviarVenda,
    .buscarProdBalcao{
        width: 48%;
        justify-content: center;
        padding: 6px !important;
        font-size: 13px;
    }

    .enviarVenda{
        margin-left: 0 !important;
    }
        
    .direita{
        width: 100%;
        margin-top: 10px;
        display: block !important;
    }

    .cart{
        display: flex;
        flex-direction: column;
    }

    .cart-items{
        overflow-y: auto;
        max-height: 200px;
    }

    .cart-footer{
        padding: 5px;
    }

    .esquerda{  
        margin-left:1px;
        margin-right:1px;
    }

    /* 🔥 MODAL */
    #modalProdutosVenda{
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        background: #f5f5f5;
        display: none;
        flex-direction: column !important;
        font-family: sans-serif;
        z-index: 999;
    }

    #modalProdutosVenda.ativo{
        display: flex;
    }

   .topo-modal{
        width: 100%;

        display: flex;
        justify-content: flex-end !important; /* 🔥 FORÇA ESQUERDA */
        align-items: center;
    }

    #close-buscar{
        font-size: 20px;
        text-decoration: none;

        display: block; /* 🔥 GARANTE POSIÇÃO */
    }

    /* 🔥 CONTAINER PRINCIPAL */
    .container-venda{
        display: flex !important;
        flex-direction: column !important; /* 🔥 FORÇA VERTICAL */
        flex: 1;
        overflow: hidden;
        padding: 0 !important;
    }

    /* ================= CATEGORIAS ================= */
    .col-categorias{
        display: flex !important;
        flex-direction: row !important;

        width: 100% !important;

        overflow-x: auto;
        overflow-y: hidden;

        gap: 8px;

        padding: 6px 8px;   /* 🔥 menor */
        margin: 0 !important;

        background: #fff;
        border-bottom: 1px solid #ddd;

        white-space: nowrap;
    }
  
    .col-categorias::-webkit-scrollbar{
        display: none;
    }

    .categoria-item{
        flex: 0 0 auto;
        padding: 6px 10px;
        font-size: 12px;
        background: #000;
        color: #fff;
        border-radius: 6px;
    }

    /* ================= PRODUTOS ================= */

    .col-produtos{
        display: flex !important;
        flex-direction: column !important;
        flex: 1;
        width: 100%;
        overflow: hidden;
    }

    /* 🔍 BUSCA */
    .busca-area{
        padding: 8px;
        background: #eee;
    }

    .barraBusca{
        width: 100%;
        padding: 8px;
        font-size: 14px;
        border-radius: 6px;
        border: 1px solid #ccc;
    }

    #btnMenuFiltros{
        display: block;
    }

    .filtrosWrapper{
        position: fixed;
        bottom: auto;
        right: 20px;
        z-index: 9999;

        display: none;
        flex-direction: column;
        gap: 10px;

        background: #fff;
        padding: 10px;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);

        max-height: 300px;
        overflow-y: auto;  
        top: 60px;          
    }

    .filtrosWrapper::-webkit-scrollbar {
        width: 6px;
    }

    .filtrosWrapper::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
    }

    .filtrosWrapper.ativo{
        display: flex;
    }

    .btnFiltro{
        width: 45px;
        height: 45px;
        padding: 8px;
    }

    /* 🔽 SCROLL */
    .modal-conteudoVenda{
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* ================= GRID 2 POR LINHA ================= */

    #listaProdutos{
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
        padding: 8px;
    }

    #listaCategorias {
        padding: 3px;
    }
    /* ================= CARD ================= */

    .produto-cardapio{
        width: 100%;
        min-width: 0;
        background: #fff;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        height: 120px !important;
    }

    .produto-cardapio img{
        width: 100%;
        height: 50px;
        object-fit: cover;
        border-radius: 6px;
    }
    .info-produto{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .produto-nome{
        font-size: 11px;
        font-weight: bold;
        display: -webkit-box;
        /* -webkit-line-clamp: 2; */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .produto-preco{
        font-size: 11px;
    }

    .produto-cod{
        font-size: 10px;
        color: #777;
    }

   

    #modalVendaDelivery,
    #modalVendaComanda{

        position: fixed;
        inset: 0;

        width: 100%;
        height: 85%;
        max-height: 650px;
        top: 10%;
        margin: 0; 

        display: none;
        flex-direction: column;

        background: #fff;
        z-index: 999;
    }

    /* container principal */
    #modalVendaDelivery > div:nth-child(3),
    #modalVendaComanda > div:nth-child(3){
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    /* LISTA (parte do meio com scroll) */
    .listaVenda{
        flex: 1;
        overflow-y: auto;
        min-height: 0;
        padding: 10px;
    }

    /* FOOTER TOTAL */
    .cart-footer{
        flex-shrink: 0;
    }

    /* PARTE DE BAIXO (inputs + botões) */
    #modalVendaDelivery .flex,
    #modalVendaComanda .flex{
        flex-wrap: wrap;
        gap: 5px;
    }

    /* INPUTS */
    #v_delivery_codigo,
    #v_comanda_codigo{
        width: 100% !important;
    }

    #v_delivery_qtd,
    #v_comanda_qtd{
        width: 60px !important;
    }

    /* BOTÕES */
    .enviarVendaD,
    .enviarVenda{
        flex: 1;
        justify-content: center;
    }

    .buscarProdDelivery,
    .buscarProdComanda{
        flex: 1;
        justify-content: center;
    }
    
    .gridDelivery{
        display: grid;
        grid-template-columns: 1fr auto auto auto auto;
        align-items: center;
        gap: 8px;
        padding: 6px;
    }

    /* 🔥 ESCONDE TUDO */
    .gridDelivery > div{
        display: none;
    }

    /* 1️⃣ NOME */
    .gridDelivery > div:nth-child(1){
        display: block;
        grid-column: 1;
        font-weight: bold;
    }

    /* 2️⃣ VALOR */
    .gridDelivery > div:nth-child(7){
        display: block;
        grid-column: 2;
        text-align: right;
        font-weight: bold;
    }

    /* 3️⃣ EDITAR */
    .gridDelivery > div:nth-child(8){
        display: flex;
        grid-column: 3;
        align-items: center;
        justify-content: center;
    }

    /* 4️⃣ STATUS */
    .gridDelivery > div:nth-child(9){
        display: flex;
        grid-column: 4;
        justify-content: center;
        font-size: 12px;
    }

    /* 5️⃣ CANCELAR */
    .gridDelivery > div:nth-child(10){
        display: flex;
        grid-column: 5;
        justify-content: center;
    }

    /* 🔥 ESCONDE COLUNA DIREITA */
    .col-carrinho{
        display: none !important;
    }

     #btnCarrinhoMobile{
        display: flex;

        position: fixed;
        bottom: 20px;
        right: 20px;

        background: #28a745;
        color: #fff;
        border: none;
        border-radius: 50px;

        padding: 12px 18px;
        font-size: 16px;
        font-weight: bold;

        align-items: center;
        justify-content: center;

        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        z-index: 9999;
    }

    #btnCarrinhoMobile span{
        margin-left: 6px;
        background: #fff;
        color: #28a745;
        border-radius: 50%;
        padding: 2px 8px;
    }

    #carrinhoMobile{
        display: block;
    }
    /* DRAWER */
    #carrinhoMobile{
        position: fixed;
        bottom: -100%;
        left: 0;
        width: 100%;
        height: 65%;

        background: #fff;
        border-radius: 16px 16px 0 0;

        display: flex;
        flex-direction: column;

        box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
        z-index: 9999;

        transition: bottom 0.3s ease;
    }

    #carrinhoMobile.active{
        bottom: 0;
    }

    .carrinho-header{
        display: flex;
        justify-content: space-between;
        padding: 12px;
        border-bottom: 1px solid #ddd;
        font-weight: bold;
    }

    #carrinhoListaMobile{
        flex: 1;
        overflow-y: auto;
        padding: 10px;
    }

    .carrinho-footer{
        padding: 10px;
        border-top: 1px solid #ddd;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* ========== INDEX.PHP ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: #f6f6f6;
    font-family: Arial, Helvetica, sans-serif;
}

/* Cabeçalho + busca + categorias ficam fixos; só a lista de estabelecimentos rola */
body.page-index {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    overscroll-behavior: none;
}

/* ── AÇÕES RÁPIDAS (comanda / carrinho / delivery) ── */
.topo-acoes-wrap {
    padding: 10px 16px 0;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
}

.topo-acoes-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.topo-acoes-row::-webkit-scrollbar { display: none; }

.chip-acao {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 28px;
    padding: 10px 16px;
    white-space: nowrap;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.chip-acao .chip-icon { font-size: 18px; }

.chip-acao .chip-label {
    font-size: 11px;
    font-weight: 600;
    opacity: .85;
    line-height: 1.1;
}

.chip-acao .chip-titulo {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chip-acao .chip-valor {
    font-size: 11px;
    font-weight: 700;
    opacity: .85;
    line-height: 1.2;
    margin-top: 1px;
}

.chip-acao .chip-seta { font-size: 16px; opacity: .7; }

.chip-carrinho { background: #f5c518; color: #222; }
.chip-comanda  { background: #199017; color: #fff; }

.chip-delivery                  { color: #fff; }
.chip-delivery.status-pendente   { background: #f59e0b; }
.chip-delivery.status-aberto     { background: #6a1b9a; }
.chip-delivery.status-em_preparo { background: #16a34a; }
.chip-delivery.status-entregando { background: #1565c0; }

@media (min-width: 900px) {
    .topo-acoes-wrap {
        max-width: 100%;
        padding: 14px 32px 0;
    }
}

/* ── BUSCA ── */
.conteudo_index {
    display: flex;
    justify-content: center;
    padding: 16px 16px 8px;
    width: 100%;
    min-width: 0;
}

.busca-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 25px;
    padding: 0 16px;
    width: 100%;
    max-width: 700px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.busca-wrap span { font-size: 18px; margin-right: 8px; }

#buscaEstab {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #333;
    font-size: 15px;
    padding: 14px 0;
}

#buscaEstab::placeholder { color: #999; }

/* ── HOME ── */
.pagina-home {
    padding: 10px 0 30px;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pagina-home::-webkit-scrollbar { display: none; }

/* ── SEÇÃO POR CATEGORIA ── */
.secao-cat {
    margin-bottom: 18px;
}

.secao-cat-titulo {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    padding: 0 16px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.secao-cat-lista {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 16px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.secao-cat-lista::-webkit-scrollbar { display: none; }

/* ── SETAS DE NAVEGAÇÃO ── */
.secao-cat-wrap {
    position: relative;
}

.seta {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    min-width: 22px;
    height: 22px;
    min-height: 22px;
    aspect-ratio: 1 / 1;
    font-size: 13px;
    font-weight: bold;
    line-height: 22px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    display: none;
    align-items: center;
    justify-content: center;
    color: #333;
    padding: 0;
    overflow: hidden;
    transition: box-shadow .15s, transform .15s;
    user-select: none;
    flex-shrink: 0;
}

.seta:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.26);
    transform: translateY(-50%) scale(1.08);
}

.seta-esq { left: 2px; }
.seta-dir { right: 2px; }

@media (min-width: 900px) {
    .seta { width: 38px; height: 38px; font-size: 24px; }
    .seta-esq { left: 8px; }
    .seta-dir { right: 8px; }
}

/* ── CARD BASE (mobile) ── */
.cardRestaurante {
    flex: 0 0 auto;
    position: relative;
    cursor: pointer;
    width: 84px;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 4px 2px;
    display: block;
    text-align: center;
    transition: transform 0.15s;
}

.cardRestaurante.fechado { opacity: 0.5; }

.card-img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 2.5px solid #e0e0e0;
    object-fit: cover;
    display: inline-block;
    vertical-align: top;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.card-overlay {
    position: static;
    background: none;
    padding: 5px 2px 0;
    width: 100%;
    display: block;
    text-align: center;
}

.card-nome {
    color: #222;
    font-size: 11px;
    font-weight: 700;
    text-shadow: none;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    line-height: 1.3;
}

.card-tags  { display: none !important; }
.card-tag   { display: none !important; }
.statusRest { display: none; }

.card-dist {
    font-size: 10px;
    color: #e94560;
    font-weight: 600;
    margin-top: 2px;
    text-align: center;
    display: none;
}

/* ── DESKTOP ── */
@media (min-width: 900px) {
    .conteudo_index {
        padding: 28px 32px 12px;
    }

    .busca-wrap {
        max-width: 860px;
    }

    .pagina-home {
        padding: 12px 0 40px;
    }

    .secao-cat-titulo {
        padding: 0 32px 10px;
        font-size: 17px;
    }

    .secao-cat-lista {
        padding: 4px 32px 14px;
        gap: 14px;
    }

    /* Card retangular no desktop */
    .cardRestaurante {
        width: 160px;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 2px 14px rgba(0,0,0,0.10);
        padding: 0;
        text-align: left;
        overflow: hidden;
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .cardRestaurante:hover {
        transform: scale(1.03);
        box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    }

    .card-img {
        width: 100%;
        height: 120px;
        border-radius: 0;
        border: none;
        display: block;
        box-shadow: none;
        object-fit: cover;
    }

    .card-overlay {
        background: #fff;
        padding: 8px 10px 10px;
        text-align: left;
    }

    .card-nome {
        font-size: 13px;
        color: #111;
    }

    .statusRest {
        display: block;
        position: absolute;
        top: 8px;
        right: 8px;
        padding: 3px 10px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: bold;
        color: #fff;
        z-index: 2;
    }

    .statusRest.aberto  { background: #199017; }
    .statusRest.fechado { background: #ff3b3b; }

    .card-dist {
        font-size: 11px;
        color: #e94560;
        text-align: left;
    }
}

@media (min-width: 1400px) {
    .busca-wrap { max-width: 1200px; }
    .cardRestaurante { width: 180px; }
    .card-img { height: 140px; }
}

/* ── MODAL MODO (bottom sheet) ── */
.modalModo {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,0.55) !important;
    display: none;
    align-items: flex-end !important;
    justify-content: center !important;
    z-index: 9999;
}

.modalModoBox {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 20px 20px 0 0 !important;
    padding: 20px 20px 32px !important;
    text-align: center;
    animation: slideUp .25s ease;
}

#opcoesModo {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.modalModoBox .handle {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 4px;
    margin: 0 auto 16px;
}

.modalModoBox h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.fecharModal {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 20px;
    cursor: pointer;
    color: #888;
}

/* botões de modo */
.btnModo {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 20px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    margin-bottom: 0;
    text-align: left;
    transition: opacity .2s;
}

.btnModo:hover { opacity: .88; }
.btnModo .modo-icon { font-size: 22px; }
.btnModo .modo-sub { font-size: 12px; font-weight: normal; opacity: .85; }

.btnLocal       { background: #199017; }
.btnDelivery    { background: #e94560; }
.btnAgendamento { background: #7c3aed; }

.btn-cancelar-modo {
    margin-top: 4px;
    background: none;
    border: none;
    color: #888;
    font-size: 15px;
    cursor: pointer;
    padding: 8px;
}

/* ── CATEGORIAS (filtro) ── */
.cats-outer {
    padding: 6px 16px 2px;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
    overflow-x: clip;
}

.cats-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cats-row::-webkit-scrollbar { display: none; }

.filtro-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 22px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s, border-color .15s, color .15s, transform .12s;
    user-select: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.filtro-cat:hover {
    border-color: #199017;
    color: #199017;
    transform: translateY(-1px);
}

.filtro-cat.ativa {
    background: #199017;
    border-color: #199017;
    color: #fff;
    box-shadow: 0 3px 10px rgba(25,144,23,0.3);
}

.filtro-cat .cat-emoji { font-size: 15px; line-height: 1; }

@media (min-width: 900px) {
    .cats-outer {
        max-width: 100%;
        padding: 8px 32px 4px;
    }
}

/* ── VAZIO ── */
.lista-vazia {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.lista-vazia span { font-size: 48px; display: block; margin-bottom: 12px; }

/* ========== RESTAURANTE.PHP ========== */


/* ========== RESTAURANTE.PHP ========== */
    /* ── RESET & BASE ─────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    body {
        font-family: Arial, Helvetica, sans-serif;
        background: #f6f6f6;
    }

    /* ── HEADER DO RESTAURANTE ────────────────────────────── */
    .header-restaurante {
        text-align: center;
        padding: 32px 16px 20px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
        color: #fff;
        border-bottom: 1px solid #eee;
    }

    .header-restaurante::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.45);
    }

    .header-restaurante img,
    .header-restaurante h2 {
        position: relative;
        z-index: 2;
    }

    .logo-rest {
        width: 72px;
        height: 72px;
        border-radius: 12px;
        object-fit: cover;
        border: 2px solid rgba(255,255,255,0.3);
        margin-bottom: 10px;
    }

    .header-restaurante h2 {
        font-size: 22px;
        font-weight: 800;
    }

    .header-modo-badge {
        position: relative;
        z-index: 2;
        display: inline-block;
        margin-top: 6px;
        background: rgba(255,255,255,0.15);
        border-radius: 8px;
        padding: 4px 12px;
        font-size: 12px;
        color: #fff;
    }

    /* ── BARRA INFO (busca) ───────────────────────────────── */
    .barra-info {
        display: flex;
        gap: 10px;
        align-items: center;
        padding: 10px 12px;
        background: #fff;
        border-bottom: 1px solid #eee;
    }

    .search-cardapio { flex: 1; }

    .search-cardapio input {
        width: 100%;
        padding: 9px 14px;
        border-radius: 20px;
        border: 1px solid #ddd;
        background: #f0f0f0;
        font-size: 14px;
        outline: none;
    }

    .search-cardapio input:focus {
        border-color: #199017;
        background: #fff;
    }

    /* ── CATEGORIAS SCROLL ───────────────────────────────── */
    .categorias-scroll {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 10px 12px;
        background: #000;
        border-bottom: 1px solid #111;
        position: sticky;
        top: 0;
        z-index: 100;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .categorias-scroll::-webkit-scrollbar { display: none; }

    .categorias-scroll a {
        flex-shrink: 0;
        padding: 6px 14px;
        height: 34px;
        line-height: 22px;
        font-size: 13px;
        font-weight: 600;
        background: #fff;
        border-radius: 20px;
        text-decoration: none;
        color: #000;
        white-space: nowrap;
        transition: background .15s, color .15s;
    }

    .categorias-scroll a.ativa,
    .categorias-scroll a:hover {
        background: #199017;
        color: #fff;
    }

    /* ── CONTAINER ───────────────────────────────────────── */
    .container-cardapio {
        max-width: 1000px;
        margin: auto;
        padding: 16px 12px 120px;
    }

    /* ── TITULO CATEGORIA ────────────────────────────────── */
    .categoria-titulo {
        font-size: 18px;
        font-weight: 800;
        margin-top: 28px;
        margin-bottom: 14px;
        color: #111;
        scroll-margin-top: 130px;
        padding-bottom: 6px;
        border-bottom: 2px solid #199017;
    }

    /* ── GRID ────────────────────────────────────────────── */
    .grid-produtos {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    /* ── PRODUTO CARD ────────────────────────────────────── */
    .produto {
        display: flex;
        align-items: center;
        gap: 12px;
        background: #fff;
        border-radius: 14px;
        padding: 12px;
        box-shadow: 0 1px 6px rgba(0,0,0,.07);
        cursor: pointer;
        transition: transform .15s, box-shadow .15s;
    }

    .produto:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0,0,0,.12);
    }

    .prod-img {
        width: 70px;
        height: 70px;
        border-radius: 10px;
        object-fit: cover;
        flex-shrink: 0;
        background: #eee;
    }

    .prod-body { flex: 1; min-width: 0; }

    .prod-nome {
        font-size: 14px;
        font-weight: 700;
        color: #111;
        margin-bottom: 4px;
    }

    .prod-preco {
        font-size: 13px;
        font-weight: 700;
        color: #199017;
        margin-bottom: 4px;
    }

    .prod-desc {
        font-size: 12px;
        color: #888;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #modalDesc {
        font-size: 13px;
        color: #666;
        line-height: 1.6;
        margin: 8px 0 14px;
        white-space: pre-line;
    }

    .btn-add {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: none;
        background: #199017;
        color: #fff;
        font-size: 22px;
        font-weight: 700;
        cursor: pointer;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    /* ── FAB CARRINHO ────────────────────────────────────── */
    #btnCarrinho {
        position: fixed;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        background: #ea9927;
        color: #000;
        padding: 16px 24px;
        border-radius: 16px;
        font-weight: 800;
        font-size: 15px;
        box-shadow: 0 6px 24px rgba(185,127,0,0.5);
        cursor: pointer;
        display: none;
        z-index: 9000;
        border: 1px solid #000;
        white-space: nowrap;
    }

    /* ── OVERLAY GENÉRICO ────────────────────────────────── */
    .sheet-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.7);
        z-index: 9100;
        display: none;
    }

    /* ── BOTTOM SHEET GENÉRICO ───────────────────────────── */
    .bottom-sheet {
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: min(500px, 100%);
        max-width: 100vw;
        background: #fff;
        border-radius: 20px 20px 0 0;
        padding: 0;
        z-index: 9200;
        display: none;
        max-height: 92vh;
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: none;
        box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
    }

    .bottom-sheet::-webkit-scrollbar { display: none; }

    /* header do sheet com título + X */
    .sheet-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px 14px;
        border-bottom: 1px solid #f0f0f0;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 1;
        border-radius: 20px 20px 0 0;
    }

    .sheet-title {
        font-size: 18px;
        font-weight: 800;
        color: #111;
        letter-spacing: -0.3px;
    }

    .sheet-close {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: white;
        border: none;
        font-size: 18px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #000000;
        transition: background .15s, color .15s;
        flex-shrink: 0;
    }

    /* corpo do sheet */
    .sheet-body {
        padding: 16px 20px 0;
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* ── MODAL PRODUTO ───────────────────────────────────── */
    #sheetProduto .prod-modal-img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        border-radius: 12px;
        margin-bottom: 12px;
        background: #111;
    }

    #sheetProduto .modal-preco {
        font-size: 18px;
        font-weight: 800;
        color: #199017;
        margin: 4px 0 8px;
    }

    /* grupos / adicionais */
    .grupo-titulo {
        color: #199017;
        font-weight: 700;
        font-size: 15px;
        margin: 14px 0 8px;
        border-bottom: 1px solid #ddd;
        padding-bottom: 6px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .marcar-todos-btn {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 12px;
        font-weight: 600;
        color: #199017;
        cursor: pointer;
        user-select: none;
        padding: 3px 10px;
        border-radius: 20px;
        border: 1.5px solid #c8e6c9;
        background: #fff;
        transition: background .12s, border-color .12s;
        flex-shrink: 0;
    }

    .marcar-todos-btn:hover { background: #e8f5e9; border-color: #199017; }

    .marcar-todos-box {
        width: 15px;
        height: 15px;
        border-radius: 4px;
        border: 2px solid #199017;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 9px;
        color: #fff;
        flex-shrink: 0;
        transition: background .12s;
    }

    .marcar-todos-box.todos-sel { background: #199017; }

    .opcao-row {
        display: flex;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
        cursor: pointer;
        gap: 10px;
    }

    .opcao-row:hover { background: #f9f9f9; }

    .opcao-checkbox {
        width: 22px;
        height: 22px;
        border-radius: 6px;
        border: 2px solid #444;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        color: #fff;
        transition: background .12s;
    }

    .opcao-checkbox.sel { background: #199017; border-color: #00510d; }

    .opcao-nome { flex: 1; font-size: 14px; color: #111; }
    .opcao-preco { font-size: 13px; color: #199017; font-weight: 700; }

    /* ── adicionais com quantidade ── */
    .adicional-linha-rest { border-bottom: 1px solid #f0f0f0; }
    .adicional-linha-rest .opcao-row { border-bottom: none; }

    .rest-controle-qtd {
        display: none;
        align-items: center;
        gap: 6px;
        padding: 4px 12px 10px 10px;
        background: #f4faf4;
    }

    /* contador compacto */
    .rest-qtd-wrap {
        display: inline-flex;
        align-items: center;
        background: #fff;
        border: 1.5px solid #c8e6c9;
        border-radius: 20px;
        overflow: hidden;
        height: 28px;
    }

    .rest-btn-menos, .rest-btn-mais {
        width: 28px;
        height: 28px;
        border: none;
        background: transparent;
        color: #199017;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: background .12s;
    }

    .rest-btn-menos:hover, .rest-btn-mais:hover { background: #e8f5e9; }

    .rest-qtd-adicional {
        width: 28px;
        text-align: center;
        border: none;
        border-left: 1px solid #c8e6c9;
        border-right: 1px solid #c8e6c9;
        font-size: 13px;
        font-weight: 700;
        color: #111;
        background: transparent;
        -moz-appearance: textfield;
        appearance: textfield;
        pointer-events: none;
    }
    .rest-qtd-adicional::-webkit-inner-spin-button,
    .rest-qtd-adicional::-webkit-outer-spin-button { -webkit-appearance: none; }

    .rest-qtd-preco {
        margin-left: auto;
        font-size: 16px;
        font-weight: 800;
        color: #199017;
        letter-spacing: -0.3px;
    }

    /* qtd + obs */
    .qtd-wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 10px 0 0;
    }

    .qtd-control {
        display: inline-flex;
        align-items: center;
        overflow: hidden;
        height: 34px;
    }

    .qtd-btn {
        width: 10px;
        height: 32px;
        border: none;
        background: #ffffff;
        color: #000000;
        font-size: 20px;
        font-weight: bold;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .qtd-btn:hover { background: #e6e3e3; }

    #modalQtd {
        width: 32px;
        text-align: center;
        border: none;
        outline: none;
        font-size: 15px;
        font-weight: bold;
        background: #fff;
        -moz-appearance: textfield;
        appearance: textfield;
    }

    #modalQtd::-webkit-inner-spin-button,
    #modalQtd::-webkit-outer-spin-button { -webkit-appearance: none; }

    #modalObs {
        width: 100%;
        height: 70px;
        margin-top: 12px;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 8px;
        resize: none;
        font-size: 13px;
        color: #333;
    }

    .modal-total {
        margin-top: 12px;
        font-size: 16px;
        font-weight: bold;
        text-align: center;
        color: #111;
    }

    .btn-confirmar {
        background: #199017;
        color: #fff;
        border: none;
        padding: 14px 10px;
        border-radius: 12px;
        font-size: 15px;
        font-weight: bold;
        width: 100%;
        cursor: pointer;
        margin-top: 12px;
    }

    .btn-confirmar:hover { background: #157013; }

    /* ── MODAL CARRINHO ──────────────────────────────────── */
    .carrinho-item {
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }

    .cart-item-main {
        display: flex;
        gap: 10px;
        align-items: flex-start;
    }

    .cart-item-img {
        width: 58px;
        height: 58px;
        border-radius: 10px;
        object-fit: cover;
        flex-shrink: 0;
        background: #eee;
        border: 1px solid #e0e0e0;
    }

    .cart-topo {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        font-weight: bold;
        font-size: 14px;
        margin-bottom: 4px;
        gap: 6px;
    }

    .cart-topo span:first-child { flex: 1; }
    .cart-topo span:last-child  { white-space: nowrap; color: #199017; }

    .cart-detalhes { font-size: 12px; color: #777; margin-top: 3px; }
    .cart-detalhe  { margin-bottom: 2px; }

    .cart-controles {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-top: 7px;
    }

    .carrinho-btn {
        width: 22px;
        height: 22px;
        border: 1.5px solid #199017;
        background: #fff;
        border-radius: 50%;
        cursor: pointer;
        font-size: 13px;
        font-weight: 700;
        color: #199017;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .cart-qtd {
        min-width: 28px;
        text-align: center;
        font-weight: 700;
        font-size: 13px;
        border-left: 1px solid #c8e6c9;
        border-right: 1px solid #c8e6c9;
        padding: 0 4px;
        line-height: 26px;
        color: #111;
    }

    .carrinho-remover {
        margin-left: auto;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 16px;
        color: #c33;
    }

    .cart-total-row {
        display: flex;
        justify-content: space-between;
        padding: 14px 0 0;
        margin-top: 12px;
        border-top: 1px solid #eee;
        font-weight: bold;
        font-size: 16px;
    }

    .cart-total-valor { color: #199017; font-size: 22px; }

    .sheet-row-btns {
        display: flex;
        gap: 10px;
        margin-top: 14px;
    }

    .sheet-btn {
        flex: 1;
        padding: 14px 10px;
        border-radius: 12px;
        border: none;
        font-size: 15px;
        font-weight: bold;
        cursor: pointer;
        color: #fff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

    @media (max-width: 380px) {
        .sheet-btn { font-size: 13px; padding: 14px 6px; }
        .sheet-row-btns { gap: 6px; }
    }

    /* ── MODAL PEDIDO / PAGAMENTO ────────────────────────── */
    .input-label {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .5px;
        color: #333;
        margin-bottom: 4px;
        display: block;
        margin-top: 10px;
    }

    .text-input {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #2a2a4a;
        border-radius: 10px;
        font-size: 14px;
        color: #111;
        background: #fff;
        outline: none;
    }

    .text-input:focus { border-color: #199017; }
    .text-input.erro { border-color: #e53935; }

    .resumo-box {
        background: #fff;
        border: 1px solid #199017;
        border-radius: 12px;
        padding: 16px;
        text-align: center;
        margin: 12px 0;
    }

    .resumo-total { font-size: 28px; font-weight: 800; color: #111; margin-top: 4px; }

    .meio-pag-row {
        display: flex;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
        cursor: pointer;
        gap: 10px;
        width: 100%;
        user-select: none;
    }

    .meio-pag-row:hover { background: #f9fdf9; }

    .meio-pag-row input[type=radio] {
        accent-color: #199017;
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        cursor: pointer;
    }

    .tipo-pedido-row {
        display: flex;
        gap: 16px;
        margin-bottom: 12px;
    }

    .tipo-pedido-row label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        cursor: pointer;
    }

    .tipo-pedido-row input[type=radio] { accent-color: #199017; width: 16px; height: 16px; }

    /* ── ENDEREÇOS RECENTES ──────────────────────────────── */
    .endereco-recente-card {
        background: #f3f3f3;
        border-radius: 12px;
        padding: 12px;
        margin-bottom: 10px;
        border: 1px solid #ddd;
        cursor: pointer;
        transition: background .15s, border-color .15s;
    }
    .endereco-recente-card.sel {
        background: #e6f9e6;
        border: 2px solid #199017;
    }
    .endereco-recente-card .end-nome { font-weight: 700; font-size: 13px; color: #000; }
    .endereco-recente-card .end-desc { font-size: 12px; color: #555; margin-top: 2px; }
    .endereco-recente-card.sel .end-nome { color: #199017; }
    .endereco-recente-card.sel .end-desc { color: #1a7a18; }

    .btn-novo-endereco {
        width: 100%;
        margin-top: 4px;
        padding: 11px;
        border: 2px dashed #bbb;
        border-radius: 12px;
        background: #fff;
        color: #555;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: border-color .15s, color .15s;
    }
    .btn-novo-endereco:hover { border-color: #199017; color: #199017; }

    /* ── RESUMO PAGAMENTO ────────────────────────────────── */
    .resumo-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        font-size: 13px;
        margin-bottom: 6px;
    }

    /* ── SHEET CONFIRMAÇÃO ───────────────────────────────── */
    .conf-estab-banner {
        height: 100px;
        background-size: cover;
        background-position: center;
        background-color: #111;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    .conf-estab-banner::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.45);
    }
    .conf-estab-logo {
        width: 56px; height: 56px; border-radius: 10px;
        object-fit: cover; border: 2px solid rgba(255,255,255,0.4);
        position: relative; z-index: 1;
    }
    .conf-estab-nome {
        color: #fff; font-weight: 800; font-size: 15px;
        z-index: 1; position: relative; margin-top: 6px;
    }
    .conf-sec-title {
        font-size: 12px; font-weight: 800; color: #111;
        margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px;
    }
    .conf-divider { height: 1px; background: #f0f0f0; margin: 14px 0; }
    .conf-item-row {
        display: flex; align-items: center; margin-bottom: 10px;
        background: #fafafa; border-radius: 10px; padding: 8px;
        border: 1px solid #eee; gap: 10px;
    }
    .conf-item-img {
        width: 54px; height: 54px; border-radius: 8px;
        object-fit: cover; background: #eee; flex-shrink: 0;
    }
    .conf-item-nome { font-size: 14px; font-weight: 700; color: #111; margin-bottom: 2px; }
    .conf-item-filho { font-size: 12px; color: #777; margin-top: 1px; }
    .conf-item-preco { font-size: 14px; font-weight: 800; color: #199017; margin-left: auto; flex-shrink: 0; }
    .conf-info-box { background: #fafafa; border-radius: 10px; padding: 12px; border: 1px solid #eee; }
    .conf-info-nome { font-size: 14px; font-weight: 700; color: #111; margin-bottom: 4px; }
    .conf-info-text { font-size: 13px; color: #444; margin-top: 2px; }
    .conf-info-sub { font-size: 12px; color: #888; margin-top: 4px; }
    .conf-total-box { background: #fafafa; border-radius: 10px; padding: 12px; border: 1px solid #eee; }
    .conf-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
    .conf-total-label { font-size: 13px; color: #555; }
    .conf-total-val { font-size: 13px; font-weight: 700; color: #111; }

    /* ── STATUS DO PEDIDO ──────────────────────────────────── */
    .status-icone-wrap {
        width: 80px; height: 80px;
        margin: 0 auto 20px;
        display: flex; align-items: center; justify-content: center;
    }

    .spinner-ring {
        width: 64px; height: 64px;
        border: 6px solid #e0e0e0;
        border-top-color: #199017;
        border-radius: 50%;
        animation: spin-status .9s linear infinite;
    }

    @keyframes spin-status { to { transform: rotate(360deg); } }

    .status-emoji { font-size: 52px; line-height: 1; }

    .status-titulo {
        font-size: 20px; font-weight: 800; color: #111;
        margin-bottom: 10px; font-family: Arial, Helvetica, sans-serif;
    }

    .status-msg {
        font-size: 14px; color: #666; line-height: 1.7;
        font-family: Arial, Helvetica, sans-serif;
    }


@keyframes girarQrCliente { to { transform: rotate(360deg); } }
