/* ========================================================
   1. HERO DA CATEGORIA
   ======================================================== */
.mainCategoria {
    padding-top: var(--altura-header);
    background-color: #F4F4F4;
    min-height: 100vh;
}

.heroCategoria {
    position: relative;
    background-color: #D6D8D9;
    /* Aumentamos o padding bottom para caber a imagem descendo */
    padding: 80px var(--respiro-lateral) 120px;
    overflow: hidden; 
}

.heroCategoriaConteudo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2; /* O conteúdo fica na frente da linha */
}

.heroCategoriaTextos {
    width: 45%;
}

.heroCategoriaTextos h1 {
    font-size: 56px; /* Aumentado para igualar o destaque do Wix */
    font-weight: 400;
    color: #111111;
    margin-bottom: 20px;
    line-height: 1.1;
}

.heroCategoriaTextos p {
    font-size: 18px; /* Texto mais legível e encorpado */
    color: #444444;
    line-height: 1.6;
}

.heroCategoriaImg {
    width: 50%;
    display: flex;
    justify-content: flex-end;
}

.heroCategoriaImg img {
    max-width: 115%; /* Imagem bem maior */
    width: 115%;
    height: auto;
    /* Joga a imagem para baixo para ela cruzar e ficar por cima da linha */
    transform: translateY(70px); 
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}

.corteDiagonal {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 18vw; 
    background-color: #FFFFFF; /* A mágica: a base do corte agora é a FAIXA BRANCA */
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
    z-index: 1;
}

.corteDiagonal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5vw; /* Sendo menor que o pai, ele revela os 2vw de branco na ponta! */
    background-color: #F4F4F4; /* O cinza do catálogo */
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

/* ========================================================
   2. ÁREA DE CATÁLOGO (FILTROS + GRID)
   ======================================================== */
.secaoCatalogo {
    padding: 60px var(--respiro-lateral) 100px;
    background-color: #F4F4F4;
}

.containerCatalogo {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 60px;
    max-width: 1300px;
    margin: 0 auto;
    align-items: start;
}

/* SIDEBAR FILTROS */
.sidebarFiltros h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #111111;
}

.listaFiltros {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.listaFiltros li {
    font-size: 15px;
    color: #555555;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.listaFiltros li .marcador {
    width: 6px;
    height: 6px;
    background-color: transparent;
    border-radius: 50%;
    margin-right: 12px;
    transition: background-color 0.3s ease;
}

.listaFiltros li:hover,
.listaFiltros li.ativo {
    color: #111111;
    font-weight: 600;
}

.listaFiltros li.ativo .marcador {
    background-color: #111111;
}

/* GRID DE PRODUTOS */
.gridProdutos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
}

.cardProduto {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.cardProduto:hover {
    transform: translateY(-5px);
}

.imgProdutoWrapper {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.imgProdutoWrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.08));
}

.nomeProduto {
    font-size: 15px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 25px;
    line-height: 1.4;
    min-height: 42px;
}

