/* ==================== RESET BÁSICO ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* ==================== FORMULÁRIOS ==================== */
form {
    width: 80%;
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #000;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 10px 15px;
    margin: 10px 0;
    display: block;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* ==================== BOTÕES ==================== */
button,
.btn {
    padding: 10px 20px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    background-color: #7345df;
    color: #4820fa;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover,
.btn:hover {
    background-color: #42268f;
}

.modal-produto.active {
    display: flex;
}

.modal-produto-img img {
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

.modal-produto-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-produto-info .descricao {
    font-size: 14px;
    color: #555;
    color: var(--txt-sec)
}

.TelaLogin {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    
    padding: 20px;
}

.formLogin {
    background: #fff;
    padding: 40px 30px;
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.15);
    width: 550px;
    animation: fadeIn 0.4s ease;
}

.formLogin h2 {
    text-align: center;
    color: #2c2c54;
    margin-bottom: 25px;
}


/* Labels */
.formLogin label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #3b3b98;
}

/* Inputs */
.formLogin input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1px solid #c9c9c9;
    border-radius: 8px;
    font-size: 15px;
    background: #f8f9fc;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.formLogin input:focus {
    border-color: #5d8bff;
    box-shadow: 0 0 5px rgba(93, 139, 255, 0.4);
    outline: none;
}


/* Botão */
.formLogin button {
    width: 100%;
    padding: 13px;
    background: #5d8bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.15s ease, background 0.3s ease;
}

.formLogin button:hover {
    background: #4a76e8;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivo */
@media (max-width: 400px) {
    .formLogin {
        width: 100%;
    }
}

.headerLogin {
    background-image: url('/static/BoaDelivery/img/Boa.png');
    background-size: cover;
    width: 100vw;
    height: 10vh;
    color: #2a055f;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* sobe o conteúdo */
    align-items: center;
    text-align: center;
    padding-top: 5px;
    /* ajuste fino da distância do topo */
    box-sizing: border-box;
}


.ou {
    text-align: center;
    margin: 12px 0;
    font-weight: 700;
    color: #3b3b98;
}

.TelaCadastro {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    background: linear-gradient(135deg, #300399, #6e6cfa);
    padding: 20px;
}

/* Card do cadastro — maior e organizado */
.formCadastro {
    background: #fff;
    padding: 45px 40px;
    border-radius: 16px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
    width: 100%;
    max-width: 700px;
    /* reduzido para ficar elegante */
    animation: fadeIn 0.4s ease;
}

/* Título */
.formCadastro h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c2c54;
    font-size: 26px;
    font-weight: 700;
}

/* Labels */
.formCadastro label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #3b3b98;
}

/* Inputs */
.formCadastro input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 22px;
    border: 1px solid #c9c9c9;
    border-radius: 8px;
    background: #f8f9fc;
    font-size: 15px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.formCadastro input:focus {
    border-color: #5d8bff;
    box-shadow: 0 0 5px rgba(93, 139, 255, 0.4);
    outline: none;
}

/* Botão */
.formCadastro button {
    width: 100%;
    padding: 14px;
    background: #5d8bff;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.15s ease;
}

.formCadastro button:hover {
    background: #4a76e8;
    transform: translateY(-2px);
}


/* Responsividade */
@media (max-width: 500px) {
    .formCadastro {
        padding: 30px 22px;
        max-width: 95%;
    }
}

