/* Variáveis CSS */
:root {
    --primary-red: #c90000; /* Vermelho principal da pizzaria */
    --secondary-yellow: #FFD700; /* Amarelo para destaque */
    --text-dark: #333;
    --text-light: #fdfdfd; /* Texto claro para fundos escuros */
    --background-light: #f0f0f0; /* Fundo claro para seções */
    --background-dark: #2c2c2c; /* Fundo escuro, por exemplo, do header */
    --border-color: #ddd;
    --box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --whatsapp-green: #25D366;
    --instagram-purple: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    overflow-x: hidden;
}

/* Animações globais */
* {
    transition: all 0.3s ease;
}

/* Melhorar foco para acessibilidade */
*:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* Header */
header {
    background-color: var(--primary-red);
    color: var(--text-light);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer; /* Torna o contêiner do logo clicável */
}

header .logo {
    width: 60px; /* NOVO: Logo ligeiramente maior */
    height: auto;
}

header h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem; /* NOVO: Aumenta o nome da pizzaria */
    line-height: 1;
    margin: 0;
}

header .tagline {
    font-size: 1.1rem; /* NOVO: Aumenta o "Delivery" */
    margin: 0;
    color: var(--secondary-yellow);
}

.whatsapp-header {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.whatsapp-header:hover {
    background-color: rgba(255,255,255,0.1);
}
.whatsapp-header i {
    font-size: 1.2rem;
}

.cart-button {
    background-color: var(--secondary-yellow);
    color: var(--primary-red);
    border: none;
    border-radius: 50px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    position: relative;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.cart-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cart-button:active {
    transform: scale(0.95);
}

/* Carrinho sempre visível */
.cart-button.cart-empty {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.cart-button .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--text-dark);
    color: var(--text-light);
    font-size: 0.7rem;
    border-radius: 50%;
    padding: 0.2em 0.5em;
    min-width: 1.5em;
    text-align: center;
    transition: all 0.3s ease;
    animation: pulse 0.5s ease-in-out;
}

/* Animação de pulse para o contador */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Seções Gerais */
.section {
    padding: 20px;
    background-color: var(--text-light);
    margin-bottom: 10px; /* Espaçamento entre seções */
    box-shadow: var(--box-shadow);
    border-radius: 8px;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/hero-pizza-background.jpeg') center/cover no-repeat fixed;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 0; /* Remove border-radius das seções para a hero */
    box-shadow: none; /* Remove box-shadow da hero */
}
#hero h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: var(--text-light);
}
#hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center; /* NOVO: Centraliza os botões */
}

/* Botões Gerais */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.btn.primary {
    background-color: var(--primary-red);
    color: var(--text-light);
}
.btn.secondary {
    background-color: var(--secondary-yellow);
    color: var(--primary-red);
}
.btn.full-width {
    width: 100%;
}
.btn.mt-1 {
    margin-top: 10px;
}
.btn.mt-2 {
    margin-top: 20px;
}
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Seção de Promoções */
#promocoes {
    background-color: var(--background-dark); /* Fundo escuro */
    color: var(--text-light);
    border-radius: 0; /* Remove border-radius das seções para promoções */
    box-shadow: none; /* Remove box-shadow das promoções */
}
#promocoes .section-title {
    color: var(--secondary-yellow);
}
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}
.promo-card {
    background-color: var(--text-light);
    color: var(--text-dark);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    text-align: left;
    display: flex;
    flex-direction: column;
}
.promo-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.promo-card h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 10px 15px 5px;
    color: var(--primary-red);
}
.promo-card p {
    font-size: 0.9rem;
    margin: 0 15px 10px;
    flex-grow: 1; /* Para empurrar o preço e botão para baixo */
}
.promo-card .promo-price {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-red);
    margin: 0 15px 10px;
    text-align: right;
}
.promo-card .btn {
    margin: 0 15px 15px;
}

