﻿/* *********************************** Tokens globais dos catálogos do Header */

.bv-header-catalog {
    --bv-catalog-accent: #ff2e93;
    --bv-catalog-accent-dark: #d91f78;
    --bv-catalog-accent-deep: #b81663;
    --bv-catalog-accent-soft: rgba(255, 46, 147, .1);
    --bv-catalog-accent-softer: rgba(255, 46, 147, .055);
    --bv-catalog-text: #20242c;
    --bv-catalog-muted: #737b87;
    --bv-catalog-border: #e3e6ec;
    --bv-catalog-surface: #fff;
    --bv-catalog-surface-soft: #f7f8fa;
    display: grid;
    gap: 16px;
    color: var(--bv-catalog-text);
}

    .bv-header-catalog,
    .bv-header-catalog * {
        box-sizing: border-box;
    }

/* *********************************** Apresentação */

.bv-header-catalog-hero {
    position: relative;
    min-height: 230px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
    align-items: stretch;
    gap: 20px;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(255, 46, 147, .16);
    border-radius: 26px;
    background: radial-gradient( circle at 92% 5%, rgba(255, 46, 147, .16), transparent 40% ), linear-gradient( 135deg, rgba(255, 46, 147, .065), #fff 62% );
}

.bv-header-catalog-hero__content {
    position: relative;
    z-index: 1;
    align-self: center;
    max-width: 650px;
}

.bv-header-catalog-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--bv-catalog-accent-dark);
    font-size: .67rem;
    font-weight: 950;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.bv-header-catalog-hero h3 {
    margin: 9px 0 0;
    color: var(--bv-catalog-text);
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -.04em;
}

.bv-header-catalog-hero p {
    max-width: 610px;
    margin: 11px 0 0;
    color: #68707d;
    font-size: .79rem;
    line-height: 1.65;
}

.bv-header-catalog-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.bv-header-catalog-hero__visual {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border-radius: 21px;
    background: linear-gradient( 145deg, var(--bv-catalog-accent), var(--bv-catalog-accent-dark) );
    box-shadow: 0 16px 36px rgba(22, 27, 38, .14);
}

    .bv-header-catalog-hero__visual > img {
        width: 100%;
        height: 100%;
        min-height: 180px;
        display: block;
        object-fit: cover;
    }

    .bv-header-catalog-hero__visual > span {
        width: 100%;
        height: 100%;
        min-height: 180px;
        display: grid;
        place-items: center;
        color: rgba(255, 255, 255, .92);
        font-size: 3.4rem;
    }

