/*
Theme Name: Só Vantagens Cline
Author: Você
Description: Tema estilo Promobit limpo e focado em conversão.
Version: 1.0
*/

:root {
    --gold: #c59d5f; /* Tom dourado próximo ao logo */
    --gold-hover: #b08d55;
    --dark: #000000;
    --gray: #f5f5f7;
    --white: #fff;
    --text: #333;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--gray);
    color: var(--text);
}

/* Header */
.site-header {
    background: var(--dark);
    padding: 15px 0;
    color: var(--gold);
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.header-inner {
    display: flex;
    justify_content: space-between;
    align-items: center;
}

.logo-text { font-size: 24px; font-weight: bold; letter-spacing: 1px; color: var(--gold); text-transform: uppercase; text-decoration: none;}

/* Grid de Ofertas */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsivo automático */
    gap: 20px;
    margin-bottom: 50px;
}

/* Card da Oferta (Estilo Promobit) */
.offer-card {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.offer-img {
    height: 180px;
    width: 100%;
    object-fit: contain; /* Mantém a imagem inteira sem cortar */
    margin-bottom: 15px;
}

.offer-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--dark);
    height: 44px; /* Limita a 2 linhas */
    overflow: hidden;
}
        .offer-img { 
            width: 100%; 
            height: 180px; 
            object-fit: contain; 
            background: #fff; 
        }
        /* Estilo para o novo logo circular */
        .site-header img.logo-circular {
            max-height: 120px;
            height: auto;
            display: block;
        }

.offer-meta { margin-bottom: 15px; }

.price-old {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.price-new {
    font-size: 22px;
    font-weight: bold;
    color: var(--dark); /* Preço em destaque */
}

.store-badge {
    font-size: 11px;
    background: #eee;
    padding: 3px 8px;
    border-radius: 4px;
    color: #666;
    margin-top: 5px;
    display: inline-block;
}

.btn-buy {
    display: block;
    background: var(--gold);
    color: var(--dark);
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s;
}

.btn-buy:hover { background: var(--gold-hover); }

/* Filtro de Categorias (Menu Horizontal) */
.category-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto; /* Permite rolar para o lado no celular */
    padding-bottom: 10px;
    margin-bottom: 20px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* Rolagem suave no iPhone */
}

/* Esconde a barra de rolagem feia, mas mantém a função */
.category-nav::-webkit-scrollbar { height: 4px; }
.category-nav::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