/* Cardápio */
#cardapio {
    max-width: 900px;
    margin: 10px auto; /* Para centralizar e dar um pequeno espaçamento do hero/promo */
    background-color: var(--text-light);
}
.menu-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 0 10px;
}
.menu-cat-btn, .category-btn {
    background: linear-gradient(135deg, var(--background-light) 0%, #f8f9fa 100%);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 12px 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}
.menu-cat-btn::before, .category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}
.menu-cat-btn:hover, .category-btn:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f1f3f4 100%);
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.menu-cat-btn:hover::before, .category-btn:hover::before {
    left: 100%;
}
.menu-cat-btn.active, .category-btn.active {
    background: linear-gradient(135deg, var(--primary-red) 0%, #c41e3a 100%);
    color: var(--text-light);
    border-color: var(--primary-red);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}
.menu-cat-btn.active::before, .category-btn.active::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.menu-items-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}
.menu-item-card {
    background: linear-gradient(135deg, var(--text-light) 0%, #fafafa 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}
.menu-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(220, 38, 38, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.menu-item-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: var(--primary-red);
}
.menu-item-card:hover::before {
    opacity: 1;
}
.menu-item-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.menu-item-card:hover img {
    transform: scale(1.05);
}
.menu-item-card .item-info {
    padding: 18px;
    position: relative;
    z-index: 1;
}
.menu-item-card h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--primary-red);
    font-weight: 700;
    line-height: 1.2;
}
.menu-item-card p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: #666;
    line-height: 1.4;
}
.menu-item-card .item-price {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-dark);
    text-align: right;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-red) 0%, #c41e3a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.no-items-message {
    text-align: center;
    grid-column: 1 / -1; /* Ocupa todas as colunas no grid */
    padding: 40px 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Carrinho */
#cart, #checkout, #order-confirmation {
    max-width: 600px;
    margin: 10px auto;
    background-color: var(--text-light);
}
.hidden {
    display: none !important;
}
.cart-items {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 15px;
    min-height: 100px; /* Para não colapsar quando vazio */
}
.empty-cart-message {
    text-align: center;
    color: var(--text-dark);
    padding: 20px 0;
}
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}
.cart-item:last-child {
    border-bottom: none;
}
.cart-item-details {
    flex: 1;
}
.cart-item-details h4 {
    font-size: 1rem;
    color: var(--text-dark);
}
.cart-item-details p {
    font-size: 0.8rem;
    color: var(--text-dark);
    margin-top: 2px;
}
.cart-item-price {
    font-weight: bold;
    color: var(--primary-red);
    text-align: right;
    min-width: 80px;
}
.cart-item-quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
}
.cart-item-quantity-control button {
    background-color: var(--primary-red);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.cart-item-quantity-control button:hover {
    background-color: #a00;
}
.cart-item-quantity-control span {
    font-weight: bold;
    color: var(--text-dark);
}

.cart-summary {
    background-color: var(--background-light);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: right;
}
.cart-summary p {
    margin-bottom: 5px;
    color: var(--text-dark);
}
.cart-summary h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-red);
    margin-top: 10px;
}

/* Checkout */
.checkout-form {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.checkout-form h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 15px;
    margin-top: 20px;
}
.checkout-form h4:first-child {
    margin-top: 0;
}
.input-group {
    margin-bottom: 15px;
    text-align: left;
}
.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text-dark);
}
.input-group input[type="text"],
.input-group input[type="tel"],
.input-group input[type="number"],
.input-group textarea {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
}
.input-group textarea {
    resize: vertical;
}
.radio-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    text-align: left;
}
.radio-group input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}
.radio-group label {
    font-weight: normal;
    color: var(--text-dark);
    cursor: pointer;
}
.delivery-address-group {
    background-color: var(--background-light);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}
.delivery-address-group.hidden {
    display: none;
}
#change-for-group.hidden {
    display: none;
}


/* Confirmação de Pedido */
#order-confirmation {
    padding: 40px 20px;
}
.confirmation-message {
    font-size: 1.2rem;
    color: var(--whatsapp-green);
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.confirmation-message i {
    font-size: 1.5rem;
}

/* Footer */
footer {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 5px solid var(--secondary-yellow); /* Detalhe no footer */
    margin-top: 20px;
}
footer p {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
footer i {
    color: var(--secondary-yellow);
}
footer .developed-by {
    font-size: 0.8rem;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
    display: block; /* Garante que fique em uma nova linha */
}

/* Modal de Detalhes do Item - MELHORADO */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    padding: 15px;
    backdrop-filter: blur(3px);
}
.modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease-out;
}
.modal-content {
    background-color: var(--text-light);
    padding: 25px;
    border-radius: 16px;
    position: relative;
    max-width: 380px;
    width: 100%;
    max-height: 90vh; /* Aumenta um pouco a altura máxima */
    overflow-y: auto; /* Permite scroll interno se necessário */
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: scale(1);
    margin: auto; /* Centraliza melhor */
    animation: modalSlideIn 0.3s ease-out;
    border: 2px solid var(--primary-red);
}