/* Pequena animação */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.headerCadastro {
    background: linear-gradient(135deg, #5553f2, #48437d);
    background-size: cover;
    width: 100vw;
    height: 10vh;
    color: #2a055f;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* sobe o conteúdo */
    align-items: center;
    text-align: center;
    padding-top: 5px;
    /* ajuste fino da distância do topo */
    box-sizing: border-box;
}

/* Texto no canto superior direito */
.TextoLogin {
    position: absolute;
    left: 20px;
    max-width: 300px;
    color: rgb(175, 203, 255);
    position: absolute;
    top: 100px;
    max-width: 300px;
    text-align: right;
    color: rgb(175, 203, 255);
}

.TextoLogin h2 {
    font-size: 30px;
    font-weight: oblique;
    margin: 13px;
    font-size: 30px;
}

body.body-funcionarios {
    background: rgb(230, 210, 210);
    margin: 0;
    margin-left: 250px;
}

/* Header */
.dashboard-header {
    text-align: center;
    padding: 20px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dashboard-header .btn-add {
    padding: 10px 20px;
    background-color: #5553f2;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* ==========================
   Sidebar do Painel
   ========================== */
.sidebar {
    width: 240px;
    background: #d1b94f;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: bold;
}

.sidebar a {
    text-decoration: none;
    color: #fff;
    padding: 15px 20px;
    display: block;
    font-size: 16px;
    transition: background 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
    background: #7005eb;
}

:root {
    --azul-escuro: #073477;
    --azul-medio: #1e5ab6;
    --azul-claro: #eaf3fb;
    --azul-hover: #0a47a1;
    --cinza: #f5f5f5;
    --cinza-claro: #e0e0e0;
    --branco: #fff;
    --sombra: 0 4px 24px rgba(7, 52, 119, 0.08);
    --borda: 1px solid #e0e0e0;
}

/* Container principal */
.produtos {
    max-width: 1200px;
    margin: 40px auto;
    background: var(--branco);
    border-radius: 18px;
    box-shadow: var(--sombra);
    padding: 32px 40px 40px 40px;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    text-align: center;
    padding: 20px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


.btn-add {
    background: linear-gradient(90deg, var(--azul-medio) 60%, var(--azul-escuro) 100%);
    color: var(--branco);
    border: none;
    padding: 12px 32px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(30, 90, 182, 0.12);
    transition: background 0.2s, box-shadow 0.2s;
    padding: 8px 12px;
    font-size: 0.95rem;
}

.btn-add:hover,
.btn-add:focus {
    background: var(--azul-hover);
    box-shadow: 0 4px 16px rgba(30, 90, 182, 0.18);
    background: linear-gradient(90deg, #6d28d9, #4338ca);
}

/* Tabela de produtos */
.produtos-table {
    margin-top: 12px;
}

.products-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 18px;
}

.products-table th,
.products-table td {
    padding: 16px 18px;
    text-align: left;
    background: var(--branco);
    border-radius: 10px;
    font-size: 1rem;
    box-shadow: var(--sombra);
    border: none;
}

.products-table th {
    background: var(--azul-medio);
    color: var(--branco);
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom: var(--borda);
}

.products-table tbody tr {
    transition: box-shadow 0.2s, transform 0.2s;
}

.products-table tbody tr:hover {
    box-shadow: 0 8px 32px rgba(30, 90, 182, 0.15);
    transform: scale(1.01);
}

.products-table td .status {
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--cinza-claro);
    color: var(--azul-escuro);
    display: inline-block;
}

.products-table td .status.ativo {
    background: var(--azul-medio);
    color: var(--branco);
}

.products-table td .status.inativo {
    background: #b0b0b0;
    color: var(--branco);
}

/* Ações */
.actions-cell {
    /* Garante que os botões fiquem alinhados e não quebrem a linha */
    display: flex;
    gap: 8px;
    align-items: center;
}

.actions-cell .btn {
    /* Reduz o padding para deixar os botões menores */
    padding: 6px 12px;
    font-size: 0.85rem;
    /* Diminui o tamanho da fonte */
    margin: 0;
    /* Remove margens desnecessárias */
    white-space: nowrap;
    /* Evita que o texto do botão quebre a linha */

    /* Estilos base que já existiam */
    background: var(--azul-medio);
    color: var(--branco);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

/* Botão de exclusão com cor diferente para destaque */
.actions-cell .btn-delete {
    background-color: #e53e3e;
    /* Vermelho */
}

.actions-cell .btn-delete:hover {
    background-color: #c53030;
}

.actions-cell .btn:hover {
    background: var(--azul-hover);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100dvw;
    height: 100dvh;

    /* Garante que o conteúdo respeite as áreas seguras (notches, barras etc.) */
    padding-top: env(safe-area-inset-top);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);

    background: rgba(7, 52, 119, 0.18);
    justify-content: center;
    align-items: center;
}

/* 👉 torna visível quando ativo */
.modal.active,
.modal[aria-hidden="false"] {
    display: flex !important;
}

@keyframes modalShow {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.modal-close:hover {
    color: var(--azul-hover);
}

/* Formulário do modal */
.modal-form {
    flex-direction: column;
    gap: 16px;
    margin-top: 18px;
}

.modal-form input[type="text"],
.modal-form input[type="number"]{
    padding: 10px 14px;
    border-radius: 8px;
    border: var(--borda);
    font-size: 1rem;
    background: var(--cinza);
    color: var(--azul-escuro);
    outline: none;
    transition: border 0.2s;
}

.modal-form input[type="text"]:focus,
.modal-form input[type="number"]:focus,
.modal-form textarea:focus {
    border: 1.5px solid var(--azul-medio);
}

.modal-form input[type="file"] {
    margin-top: 6px;
    font-size: 0.98rem;
}

.modal-form .btn-add {
    margin-top: 12px;
    width: 100%;
    padding: 12px 0;
    font-size: 1.1rem;
    border-radius: 8px;
}

/* Responsividade */
@media (max-width: 900px) {
    .produtos {
        padding: 18px 8px 24px 8px;
    }

    .products-table th,
    .products-table td {
        font-size: 0.95rem;
        padding: 10px 8px;
    }

}

@media (max-width: 600px) {
    .produtos {
        padding: 4px;
    }

    .products-table th,
    .products-table td {
        font-size: 0.85rem;
        padding: 6px 4px;
    }
}

/* Estilo do botão de criar conta (igual ao botão de login) */
.btnCadastrar {
    display: inline-block;
    width: 450px;
    padding: 12px;
    margin-top: 30px;
    /* distancia do botão de login */
    background: linear-gradient(135deg, #7affff, #a0b1f1);
    color: black;
    text-align: center;
    text-decoration: none;
    /* remove sublinhado do link */
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btnCadastrar:hover {
    background: #42268f;
    color: white;
}

/* ==================== MODAL CARRINHO ==================== */
.modal-carrinho {
    display: none;
    /* inicia escondido */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* fundo semi-transparente */
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

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

.modal-dialog-carrinho {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-close-carrinho {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    transition: 0.2s;
}

.modal-close-carrinho:hover {
    color: #ff0000;
}

.modal-dialog-carrinho h2 {
    margin-top: 0;
    font-size: 28px;
    color: #222;
    text-align: center;
}

.carrinho-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.carrinho-table th,
.carrinho-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}

.carrinho-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.carrinho-table td {
    color: #333;
}

.total {
    text-align: right;
    font-size: 20px;
    margin-top: 15px;
    font-weight: bold;
    color: #222;
}

.finalizar-compra {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.finalizar-compra .btn {
    background: #4053a8;
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.finalizar-compra .btn:hover {
    background: #303f8a;
}

/* responsivo */
@media (max-width: 600px) {
    .modal-dialog-carrinho {
        padding: 20px;
    }

    .carrinho-table th,
    .carrinho-table td {
        font-size: 14px;
        padding: 8px;
    }

    .total {
        font-size: 18px;
    }

    .finalizar-compra .btn {
        padding: 8px 20px;
        font-size: 14px;
    }
}

/* ==== Modal Produto — visual “delivery app” ==== */
.modal-produto {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, .55);
    z-index: 1000;
    padding: 24px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

}

.modal-dialog-produto {
    background: #fff;
    color: #1f2937;
    width: min(960px, 96vw);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 24px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-height: 88vh;
    overflow: auto;
    animation: slideUp .2s ease-out;
}

.modal-close-produto {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 0;
    background: #f3f4f6;
    color: #111827;
    font-size: 22px;
    cursor: pointer;
}

.modal-produto-left {
    display: flex;
    align-items: stretch;
}

.modal-media {
    position: relative;
    width: 100%;
}

.modal-media img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 14px;
    background: #f3f4f6;
}

.media-badges {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: flex;
    gap: 8px;
}

.badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    background: rgba(255, 255, 255, .9);
    color: #111827;
    backdrop-filter: blur(6px);
}

.badge.best {
    background: #fde68a;
}

.badge.time {
    background: #d1fae5;
}

.modal-produto-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-head h2 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #111827;
}

.modal-head .descricao {
    margin: 0;
    color: #4b5563;
    line-height: 1.5;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preco {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-weight: 800;
    color: #111827;
    font-size: 28px;
}

.rating {
    color: #10b981;
    font-weight: 700;
}

.rating small {
    color: #6b7280;
    font-weight: 600;
    margin-left: 4px;
}

.qty-notes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.qty-label,
.notes-label {
    font-size: 13px;
    color: #374151;
    font-weight: 700;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 4px;
}

.qty-stepper input {
    width: 72px;
    text-align: center;
    border: 0;
    background: transparent;
    font-size: 16px;
    color: #111827;
}

.qty-stepper .step {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    font-size: 18px;
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
}

.qty-stepper .step:hover {
    background: #f3f4f6;
}

.notes {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
    resize: vertical;
    min-height: 70px;
    font: inherit;
    color: #111827;
    background: #fff;
}

.notes::placeholder {
    color: #9ca3af;
}

.subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
}

.subtotal-row strong {
    font-size: 18px;
    color: #111827;
}

.cta-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.btn.full {
    width: 100%;
}

.btn.btn-add {
    background: linear-gradient(90deg, #7c3aed, #4f46e5);
    border: 0;
}

.btn.btn-pay.ghost {
    background: #fff;
    color: #4f46e5;
    border: 2px solid #e5e7eb;
}

.btn.btn-pay.ghost:hover {
    border-color: #c7c9cf;
}

/* Mobile: vira bottom-sheet */
@media (max-width: 900px) {
    .modal-dialog-produto {
        grid-template-columns: 1fr;
        padding: 16px;
        width: 100%;
        border-radius: 16px;
    }
}

@media (max-width: 640px) {
    .modal-produto {
        align-items: flex-end;
        padding: 0;
    }

    @keyframes slideUp {
        from {
            transform: translateY(24px);
            opacity: .96;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

/* ==================== THEME / TOKENS ==================== */
:root {
    --azul-900: #0f1f3d;
    --azul-700: #1d3f73;
    --azul-600: #24559c;
    --azul-500: #2f6fca;
    --azul-300: #9ec0ff;
    --azul-100: #eaf2ff;

    --bege-50: #fff9ef;
    --bege-100: #f6efe1;
    --bege-200: #e9dcc3;

    --txt-prim: #18233b;
    --txt-sec: #51607a;

    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 10px;

    --shadow-sm: 0 6px 16px rgba(15, 31, 61, .08);
    --shadow-md: 0 12px 28px rgba(15, 31, 61, .14);
    --shadow-lg: 0 18px 44px rgba(15, 31, 61, .18);
}

img {
    display: block;
    max-width: 100%
}

button {
    font: inherit;
    cursor: pointer
}

/* ==================== BASE ==================== */
body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--txt-prim);
    background:
        radial-gradient(1000px 400px at 50% -10%, var(--azul-100) 0%, transparent 60%),
        linear-gradient(180deg, var(--bege-50), #ffffff);
    overflow-x: hidden;
}

/* Hero opcional (mantendo classe .home) */
.home {
    background: url('https://www.agenciabravia.com.br/wp-content/uploads/2024/10/Boa-Padaria-e-Confeitaria.png') center/cover no-repeat;
    width: 100vw;
    height: 42vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(36, 85, 156, .08);
}

/* ==================== TÍTULOS / HEADER ==================== */
.titulo {
    padding: 26px 16px 8px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .75));
    backdrop-filter: blur(6px);
}

.titulo h1 {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--azul-700);
    letter-spacing: .4px;
}

.paragrafo p {
    margin-top: 6px;
    font-size: 15px;
    color: var(--txt-sec);
}

/* ==================== MENU DE CATEGORIAS ==================== */
nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(36, 85, 156, .08);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    padding: 12px 16px;
    overflow: auto;
}

nav ul li {
    flex: 0 0 auto
}

nav ul li a {
    text-decoration: none;
    font-weight: 700;
    color: var(--azul-700);
    background: var(--bege-100);
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(36, 85, 156, .10);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}

nav ul li a:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm)
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 16px 4px;
}

.container>h2 {
    color: var(--azul-600);
    font-size: clamp(18px, 2.4vw, 22px);
    margin: 10px 6px 14px;
    letter-spacing: .3px;
}

/* ==================== CARD DO PRODUTO ==================== */
.card {
    grid-column: span 12;
    background: linear-gradient(180deg, #fff, var(--bege-50));
    border: 1px solid rgba(36, 85, 156, .08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

@media(min-width:560px) {
    .card {
        grid-column: span 6
    }
}

@media(min-width:900px) {
    .card {
        grid-column: span 4
    }
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(36, 85, 156, .16)
}

.card img {
    width: 116px;
    height: 116px;
    object-fit: cover;
    border-radius: 14px;
    background: var(--bege-200);
    box-shadow: inset 0 0 0 1px rgba(36, 85, 156, .08);
}

.card-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px
}

.card-details h3 {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--azul-700);
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 10px 0 5px 0;
    line-height: 1.4;
    max-height: 2.8em;
}

.card-details p {
    font-size: 14px;
    color: var(--txt-sec);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-details .preco {
    margin-top: 6px;
    font-weight: 800;
    color: var(--azul-600);
    display: inline-block;
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--bege-100);
    border: 1px solid rgba(36, 85, 156, .10);
}

.modal-dialog-produto {
    width: min(960px, 96vw);
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 22px;
    border: 1px solid rgba(36, 85, 156, .10);
    position: relative;
}

@media(max-width:860px) {
    .modal-dialog-produto {
        grid-template-columns: 1fr
    }
}

.modal-close-produto {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 26px;
    color: var(--azul-600);
    background: #fff;
    width: 36px;
    height: 36px;
    line-height: 32px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid rgba(36, 85, 156, .12);
    box-shadow: var(--shadow-sm);
}

.modal-produto-img img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 18px;
    background: var(--bege-200);
    box-shadow: inset 0 0 0 1px rgba(36, 85, 156, .08);
}

.modal-produto-info h2 {
    color: var(--azul-700)
}

.modal-produto-info .preco {
    font-size: 20px;
    font-weight: 800;
    color: var(--azul-600);
    background: var(--bege-100);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(36, 85, 156, .10);
    display: inline-block;
}

.modal-produto-info label {
    font-weight: 700;
    color: var(--txt-prim)
}

.modal-produto-info input[type="number"] {
    width: 70px;
    /* Reduced from 96px */
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(36, 85, 156, .18);
    margin-top: 5px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap
}

/* ==================== FOOTER ==================== */
.rodape {
    margin-top: 28px;
    padding: 18px 12px;
    text-align: center;
    color: #fff;
    background: linear-gradient(90deg, var(--azul-700), var(--azul-600));
}

/* ==================== RESPONSIVO FINO ==================== */
@media(max-width:520px) {
    .card {
        padding: 10px
    }

    .card img {
        width: 96px;
        height: 96px
    }

    nav ul {
        gap: 10px;
        padding: 10px
    }
}

/* ===== BAG FLUTUANTE (tipo iFood) ===== */
.BagFlutuante {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1200;
}

.bag-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #1d3f73, #2f6fca);
    color: #fff;
    border: none;
    border-radius: 18px;
    padding: 10px 14px 10px 12px;
    box-shadow: 0 14px 34px rgba(15, 31, 61, .25);
}

.bag-btn:hover {
    filter: brightness(1.06)
}

/* ícone “mochila/bag de motoboy” em CSS puro */
.bag-icone {
    position: relative;
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 6px;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .08);
}

