/* Reset básico para consistência */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding-top: 70px; /* Espaço para o header fixo */
    word-wrap: break-word;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #0d0d0d;
    color: #fff;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: padding 0.3s ease;
}

header .header-container { /* Renomeado para evitar conflito com .container geral */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Evita quebra de linha desnecessária dos itens principais */
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px; /* Reduzido padding para mais espaço */
}

.logo img {
    height: 50px; /* Altura base do logo */
    transition: height 0.3s ease;
    vertical-align: middle; /* Alinha melhor com outros itens */
}

header.scrolled .logo img {
    height: 40px; /* Logo menor quando scrollado */
}
header.scrolled {
    padding: 5px 0; /* Header menor quando scrollado */
}


#main-nav { /* Navegação principal */
    flex-grow: 1;
    text-align: center; /* Centraliza os links da navegação */
}

#main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center; /* Alinha verticalmente os itens da nav */
    padding: 0;
    margin: 0;
}

#main-nav ul li {
    margin: 0 10px; /* Reduzido para caber melhor */
}

#main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em; /* Ajustado */
    padding: 5px 0; /* Adiciona um pouco de padding vertical para melhor clique */
    transition: color 0.3s ease, transform 0.3s ease;
}

#main-nav a:hover, #main-nav a.active {
    color: #ff9800;
    transform: translateY(-2px);
}

.header-right-items {
    display: flex;
    align-items: center;
}

.cart-icon {
    color: #fff;
    font-size: 1.5em; /* Ajustado */
    cursor: pointer;
    position: relative;
    padding: 5px 10px; /* Padding para clique */
    transition: color 0.3s ease;
    margin-left: 10px; /* Espaço se houver nav */
}
.cart-icon:hover {
    color: #ff9800;
}

.cart-count {
    position: absolute;
    top: 0px; /* Ajustado para melhor posicionamento */
    right: 0px; /* Ajustado */
    background-color: #ff0000;
    color: white;
    font-size: 0.7em; /* Ajustado */
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 6px; /* Ajustado */
    line-height: 1;
    min-width: 18px;
    text-align: center;
}

/* Botão do Menu Mobile (Hambúrguer) */
.mobile-menu-toggle {
    display: none; /* Oculto em telas grandes */
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px 10px;
    margin-left: 10px;
}
.mobile-menu-toggle:hover {
    color: #ff9800;
}

/* Navegação Mobile */
.mobile-nav {
    display: none; /* Inicialmente oculto */
    background-color: #0d0d0d;
    width: 100%;
    position: absolute;
    top: 100%; /* Abaixo do header */
    left: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    padding: 10px 0;
    flex-direction: column; /* Itens empilhados */
}
.mobile-nav.active {
    display: flex;
}
.mobile-nav-link {
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    text-align: center;
    border-bottom: 1px solid #333;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.mobile-nav-link:last-child {
    border-bottom: none;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
    background-color: #333;
    color: #ff9800;
}


