/* =========================================
    CONFIGURAÇÕES GERAIS E VARIÁVEIS
   ========================================= */
:root {
    --cor-principal: #db1010;
    --cor-secundaria: #f39ff3;
    --cor-texto-desc: #f5eaea;
    --cor-fundo: #e5adeb;
    --cor-card: #8d0786;
    --cor-preco: #35f70f;

    /* CONTROLE DOS BOTÕES DE MENU */
    --menu-btn-bg: var(--cor-card);
    --menu-btn-bg-hover: var(--cor-principal);
    --menu-btn-text: #f0e2e2;
    --menu-btn-height: 38px;
    --menu-btn-padding-x: 16px;
    --menu-btn-font-size: 0.75rem;

    /* VARIÁVEIS DE EFEITO */
    --btn-transicao: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --btn-escala-hover: 1.05;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--cor-fundo);
    color: var(--cor-secundaria);
    padding-bottom: 110px;
}

/* =========================================
    HEADER E STATUS DA LOJA
   ========================================= */
.header {
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
    padding-top: 20px;
}

#header-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: brightness(0.4);
}

.header > *:not(#header-bg) {
    position: relative;
    z-index: 1;
}

.logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--cor-principal);
    background-color: white;
    object-fit: contain;
    margin-bottom: 5px;
}

.status-loja {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    margin-top: 5px;
    display: inline-block;
}

.status-loja.aberto { background-color: #25d366; color: white; }
.status-loja.fechado { background-color: #e9140d; color: white; }

/* =========================================
    MENU DE CATEGORIAS
   ========================================= */
.category-slider {
    display: flex;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 10px;
    width: 100%;
    scrollbar-width: none;
    background: rgba(0, 0, 0, 0.2);
    margin-top: 15px;
}

.category-slider::-webkit-scrollbar { display: none; }

.btn-category {
    background: var(--menu-btn-bg);
    color: var(--menu-btn-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--menu-btn-height);
    padding: 0 var(--menu-btn-padding-x);
    font-weight: 700;
    font-size: var(--menu-btn-font-size);
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--btn-transicao);
    border-radius: 4px;
}

.btn-category:hover, .btn-category.active {
    background: var(--cor-principal);
    transform: translateY(-2px);
}

/* =========================================
    PRODUTOS E BOTÃO COMPRAR
   ========================================= */
.products {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--cor-card);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform var(--btn-transicao);
}

.product-card:hover { transform: translateY(-5px); }

.product-card-top { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 15px; }

.product-img { width: 100px; height: 100px; border-radius: 10px; object-fit: cover; }

.product-info h3 { margin-bottom: 5px; color: white; }
.product-info p { color: var(--cor-texto-desc); font-size: 0.9rem; }

.product-card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }

.product-price { color: var(--cor-preco); font-weight: 800; font-size: 1.2rem; }

.btn-add {
    background-color: #ffffff !important;
    color: var(--cor-principal) !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    transition: var(--btn-transicao) !important;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.btn-add:hover {
    transform: scale(1.1) !important;
    background-color: var(--cor-principal) !important;
    color: white !important;
    box-shadow: 0 0 15px var(--cor-principal);
}

/* =========================================
    MODAIS (CARRINHO E CHECKOUT)
   ========================================= */
.cart-modal, .checkout-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.cart-content, .checkout-content {
    background: #ffffff !important;
    color: #333 !important;
    padding: 25px;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* ESTILO DO AVISO DE PEDIDO MÍNIMO DENTRO DO CARRINHO */
.min-order-warning {
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-top: 15px;
    text-align: center;
    border: 1px solid #ffeeba;
    font-weight: 500;
}

/* FORMULÁRIOS E INPUTS (AJUSTE LARGURA TOTAL) */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    text-align: left;
}

.form-group label { font-weight: bold; font-size: 0.9rem; color: #555; margin-bottom: 5px; }

.form-group input, .form-group select, .form-group textarea {
    width: 100% !important;
    padding: 12px !important;
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    background: #f9f9f9 !important;
    color: #333 !important;
    font-size: 1rem;
    box-sizing: border-box !important;
}

#cliente-obs {
    min-height: 80px;
    resize: none;
}

/* =========================================
    CARRINHO FLUTUANTE E ANIMAÇÕES
   ========================================= */
.cart-float {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--cor-principal);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 50px;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 999;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 90%;
    max-width: 320px;
    justify-content: center;
    transition: var(--btn-transicao);
}

#cart-count {
    background: white;
    color: var(--cor-principal);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

@keyframes bump {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
    100% { transform: translateX(-50%) scale(1); }
}

.cart-bump {
    animation: bump 0.3s ease-out;
}

/* =========================================
    BOTÕES DE AÇÃO
   ========================================= */
#btn-enviar-whatsapp, #btn-finalizar-cart {
    background-color: #25d366 !important;
    color: white !important;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--btn-transicao);
    width: 100%;
    margin-top: 10px;
}

#btn-solicitar-motoboy {
    background-color: #ff9800 !important;
    color: white !important;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    transition: var(--btn-transicao);
}

/* BOTÃO VOLTAR PERSONALIZADO */
.btn-secondary {
    width: 100% !important;
    background-color: #f8f9fa !important;
    color: #666 !important;
    border: 1px solid #ddd !important;
    padding: 12px !important;
    border-radius: 10px !important;
    font-weight: bold !important;
    cursor: pointer;
    margin-top: 15px !important;
    transition: var(--btn-transicao);
}

.btn-secondary:hover {
    background-color: #e2e6ea !important;
}

.hidden { display: none !important; }

/* =========================================
    RESPONSIVIDADE
   ========================================= */
@media (max-width: 768px) {
    .products { grid-template-columns: 1fr; }
    :root {
        --menu-btn-height: 32px;
        --menu-btn-padding-x: 12px;
        --menu-btn-font-size: 0.65rem;
    }
}

.footer-marca {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #111;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    font-size: 13px;
    z-index: 9999;
}

.footer-marca a {
    color: #25D366;
    text-decoration: none;
    font-weight: bold;
}

body {
    padding-bottom: 60px;
}
/* Overlay que escurece o fundo */
.banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fundo semi-transparente */
    display: flex; /* Centraliza o conteúdo */
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Garante que fique acima de tudo */
    visibility: hidden; /* Começa escondido */
    opacity: 0;
    transition: visibility 0s, opacity 0.3s linear;
}

/* Mostra o banner quando a classe 'active' for adicionada */
.banner-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Conteúdo do banner */
.banner-conteudo {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    width: 90%; /* Ocupa 90% da largura em telas pequenas */
    max-width: 400px; /* Largura máxima para telas maiores */
    position: relative; /* Para posicionar o botão fechar */
}

/* Imagem do prato */
.banner-conteudo img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Botão de fechar (X) */
.botao-fechar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.botao-fechar:hover {
    color: #333;
}

/* Estilos de texto */
.banner-conteudo h2 { margin-top: 0; color: #e74c3c; } /* Cor de destaque para o título */
#descricao-prato-dia { font-size: 1.1em; color: #555; }
#preco-prato-dia { font-size: 1.5em; font-weight: bold; color: #27ae60; display: block; margin: 10px 0; }

/* Botão de ação */
.btn-pedir-agora {
    background-color: #e74c3c; /* Cor de destaque */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}