.bag-icone::before {
    /* alça */
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    top: -6px;
    height: 10px;
    border: 3px solid #fff;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.bag-icone::after {
    /* faixa/strap */
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    top: 10px;
    height: 6px;
    background: rgba(29, 63, 115, .25);
    border-radius: 4px;
}

/* badge contador */
.bag-contador {
    min-width: 24px;
    height: 24px;
    line-height: 24px;
    background: #ff3d3d;
    color: #fff;
    font-weight: 800;
    text-align: center;
    border-radius: 999px;
    font-size: 13px;
    padding: 0 6px;
}

.bag-total {
    font-weight: 800;
    font-size: 14px;
    background: rgba(255, 255, 255, .16);
    padding: 6px 10px;
    border-radius: 12px;
}

/* esconde contador quando zero */
.bag-contador[data-zero="true"] {
    display: none
}

/* em telas pequenas, deixa mais compacto */
@media(max-width:460px) {
    .bag-total {
        font-size: 13px;
    }

    .bag-btn {
        padding: 9px 12px 9px 10px;
    }

    .bag-icone {
        width: 28px;
        height: 28px;
    }
}

/* Container para colocar as portinhas lado a lado */
.portal-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    /* espaço entre as portinhas */
    margin: 20px auto;
    max-width: 900px;
    flex-wrap: wrap;
    /* quebra para baixo em telas pequenas */
}