/* Hero Section */
.hero {
    background: url('imagens/hero-background.jpg') no-repeat center center/cover; /* Caminho ajustado */
    color: #fff;
    text-align: center;
    padding: 150px 20px 80px; /* Ajustado padding */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh; /* Reduzido para melhor visualização em telas comuns */
}
.hero::before { /* Overlay escuro */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.65); /* Aumentado um pouco a opacidade */
    z-index: 1;
}
.hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero h1 {
    font-size: 3.5em; /* Ajustado */
    margin-bottom: 15px;
    color: #ff9800;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}
.hero p {
    font-size: 1.3em; /* Ajustado */
    margin-bottom: 35px; /* Ajustado */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* Botões Gerais */
.btn {
    display: inline-block;
    background-color: #ff9800;
    color: #1a1a1a; /* Texto escuro para contraste com fundo laranja */
    padding: 12px 30px; /* Ajustado */
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-weight: bold;
    font-size: 1.1em; /* Ajustado */
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}
.btn:hover:not(:disabled) {
    background-color: #f57c00;
    transform: translateY(-3px); /* Efeito de levantar sutil */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.btn:disabled, a.btn.disabled { /* Estilo para link desabilitado também */
    background-color: #555 !important; /* Garante override */
    color: #aaa !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
    box-shadow: none !important;
}

.whatsapp-btn-inline {
    background-color: #25D366;
    color: white;
    margin-top: 20px; /* Aumentado um pouco */
    padding: 14px 35px; /* Ajustado */
    font-size: 1.2em; /* Ajustado */
}
.whatsapp-btn-inline:hover:not(:disabled) {
    background-color: #128C7E;
}

/* Seções Gerais */
.section {
    padding: 70px 0; /* Ajustado */
    text-align: center;
}
.section:nth-child(odd) { /* Hero é o primeiro (ímpar), depois cardápio (par) */
    background-color: #222; /* Ajustado para melhor contraste */
}
.section:nth-child(even) {
     background-color: #1f1f1f;
}
.hero + .section { /* Garante que a primeira seção após o hero tenha o fundo desejado */
    background-color: #1f1f1f; /* Cardápio */
}
.hero + .section + .section { /* Contato */
    background-color: #222;
}
.hero + .section + .section + .section { /* Localização */
    background-color: #1f1f1f;
}

.section h2 {
    font-size: 2.8em; /* Ajustado */
    margin-bottom: 35px; /* Ajustado */
    color: #ff9800;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
#cardapio .container > p { /* Seleciona o <p> filho direto do .container */
    font-size: 1.1em;
    margin-bottom: 40px; /* Ajustado */
    color: #ccc; /* Cor mais clara para o texto da seção */
}
#contato .container p, #localizacao .container p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #ccc;
}
.disk-horario {
    font-style: italic;
    color: #aaa;
    margin-top: 10px;
}


/* Estilo do Cardápio */
.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); /* Ajustado minmax */
    gap: 25px; /* Ajustado */
    margin-top: 0;
    justify-content: center;
}
.menu-item {
    background-color: #2c2c2c; /* Cor de fundo do card um pouco mais clara */
    border-radius: 8px; /* Bordas mais suaves */
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Sombra mais sutil */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 15px; /* Ajustado */
}
.menu-item:hover {
     transform: translateY(-6px); /* Efeito hover mais pronunciado */
     box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}
.menu-item img {
    width: 100%;
    height: 180px; /* Ajustado */
    object-fit: cover;
    /* Removida borda inferior da imagem, adicionada ao item-info se necessário */
    margin-bottom: 15px;
}
.item-info {
    padding: 0 15px;
    flex-grow: 1;
    width: 100%;
    text-align: center;
}
.item-info h4 {
    color: #f0f0f0; /* Cor do título do item */
    margin-bottom: 8px; /* Ajustado */
    font-size: 1.25em; /* Ajustado */
}
.item-info .item-description {
    color: #bbb; /* Cor da descrição */
    font-size: 0.9em; /* Ajustado */
    margin-bottom: 10px;
    min-height: 50px; /* Garante altura mínima para descrições variadas */
}
.item-info .item-price {
    color: #ff9800;
    font-size: 1.15em; /* Ajustado */
    font-weight: bold;
    margin-bottom: 15px;
}
.add-to-cart-btn { /* Herdando de .btn, mas podemos especificar mais */
    margin-top: auto; /* Empurra o botão para baixo */
    padding: 10px 25px; /* Ajustado */
    font-size: 0.95em; /* Ajustado */
}
.loading {
    text-align: center;
    font-size: 1.2em;
    color: #ccc;
    grid-column: 1 / -1; /* Ocupa todas as colunas */
    padding: 20px;
}

/* Mapa Responsivo */
.map-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #333; /* Fundo enquanto carrega */
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}
.map-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* Footer */
footer {
    background-color: #0d0d0d;
    color: #aaa; /* Cor de texto do rodapé */
    text-align: center;
    padding: 25px 0; /* Ajustado */
    font-size: 0.95em; /* Ajustado */
}
footer p {
    margin-bottom: 8px; /* Ajustado */
}
footer p:last-child {
    margin-bottom: 0;
}

