/* Variáveis Globais */
:root {
    --primary: #28a745;      /* Cor dos Preços, Logos e Detalhes */
    --category-btn: #45584e; /* NOVA: Cor do Botão de Categoria Ativo */
    --text: #333;
    --bg: #f8f9fa;
    --white: #ffffff;
    --pix-color: #32BCAD;
}

/* Reset e Configurações Gerais */
body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- CABEÇALHOS (Header) --- */
header, .header-produto {
    background: var(--white);
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.nav-interna {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}

.nav-interna.modo-lp {
    justify-content: center;
}

.logo-interna-container {
    display: flex;
    justify-content: center;
    flex: 2;
}

.link-voltar {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    transition: 0.2s;
}

.link-voltar:hover { color: var(--primary); }

.espacador-header { flex: 1; }

.logo-img, .logo-interna {
    max-height: 110px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-texto {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

/* --- NAVEGAÇÃO (BOTÕES DE CATEGORIA) --- */
.nav-categorias {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 5px 10px 15px;
    justify-content: center;
    scrollbar-width: none;
}

.nav-categorias::-webkit-scrollbar { display: none; }

.cat-btn {
    background: #f0f0f0;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    transition: 0.3s;
    color: var(--text);
}

/* Aplicando a Cor Independente no Botão Ativo */
.cat-btn.active {
    background: var(--category-btn); 
    color: white;
}

/* --- SLIDESHOW --- */
.slideshow-container {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    background: #eee;
    cursor: grab;
}

.slideshow-container:active { cursor: grabbing; }

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    justify-content: center;
    user-select: none;
}

.slide.active { opacity: 1; z-index: 1; }

.slide img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* --- VITRINE (Cards) --- */
.grid-produtos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px 0;
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.card-info { padding: 12px; }

.card h3 {
    font-size: 15px;
    margin: 0 0 8px;
    height: 36px;
    overflow: hidden;
    line-height: 1.2;
    color: var(--text);
}

/* --- PREÇOS (MANTENDO A COR PRIMÁRIA) --- */
.preco-vista, #p-vista {
    color: var(--primary);
    font-size: 17px;
    font-weight: bold;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

#p-vista { font-size: 24px; margin-bottom: 5px; }

.pix-icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
    object-fit: contain;
    filter: invert(65%) sepia(35%) saturate(546%) hue-rotate(125deg) brightness(91%) contrast(89%);
}

.preco-parcelado, #p-parcela {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

#p-parcela { font-size: 14px; }

/* --- PÁGINA INTERNA DE PRODUTO --- */
.produto-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
}

.col-img { flex: 1; min-width: 300px; }
.col-img img { width: 100%; border-radius: 12px; display: block; }

.col-info { flex: 1.2; min-width: 300px; }
.col-info h1 { margin: 15px 0 10px; font-size: 28px; color: var(--text); }
.col-info p { color: #666; line-height: 1.6; margin-bottom: 20px; }

.tag-categoria {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    color: #666;
}

.p-precos {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    margin-top: 25px;
    transition: 0.3s;
}

.btn-whatsapp:hover { background: #1ebe57; transform: scale(1.02); }

/* --- PROVA SOCIAL E URGÊNCIA --- */
.info-urgencia {
    margin-top: 15px;
    padding: 12px;
    background: #fff5f2;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.info-urgencia p {
    margin: 5px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.info-urgencia strong { color: var(--primary); }


/* Círculo Online Pulsante */
.status-online {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
}

.ponto-pulso {
    width: 10px;
    height: 10px;
    background-color: #e74c3c; /* Verde online */
    border-radius: 50%;
    position: relative;
}

.ponto-pulso::after {
    content: '';
    width: 100%;
    height: 100%;
    background-color: #e74c3c;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    animation: pulsar 1.5s infinite ease-in-out;
}

@keyframes pulsar {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.foto-descricao-container {
    width: 100%;
    margin-top: 25px; /* Espaço generoso entre o bloco anterior e a imagem */
    overflow: hidden;
}

.foto-descricao-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* Adicionando um efeito de fade-in suave ao carregar */
    animation: fadeInImg 0.8s ease-in-out;
}

@keyframes fadeInImg {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RODAPÉ --- */
footer {
    background: var(--white);
    border-top: 1px solid #ddd;
    padding: 40px 20px 300px;
    text-align: center;
    margin-top: 50px;
}

.footer-info { color: #888; font-size: 13px; line-height: 1.6; }
.footer-cnpj { font-weight: bold; display: block; margin-top: 5px; color: #555; }

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .slideshow-container { height: 300px; }
    .grid-produtos { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .nav-categorias { justify-content: flex-start; }
    .produto-wrapper { padding: 15px; }
    
    .col-info h1 { font-size: 22px; }
    #p-vista { font-size: 20px; }
    
    .card h3 { font-size: 13px; }
    .preco-vista { font-size: 15px; }

    .logo-img, .logo-interna { max-height: 65px; }
    header, .header-produto { padding: 10px 0; }
}