/* Cada portinha */
.portal {
    flex: 1;
    /* ocupa mesmo espaço */
    background: #fff8e1;
    border: 2px solid #4053a8;
    border-radius: 16px;
    padding: 20px;
    min-width: 280px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.portal:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(64, 83, 168, 0.2);
}

.portal-icon {
    font-size: 36px;
    color: #4053a8;
    margin-right: 15px;
}

.portal-text {
    flex: 1;
}

.portal-text h3 {
    margin: 0;
    font-size: 18px;
    color: #132574;
}

.portal-text p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #555;
}



.btn_meusepdidos {
    background: #4053a8;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s;
    min-height: 44px;
    width: 85px;
}

.portal-btn {
    background: #4053a8;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s;
}

.portal-btn:hover {
    background: #2d3f85;
}

/* Modal Endereço */
.modal-endereco {
    display: none;
    /* 🛠️ escondido por padrão */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10000;
    /* NÃO coloque display:flex aqui */
    justify-content: center;
    align-items: flex-start;
    padding: 5px 20px;
    box-sizing: border-box;
}

.modal-endereco.active {
    display: flex;
    /* 👈 só mostra quando estiver .active */
}

.modal-dialog-endereco {
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    border: 2px solid #4053a8;
    position: relative;
    margin: 5px auto;
    /* 5px em cima/baixo */
    padding: 20px;
    max-height: calc(100vh - 10px);
    /* 5px top + 5px bottom */
    overflow-y: auto;
    box-sizing: border-box;
}

