/* =======================================================
   PEREIRA LANCHES - ESTILO VISUAL COMPLETO (CLEAN)
   Tema: Vintage / Old School
   ======================================================= */

/* 1. RESET E TIPOGRAFIA GERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #E6DCC3; /* Café Claro */
    color: #3E2723;
    font-family: 'Georgia', 'Times New Roman', serif;
    padding-bottom: 60px;
    background-image: radial-gradient(#D7C9A8 1px, transparent 1px);
    background-size: 20px 20px;
}

/* 2. CABEÇALHO */
header {
    background-color: #722F37; /* Vinho Grená */
    color: #F5F1E6;
    padding: 15px 20px;
    text-align: center;
    border-bottom: 5px double #C5A059;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;          
    justify-content: center; 
    align-items: center;    
    min-height: 110px;      
    flex-wrap: wrap; 
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1001;
    width: 100%; 
}

header h1 {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 0px #000;
    margin: 0;
    line-height: 1.2;
}

header h2 {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 0.9rem;
    color: #C5A059;
    margin: 0;
}

/* LOGO SOBREPOSTA */
.logo-topo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: 90px;      
    width: auto;
    object-fit: cover;
    object-position: center center;
    background-color: #F5F1E6;
    border: 3px solid #C5A059;
    border-radius: 50%;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.5);
    z-index: 2000;
}

/* BOTÃO DO CARRINHO */
#icone-carrinho-topo {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

#icone-carrinho-topo button {
    background-color: #F5F1E6;
    color: #722F37;
    border: 2px solid #722F37;
    padding: 8px 15px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 3px 3px 0px #3E2723;
    transition: all 0.2s;
    white-space: nowrap;
}

#icone-carrinho-topo button:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #3E2723;
}

/* 3. TELA DE LOGIN */
.container-login {
    background-color: #F5F1E6;
    max-width: 750px; 
    margin: 80px auto;
    padding: 40px;
    border: 1px solid #722F37;
    border-top: 10px solid #722F37;
    box-shadow: 8px 8px 0px rgba(62, 39, 35, 0.2);
}

.container-login h3 {
    border-bottom: 2px dashed #722F37;
    padding-bottom: 15px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.grupo-input {
    margin-bottom: 20px;
    text-align: left;
}

.grupo-input label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    font-variant: small-caps;
}

.grupo-input input, 
.grupo-input textarea {
    width: 100%;
    padding: 12px;
    background-color: #E6DCC3;
    border: 2px solid #3E2723;
    font-family: 'Courier New', monospace;
    color: #3E2723;
    font-size: 1rem;
}

/* FOCO NOS INPUTS (Animação) */
.grupo-input input:focus, 
.grupo-input textarea:focus {
    outline: none;
    background-color: #fff;
    border-color: #722F37;
    box-shadow: 0 0 8px rgba(114, 47, 55, 0.3);
    transition: 0.3s;
}

/* 4. BOTÕES GERAIS */
.botao-acao {
    background-color: #722F37;
    color: #C5A059;
    border: 2px solid #3E2723;
    padding: 15px;
    width: 100%;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 4px 4px 0px #3E2723;
    transition: all 0.1s;
}

.botao-acao:hover {
    background-color: #5D242B;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #3E2723;
}

/* 5. TELA CARDÁPIO */
.titulo-sessao {
    text-align: center;
    margin: 40px 0 30px 0;
}

.titulo-sessao h3 {
    background-color: #722F37;
    color: #E6DCC3;
    display: inline-block;
    padding: 10px 30px;
    border: 2px solid #C5A059;
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.3);
}

.grid-produtos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 0 20px;
}

.produto {
    background-color: #F5F1E6;
    width: 300px;
    border: 4px double #722F37;
    padding: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 6px 6px 0px rgba(114, 47, 55, 0.3);
    
    /* ANIMAÇÃO DE HOVER (CRESCIMENTO) */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative; 
    z-index: 1;
}

/* EFEITO AO PASSAR O MOUSE NO PRODUTO */
.produto:hover {
    transform: scale(1.03); /* Cresce 3% */
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    z-index: 10;
    cursor: pointer;
    border-color: #722F37;
}

.img-produto {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: 1px solid #3E2723;
    margin-bottom: 10px;
    filter: contrast(110%) sepia(20%);
}

.info-produto {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.info-produto h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    border-bottom: 1px solid #C5A059;
    padding-bottom: 5px;
}

.desc {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #555;
    margin: 10px 0;
    font-style: italic;
    flex-grow: 1;
}

.preco {
    font-size: 1.5rem;
    font-weight: bold;
    color: #722F37;
    display: block;
    margin-bottom: 10px;
    background-color: #E6DCC3;
    padding: 5px;
    border-radius: 4px;
}

.btn-add {
    background-color: #3E2723;
    color: white;
    border: 1px dashed white;
    padding: 10px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-add:hover {
    background-color: #722F37;
    border-style: solid;
}

/* ANIMAÇÃO DE CLIQUE NOS BOTÕES */
button:active, .btn-add:active {
    transform: translateY(2px);
    box-shadow: 1px 1px 0px #3E2723;
}

/* 6. TELA CARRINHO */
.container-carrinho {
    background-color: #fff;
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-family: 'Courier New', monospace;
    position: relative;
}

.container-carrinho::before, .container-carrinho::after {
    content: "";
    display: block;
    height: 10px;
    border-top: 2px dashed #333;
    margin: 10px 0;
}

#lista-itens-carrinho {
    list-style: none;
    margin: 20px 0;
}

