/*
Theme Name: Beluz E-commerce
Theme URI: https://lojabeluz.com.br
Author: Reltok Comunicação e Marketing
Description: Tema customizado de alta performance, SEO e Acessibilidade para a Loja Beluz.
Version: 1.0.0
Text Domain: beluz
*/

/* ============================================================================
   1. VARIÁVEIS GLOBAIS (DESIGN SYSTEM)
   ============================================================================ */
:root {
    --cor-principal: #ffe0df; /* Cor do branding Beluz */
    --cor-principal-hover: #ffc4c2; /* Tom levemente mais escuro para interações */
    --cor-texto: #333333;
    --cor-texto-claro: #666666;
    --cor-fundo: #ffffff;
    --cor-fundo-secundario: #fafafa;
    --cor-botao: #ffb6b5; /* Contraste para legibilidade (Acessibilidade) */
    --cor-botao-hover: #fa9d9c;
    --cor-borda: #eeeeee;
    
    --fonte-principal: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --transicao-padrao: all 0.3s ease;
}

/* ============================================================================
   2. RESET E BASE
   ============================================================================ */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--fonte-principal);
    color: var(--cor-texto);
    background-color: var(--cor-fundo);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--cor-texto);
    text-decoration: none;
    transition: var(--transicao-padrao);
}

a:hover {
    color: var(--cor-principal-hover);
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    line-height: 1.2;
    color: var(--cor-texto);
}

/* Acessibilidade: Ocultar texto visualmente, mas manter para leitores de ecrã (SEO) */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ============================================================================
   3. ESTRUTURA E LAYOUT
   ============================================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.secao-home {
    padding: 60px 0;
}

.titulo-secao {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.titulo-secao::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--cor-principal);
    margin: 15px auto 0;
}

/* ============================================================================
   4. CABEÇALHO (HEADER) E NAVEGAÇÃO
   ============================================================================ */
.site-header {
    background-color: var(--cor-fundo);
    border-bottom: 1px solid var(--cor-borda);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.site-branding img {
    max-height: 80px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-menu a:hover {
    color: var(--cor-botao);
}

.header-acoes a {
    font-weight: 600;
}

/* ============================================================================
   5. PÁGINA INICIAL (HOME)
   ============================================================================ */
/* Banner Principal */
.banner-principal .slider-container {
    background-color: var(--cor-principal);
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Categorias */
.grid-categorias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    text-align: center;
}

.item-categoria {
    display: block;
}

.item-categoria img, 
.item-categoria div {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 4px solid var(--cor-principal);
    transition: var(--transicao-padrao);
}

.item-categoria:hover img,
.item-categoria:hover div {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.item-categoria h3 {
    font-size: 1.1rem;
    margin: 0;
}

/* Vitrine de Produtos */
.vitrine-produtos {
    background-color: var(--cor-fundo-secundario);
    border-radius: 10px;
}

.grid-produtos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.produto-card {
    background: var(--cor-fundo);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transicao-padrao);
}

.produto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.produto-imagem img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 3/4; /* Mantém um padrão elegante para moda feminina */
}

.produto-info {
    padding: 20px;
}

.produto-info h3 {
    font-size: 1.1rem;
    margin: 0 0 10px;
    color: var(--cor-texto-claro);
    font-weight: 400;
}

.produto-preco {
    font-weight: bold;
    color: var(--cor-texto);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.botao-comprar {
    display: inline-block;
    background-color: var(--cor-botao);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transicao-padrao);
}

.produto-card:hover .botao-comprar {
    background-color: var(--cor-botao-hover);
}

/* ============================================================================
   6. BLOG E LISTAGENS GERAIS (INDEX.PHP)
   ============================================================================ */
.grid-artigos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-info h2 a:hover {
    color: var(--cor-botao);
}

/* ============================================================================
   7. RODAPÉ (FOOTER)
   ============================================================================ */
.site-footer {
    background-color: #111111;
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: 60px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: var(--cor-principal);
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-widget p, 
.footer-widget ul {
    color: #cccccc;
    line-height: 1.8;
}

.menu-rodape-lista a {
    color: #cccccc;
}

.menu-rodape-lista a:hover {
    color: var(--cor-principal);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333333;
    padding-top: 20px;
    color: #888888;
}

/* ============================================================================
   8. RESPONSIVIDADE (MOBILE)
   ============================================================================ */
@media screen and (max-width: 768px) {
    /* Header e Menu */
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    /* Home e Grids */
    .banner-principal .slider-container {
        height: 40vh;
        min-height: 250px;
    }

    .grid-categorias {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .item-categoria img, 
    .item-categoria div {
        width: 120px;
        height: 120px;
    }

    .grid-produtos {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .vitrine-produtos {
        padding: 30px 10px;
    }
    
    .produto-info {
        padding: 15px 10px;
    }
    
    .botao-comprar {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}