/* Melhorias específicas para dispositivos móveis */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 90vh;
        padding: 20px;
        margin: 10px;
    }
    
    .modal-content img {
        max-height: 120px; /* Imagem menor em mobile */
    }
    
    .modal-content h4 {
        font-size: 1.2rem;
    }
    
    .modal-content p {
        font-size: 0.85rem;
    }
}
.modal-content .close-button {
    color: var(--text-dark);
    font-size: 24px;
    font-weight: bold;
    position: sticky; /* Mudança para sticky para sempre ficar visível */
    top: 0;
    right: 0;
    margin-left: auto;
    margin-bottom: 10px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(201, 0, 0, 0.1);
    transition: all 0.2s ease;
    z-index: 10; /* Garante que fique acima do conteúdo */
}
.modal-content .close-button:hover,
.modal-content .close-button:focus {
    color: var(--text-light);
    background-color: var(--primary-red);
    transform: scale(1.1);
}
.modal-content img {
    width: 100%;
    max-height: 150px; /* Reduzindo altura da imagem */
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 3px solid var(--primary-red);
}
.modal-content h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem; /* Reduzindo tamanho da fonte */
    color: var(--primary-red);
    margin-bottom: 8px;
    text-transform: uppercase;
}
.modal-content p {
    font-size: 0.9rem; /* Reduzindo tamanho da fonte */
    color: var(--text-dark);
    margin-bottom: 15px;
}
.modal-options label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text-dark);
}
.modal-options select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}
.modal-options .pizza-flavor-selector-group {
    margin-bottom: 15px;
    text-align: left;
    border: 1px dashed var(--border-color);
    padding: 10px;
    border-radius: 5px;
}
.modal-options .pizza-flavor-selector-group h5 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
}
.modal-options .pizza-flavor-selector-group select {
    margin-bottom: 0; /* Remove margin do select dentro do grupo */
}

.modal-quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}
.modal-quantity-control button {
    background-color: var(--primary-red);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.modal-quantity-control button:hover {
    background-color: #a00;
}
.modal-quantity-control span {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-dark);
}
.modal-item-price {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-red);
    margin-top: 10px;
}

/* Toast de Adicionar ao Carrinho */
.add-to-cart-toast {
    position: fixed;
    bottom: 80px; /* Acima dos botões flutuantes */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 2001; /* Acima do modal */
}
.add-to-cart-toast.active {
    opacity: 1;
}

/* Botões Flutuantes de Redes Sociais */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1500; /* Acima do conteúdo, mas abaixo do modal */
}
.float-btn {
    background-color: var(--whatsapp-green); /* Default para WhatsApp */
    color: var(--text-light);
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.float-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}
.float-btn.instagram-float {
    background: var(--instagram-purple); /* Gradiente do Instagram */
    font-size: 1.6rem; /* Ícone do Instagram um pouco menor */
}