.bv-header-catalog-hero__summary {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

    .bv-header-catalog-hero__summary > div {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 9px 10px;
        border: 1px solid rgba(255, 255, 255, .3);
        border-radius: 13px;
        background: rgba(20, 23, 31, .62);
        color: #fff;
        backdrop-filter: blur(12px);
    }

    .bv-header-catalog-hero__summary strong {
        font-size: .85rem;
        font-weight: 950;
    }

    .bv-header-catalog-hero__summary span {
        overflow: hidden;
        font-size: .57rem;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* *********************************** Categorias */

.bv-header-catalog-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: none;
}

    .bv-header-catalog-categories::-webkit-scrollbar {
        display: none;
    }

    .bv-header-catalog-categories button {
        min-height: 42px;
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 0 15px;
        border: 1px solid var(--bv-catalog-border);
        border-radius: 999px;
        background: #fff;
        color: #59616d;
        font: inherit;
        font-size: .68rem;
        font-weight: 900;
        white-space: nowrap;
        cursor: pointer;
        transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
    }

        .bv-header-catalog-categories button:hover {
            border-color: rgba(255, 46, 147, .32);
            color: var(--bv-catalog-accent-dark);
            transform: translateY(-1px);
        }

        .bv-header-catalog-categories button.is-active {
            border-color: var(--bv-catalog-accent);
            background: var(--bv-catalog-accent);
            color: #fff;
        }

/* *********************************** Seções */

.bv-header-catalog-section {
    padding: 19px;
    border: 1px solid var(--bv-catalog-border);
    border-radius: 25px;
    background: var(--bv-catalog-surface);
    box-shadow: 0 8px 25px rgba(22, 27, 38, .04);
}

    .bv-header-catalog-section[hidden] {
        display: none !important;
    }

.bv-header-catalog-section__header {
    margin-bottom: 16px;
}

    .bv-header-catalog-section__header > div {
        display: grid;
        grid-template-columns: 45px minmax(0, 1fr);
        align-items: center;
        gap: 11px;
    }

        .bv-header-catalog-section__header > div > span {
            width: 45px;
            height: 45px;
            display: grid;
            place-items: center;
            border-radius: 15px;
            background: var(--bv-catalog-accent-soft);
            color: var(--bv-catalog-accent-dark);
        }

    .bv-header-catalog-section__header small,
    .bv-header-catalog-section__header h3,
    .bv-header-catalog-section__header p {
        display: block;
        margin: 0;
    }

    .bv-header-catalog-section__header small {
        color: var(--bv-catalog-accent-dark);
        font-size: .59rem;
        font-weight: 950;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .bv-header-catalog-section__header h3 {
        margin-top: 2px;
        color: #262b34;
        font-size: .98rem;
        font-weight: 950;
    }

    .bv-header-catalog-section__header p {
        margin-top: 3px;
        color: #7a828e;
        font-size: .67rem;
        line-height: 1.45;
    }

/* *********************************** Grade */

.bv-header-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 11px;
}

/* *********************************** Card-base */

.bv-header-catalog-card {
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--bv-catalog-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(22, 27, 38, .045);
    transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

    .bv-header-catalog-card:hover {
        border-color: rgba(255, 46, 147, .3);
        box-shadow: 0 14px 32px rgba(22, 27, 38, .09);
        transform: translateY(-2px);
    }

/* *********************************** Botões */

.bv-header-catalog-button {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 14px;
    font: inherit;
    font-size: .67rem;
    font-weight: 900;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
}

    .bv-header-catalog-button.is-primary,
    .bv-header-catalog-button.is-primary:link,
    .bv-header-catalog-button.is-primary:visited,
    .bv-header-catalog-button.is-primary:hover,
    .bv-header-catalog-button.is-primary:focus {
        border-color: var(--bv-catalog-accent);
        background: var(--bv-catalog-accent);
        color: #fff !important;
    }

    .bv-header-catalog-button.is-secondary {
        border-color: #dfe2e8;
        background: #fff;
        color: #343a44;
    }

/* *********************************** Estados */

.bv-header-catalog-loading,
.bv-header-catalog-end {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 13px;
    border-radius: 15px;
    background: var(--bv-catalog-surface-soft);
    color: #707783;
    font-size: .67rem;
    font-weight: 850;
}

    .bv-header-catalog-loading[hidden],
    .bv-header-catalog-end[hidden] {
        display: none !important;
    }

.bv-header-catalog-empty {
    min-height: 300px;
    display: grid;
    justify-items: center;
    align-content: center;
    padding: 30px;
    border: 1px dashed #dfe2e8;
    border-radius: 24px;
    background: var(--bv-catalog-surface-soft);
    text-align: center;
}

    .bv-header-catalog-empty > span {
        width: 68px;
        height: 68px;
        display: grid;
        place-items: center;
        border-radius: 22px;
        background: var(--bv-catalog-accent-soft);
        color: var(--bv-catalog-accent-dark);
        font-size: 1.35rem;
    }

/* *********************************** Responsivo */

@media (max-width: 760px) {
    .bv-header-catalog-hero {
        grid-template-columns: 1fr;
    }

    .bv-header-catalog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .bv-header-catalog {
        gap: 11px;
    }

    .bv-header-catalog-hero,
    .bv-header-catalog-section {
        padding: 14px;
        border-radius: 21px;
    }

    .bv-header-catalog-hero__actions
    .bv-header-catalog-button {
        width: 100%;
    }

    .bv-header-catalog-section__header p {
        display: none;
    }
}
