
/*
Theme Name: Missão Omega 7.2 (Security & Performance)
Theme URI: https://missaoluvasdeouro.com.br
Description: Versão focada em Segurança (n8n HMAC), Performance (CWV) e UX (WooCommerce Cover + Donate Fab Logic).
Author: Lead Architect
Version: 720.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
    --gold: #FFC107;
    --gold-hover: #ffca2c;
    --dark-bg: #111827;
    --light-bg: #FFFFFF;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --radius: 12px;
    --fab-z: 99999;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: #f9fafb;
    overflow-x: hidden;
}

/* =========================================
   1. HEADER & LOGO
   ========================================= */
.site-header { 
    background: #fff; 
    padding: 15px 0; 
    position: relative; 
    z-index: 1000; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.header-flex { 
    display: flex; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 20px; 
}

/* Layout Classes (Injected by PHP) */
.header-layout-left { justify-content: space-between; }
.header-layout-center { flex-direction: column; justify-content: center; text-align: center; gap: 15px; }
.header-layout-right { flex-direction: row-reverse; justify-content: space-between; }

.logo { min-width: 250px; display: flex; align-items: center; }
.logo a { display: block; }
.custom-logo { height: auto; width: auto; } /* Largura controlada inline via Customizer */

.main-navigation ul { display: flex; gap: 25px; list-style: none; margin: 0; padding: 0; }
.main-navigation a { 
    text-decoration: none; color: #374151; 
    font-weight: 700; font-size: 15px; 
    text-transform: uppercase; letter-spacing: 0.5px; 
    transition: 0.2s; 
}
.main-navigation a:hover { color: var(--gold-hover); }

.header-actions { display: flex; gap: 15px; align-items: center; }
.header-actions i { font-size: 18px; color: #333; cursor: pointer; transition:0.2s; }

/* =========================================
   2. HERO SLIDER (PERFORMANCE)
   ========================================= */
.hero { position: relative; height: 600px; display: flex; align-items: center; color: #fff; overflow: hidden; background: #000; }
.hero-slide { 
    position: absolute; inset: 0; 
    background-size: cover; background-position: center; 
    opacity: 0; transition: opacity 1.5s ease-in-out; 
    z-index: 1; will-change: opacity;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%); z-index: 3; }
.hero-content { position: relative; z-index: 4; width: 100%; max-width: 700px; padding-left: 20px; }
.hero-badge { 
    background: rgba(255, 193, 7, 0.2); color: var(--gold); border: 1px solid var(--gold); 
    padding: 5px 15px; border-radius: 20px; font-size: 12px; font-weight: 700; 
    text-transform: uppercase; display: inline-block; margin-bottom: 20px; 
}
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

/* =========================================
   3. WOOCOMMERCE CARDS (COVER FIX)
   ========================================= */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 25px !important;
    padding: 0 !important; margin: 0 !important;
    list-style: none !important;
}

.woocommerce ul.products li.product {
    width: 100% !important; background: #fff;
    border: 1px solid #eee; border-radius: 12px; overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column; position: relative;
    padding-bottom: 15px;
}
.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--gold);
}

/* Imagem Cover Perfeita */
.woocommerce ul.products li.product a img {
    width: 100% !important; height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    object-position: top center !important;
    margin: 0 !important; display: block !important;
    border-bottom: 1px solid #f3f4f6;
}

/* Título Controlado */
.woocommerce-loop-product__title {
    font-size: 16px !important; font-weight: 800 !important;
    color: var(--text-main) !important;
    padding: 15px 15px 5px !important; margin: 0 !important;
    line-height: 1.3 !important;
    min-height: 3.6em;
    /* Clamp de 2 linhas */
    display: -webkit-box !important; -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important; overflow: hidden !important;
}

.woocommerce ul.products li.product .price {
    color: var(--gold) !important; font-weight: 800 !important; font-size: 18px !important;
    padding: 0 15px 15px !important; display: block !important; margin-top: auto !important;
}
.woocommerce ul.products li.product .button {
    margin: 0 15px !important; background: #111 !important; color: #fff !important;
    text-align: center !important; border-radius: 6px !important; padding: 10px !important;
    font-weight: 600 !important;
}
.woocommerce ul.products li.product .button:hover { background: var(--gold) !important; color:#000 !important; }

/* =========================================
   4. BOTÃO DOAR (LOGICAMENTE POSICIONADO)
   ========================================= */
.mlo-donate-fab {
    position: fixed; 
    left: 20px; /* Canto Esquerdo conforme solicitado */
    bottom: 20px; 
    z-index: 10000;
    background: var(--gold); color: #000;
    display: flex; align-items: center; gap: 10px; 
    padding: 14px 24px; border-radius: 50px; 
    font-weight: 800; text-decoration: none;
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.4); 
    border: 2px solid #fff; transition: transform 0.2s;
}
.mlo-donate-fab:hover { transform: scale(1.05); }

/* Regras de Exclusão (Não mostrar no Checkout/Carrinho/Login) */
body.woocommerce-checkout .mlo-donate-fab,
body.woocommerce-cart .mlo-donate-fab,
body.login .mlo-donate-fab { 
    display: none !important; 
}

/* =========================================
   5. OUTROS (NOTÍCIAS, ETC)
   ========================================= */
.fecoins-bar { background: #000; color: var(--gold); font-size: 12px; font-weight: 700; padding: 8px 0; border-bottom: 1px solid #333; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.news-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #eee; transition: 0.3s; }
.news-thumb { height: 200px; background-size: cover; background-position: center; }
.news-body { padding: 20px; }
.section-header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 40px; border-bottom: 2px solid #eee; padding-bottom: 15px; }

@media (max-width: 768px) {
    .header-flex { flex-direction: column; text-align: center; }
    .hero { height: auto; min-height: 500px; padding: 80px 0; }
    .hero-content { width: 100%; text-align: center; padding: 0; }
    .woocommerce ul.products { grid-template-columns: 1fr 1fr !important; }
    /* Ajuste safe-area para mobile */
    .mlo-donate-fab { bottom: calc(20px + env(safe-area-inset-bottom)); }
}
