/* =========================
   MENU CATEGORIAS
========================= */

main nav{
    padding:10px;
    gap:15px;
    display:flex;
    overflow-x:auto;
    scrollbar-width:none;
}

main nav::-webkit-scrollbar{
    display:none;
}

/* Estilo para centralizar o modal na tela */
#oferta {
    position: fixed;
    top: 50vh;
    left: 50vh;
    transform: translate(-50%, -50%);
    z-index: 1000;
    
    /* Design personalizado e moderno */
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
}

/* Estilo do botão de fechar (X) */
#oferta .closed {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #555;
    transition: background 0.2s;
}

#oferta .closed:hover {
    background: #e0e0e0;
    color: #000;
}

/* Personalização dos textos */
#oferta h2 {
    color: #ff3b30; /* Vermelho chamativo para oferta */
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 1.6rem;
    letter-spacing: 1px;
}

#oferta span {
    color: #333333;
    font-size: 1rem;
    line-height: 1.5;
    display: block;
}

main nav button{
    display: flex;
    padding:8px 14px;
    white-space:nowrap;
    border-radius:20px;
    flex-wrap: wrap;
    border:1px solid #2d2d2d45;
    background:white;
    cursor:pointer;
    transition:.3s;
}


main nav button:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,.12);
}

/* =========================
   TOPO CARDÁPIO
========================= */

.topper{
    min-height:100px;
}


/* =========================
   CARDS PRODUTOS
========================= */


main #cards{
    display:flex;
    justify-content:center;
    gap:25px;
    padding:20px;
    flex-wrap:wrap;
}


main #cards .card{
    position: relative;
    width:370px;
    min-height:400px;
    border-radius:15px;
    border:1px solid #2d2d2d45;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    background:white;
    transition:.3s;
}


main #cards .card:hover{
    transform:translateY(-5px);
    box-shadow:0 8px 20px rgba(0,0,0,.12);
}

main #cards .card img{
    width:100%;
    height:200px;
    object-fit:cover;
}

.top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px;
}


.top span{
    color:#E67E22;
    font-weight:bold;
}

main #cards .card p{
    padding:10px;
    flex:1;
}

main #cards .card button{
    margin:15px;
    padding:12px;
    border-radius:12px;
    border:none;
    background:#E67E22;
    font-weight:bold;
    cursor:pointer;
}


/* =========================
   PAINEL SUPERIOR
========================= */


.painel-wrapper{
    height:240px;
}


.painel-topo{
    width:90%;
    margin:35px auto;
    display:flex;
    gap:25px;
    align-items:flex-start;
}

.painel-topo.fixo{
    position:fixed;
    top:15px;
    left:50%;
    transform:translateX(-50%);
    width:90%;
    z-index:100;
    background:white;
    padding:15px;
    border-radius:15px;
    box-shadow:0 8px 25px rgba(0,0,0,.15);
}


/* =========================
   CARDS DO PAINEL
========================= */


.info-card,
.pedido-card{
    background:white;
    border-radius:15px;
    padding:20px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
}

.info-card{
    width:230px;
    display:flex;
    gap:15px;
    align-items:center;
}

.info-card i{
    font-size:35px;
    color:#E53935;
}



/* =========================
   PEDIDOS
========================= */
.pedido-card{
    flex:1;
    height:200px;
    display:flex;
    flex-direction:column;
}

.pedido-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.pedido-header div{
    display:flex;
    gap:10px;
    align-items:center;
}

.btn-finalizar{
    border:none;
    background:#25D366;
    color:white;
    padding:10px 15px;
    border-radius:10px;
    cursor:pointer;
    font-weight:bold;
}

#listaPedidos{
    flex:1;
    overflow-y:auto;
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:10px;
}

.pedido-footer{
    margin-top:auto;
    padding-top:12px;
    border-top:1px solid #ddd;
    display:flex;
    justify-content:space-between;
    font-weight:bold;
}

.itemPedido{
    background:#f7f7f7;
    padding:10px;
    border-radius:10px;
    display:flex;
    justify-content:space-between;
}

#dialogEntrega {
    border: none;
    border-radius: 15px;
    padding: 0;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

#dialogEntrega::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.dialog-conteudo {
    padding: 25px;
}

.dialog-conteudo h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.dialog-conteudo p {
    color: #666;
    margin-bottom: 20px;
}

.campo {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.campo label {
    font-weight: bold;
    margin-bottom: 6px;
}

.campo input,
.campo textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

.campo textarea {
    min-height: 90px;
    resize: vertical;
}

.botoes-dialog {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.botoes-dialog button {
    padding: 11px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
}

#cancelarDialog {
    background: #ddd;
    color: #333;
}

#formEntrega button[type="submit"] {
    background: #25D366;
    color: white;
}

.forma-pagamento {
    margin-top: 15px;
}

.forma-pagamento > label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.opcoes-pagamento {
    display: flex;
    gap: 10px;
}

.opcao-pagamento {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 12px 8px;

    border: 1px solid #ccc;
    border-radius: 8px;

    cursor: pointer;

    transition: 0.2s;
}

.opcao-pagamento:hover {
    background: #f5f5f5;
}

.opcao-pagamento input {
    cursor: pointer;
}

.opcao-pagamento:has(input:checked) {
    border-color: #333;
    background: #eee;
}

/* =========================
   CELULAR
========================= */



@media(max-width:700px){
    .painel-wrapper{
        height:90px;
    }

    main nav{
        padding: 30px;
        display: flex;
        flex-direction: column;
    }

    .painel-topo,
    .painel-topo.fixo{
        width:94%;
        top:10px;
        padding:8px;
        flex-direction:row;
        align-items:center;
        gap:8px;

    }
    
#oferta {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    
    /* Design personalizado e moderno */
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
}



    /* Esconde informações menos importantes no celular */
    .info-card{
        display:none;
    }

    .pedido-card{
        width:100%;
        height:75px;
        padding:10px;
        border-radius:14px;
        display:flex;
        flex-direction:column;
    }


    .pedido-header{
        height:100%;
    }


    .pedido-header h3{
        font-size:14px;
        margin:0;
    }


    .pedido-header i{
        font-size:20px;
    }


    .btn-finalizar{
        padding:7px 12px;
        font-size:11px;
        border-radius:20px;
    }


    #listaPedidos{
        display:none;
    }


    .pedido-footer{
        border:none;
        padding:0;
        margin:0;
        font-size:13px;
    }


    .pedido-footer span{
        font-size:12px;
    }


    #valorTotal{
        font-size:15px;
        color:#E67E22;
    }

}