@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
    background-color: white;
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

.seila {
    background-color: black;
    text-align: center;
    width: 100%;
    height: 100px;
}

header {
    background-color: white;
    border-radius: 20px;
    color: black;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    margin: 20px;
}

.logo {
    transform: translateY(10px);
    border-radius: 100%;
    border: 2px solid black;

}

#info {
    display: flex;
    align-items: center;   /* <- adiciona isso */
    justify-content: center;
    gap: 10px;
    transform: translateY(-10px);
}
#info > span,
.status-wrapper > #abertoa {
    border: 2px solid black;
    border-radius: 10px;
    padding: 8px 15px;
    background-color: white;
    line-height: 1.2;      /* <- deixa igual pros dois */
    display: inline-flex;  /* <- pra bolinha alinhar com o texto */
    align-items: center;
    gap: 6px;
}

#abertoa:hover {
    background-color: #f5f5f5;
}

#abertoa.fechado {
    color: #ef4444;
    border-color: #ef4444;
}

#abertoa.aberto {
    color: #16a34a;
    border-color: #16a34a;
}

#abertoa .bolinha {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #22c55e; /* verde */
    margin-right: 6px;
}

#abertoa.fechado .bolinha {
    background-color: #ef4444; /* vermelho */
}

#abertoa.fechado {
    color: #ef4444;
}

#pesquisa {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
}

#pesquisa input {
    width: 300px;
    height: 40px;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 20px;
    background-color: rgba(102, 102, 102, 0.15);
    padding: 0 15px;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

#pesquisa input:focus {
    border-color: black;
}

#botaoPesquisa {
    cursor: pointer;
    width: 45px;
    height: 40px;
    border: none;
    border-radius: 20px;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

#botaoPesquisa svg {
    fill: white;
}

footer{
    background-color: black;
    color: white;
    border-radius: 20px;
    text-align: center;
}

footer a {
    text-decoration: none;
    font-weight: 700;
    color: white;
    cursor: pointer;
    border-bottom: 2px solid white;
}
#produtos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px;
}

.produto {
    width: 300px;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.produto img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.produto h3 {
    margin: 12px 0 5px;
}

.produto span {
    display: block;
    margin-bottom: 15px;
    color: #666;
}

.produto a {
    text-decoration: none;
    color: black;
}

.produto strong {
    display: block;
    font-size: 20px;
    margin: 10px 0 15px;
}

.produto {
    cursor: pointer;
    transition: transform 0.2s;
}

.produto:hover {
    transform: translateY(-5px);
}

.detalhes-produto {
    display: flex;
    gap: 30px;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    align-items: center;
}

.detalhes-produto img {
    width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
}

.detalhes-produto button,
.botao-pagamento,
.pagamento button {
    background-color: black;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 12px 20px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.detalhes-produto input[type="number"] {
    width: 60px;
    padding: 8px;
    border-radius: 10px;
    border: 2px solid #ccc;
}

.carrinho,
.pagamento {
    max-width: 800px;<div class="produto">
    margin: 40px auto;
    padding: 20px;
}

.item-carrinho {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.item-carrinho img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.botao-pagamento {
    display: inline-block;
    text-decoration: none;
}

#resumoCarrinho {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 20px;
    padding: 15px 20px;

    background-color: black;
    color: white;

    border-radius: 20px;

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

#resumoCarrinho div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#resumoCarrinho a {
    background-color: white;
    color: black;

    text-decoration: none;Coxinha
    font-weight: 700;

    padding: 10px 15px;
    border-radius: 15px;
}

#resumoCarrinho a:hover {
    background-color: #dd;
}

#resumoCarrinho small {
    margin-top: 3px;
    opacity: 0.8;
}

.adicionar-direto {
    margin-top: 8px;
}

.adicionar-direto button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #e53935;
    color: white;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    line-height: 32px;
    padding: 0;
}

.adicionar-direto button:hover {
    background: #c62828;
}