/* Modal de Seleção de Sabores para Combos */
#combo-flavor-modal {
    z-index: 2005; /* Acima do modal de item, se necessário */
}
#combo-flavor-modal .modal-content {
    max-height: 80vh; /* Limita a altura do modal para caber na tela */
    overflow-y: auto; /* Permite rolar se o conteúdo for grande */
}
#combo-flavor-modal .flavor-selection-group {
    margin-bottom: 15px; /* Mais espaçamento entre os seletores de sabor */
    text-align: left;
    border: 1px dashed var(--border-color);
    padding: 10px;
    border-radius: 5px;
}
#combo-flavor-modal .flavor-selection-group h5 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-dark);
}
#combo-flavor-modal select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
}
#add-combo-to-cart-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* Media Queries para Responsividade */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }
    header .logo {
        width: 40px;
    }
    .whatsapp-header {
        font-size: 0.85rem;
    }
    .cart-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .cart-button span#cart-item-count {
        font-size: 0.6rem;
        padding: 0.1em 0.4em;
        min-width: 1.3em;
    }
    #hero h2 {
        font-size: 2rem;
    }
    #hero p {
        font-size: 1rem;
    }
    .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    .promo-card h4 {
        font-size: 1.3rem;
    }
    .promo-card .promo-price {
        font-size: 1.5rem;
    }
    .menu-categories {
        gap: 8px;
    }
    .menu-cat-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    .menu-item-card h4 {
        font-size: 1.2rem;
    }
    .menu-item-card .item-price {
        font-size: 1.3rem;
    }
    .cart-item-details h4 {
        font-size: 0.9rem;
    }
    .cart-item-price {
        font-size: 0.9rem;
    }
    .cart-summary h3 {
        font-size: 1.8rem;
    }
    
    /* Modal responsivo para mobile */
    .modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }
    .modal-content {
        max-width: 95%;
        max-height: 90vh;
        padding: 20px;
    }
    .modal-content img {
        max-height: 120px;
    }
    .modal-content h4 {
        font-size: 1.2rem;
    }
    .modal-content p {
        font-size: 0.85rem;
    }
    .modal-quantity-control button {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
    .modal-quantity-control span {
        font-size: 1.2rem;
    }
    .modal-item-price {
        font-size: 1.4rem;
    }
    
    .floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
    .float-btn.instagram-float {
        font-size: 1.4rem;
    }
    .add-to-cart-toast {
        bottom: 70px;
        padding: 10px 15px;
        font-size: 0.8rem;
    }
}

/* Link discreto no rodapé para contato do desenvolvedor */
.developed-by .dev-whatsapp-btn{
  background: transparent;
  color: inherit;
  font-weight: 500;
  padding: 0;
  margin-left: 6px;
  text-decoration: underline;
  border-radius: 0;
}
.developed-by .dev-whatsapp-btn:hover{ filter:none; text-decoration:none; }

/* Alerta de Horário de Funcionamento */
.operating-hours-alert {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    z-index: 9999;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: slideDown 0.3s ease-out;
}

.alert-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.alert-message {
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
    text-align: center;
}

.alert-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.alert-close:hover {
    background-color: rgba(255,255,255,0.2);
}

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

/* Ajuste para compensar o alerta fixo */
body.has-alert {
    padding-top: 60px;
}

@media (max-width: 768px) {
    .alert-message {
        font-size: 0.8rem;
        padding-right: 10px;
    }
    
    .alert-content {
        padding: 10px 15px;
    }
}


/* Carrinho com itens - mais visível mas não exagerado */
.cart-with-items {
    background: var(--primary-red) !important;
    color: white !important;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3) !important;
}

.cart-with-items .cart-icon {
    color: white !important;
}

/* Mensagem de call-to-action no carrinho */
.cart-cta-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botão de finalizar pedido mais chamativo */
.checkout-btn-enhanced {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    padding: 15px 25px !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
    animation: glow 2s ease-in-out infinite alternate !important;
}

@keyframes glow {
    from {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    }
    to {
        box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
    }
}


/* Mensagem informativa da taxa de entrega */
.delivery-info {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin: 8px 0;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid var(--primary-red);
}



/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.toast {
    background: linear-gradient(135deg, var(--secondary-yellow) 0%, #f59e0b 100%);
    color: var(--text-dark);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 300px;
}

.toast.active {
    transform: translateX(0);
    opacity: 1;
}

.toast::before {
    content: "✓";
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    color: var(--text-dark);
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Skeleton Loading para Cards */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Melhorias de Hover para Cards */
.menu-item:hover,
.promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.menu-item img,
.promo-card img {
    transition: transform 0.3s ease;
}

.menu-item:hover img,
.promo-card:hover img {
    transform: scale(1.05);
}

/* Melhorias para Botões */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.98);
}

/* Melhorias para Formulários */
.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(201, 0, 0, 0.1);
    outline: none;
}

/* Animações de Entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsividade para Toast */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        max-width: none;
        margin-bottom: 5px;
    }
}


/* Animações do Modal */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Melhorias adicionais do modal */
.modal-content .modal-options {
    margin: 15px 0;
}

.modal-content .modal-options select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.modal-content .modal-options select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(201, 0, 0, 0.1);
}

.modal-content .modal-quantity-control {
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.modal-content .modal-quantity-control button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-red);
    background-color: var(--text-light);
    color: var(--primary-red);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-content .modal-quantity-control button:hover {
    background-color: var(--primary-red);
    color: var(--text-light);
    transform: scale(1.1);
}