/* Sidebar do Carrinho */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%; /* Começa totalmente fora da tela */
    width: 100%;
    max-width: 380px; /* Largura máxima um pouco menor */
    height: 100%;
    background-color: #222; /* Fundo do carrinho um pouco diferente */
    color: #f0f0f0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.6); /* Sombra mais escura */
    transition: right 0.35s ease-in-out; /* Transição mais suave */
    z-index: 2000;
    display: flex;
    flex-direction: column;
}
.cart-sidebar.open {
    right: 0;
}
.sidebar-header {
    padding: 15px 20px; /* Padding ajustado */
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar-header h3 {
     margin: 0;
     font-size: 1.6em; /* Ajustado */
     color: #ff9800;
}
.close-btn {
    background: none;
    border: none;
    color: #f0f0f0;
    font-size: 1.6em; /* Ajustado */
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}
.close-btn:hover {
    color: #ff9800;
    transform: rotate(90deg); /* Efeito de rotação */
}

.cart-items {
    flex-grow: 1;
    padding: 15px 20px; /* Padding ajustado */
    overflow-y: auto;
}
.cart-empty {
    text-align: center;
    color: #aaa; /* Cor ajustada */
    padding: 20px 0;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dotted #555;
    padding: 12px 0; /* Padding ajustado */
}
.cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.cart-item-info {
    flex-grow: 1;
    margin-right: 10px; /* Espaço ajustado */
}
.cart-item-info h4 {
     margin: 0 0 4px 0; /* Margem ajustada */
     font-size: 1.05em; /* Ajustado */
     color: #fff;
}
.cart-item-info p { /* Preço unitário */
     margin: 0;
     font-size: 0.85em; /* Ajustado */
     color: #bbb; /* Cor ajustada */
}
.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-left: 10px; /* Adicionado espaço à esquerda da quantidade */
}
.cart-item-quantity span {
    min-width: 25px; /* Espaço para o número */
    text-align: center;
    font-weight: bold;
    font-size: 1em;
    color: #f0f0f0;
}
.cart-item-controls {
    display: flex;
    align-items: center;
    margin-left: 10px; /* Espaçamento entre quantidade e controles */
}
.cart-item-controls button {
    background-color: #444; /* Cor de fundo dos botões +/- */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px; /* Padding ajustado */
    cursor: pointer;
    margin: 0 3px; /* Margem ajustada */
    font-size: 0.9em; /* Ajustado */
    line-height: 1; /* Garante alinhamento do texto */
    transition: background-color 0.2s ease;
}
.cart-item-controls button:hover {
    background-color: #555;
}
.cart-item-controls .remove-item {
    background-color: #c0392b; /* Vermelho mais escuro */
    padding: 5px 8px; /* Garante que o ícone caiba bem */
}
.cart-item-controls .remove-item:hover {
    background-color: #a93226;
}

/* Estilo do footer do carrinho (formulário, total, botão) */
.cart-footer {
    padding: 15px 20px; /* Padding ajustado */
    border-top: 1px solid #444;
    background-color: #2a2a2a; /* Fundo levemente diferente para destacar */
}

/* Detalhes do cliente (nome, endereço, pagamento) */
.customer-details {
    margin-bottom: 15px; /* Espaço antes do total */
    text-align: left;
}
.customer-details h4 { /* "Detalhes para o Pedido" */
    color: #ff9800;
    margin-top: 0;
    margin-bottom: 12px; /* Espaçado */
    font-size: 1.15em; /* Ajustado */
    text-align: center;
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
}
/* Informação de Pedido na Mesa (dentro do formulário do carrinho) */
.table-order-info {
    background-color: rgba(255, 152, 0, 0.1); /* Fundo laranja claro transparente */
    border-left: 3px solid #ff9800;
    padding: 8px 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 0.9em;
}
.table-order-info p {
    margin: 0;
    color: #f0f0f0;
}
.table-order-info strong {
    color: #ff9800;
}

.form-group {
    margin-bottom: 12px; /* Espaçado */
}
.form-group label {
    display: block;
    margin-bottom: 6px; /* Espaçado */
    font-weight: bold;
    font-size: 0.9em; /* Ajustado */
    color: #ccc;
}
/* Adiciona asterisco para campos obrigatórios */
.form-group label:has(+ input[required])::after {
    content: ' *';
    color: #ff9800; /* Asterisco laranja */
}
.form-group input[type="text"] {
    width: 100%;
    padding: 10px 12px; /* Padding ajustado */
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #333; /* Fundo do input mais escuro */
    color: #f0f0f0;
    font-size: 0.95em; /* Ajustado */
}
.form-group input[type="text"]::placeholder {
    color: #888; /* Placeholder mais sutil */
}
.form-group input[type="text"]:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.3); /* Sombra de foco laranja */
}

.cart-total {
    font-size: 1.3em; /* Ajustado */
    margin-bottom: 15px;
    color: #ff9800;
    text-align: center;
    font-weight: bold; /* Adicionado negrito */
}
.whatsapp-btn-checkout { /* Herdando de .btn */
    width: 100%;
    display: block;
    text-align: center;
    padding: 14px; /* Padding ajustado */
    font-size: 1.1em; /* Ajustado */
}
#checkout-info { /* Renomeado ID para evitar conflito com classe */
    font-size: 0.85em; /* Ajustado */
    color: #aaa; /* Cor ajustada */
    margin-top: 10px;
    text-align: center; /* Centralizado */
    min-height: 1.2em; /* Evita pulo de layout */
}

