/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', serif;
}

body {
    background-color: #f4ede4;
    color: #3b2a21;
}

/* Hero Section */
.hero {
    background-color: #2c1a11;
    color: white;
    padding: 120px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    margin-left: 5%;
    max-width: 600px;
}

.hero .subtitle {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.hero h1 {
    font-size: 4.5rem;
    margin: 10px 0;
    font-style: italic;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero .desc {
    font-size: 1.1rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* Categorias */
.categorias-section {
    text-align: center;
    padding: 40px 20px;
}

.filtros {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-filtro {
    background-color: white;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    color: #555;
    transition: 0.3s;
}

.btn-filtro.ativo, .btn-filtro:hover {
    background-color: #a87e5b;
    color: white;
    border-color: #a87e5b;
}

/* Grid de Produtos */
.grid-produtos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-info {
    padding: 15px;
}

.card-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.card-info p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
    height: 40px;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preco {
    font-weight: bold;
    font-size: 1.1rem;
}

.btn-mais {
    background-color: #bca080;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-mais:hover {
    background-color: #8c6a49;
}

/* Footer */
footer {
    background-color: #3b2a21;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

/* Modal (Janela de Produto Ampliado) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #f4ede4;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
}

.modal-content img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.fechar-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.fechar-modal:hover {
    color: #333;
}

/* =========================================
   RESPONSIVIDADE (Telas de Celular/Tablet) 
   ========================================= */
@media (max-width: 768px) {
    /* Ajustes no Hero para não ocupar a tela toda com texto gigante */
    .hero {
        padding: 80px 15px; 
    }

    .hero-content {
        margin-left: 0; /* Remove a margem para centralizar melhor no celular */
        text-align: center; /* Centraliza o texto no celular */
        width: 100%;
    }

    .hero h1 {
        font-size: 3rem; /* Diminui a fonte do título "SAN MARTIN" */
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    /* Ajustes nos botões de filtro para caberem melhor lado a lado */
    .btn-filtro {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .filtros {
        gap: 10px;
    }

    /* Ajustes na grade de produtos para encostar um pouco mais nas bordas */
    .grid-produtos {
        padding: 20px 15px;
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); /* Força 1 coluna em telas muito pequenas */
    }
    
    /* Para telas de celulares um pouquinho maiores (ex: iPhone Pro Max), manter 2 colunas se couber */
    @media (min-width: 480px) {
        .grid-produtos {
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        }
    }
}