/* ====================================
📦 CATEGORIAS + MOSAICO
==================================== */

.categorias-wrapper {
    width: 100%;
    padding: 20px;
}

.categorias-wrapper {
    position: relative;
    overflow: hidden;
}

.categorias-slider {
    width: 100%;
    max-width: 100vw;

    display: flex;
    gap: 16px;

    overflow-x: hidden;

    padding: 20px;

    scroll-behavior: smooth;
    box-sizing: border-box;
}

.categorias-track {
    display: flex;
    gap: 12px;

    animation: scrollLoop 25s linear infinite;
}

.categorias-wrapper:hover .categorias-track {
    animation-play-state: paused;
}

/* ====================================
🎯 BOTÕES
==================================== */

.categorias-lista,
.subcategorias {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

/* BOTÃO BASE */
.categoria-btn,
.subcategoria-btn {
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all .3s ease;
}

/* CATEGORIA */
.categoria-btn {
    background: #5dabf4;
    padding: 12px 18px;
}

/* SUBCATEGORIA */
.subcategoria-btn {
    background: #9dbbe0;
    padding: 10px 15px;
}

/* HOVER */
.categoria-btn:hover,
.subcategoria-btn:hover {
    background: #2a7ae4;
    color: #fff;
}

/* ATIVO */
.categoria-btn.active {
    background: #2a7ae4;
    color: #fff;
}

/* ====================================
📂 SUBCATEGORIAS
==================================== */

.subcategorias {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition:
        opacity .4s ease,
        transform .4s ease,
        visibility .4s ease;

    max-height: 0;
    overflow: hidden;
}

/* ABERTA */
.subcategorias.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);

    max-height: 500px;
}

/* ====================================
🖼️ MOSAICO
==================================== */

.mosaico-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 20px;
}

/* CARD */
.mosaico-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;

    box-shadow:
        0 10px 30px rgba(0,0,0,.08);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

/* HOVER */
.mosaico-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(0,0,0,.12);
}

.mosaico-card img {
    width: 100%;
    display: block;
}

.mosaico-card h3 {
    padding: 15px;
    font-size: 16px;
    margin: 0;
}

/* ====================================
📌 CARTÃO POSTAL
==================================== */

/* WRAPPER GERAL */
.cp-overlay-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;

    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;

    z-index: 20;
}

/* COLUNA ESQUERDA */
.cp-overlay-left {
    flex: 1;
    max-width: 420px;
}

/* CARTÃO */
.cartao-postal-overlay,
.cartao-postal-overlay-left {
    width: 100%;
    max-width: 360px;
    z-index: 20;
    box-sizing: border-box;
}

.cartao-postal-overlay .card-img-top {
    width: 100%;
    height: auto;
    display: block;
}

/* WRAPPER DA IMAGEM */
.card-img-wrapper {
    position: relative;
}

/* ====================================
📌 COLUNA DO CARTÃO POSTAL
==================================== */

.col-lg-4 {
    display: flex;
    justify-content: center;
}

/* ====================================
📌 CARTÃO POSTAL
==================================== */

.cartao-postal-overlay,
.cartao-postal-overlay-left {

    width: 100%;
    max-width: 360px;

    margin-left: auto;
    margin-right: auto;

    box-sizing: border-box;
}

/* CARD */
.cartao-postal-overlay .card {
    width: 100%;

    border-radius: 2px;
    overflow: hidden;

    box-shadow:
        0 12px 35px rgba(0,0,0,.12);
}


/* ====================================
📱 MOBILE
==================================== */

@media (max-width: 768px) {

    .col-lg-4 {
        display: block;
    }

    .cartao-postal-overlay,
    .cartao-postal-overlay-left {

        width: 100%;
        max-width: 100%;

        margin: 20px auto 0;
    }

    .cartao-postal-overlay .card {
        width: 100%;
    }

    /* IMAGEM */
.cartao-postal-overlay .card-img-top {

    width: 100%;
    height: auto;

    display: block;

    aspect-ratio: 4 / 5;
    object-fit: cover;
}

}

/* ====================================
🏷️ BADGE
==================================== */

.badge,
.badge-cartao {
    background-image:
        url('http://veropara.com.br/wp-content/uploads/2026/03/veropa-iconeflat.png');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: absolute;
    top: 0px;
    left: 2px;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
    text-align: center;
}

/* BADGE GRANDE */
.badge {
    width: 170px;
    height: 180px;

    padding: 5px;

    color: #0d6efd;
    font-size: 1.2em;
}

/* BADGE PEQUENA */
.badge-cartao {
    width: 100px;
    height: 120px;
    padding: 5px;
    line-height: 1.1;
    flex-direction: column;
}

.badge-sub {
    font-size: 0.65em;
    margin-top: 2px;
}

/* TEXTO INTERNO */
.badge span::before,
.badge-cartao span::before {
    content: 'Cartão Postal';

    position: absolute;

    width: 250px;
    height: 40px;

    display: flex;
    justify-content: center;
    align-items: center;

    color: #fff;
    font-weight: 500;
    text-transform: uppercase;

    box-shadow: 0 10px 15px rgba(0,0,0,.2);
}

/* DETALHE */
.badge span::after,
.badge-cartao span::after {
    content: '';

    position: absolute;
    bottom: 0;
    left: 0;

    width: 10px;
    height: 10px;

    background-color: #7e0f12;

    z-index: -1;
}

/* ====================================
📄 HEADER FLEX
==================================== */

.post-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* ====================================
📱 MOBILE
==================================== */

@media (max-width: 768px) {

    /* BOTÕES */
    .categoria-btn,
    .subcategoria-btn {
        width: 100%;
        text-align: center;
        border-radius: 12px;
    }

    .categorias-lista,
    .subcategorias {
        flex-direction: column;
    }

    /* SUBCATEGORIA */
    .subcategorias.active {
        display: grid;
        grid-template-columns: 1fr;
    }

    /* MOSAICO */
    .mosaico-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .mosaico-card h3 {
        font-size: 14px;
    }

    /* CARTÃO POSTAL */
    .cp-overlay-wrapper {
        position: relative;

        flex-direction: column;

        top: auto;
        left: auto;
        right: auto;
    }

    .cartao-postal-overlay,
    .cartao-postal-overlay-left,
    .cp-overlay-left {
        width: 100%;
        max-width: 100%;
    }

    .cartao-postal-overlay {
        position: relative;

        top: auto;
        right: auto;

        margin: 10px 0;
        padding: 0 10px;
    }

    .cartao-postal-overlay .card {
        width: 100%;
		position: relative;
    }

    #destaque {
        height: auto;
        overflow: visible;
    }

}