/* --- Configurações Globais e Variáveis de Cor --- */
:root {
    --color-white: #FFFFFF;
    --color-gold: #C0A062; /* Um tom de dourado elegante */
    --color-dark-text: #333333;
    --color-light-gray: #f4f4f4;
    --font-primary: 'Montserrat', sans-serif;
    --font-headings: 'Playfair Display', serif;
}

/* Adiciona rolagem suave para links de âncora */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--color-dark-text);
    background-color: var(--color-white);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-headings);
    color: var(--color-dark-text);
    margin-bottom: 1rem;
}

/* --- Cabeçalho e Navegação --- */
.main-header {
    background-color: var(--color-white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-light-gray);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

/* Estilo do cabeçalho quando a página é rolada */
.header-scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 700;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-dark-text);
    font-weight: 700;
    padding-bottom: 5px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.main-nav a:hover {
    color: var(--color-gold);
    border-bottom: 2px solid var(--color-gold);
}

/* --- Seção Hero (Banner Principal) --- */
.hero-section {
    background-color: var(--color-light-gray);
    background-image: url('https://images.unsplash.com/photo-1529333166437-7750a6dd5a70?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    text-align: center;
    padding: 100px 0;
    position: relative;
}

/* Overlay para escurecer a imagem de fundo e melhorar a legibilidade do texto */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-section .container {
    position: relative; /* Para ficar acima do overlay */
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    color: var(--color-white);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* --- Botões --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-white);
    border: 2px solid var(--color-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-dark-text);
    color: var(--color-white);
    border: 2px solid var(--color-dark-text);
}

.btn-secondary:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    transform: translateY(-2px);
}


/* --- Seção de Produtos --- */
.products-section {
    padding: 60px 0;
    text-align: center;
}

.products-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-light-gray);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.product-card img {
    width: 100%;
    height: 300px; /* Altura fixa para padronizar os cards */
    object-fit: cover; /* Garante que a imagem cubra a área sem distorcer */
    display: block;
}

.product-card h3 {
    font-size: 1.2rem;
    margin-top: 1rem;
}

.product-card .price {
    color: var(--color-gold);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.product-card .btn {
    margin: 1rem 0 1.5rem 0;
}

/* --- Seção Sobre Nós --- */
.about-section {
    padding: 60px 0;
    background-color: var(--color-light-gray);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
}

.about-text h3 {
    font-family: var(--font-primary);
    color: var(--color-gold);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
}

/* --- Rodapé --- */
.main-footer {
    background-color: var(--color-dark-text);
    color: var(--color-light-gray);
    padding-top: 3rem;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 3rem;
}

.footer-column {
    flex: 1;
}

.footer-column h4 {
    font-family: var(--font-headings);
    font-size: 1.3rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: var(--color-light-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--color-gold);
}

.social-links img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-links img:hover {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}
.footer-bottom a:hover {
    color: var(--color-white);
}

/* --- Botão Voltar ao Topo --- */
#scrollTopBtn {
    display: none; /* Escondido por padrão */
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--color-gold);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#scrollTopBtn:hover {
    background-color: var(--color-dark-text);
    transform: translateY(-3px);
}

/* --- Animações de Fade-in --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsividade para Dispositivos Móveis --- */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 10px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr; /* Duas colunas em tablets */
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* A regra do .product-grid foi removida para manter duas colunas em celulares, herdando o estilo do tablet. */
}