/* Ações do carrinho no index */
.acoes-carrinho {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.acoes-carrinho a {
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.botao-pagamento {
    background: #2e7d32;
    color: #fff;
}

.botao-gerenciar {
    background: #eee;
    color: #333;
}

/* Itens do carrinho */
.item-carrinho {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.item-info {
    flex: 1;
}

.item-acoes {
    display: flex;
    align-items: center;
    gap: 6px;
}

.item-acoes form {
    margin: 0;
}

.item-acoes button {
    width: 32px;
    height: 32px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.item-acoes button:hover {
    background: #f5f5f5;
}

.quantidade-atual {
    min-width: 20px;
    text-align: center;
    font-weight: bold;
}

.botao-remover {
    color: #c62828;
    border-color: #c62828 !important;
}

.botao-remover:hover {
    background: #ffebee !important;
}

.pagamento form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 500px;
}

.pagamento fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pagamento legend {
    font-weight: bold;
    padding: 0 6px;
}

.pagamento label {
    font-size: 14px;
    color: #333;
}

.pagamento input[type="text"],
.pagamento input[type="tel"],
.pagamento input[type="email"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.pagamento input[type="radio"] {
    margin-right: 6px;
}

.pagamento button[type="submit"] {
    padding: 12px;
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.pagamento button[type="submit"]:hover {
    background: #1b5e20;
}

/* Resumo do pedido na tela de pagamento */
.resumo-pedido {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.resumo-pedido h2 {
    margin-top: 0;
    font-size: 18px;
}

.total-pedido {
    border-top: 2px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
    text-align: right;
    font-size: 18px;
}

/* Botão finalizar desabilitado */
.pagamento button[type="submit"]:disabled {
    background: #bbb;
    cursor: not-allowed;
}

#semResultado {
    width: 100%;
    text-align: center;
    font-weight: 600;
    color: #666;
    margin: 30px 0;
}

/* Wrapper para posicionar o painel */
.status-wrapper {
    position: relative;
    display: inline-flex;  /* <- troca inline-block por inline-flex */
    align-items: center;
    line-height: 1;        /* evita diferença de altura de linha */
}

/* Deixa o status clicável */
#abertoa {
    user-select: none;
    transition: background 0.2s;
}

#abertoa:hover {
    background-color: #f5f5f5;
}

#abertoa .bolinha {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #22c55e;
    margin-right: 6px;
    vertical-align: middle;
}

#abertoa.fechado .bolinha {
    background-color: #ef4444;
}

#abertoa.fechado {
    color: #ef4444;
}
.horarios {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translate(-50%, -6px);

    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    padding: 15px 18px;
    width: 260px;
    z-index: 100;

    text-align: left;
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

/* Quando ativo (JS adiciona a classe) */
.status-wrapper.ativo .horarios {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
/* Mostra ao passar o mouse (apenas em dispositivos com mouse) */
@media (hover: hover) and (pointer: fine) {
    .status-wrapper:hover .horarios {
        display: block;
    }
}

/* Mostra ao clicar (celular/touch) */
.horarios.ativo {
    display: block;
}

/* resto do estilo do painel continua igual... */

.horarios::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: white;
    box-shadow: -3px -3px 6px rgba(0, 0, 0, 0.05);
}

.horarios h4 {
    margin: 0 0 10px;
    font-size: 14px;
    text-align: center;
    color: #333;
}

.horarios ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.horarios li {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
    border-bottom: 1px dashed #eee;
}

.horarios li:last-child {
    border-bottom: none;
}

.horarios li span {
    color: #555;
}

.horarios li strong {
    color: #111;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -6px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================================================
   NAVEGAÇÃO DE CATEGORIAS (INDEX)
============================================================ */

#navCategorias {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    border-bottom: 1px solid #eee;
    scrollbar-width: thin;
}

#navCategorias::-webkit-scrollbar {
    height: 6px;
}

#navCategorias::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

#navCategorias a {
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f1f1f1;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 14px;
    transition: background .2s;
}

#navCategorias a:hover {
    background: #e0e0e0;
}
/* ============================================================
   NAVEGAÇÃO DE CATEGORIAS (INDEX)
============================================================ */

#navCategorias {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    border-bottom: 1px solid #eee;
    scrollbar-width: thin;
}

#navCategorias::-webkit-scrollbar {
    height: 6px;
}

#navCategorias::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

#navCategorias a {
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f1f1f1;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 14px;
    transition: background .2s;
}

#navCategorias a:hover {
    background: #e0e0e0;
}

/* ============================================================
   SEÇÕES DE CATEGORIA (INDEX)
============================================================ */

.secao-categoria {
    margin-bottom: 30px;
}

.titulo-categoria {
    margin: 25px 20px 10px;
    font-size: 22px;
    border-left: 5px solid #d4a017;
    padding-left: 12px;
}

/* ============================================================
   GRID DE PRODUTOS
   (mesmas regras do antigo #produtos, agora em .produtos)
============================================================ */

.produtos,
#produtos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px;
    padding: 0;
}

/* ============================================
   RESUMO DO CARRINHO — FIXO NA LATERAL DIREITA
   ============================================ */

#resumoCarrinho {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 999;

    width: 260px;
    max-width: calc(100vw - 40px);

    background: #fff;
    border-radius: 14px;
    padding: 18px 16px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    border: 1px solid #f0e0c8;

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

    animation: slideInRight 0.35s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translate(40px, -50%);
    }
    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

#resumoCarrinho > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

#resumoCarrinho strong {
    font-size: 1.05rem;
    color: #4a2c12;
}

#resumoCarrinho span {
    font-size: 1.15rem;
    font-weight: 700;
    color: #b06a1f;
}

#resumoCarrinho small {
    display: block;
    font-size: 0.78rem;
    color: #c0392b;
    background: #fff3f0;
    padding: 6px 8px;
    border-radius: 8px;
    margin-top: 4px;
    line-height: 1.3;
}

#resumoCarrinho .acoes-carrinho {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#resumoCarrinho .botao-pagamento,
#resumoCarrinho .botao-gerenciar {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

#resumoCarrinho .botao-pagamento {
    background: #b06a1f;
    color: #fff;
    box-shadow: 0 4px 12px rgba(176, 106, 31, 0.35);
}

#resumoCarrinho .botao-pagamento:hover {
    background: #8f5517;
    transform: translateY(-2px);
}

#resumoCarrinho .botao-gerenciar {
    background: #f5e6cf;
    color: #4a2c12;
}

#resumoCarrinho .botao-gerenciar:hover {
    background: #ecd5b0;
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVO — telas pequenas
   ============================================ */

/* Evita que o conteúdo fique atrás da barra fixa em telas médias */
@media (max-width: 1100px) {
    body {
        padding-right: 0;
    }
}

/* Em celulares, vira uma barra fixa no rodapé (largura toda) */
@media (max-width: 768px) {
    #resumoCarrinho {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        transform: none;

        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 12px 16px;

        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    #resumoCarrinho > div:first-child {
        text-align: left;
        flex: 1;
        min-width: 0;
    }

    #resumoCarrinho .acoes-carrinho {
        flex-direction: row;
        flex-shrink: 0;
    }

    #resumoCarrinho .botao-pagamento,
    #resumoCarrinho .botao-gerenciar {
        padding: 8px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Impede que o rodapé real fique escondido atrás da barra fixa */
    footer {
        padding-bottom: 90px;
    }
}