.btnAbrirModal {
    background-color: transparent;
    color: #111111;
    border: 1px solid #111111;
    padding: 10px 30px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btnAbrirModal:hover {
    background-color: #111111;
    color: #FFFFFF;
}

/* ========================================================
   3. MODAL PREMIUM (ESTRUTURA BASE)
   ======================================================== */
.modalPremiumOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(244, 244, 244, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    /* A Mágica: animar a visibilidade junto com a opacidade para não cortar o efeito */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.modalPremiumOverlay.ativo {
    opacity: 1;
    visibility: visible;
}

.modalPremiumConteudo {
    background-color: #FFFFFF;
    width: 90%;
    max-width: 900px;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    /* Adicionado translateY para o modal "cair" levemente ao fechar */
    transform: scale(0.95) translateY(30px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.modalPremiumOverlay.ativo .modalPremiumConteudo {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.fecharModalPremium {
    position: absolute;
    top: 20px;
    right: 25px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #888888;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.fecharModalPremium:hover {
    color: #111111;
}

.modalPremiumLayout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 450px;
}

.modalPremiumEsq {
    background-color: #F9F9F9;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.modalPremiumEsq img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.1));
}

.modalPremiumDir {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modalPremiumDir h2 {
    font-size: 26px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 15px;
}

.modalPremiumDir p {
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modalFichaTecnica {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.itemFicha {
    display: flex;
    flex-direction: column;
}

.labelFicha {
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    font-weight: 600;
    margin-bottom: 5px;
}

.valorFicha {
    font-size: 14px;
    color: #111;
    font-weight: 500;
}

.btnContatoWhatsApp {
    background-color: #111111;
    color: #FFFFFF;
    padding: 14px 25px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    transition: background-color 0.3s;
}

.btnContatoWhatsApp:hover {
    background-color: #B00003;
}

/* ========================================================
   4. RESPONSIVIDADE (MEDIA QUERIES)
   ======================================================== */

/* --- TABLETS E ECRÃS MÉDIOS --- */
@media (max-width: 992px) {
    .containerCatalogo {
        grid-template-columns: 200px 1fr;
        gap: 30px;
    }
    .heroCategoriaTextos h1 {
        font-size: 42px;
    }
}

/* --- TELEMÓVEIS (MOBILE) --- */
@media (max-width: 768px) {
    /* Bloqueia qualquer scroll horizontal "fantasma" */
    body, html {
        overflow-x: hidden;
    }

    /* Hero (Topo da Página) */
    .heroCategoria {
        padding: 50px 20px 60px; /* Reduzimos o padding lateral */
    }
    .heroCategoriaConteudo {
        flex-direction: column;
        text-align: center;
    }
    .heroCategoriaTextos, 
    .heroCategoriaImg {
        width: 100%;
    }
    .heroCategoriaTextos {
        margin-bottom: 20px;
    }
    .heroCategoriaTextos h1 {
        font-size: 38px;
    }
    .heroCategoriaImg {
        justify-content: center;
    }
    .heroCategoriaImg img {
        max-width: 90%;
        transform: translateY(20px);
    }

    /* Catálogo e Filtros */
    .secaoCatalogo {
        padding: 40px 20px 80px; /* Sobrescreve variáveis que possam quebrar */
        overflow: hidden;
    }
    
    .containerCatalogo {
        grid-template-columns: 1fr !important; /* Força 1 coluna: Filtro em cima, Grid embaixo */
        gap: 20px;
        width: 100%;
    }

    .sidebarFiltros h3 {
        text-align: left;
        border-bottom: none;
        margin-bottom: 10px;
        padding-bottom: 0;
        font-size: 18px;
    }

    /* Filtros Pílula (Scroll Horizontal fluido) */
    .listaFiltros {
        flex-direction: row !important;
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 12px;
        /* Faz o scroll colar nas bordas da tela */
        width: 100vw;
        margin-left: -20px;
        padding-left: 20px;
        padding-right: 20px;
        -webkit-overflow-scrolling: touch;
    }
    
    .listaFiltros::-webkit-scrollbar {
        display: none; /* Esconde a barra visualmente no mobile, mas mantém o scroll */
    }
    
    .listaFiltros li {
        white-space: nowrap; 
        background-color: #EAEAEA;
        padding: 8px 18px;
        border-radius: 20px;
        font-size: 14px;
        margin: 0;
    }
    
    .listaFiltros li .marcador {
        display: none !important;
    }

    /* Grid de Produtos */
    .gridProdutos {
        grid-template-columns: 1fr !important; /* 1 card por linha */
        gap: 30px;
        margin-top: 20px;
    }

    .cardProduto {
        margin: 0 auto;
        width: 100%;
        max-width: 280px; /* Tamanho ideal para celular */
    }

    /* Modal Premium Mobile */
    .modalPremiumConteudo {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    .modalPremiumLayout {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .modalPremiumEsq {
        padding: 30px 20px;
    }
    .modalPremiumEsq img {
        max-height: 180px; /* Impede a imagem de ocupar a tela toda */
    }
    .modalPremiumDir {
        padding: 20px;
        text-align: center;
    }
    .modalPremiumDir h2 {
        font-size: 22px;
    }
    .modalFichaTecnica {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 12px;
    }
    .btnContatoWhatsApp {
        margin: 0 auto;
    }
}

/* --- TELEMÓVEIS PEQUENOS --- */
@media (max-width: 480px) {
    .heroCategoriaTextos h1 {
        font-size: 32px;
    }
}