/* --- Variáveis herdadas --- */
:root {
    --cor-primaria-roxo: #4F2683;
    --cor-destaque-verde: #BFFF00;
}

.catalogo-container {
    padding-bottom: 4rem;
    min-height: 80vh;
}

/* --- HERO SECTION --- */
.hero-section {
    width: 100%;
    height: 600px; 
    background-color: var(--cor-primaria-roxo);
    background-image: url('img/capa_todos.png'); 
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 3rem;
    transition: background-image 0.5s ease-in-out;
}

.hero-overlay {
    background: none; 
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
}

.hero-content h1 {
    font-size: 3rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--cor-destaque-verde);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    color: #fff;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

@media (max-width: 768px) {
    .hero-section { height: 280px; } 
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
}

/* --- BUSCA --- */
.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--cor-destaque-verde);
    box-shadow: 0 0 15px rgba(191, 255, 0, 0.2);
    background: rgba(0,0,0,0.5);
}

.search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cor-destaque-verde);
}

/* --- FILTROS --- */
.filtros-linhas {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn.btn-outline {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9rem;
}

.btn.btn-outline:hover, .btn.btn-outline.active {
    background-color: var(--cor-destaque-verde);
    color: #000;
    border-color: var(--cor-destaque-verde);
    box-shadow: 0 0 10px rgba(191, 255, 0, 0.4);
}

/* --- GRID --- */
.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
}

/* --- CARD PRODUTO --- */
.produto-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.produto-card:hover {
    transform: translateY(-10px);
}

.produto-img-box {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.fundo-tinta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background-image: url('img/fundo-tinta.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.produto-card:hover .fundo-tinta {
    opacity: 1;
    filter: drop-shadow(0 0 10px var(--cor-destaque-verde));
}

.produto-img-box img {
    position: relative;
    z-index: 2;
    max-height: 100%;
    width: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

.produto-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.produto-info p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.produto-linha-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cor-destaque-verde);
    margin-bottom: 0.5rem;
    display: block;
}

/* BOTÃO VER DETALHES */
.btn-detalhes {
    background-color: #BFFF00;
    color: #000;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-detalhes:hover {
    background-color: #4F2683;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 38, 131, 0.4);
}

/* --- LIGHTBOX --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 5, 20, 0.95);
    background-image: url('img/fundo-tinta.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-overlay.active { display: flex; animation: fadeIn 0.3s; }

.lightbox-close {
    position: absolute;
    top: 30px; right: 30px;
    background: none; border: none;
    color: #fff; font-size: 2.5rem;
    cursor: pointer; z-index: 10001;
    transition: 0.2s;
}
.lightbox-close:hover { color: var(--cor-destaque-verde); transform: rotate(90deg); }

.lightbox-content { width: 100%; max-width: 1000px; position: relative; }
.lightbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

.lightbox-visual { 
    display: flex; 
    flex-direction: column; /* Para colocar os pontos embaixo */
    justify-content: center; 
    align-items: center; 
}

.lightbox-img-container {
    width: 100%; aspect-ratio: 1 / 1;
    position: relative; display: flex;
    align-items: center; justify-content: center;
    background: radial-gradient(circle, rgba(191,255,0,0.1) 0%, rgba(0,0,0,0) 70%);
}
.lightbox-img-container img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 40px rgba(0,0,0,0.6));
    transform: scale(1.1);
}

.lightbox-info { color: #fff; text-align: left; }
.lb-tag { color: var(--cor-destaque-verde); text-transform: uppercase; letter-spacing: 2px; font-weight: bold; font-size: 0.9rem; margin-bottom: 1rem; display: block; }
#lbTitulo { font-size: 3rem; line-height: 1.1; margin-bottom: 1.5rem; font-weight: 800; }
.lb-descricao-box { font-size: 1.1rem; line-height: 1.6; color: #ddd; margin-bottom: 2.5rem; font-weight: 300; }

.btn-whatsapp-full {
    background-color: #25D366; color: #fff;
    font-size: 1.1rem; padding: 1rem 2rem;
    border-radius: 50px; text-transform: uppercase;
    font-weight: bold; display: inline-flex;
    align-items: center; gap: 10px;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    transition: 0.3s;
}
.btn-whatsapp-full:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
    color: #fff;
}

/* SETAS */
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
    z-index: 10;
}
.lb-nav:hover { background: var(--cor-destaque-verde); color: black; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }

/* PONTINHOS (INDICADORES) */
.lb-indicators {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.lb-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.lb-dot:hover, .lb-dot.active {
    background-color: var(--cor-destaque-verde);
    transform: scale(1.2);
}

@keyframes fadeIn { from {opacity:0} to {opacity:1} }
@media(max-width: 768px) {
    .lightbox-grid { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
    .lightbox-info { text-align: center; }
    #lbTitulo { font-size: 2rem; }
}

/* --- MOBILE: 2 COLUNAS --- */
@media (max-width: 768px) {
    
    /* Força 2 colunas e diminui o espaço entre elas */
    .catalogo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem; /* Reduz o gap de 3rem para 1rem */
        padding: 0 0.5rem; /* Margem de segurança lateral */
    }

    /* Ajusta o card para caber no espaço menor */
    .produto-card {
        padding: 0.8rem; /* Reduz padding interno de 2rem para 0.8rem */
    }

    /* Diminui a altura da caixa da imagem para proporção mobile */
    .produto-img-box {
        height: 160px; /* Reduz de 300px para ficar proporcional */
        margin-bottom: 0.8rem;
    }

    /* Ajusta tamanho dos textos para não quebrar */
    .produto-info h3 {
        font-size: 1rem; /* Título menor */
        line-height: 1.2;
    }

    .produto-linha-tag {
        font-size: 0.65rem;
    }
    
    .produto-info p {
        font-size: 0.8rem;
        display: none; /* Opcional: Esconder a descrição curta no mobile para limpar o visual */
    }

    /* Botão menor */
    .btn-detalhes {
        padding: 6px 12px;
        font-size: 0.7rem;
        width: 100%; /* Botão largura total fica melhor em cards estreitos */
    }
}