/* Variáveis de Cores */
:root {
    --marfim: #FFFFF0;
    --bege: #F5F5DC;
    --marrom-claro: #BC8F8F;
    --marrom-escuro: #4e1c0c; /* tom mais escuro */
    --marrom-suave: #8B6B61; /* marrom mais suave para o footer */
    --detalhe: #D2B48C;
}

/* Configurações Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--marfim);
    color: var(--marrom-escuro);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

/* Header e Menu - Layout Profissional */
header {
    background-color: var(--marrom-escuro);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    border-bottom: 3px dashed var(--marrom-claro);
    position: relative; 
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    display: inline-block;
    font-size: 2rem;
    width: 48px;
    height: 48px;
}

img.logo-icon, .logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

h1 {
    font-family: 'Georgia', serif;
    color: var(--marfim);
    font-style: italic;
    font-size: 1.6rem;
}

/* Menu de Navegação */
nav {
    display: flex;
}

.btn-aba {
    background-color: transparent;
    border: none;
    margin: 0 15px;
    font-size: 16px;
    color: var(--marfim);
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    padding-bottom: 5px;
}

.btn-aba:hover, .btn-aba.ativo {
    color: var(--detalhe);
    border-bottom: 2px solid var(--marrom-claro);
}

/* Menu Hambúrguer (Escondido no Computador) */
.menu-hamburguer {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.menu-hamburguer span {
    width: 30px;
    height: 3px;
    background-color: var(--marfim);
    border-radius: 5px;
}

/* Container Principal e Abas */
.container {
    max-width: 1200px; /* aumentei para cobrir mais largura da tela */
    margin: 60px auto; /* mais espaçamento superior */
    text-align: center;
    padding: 0 20px;
    flex: 1; 
}

.aba-conteudo {
    display: none;
    animation: fadeSuave 0.5s;
}

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

/* Grid de Produtos e Cartões */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* duas colunas em computadores */
    gap: 28px; /* espaçamento maior entre cards */
    margin-top: 40px;
}

.card {
    background: white;
    padding: 24px; /* mais espaço interno para parecer maior */
    border-radius: 20px;
    border: 1px solid var(--bege);
    box-shadow: 0 6px 12px rgba(0,0,0,0.07);
    transition: transform 0.3s;
}

.card:hover {
    transform: scale(1.05);
}

/* Imagens dos Produtos */
.foto-produto {
    width: 100%;
    height: 300px; /* imagens maiores para ocupar mais espaço */
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
}

.foto-produto:hover {
    opacity: 0.8;
}

/* Grid da Galeria */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.foto-galeria {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.foto-galeria:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(93, 64, 55, 0.2);
    z-index: 2;
}

/* Estilos das Caixas de Sobre e Contato */
.caixa-sobre {
    background-color: var(--bege);
    padding: 40px;
    border-radius: 30px;
}

.caixa-contato {
    background-color: white;
    padding: 40px;
    border-radius: 30px;
    border: 2px dashed var(--marrom-claro);
}

/* Botão WhatsApp */
.btn-whatsapp {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 25px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
}

.btn-whatsapp i {
    margin-right: 8px;
    font-size: 18px;
}

/* Ícones Sociais (Contato) */
.redes-sociais {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.redes-sociais a {
    color: var(--marrom-escuro);
    font-size: 28px;
    text-decoration: none;
    transition: transform 0.3s, color 0.3s;
}

.redes-sociais a:hover {
    color: var(--marrom-claro);
    transform: translateY(-5px) scale(1.1); 
}

/* Rodapé e Ícones do Rodapé */
footer {
    background-color: var(--marrom-escuro);
    color: var(--marfim);
    text-align: center;
    padding: 20px;
    width: 100%;
    margin-top: auto; 
}

.redes-sociais-footer {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.redes-sociais-footer a {
    color: var(--marfim); 
    font-size: 22px;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}

.redes-sociais-footer a:hover {
    color: var(--detalhe);
    transform: scale(1.2);
}

/* =========================================
   JANELA FLUTUANTE DO PRODUTO (MODAL)
   ========================================= */
.modal-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(93, 64, 55, 0.6); 
    z-index: 100;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.mostrar {
    display: flex;
    opacity: 1;
}

.modal-conteudo {
    background-color: var(--marfim);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    border: 3px dashed var(--marrom-claro);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.mostrar .modal-conteudo {
    transform: scale(1);
}

.fechar-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: var(--marrom-escuro);
    cursor: pointer;
    font-weight: bold;
}

.fechar-modal:hover {
    color: var(--marrom-claro);
}

img.modal-foto {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
    border: none;
    background: transparent;
}

/* =========================================
   RESPONSIVIDADE (CELULARES)
   ========================================= */
@media (max-width: 768px) {
    header {
        justify-content: center; 
        padding: 1.2rem;
    }

    .logo-container {
        justify-content: center;
    }

    .menu-hamburguer {
        display: flex;
        position: absolute;
        right: 20px;
        top: 22px;
    }

    nav {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--marfim);
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        border-bottom: 3px dashed var(--marrom-claro);
        z-index: 9;
    }

    nav.mostrar {
        display: flex;
    }

    .btn-aba {
        margin: 0;
        padding: 20px;
        border-bottom: 1px solid var(--bege);
        width: 100%;
    }
    
    /* Tornar os nomes das abas legíveis sobre fundo claro no menu móvel */
    nav .btn-aba {
        color: var(--marrom-escuro);
    }
    
    .btn-aba:hover, .btn-aba.ativo {
        border-bottom: 1px solid var(--marrom-claro);
        background-color: var(--bege);
    }

    /* Produtos: uma coluna em celulares */
    .produtos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Ajustes mobile para imagens e cards */
    .foto-produto {
        height: 220px; /* reduz um pouco em telas pequenas */
    }

    .card {
        padding: 18px;
    }
}