/* Header do modal */
.modal-header-endereco {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* Botão localização */
.btn-localizacao {
    background: #4053a8;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s;
}

.btn-localizacao:hover {
    background: #2d3f85;
}

/* Form mais compacto */
.endereco-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field label {
    display: block;
    font-size: 13px;
    color: #4053a8;
    margin-bottom: 6px;
    font-weight: 700;
}

.field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid #e6e6f2;
    background: #fff;
    font-size: 14px;
    color: #222;
    outline: none;
}

.field input:focus {
    border-color: #4053a8;
    box-shadow: 0 0 0 3px rgba(64, 83, 168, 0.12);
}

.grid-dupla {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .grid-dupla {
        grid-template-columns: 1fr;
    }
}

.endereco-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 4px;
}

.btn {
    background: #4053a8;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .1s, background .2s;
}

.btn:hover {
    background: #2d3f85;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-outline {
    background: #fff;
    color: #4053a8;
    border: 2px solid #4053a8;
}

.btn-outline:hover {
    background: #f4f6ff;
}

/* (opcional) botão X do topo */
.modal-close-endereco {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #4053a8;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.modal-close-endereco:hover {
    background: #2d3f85;
}

/* Modal de resumo (segue a mesma lógica dos outros modais) */
.modal-endereco-resumo {
    display: none;
}