/* Botão Flutuante (agora para abrir carrinho) */
#whatsapp-float-btn { /* O ID foi mantido, mas a funcionalidade/ícone mudou */
     position: fixed;
     width: 55px; /* Ajustado */
     height: 55px; /* Ajustado */
     bottom: 25px; /* Ajustado */
     right: 25px; /* Ajustado */
     background-color: #ff9800;
     color: #1a1a1a;
     border-radius: 50%; /* Circular */
     text-align: center;
     font-size: 26px; /* Tamanho do ícone */
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); /* Sombra ajustada */
     z-index: 1500;
     display: flex;
     justify-content: center;
     align-items: center;
     text-decoration: none;
     transition: transform 0.2s ease, background-color 0.2s ease;
     border: none;
     cursor: pointer;
 }
 #whatsapp-float-btn:hover {
     transform: scale(1.1);
     background-color: #f57c00;
 }

/* Overlay (fundo escuro quando sidebar está aberto) */
.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75); /* Mais escuro */
    z-index: 1999; /* Abaixo do sidebar */
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.overlay.active {
    display: block;
    opacity: 1;
}


/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) { /* Tablets e orientação paisagem de celulares */
    body { padding-top: 60px; /* Header menor */ }
    header { padding: 8px 0; }
    .logo img { height: 40px; }
    header.scrolled .logo img { height: 35px; }
    header.scrolled { padding: 4px 0; }

    #main-nav ul li { margin: 0 8px; }
    #main-nav a { font-size: 0.95em; }
    .cart-icon { font-size: 1.4em; }

    .hero { padding: 120px 15px 60px; min-height: 45vh; }
    .hero h1 { font-size: 2.8em; }
    .hero p { font-size: 1.2em; margin-bottom: 30px; }

    .section { padding: 60px 0; }
    .section h2 { font-size: 2.3em; margin-bottom: 30px; }

    .menu-items { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
    .menu-item img { height: 170px; }

    .btn, .whatsapp-btn-inline { padding: 10px 25px; font-size: 1em; }
    #whatsapp-float-btn { width: 50px; height: 50px; font-size: 24px; }
    .cart-sidebar { max-width: 320px; }
}

@media (max-width: 767px) { /* Celulares */
    body { padding-top: 55px; /* Header ainda menor */ }
    header { padding: 5px 0; }
    header .header-container { padding: 0 15px; /* Padding do container do header */ }
    .logo img { height: 35px; }
    header.scrolled .logo img { height: 30px; }

    #main-nav { display: none; } /* Oculta nav principal */
    .mobile-menu-toggle { display: block; } /* Mostra botão hambúrguer */

    .cart-icon { margin-left: 0; /* Remove margem quando nav principal some */ font-size: 1.3em; }

    .hero { padding: 100px 15px 50px; min-height: 40vh; }
    .hero h1 { font-size: 2.2em; }
    .hero p { font-size: 1em; }

    .section { padding: 50px 0; }
    .section h2 { font-size: 2em; margin-bottom: 25px; }

    .menu-items { grid-template-columns: 1fr; /* Uma coluna */ gap: 20px; }
    .menu-item img { height: 180px; } /* Pode aumentar um pouco em uma coluna */

    .cart-sidebar { max-width: 85%; right: -100%; } /* Ajusta largura para mobile */
    .sidebar-header h3 { font-size: 1.3em; }
    .close-btn { font-size: 1.4em; }
}

@media (max-width: 480px) { /* Telas muito pequenas */
    body { padding-top: 50px; }
    header { padding: 5px 0; }
    .logo img { height: 30px; }
    header.scrolled .logo img { height: 28px; }

    .hero { padding: 80px 10px 40px; min-height: 35vh; }
    .hero h1 { font-size: 1.9em; }
    .hero p { font-size: 0.9em; }

    .section { padding: 40px 0; }
    .section h2 { font-size: 1.7em; margin-bottom: 20px; }
    #cardapio .container > p { font-size: 1em; margin-bottom: 30px; }

    .btn, .whatsapp-btn-inline { padding: 10px 20px; font-size: 0.95em; }
    #whatsapp-float-btn { width: 48px; height: 48px; font-size: 22px; bottom: 15px; right: 15px; }

    .cart-sidebar { max-width: 90%; }
    .sidebar-header h3 { font-size: 1.2em; }
    .cart-total { font-size: 1.1em; }
    .form-group label, .form-group input[type="text"] { font-size: 0.85em; }
    .whatsapp-btn-checkout { font-size: 1em; padding: 12px; }
}