/* Importação de fontes (exemplo com Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Playfair+Display:wght@700&display=swap');

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

/* --- Cabeçalho --- */
.main-header {
    animation: mudarCoresHeader 10s infinite alternate;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Animação de cores modernas com transparência leve */
@keyframes mudarCoresHeader {
    0%   { background-color: #d914147a; }  /* vermelho translúcido */
    25%  { background-color: #14d9a57a; }  /* verde água translúcido */
    50%  { background-color: #147ad97a; }  /* azul translúcido */
    75%  { background-color: #d914c97a; }  /* rosa roxo translúcido */
    100% { background-color: #d9c6147a; }  /* amarelo translúcido */
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo {
    display: flex;
    align-items: center;
    color: #333;
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    font-weight: 700;
}

.main-header .logo img {
    height: 50px;
    margin-right: 10px;
    border-radius: 40%;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: #555;
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #007bff;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease-in-out;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none; /* Esconder por padrão em desktop */
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #555;
}

/* --- Hero Section (Página Principal) --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/bg-hero.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    margin-bottom: 50px;
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.btn:hover {
    background-color: #0056b3;
}

/* --- Grid de Artigos (Página Principal) --- */
.articles-grid {
    padding-bottom: 50px;
}

.articles-grid h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.8em;
    margin-bottom: 40px;
    color: #333;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.article-card a {
    display: block;
    color: inherit; /* Garante que o texto dentro do card use a cor padrão */
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.article-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    margin: 15px;
    color: #333;
}

.article-card p {
    font-size: 0.95em;
    color: #666;
    margin: 0 15px 15px;
}

/* --- Conteúdo do Post (Páginas de Artigo) --- */
.post-content {
    padding: 40px 0 80px;
}

.post-content article {
    background-color: #0a61ff2e; /* Garante que o fundo do texto tenha cor */
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.post-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.post-content .post-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.post-content p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.post-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    color: #333;
    margin-top: 35px;
    margin-bottom: 15px;
}

.post-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.post-content ul li {
    margin-bottom: 10px;
    font-size: 1.05em;
    line-height: 1.7;
}

/* --- Rodapé --- */
.main-footer {
    background-color: #333;
    color: #f8f8f8;
    padding: 30px 0;
    text-align: center;
}

.main-footer p {
    font-size: 0.9em;
}

/* --- Responsividade --- */

/* Tablet e Mobile */
@media (max-width: 768px) {
    .main-header .container {
        flex-wrap: wrap;
    }

    .main-header .logo {
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
    }

    .main-nav {
        display: none; /* Esconde a navegação padrão em mobile */
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        position: absolute;
        top: 70px; /* Ajuste conforme a altura do seu header */
        left: 0;
        z-index: 1000;
        padding-bottom: 10px;
    }

    .main-nav.active {
        display: block; /* Mostra a navegação quando o menu é ativado */
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav ul li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: block; /* Mostra o botão de menu em mobile */
        position: absolute;
        right: 15px;
        top: 25px;
    }

    .hero h2 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1em;
    }

    .articles-grid h2 {
        font-size: 2em;
    }

    .post-content article {
        padding: 20px;
    }

    .post-content h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .post-content p {
        font-size: 1em;
    }

    .post-content h3 {
        font-size: 1.5em;
    }
}

/* Mobile Pequeno */
@media (max-width: 480px) {
    .hero h2 {
        font-size: 2em;
    }

    .article-card h3 {
        font-size: 1.3em;
    }

    .post-content h2 {
        font-size: 1.8em;
    }
}

/* para produtos e ofertas vendida no site pagina principal */
.produtos-destaque {
    padding: 40px 0;
    text-align: center;
}

.produtos-destaque h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #d91478;
}

.produtos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.produto-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 20px;
    width: 300px;
    transition: transform 0.3s ease;
}

.produto-card:hover {
    transform: scale(1.03);
}

.produto-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.produto-card h3 {
    margin-top: 15px;
    font-size: 1.2em;
    color: #333;
}

.produto-card p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 15px;
}

.btn-acao {
    display: inline-block;
    padding: 10px 20px;
    background-color: #d91478;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-acao:hover {
    background-color: #b01060;
}

.btn-acao {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(45deg, #d91478, #ff5ca3);
    color: white;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    box-shadow: 0 4px 10px rgba(217, 20, 120, 0.4);
    transition: all 0.3s ease;
}

.btn-acao:hover {
    background: linear-gradient(45deg, #b01060, #e84d92);
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(217, 20, 120, 0.6);
}

.escassez {
    color: #c70039;
    font-size: 0.9em;
    margin-top: 10px;
    font-weight: 500;
    text-shadow: 0 0 1px rgba(0,0,0,0.1);
}

.produto-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}