.modal-endereco-resumo.active {
    display: block;
}


/* Toast no TOPO DIREITO */
#toast-root {
    position: fixed !important;
    z-index: 2147483647 !important;
    pointer-events: none !important;

    top: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;

    display: flex !important;
    flex-direction: column !important;
    /* empilha de cima para baixo */
    align-items: flex-end !important;
    /* alinhado à direita */
}

/* conforto para notch/status-bar */
@supports(padding: env(safe-area-inset-top)) {
    #toast-root {
        padding-top: env(safe-area-inset-top) !important;
    }
}


.bd-toast {
    /* classe do toast no JS novo */
    display: block !important;
    opacity: 1 !important;
    /* se algum framework zerar opacity */
}

.loja-fechada-aviso {
    background-color: #ffcdd2;
    color: #c62828;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    text-align: center;
}

.loja-fechada-aviso h2 {
    margin: 0 0 5px 0;
}

.loja-fechada .card {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Melhoria UX: Botão "Loja Fechada" no modal */
.loja-fechada .btn-add[disabled] {
    background: #a0a0a0;
    /* Cor cinza para indicar inatividade */
    cursor: not-allowed;
}

.loja-fechada .btn-add[disabled]:hover {
    background: #909090;
    /* Mantém uma cor próxima no hover */
}

/* Aditional responsive styles for mobile */
@media (max-width: 600px) {
    .modal-produto-info input[type="number"] {
        width: 60px;
        padding: 8px;
    }


}

.produto-observacoes {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.produto-observacoes label {
  font-size: 14px;
  font-weight: 600;
  color: #4b2e1f; /* marrom padaria */
  display: flex;
  align-items: center;
  gap: 6px;
}

.produto-observacoes label .hint {
  font-size: 11px;
  font-weight: 500;
  color: #9b8b80;
}

.produto-observacoes textarea {
  width: 100%;
  resize: none;
  border-radius: 10px;
  border: 1px solid #e2d6c9;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fffaf6;
  color: #3a2a20;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.produto-observacoes textarea::placeholder {
  color: #b6a89f;
}

.produto-observacoes textarea:focus {
  outline: none;
  border-color: #d17b3f; /* cor destaque Boa */
  box-shadow: 0 0 0 2px rgba(209, 123, 63, 0.15);
}

.produto-observacoes .obs-ajuda {
  font-size: 12px;
  color: #8a7b72;
}