.modal-content .modal-quantity-control span {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-red);
    min-width: 30px;
    text-align: center;
}

.modal-content .modal-item-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-red);
    margin: 15px 0;
}

.modal-content .btn {
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 25px;
    min-width: 200px;
}


/* Resumo Financeiro do Checkout */
.checkout-summary {
    background-color: #f8f9fa;
    border: 2px solid var(--primary-red);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.checkout-summary h4 {
    color: var(--primary-red);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-line:last-child {
    border-bottom: none;
}

.total-line {
    border-top: 2px solid var(--primary-red);
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.1rem;
}

.total-line span {
    color: var(--primary-red);
}

.delivery-info {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
    color: #856404;
    font-size: 0.9rem;
    text-align: center;
}

.hidden {
    display: none !important;
}


/* Seção de Navegação do Menu - Reposicionada */
.menu-nav-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, #a50000 100%);
    color: var(--text-light);
    padding: 30px 20px;
    margin: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.menu-nav-section .section-title {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 25px;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.menu-nav-section .menu-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.menu-nav-section .category-btn {
    background-color: rgba(255,255,255,0.1);
    color: var(--text-light);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.menu-nav-section .category-btn:hover {
    background-color: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.menu-nav-section .category-btn.active {
    background-color: var(--secondary-yellow);
    color: var(--text-dark);
    border-color: var(--secondary-yellow);
    font-weight: bold;
    transform: scale(1.05);
}

/* Responsividade para navegação do menu */
@media (max-width: 768px) {
    .menu-nav-section .menu-categories {
        gap: 8px;
    }
    
    .menu-nav-section .category-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .menu-nav-section .section-title {
        font-size: 1.6rem;
    }
}


/* === Menu de Categorias • Refinado e Responsivo (visual apenas) - 25/08/2025 === */
.menu-nav-section {
  padding: 8px 0;                      /* barra mais fina */
  background: var(--primary-red);
  position: sticky;
  top: 64px;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
@media (max-width: 768px){ .menu-nav-section { top: 56px; } }

/* Título opcional mais discreto */
.menu-nav-section .section-title {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #fff;
  opacity: .9;
}

/* Faixa de categorias: organizada, com respiro nas bordas e rolagem suave no mobile */
.menu-nav-section .menu-categories{
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 12px;                   /* respiro à esquerda/direita no mobile */
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;                    /* apenas mobile/estreito */
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.35) transparent;
}
.menu-nav-section .menu-categories::-webkit-scrollbar{ height: 6px; }
.menu-nav-section .menu-categories::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.35); border-radius: 999px; }

/* No desktop, centraliza e remove overflow visual */
@media (min-width: 992px){
  .menu-nav-section .menu-categories{
    overflow: visible;
    justify-content: center;
  }
}

/* Botões pílula mais compactos, coerentes em todas as telas */
.menu-nav-section .category-btn{
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: #fff;
  color: #7a0a0a;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 8px 14px;                   /* menor que antes */
  font-weight: 700;
  font-size: .93rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.menu-nav-section .category-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.16);
}
.menu-nav-section .category-btn.active{
  background: var(--secondary-yellow);
  color: #111;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

/* Mais compacto ainda em telas muito pequenas */
@media (max-width: 420px){
  .menu-nav-section .category-btn{ padding: 7px 12px; font-size: .9rem; }
}

/* Sub-filtros de bebidas seguem o mesmo padrão visual */
#bebidas-filtros.menu-categories{
  padding-top: 2px;
  margin-top: 0;
}

/* === [PATCH] HEADER: separação WhatsApp x Carrinho === */
.header-contact{
  display:flex;
  align-items:center;
  padding-right:12px;
  margin-right:6px;
  border-right:1px solid rgba(255,255,255,.25);
}
.cart-button{ margin-left:14px; }

/* Toque confortável (mobile) */
@media (max-width:480px){
  .header-contact{ padding-right:14px; margin-right:8px; }
  .cart-button{ margin-left:16px; }
}

/* === [OVERRIDE] Mobile: ocultar telefone do header (navbar) === */
@media (max-width: 820px){
  header .header-contact,
  header .whatsapp-header{
    display: none !important;
  }
}