.cat-link {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px; /* Formato de pílula */
    color: var(--dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.cat-link:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.cat-link.active {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

.site-description
{
    font-size: 28px;
    color: var(--gold);
    margin-top: 5px;
    margin-left: 15px;
}   

/* --- ESTILOS DA PÁGINA DO PRODUTO (SINGLE) --- */

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}
.breadcrumb a { color: var(--gold); text-decoration: none; }

/* Grid Principal (2 Colunas) */
.single-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Metade / Metade */
    gap: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

/* Responsivo para celular: Vira 1 coluna */
@media (max-width: 768px) {
    .single-product-grid { grid-template-columns: 1fr; }
}

/* Coluna Imagem */
.main-image-wrapper {
    position: relative;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.main-image-wrapper img {
    max-width: 100%;
    height: auto;
    max-height: 400px; /* Limita altura para não ficar gigante */
    object-fit: contain;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c; /* Vermelho para destaque de desconto */
    color: #fff;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}

/* Coluna Info */
.product-title {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--dark);
}

.product-meta-header {
    font-size: 13px;
    color: #888;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.store-tag { margin-left: 15px; color: var(--text); }

.price-box { margin-bottom: 30px; }

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
    margin-bottom: 5px;
}

.current-price {
    font-size: 42px;
    font-weight: 800;
    color: var(--dark); /* Ou var(--gold) se preferir o preço dourado */
    line-height: 1;
}
.current-price small { font-size: 20px; font-weight: 400; vertical-align: top; }

.payment-info { font-size: 13px; color: #666; margin-top: 5px; }

/* Botão Grande de Compra */
.btn-big-buy {
    display: block;
    width: 100%;
    background: var(--gold);
    color: var(--dark);
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding: 18px;
    border-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s, background 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-big-buy:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
}

.safety-box {
    margin-top: 20px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    font-size: 12px;
    color: #666;
    border-left: 3px solid var(--gold);
}

/* Área de Conteúdo/Descrição */
.product-description {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}
.product-description h3 { margin-bottom: 20px; border-bottom: 2px solid var(--gold); display: inline-block; padding-bottom: 5px; }
.content-body { line-height: 1.6; color: #444; }
.content-body img { max-width: 100%; height: auto; } /* Garante que imagens no texto não estouram a tela */

/* --- BOTÃO WHATSAPP FLUTUANTE --- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366; /* Verde Oficial do WhatsApp */
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 9999; /* Garante que fique acima de tudo */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-float:hover {
    background-color: #1ebc57; /* Verde um pouco mais escuro ao passar o mouse */
    transform: scale(1.1); /* Aumenta um pouco */
}

.whatsapp-float svg {
    fill: white; /* Garante que o ícone seja branco */
}

/* Animação de "Pulso" para chamar atenção */
@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse-green 2s infinite;
}

/* --- BARRA DE PESQUISA --- */
.search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 30px;
    padding: 5px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
    margin-left: 20px; /* Separa do logo */
}

.search-field {
    border: none;
    outline: none;
    background: transparent;
    padding: 10px;
    flex-grow: 1; /* Ocupa todo o espaço disponível */
    font-size: 14px;
    color: #333;
}

.search-submit {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--gold);
    display: flex;
    align-items: center;
    padding: 5px;
    transition: transform 0.2s;
}

.search-submit:hover {
    transform: scale(1.1);
    color: var(--dark);
}

/* Ajuste Mobile: Pesquisa vai para baixo do logo */
@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    .search-form {
        margin-left: 0;
        width: 100%;
    }
}

/* Aviso de Alteração de Preço */
.price-disclaimer {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
    display: block;
}

/* --- RODAPÉ (FOOTER) --- */
.site-footer {
    background-color: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 40px 20px;
    margin-top: 60px;
    color: #666;
    text-align: center;
}

.footer-disclaimer {
    max-width: 800px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.6;
}

.footer-disclaimer p {
    color: #777;
}

.copyright {
    font-size: 12px;
    color: #999;
}

/* --- MENU DE NAVEGAÇÃO --- */
.main-navigation {
    margin: 0 20px;
    flex-grow: 1; /* Empurra a busca para o canto */
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    justify-content: center; /* Centraliza os itens */
}

.main-navigation a {
    text-decoration: none;
    color: #fff; /* Texto branco no fundo preto do header */
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.main-navigation a:hover {
    color: var(--gold);
}

/* Responsivo Mobile: Menu vai para linha de baixo */
@media (max-width: 768px) {
    .site-header .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    .main-navigation {
        margin: 10px 0;
        width: 100%;
    }
    .main-navigation ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    .search-form { margin-left: 0; }
}

/* --- REDES SOCIAIS NO RODAPÉ --- */
.social-links {
    margin-bottom: 30px;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
    color: #666; /* Cor padrão cinza */
    transition: all 0.3s ease;
}

/* Ícones SVG */
.social-links svg {
    fill: currentColor; /* Herda a cor do link acima */
    width: 28px; /* Tamanho do ícone */
    height: 28px;
}

/* Efeito ao passar o mouse */
.social-links a:hover {
    color: var(--gold); /* Muda para dourado */
    transform: translateY(-3px); /* Leve subida para dar destaque */
}

/* Botão Carregar Mais */
.btn-load-more {
    background-color: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-load-more:hover {
    background-color: var(--gold);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}