#lista-itens-carrinho li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dotted #333;
    padding: 10px 0;
}

.total-linha {
    font-size: 1.4rem;
    text-align: right;
    border-top: 2px solid #333;
    padding-top: 10px;
    margin-top: 10px;
}

.botao-whatsapp {
    background-color: #25D366;
    color: white;
    border: 2px solid #128C7E;
    padding: 15px;
    width: 100%;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 4px 4px 0px #075E54;
}

.botao-whatsapp:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #075E54;
}

.botao-voltar {
    background-color: #ccc;
    color: #333;
    border: none;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    margin-top: 10px;
}

.grupo-pagamento {
    margin: 20px 0;
    text-align: left;
    border-top: 2px dashed #3E2723;
    padding-top: 20px;
}

.grupo-pagamento label {
    display: block;
    font-weight: bold;
    color: #722F37;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}

.grupo-pagamento select {
    width: 100%;
    padding: 12px;
    background-color: #E6DCC3;
    border: 2px solid #3E2723;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: #3E2723;
    font-weight: bold;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%233E2723%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
}

/* 7. RODAPÉ */
footer {
    background-color: #3E2723;
    color: #C5A059;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    border-top: 4px solid #722F37;
    font-family: 'Courier New', monospace;
}

/* 8. BARRA DE NAVEGAÇÃO E ABAS */
#menu-navegacao {
    width: 100%;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: none; 
    z-index: 1002;
}

.btn-aba {
    background-color: #E6DCC3;
    border: 2px solid #C5A059;
    color: #3E2723;
    padding: 8px 15px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

.btn-aba:hover, .btn-aba.ativo {
    background-color: #722F37;
    color: #F5F1E6;
    transform: translateY(2px);
    box-shadow: 0 0 0;
}

/* 9. CONTEÚDO EXTRA (QUEM SOMOS, ETC) */
.container-conteudo {
    background-color: #F5F1E6;
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    border: 1px solid #722F37;
    border-left: 5px solid #722F37;
    box-shadow: 8px 8px 0px rgba(62, 39, 35, 0.2);
}

.sobre-box {
    display: flex;
    gap: 30px;
    align-items: center;
}

.img-destaque {
    width: 45%;
    border: 4px double #722F37;
    box-shadow: 4px 4px 0px #3E2723;
    transform: rotate(-2deg);
}

.texto-sobre h4 {
    font-size: 1.4rem;
    color: #722F37;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.texto-sobre p {
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.endereco-box {
    text-align: center;
}

.texto-endereco {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    margin-bottom: 20px;
    background-color: #E6DCC3;
    padding: 15px;
    border: 1px dashed #3E2723;
    display: inline-block;
}

.mapa-container {
    border: 4px solid #722F37;
    box-shadow: 4px 4px 0px #3E2723;
}

/* 10. OUVIDORIA */
.ouvidoria-box p {
    text-align: center;
    margin-bottom: 20px;
    font-style: italic;
}

.avaliacao-container {
    text-align: center;
    margin-bottom: 20px;
}

.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
    font-size: 2rem;
}

.rating input {
    display: none;
}

.rating label {
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

.rating input:checked ~ label,
.rating label:hover,
.rating label:hover ~ label {
    color: #722F37;
}

/* 11. RESPONSIVIDADE (MOBILE) */
@media (max-width: 768px) {
    header {
        flex-direction: column; 
        height: auto;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .header-container { order: 2; margin: 10px 0; }
    
    .logo-topo {
        position: static; 
        transform: none;
        height: 100px;
        order: 1; 
        margin-bottom: 10px;
    }

    #icone-carrinho-topo {
        position: static;
        transform: none;
        order: 3; 
        margin-top: 15px;
    }
    
    #menu-navegacao {
        order: 4;
        flex-direction: column;
        gap: 5px;
    }
    .btn-aba { width: 100%; }

    .sobre-box {
        flex-direction: column;
    }
    .img-destaque {
        width: 100%;
        transform: none;
    }
    
    /* Endereço Mobile */
    .linha-dupla-endereco {
        flex-direction: column;
        gap: 0;
    }
}

/* 12. FORMULÁRIO DE ENDEREÇO */
.area-endereco-container {
    border-top: 2px dashed #722F37;
    margin: 20px 0;
    padding-top: 15px;
    background-color: rgba(245, 241, 230, 0.5);
    border-radius: 5px;
}

.titulo-dados-entrega {
    font-weight: bold;
    color: #722F37;
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.linha-dupla-endereco {
    display: flex;
    gap: 15px;
}

.coluna-pequena { flex: 1; }
.coluna-grande { flex: 2; }

input[readonly], input:disabled {
    background-color: #e9e9e9;
    color: #555;
    border-color: #ccc;
    cursor: not-allowed;
}