/* ===== Detalhes do produto da campanha (Views/BlackFriday/ProductDetails.cshtml) ===== */
/* O main do Portal usa overflow:hidden, o que impede o sticky do resumo */
.bf-page main {
    overflow: visible;
    overflow: clip;
}

.bfp {
    --purple: #6038E8;
    --inspire: #4D00E6;
    --beige: #F9F6F4;
    --muted: #5b5866;
    --line: #e6dfd9;
    --ok: #12805c;
    --r: 20px;
    --shadow: 0 10px 30px rgba(40,20,90,.08);
    --font: 'Founders Grotesk',Arial,sans-serif;
    font-family: var(--font);
    color: #000;
    background: var(--beige);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 72px;
}

    .bfp *,
    .bfp *::before,
    .bfp *::after {
        box-sizing: border-box;
    }

    .bfp h1, .bfp h2, .bfp h3, .bfp h4 {
        font-family: var(--font);
        font-weight: 700;
        letter-spacing: -.02em;
        line-height: 1.1;
        margin: 0;
        color: inherit;
    }

    .bfp p,
    .bfp ul {
        margin: 0;
        padding: 0;
    }

    .bfp a,
    .bfp a:hover {
        color: inherit;
        text-decoration: none;
    }

    .bfp button {
        font: inherit;
        cursor: pointer;
        border: 0;
        background: none;
        color: inherit;
    }

    .bfp img {
        max-width: 100%;
    }

    .bfp i[data-lucide],
    .bfp svg.lucide {
        width: 1.15em;
        height: 1.15em;
        stroke-width: 1.75;
        vertical-align: -.2em;
        flex: none;
    }

    .bfp .wrap {
        max-width: 1240px;
        margin: 0 auto;
        padding: 0 24px;
    }

    .bfp .eyebrow {
        font-size: .78rem;
        font-weight: 700;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: var(--purple);
    }

    /* Breadcrumb */
    .bfp .ph {
        padding: 32px 0 8px;
    }

    .bfp .crumb {
        font-size: .88rem;
        color: var(--muted);
        margin-bottom: 14px;
        display: flex;
        gap: 8px;
        align-items: center;
        flex-wrap: wrap;
    }

        .bfp .crumb a:hover {
            color: var(--purple);
        }

        .bfp .crumb b {
            color: #000;
        }

    /* Layout */
    .bfp .detail {
        display: grid;
        grid-template-columns: 1.25fr 1fr;
        gap: 32px;
        align-items: start;
        padding: 12px 0 0;
    }

        .bfp .detail > * {
            min-width: 0;
        }

    .bfp .bfp-panel {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--r);
        padding: 28px;
    }

    .bfp .gallery {
        padding: 0;
        overflow: hidden;
        box-shadow: var(--shadow);
    }

    /* Topo do card (mesma cor do card da vitrine) */
    .bfp .dhead {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 28px 28px 32px;
        background: #1F1D24;
        color: #fff;
    }

        .bfp .dhead::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 4px;
            background: var(--purple);
        }

    .bfp .dbrand {
        font-size: .8rem;
        font-weight: 600;
        letter-spacing: .2em;
        text-transform: uppercase;
        color: rgba(255,255,255,.6);
    }

    .bfp .gallery .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
    }

    .bfp .dmedia img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    .bfp .gallery h1 {
        font-size: clamp(2.2rem,4.4vw,3rem);
        letter-spacing: -.03em;
        line-height: 1;
        color: #fff;
    }

    .bfp .dhead .addon {
        margin-top: 6px;
        display: inline-flex;
        align-items: center;
        padding: 4px 12px;
        border-radius: 999px;
        background: #fff;
        color: var(--purple);
        font-size: .82rem;
        font-weight: 600;
    }

    .bfp .dcat {
        margin-top: 10px;
        font-size: .9rem;
        color: rgba(255,255,255,.72);
    }

    .bfp .dbody {
        padding: 0px 20px 28px;
    }

    /* Selos */
    .bfp .dbadges {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 22px;
    }

    .bfp .bf-badge {
        display: inline-block;
        background: #000;
        color: #fff;
        font-size: .68rem;
        font-weight: 800;
        letter-spacing: .12em;
        line-height: 1.4;
        padding: 6px 11px;
        border-radius: 999px;
        white-space: nowrap;
    }

    .bfp .dhead .bf-badge {
        background: var(--purple);
    }

    .bfp .off-badge {
        display: inline-flex;
        align-items: center;
        background: #fff;
        color: var(--purple);
        font-weight: 800;
        font-size: .8rem;
        line-height: 1.2;
        padding: 6px 11px;
        border-radius: 999px;
        white-space: nowrap;
    }

    /* Abas */
    .bfp .bfp-tabs {
        display: flex;
        gap: 6px;
        padding: 6px;
        margin: 28px 0 22px;
        background: var(--beige);
        border: 1px solid var(--line);
        border-radius: 999px;
        overflow-x: auto;
        max-width: 100%;
    }

        .bfp .bfp-tabs button {
            flex: 1 0 auto;
            margin: 0;
            padding: 10px 20px;
            border-radius: 999px;
            font-size: .92rem;
            font-weight: 700;
            line-height: 1.2;
            color: var(--muted);
            white-space: nowrap;
            transition: background .2s, color .2s;
        }

            .bfp .bfp-tabs button:hover {
                color: var(--purple);
            }

            .bfp .bfp-tabs button.on {
                background: var(--purple);
                color: #fff;
                box-shadow: 0 4px 12px rgba(96,56,232,.3);
            }

    .bfp .bfp-tab {
        display: none;
    }

        .bfp .bfp-tab.on {
            display: block;
        }

        .bfp .bfp-tab h4 {
            font-size: 1.05rem;
            margin: 24px 0 12px;
        }

    .bfp .bfp-lead {
        color: var(--muted);
        line-height: 1.6;
    }

        .bfp .bfp-lead + .benefits {
            margin-top: 24px;
        }

    .bfp .benefits-detail {
        row-gap: 20px;
    }

    .bfp .bfp-note {
        color: var(--muted);
        font-size: .85rem;
        margin-top: 14px;
    }

    /* Conteúdo cadastrado no Portal (formatado pelo BlackFriday-Product.js); neutraliza os estilos do editor */
    .bfp .bfp-content {
        color: var(--muted);
        line-height: 1.6;
        overflow-wrap: anywhere;
    }

        .bfp .bfp-content:not(.is-formatted) {
            visibility: hidden;
        }

        .bfp .bfp-content * {
            font-family: var(--font) !important;
            font-size: inherit !important;
            font-weight: inherit !important;
            line-height: inherit !important;
            color: inherit !important;
            background: transparent !important;
        }

        .bfp .bfp-content > :first-child {
            margin-top: 0;
        }

        .bfp .bfp-content h4 {
            color: #000 !important;
            font-size: 1.05rem !important;
            font-weight: 700 !important;
            line-height: 1.2 !important;
            margin: 24px 0 12px;
        }

        .bfp .bfp-content .bfp-lead + .bfp-lead {
            margin-top: 10px;
        }

        .bfp .bfp-content .bfp-lead + .benefits {
            margin-top: 18px;
        }

        .bfp .bfp-content .bfp-note {
            font-size: .85rem !important;
            margin-top: 18px;
        }

        .bfp .bfp-content b,
        .bfp .bfp-content strong {
            color: #000 !important;
            font-weight: 700 !important;
        }

        .bfp .bfp-content a {
            color: var(--purple) !important;
            font-weight: 700 !important;
        }

            .bfp .bfp-content a:hover {
                text-decoration: underline;
            }

        .bfp .bfp-content .benefits li {
            color: #000 !important;
        }

            .bfp .bfp-content .benefits li:not(.has-note) b {
                font-weight: 400 !important;
            }

        .bfp .bfp-content .benefits svg {
            width: 14px;
            height: 14px;
            margin-top: 5px;
            flex: 0 0 auto;
            color: var(--purple) !important;
        }

        .bfp .bfp-content .benefits-detail small {
            color: var(--muted) !important;
            font-size: .85rem !important;
        }

        .bfp .bfp-content .reco b {
            color: var(--purple) !important;
        }

        .bfp .bfp-content .reco li {
            font-size: .92rem !important;
        }

        /* Tabela de requisitos */
        .bfp .bfp-content .bfp-spec {
            width: 100% !important;
            margin: 18px 0 0;
            border-collapse: separate;
            border-spacing: 0;
            border: 1px solid var(--line);
            border-radius: 16px;
            overflow: hidden;
            font-size: .92rem !important;
        }

            .bfp .bfp-content .bfp-spec td {
                width: auto !important;
                height: auto !important;
                padding: 12px 16px !important;
                border: 0 !important;
                border-bottom: 1px solid var(--line) !important;
                background: #fff !important;
                vertical-align: top;
            }

            .bfp .bfp-content .bfp-spec tr:last-child td {
                border-bottom: 0 !important;
            }

            .bfp .bfp-content .bfp-spec td:first-child:not([colspan]) {
                width: 32% !important;
                color: #000 !important;
                font-weight: 700 !important;
            }

            .bfp .bfp-content .bfp-spec td[colspan] {
                background: #f5f0ff !important;
                color: var(--purple) !important;
                font-weight: 700 !important;
            }

            .bfp .bfp-content .bfp-spec p {
                margin: 0 !important;
            }

    .bfp .reco {
        background: #f5f0ff;
        border: 1px solid #e3d8ff;
        border-radius: 16px;
        padding: 18px 20px;
        margin: 24px 0;
    }

        .bfp .reco b {
            color: var(--purple);
        }

        .bfp .reco p,
        .bfp .reco li {
            font-size: .92rem;
            color: var(--muted);
        }

        .bfp .reco ul {
            margin-top: 10px;
            padding-left: 18px;
            display: grid;
            gap: 8px;
        }

    .bfp .benefits {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px 22px;
        list-style: none;
    }

        .bfp .benefits li {
            display: flex;
            gap: 10px;
            font-size: .95rem;
            line-height: 1.4;
        }

            .bfp .benefits li > span {
                min-width: 0;
                overflow-wrap: anywhere;
            }

        .bfp .benefits i,
        .bfp .benefits svg {
            color: var(--purple);
            margin-top: 2px;
        }

    .bfp .benefits-detail b {
        display: block;
    }

    .bfp .benefits-detail small {
        display: block;
        color: var(--muted);
        font-size: .85rem;
        line-height: 1.4;
        margin-top: 2px;
    }

    .bfp .result {
        margin-top: 24px;
        border-top: 1px solid var(--line);
    }

        .bfp .result p {
            color: var(--muted);
        }

            .bfp .result p + p {
                margin-top: 10px;
            }

    /* Resumo da contratação */
    .bfp .buybox {
        position: sticky;
        top: 92px;
        border-color: #d8ccff;
        box-shadow: var(--shadow);
    }

    .bfp .bb-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
    }

    .bfp .bb-plans {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        padding: 4px;
        margin-bottom: 12px;
        background: #f4f1ff;
        border-radius: 999px;
    }

        .bfp .bb-plans button {
            border: 0;
            border-radius: 999px;
            padding: 8px 10px;
            background: transparent;
            color: var(--muted);
            font: inherit;
            font-size: .9rem;
            font-weight: 600;
            cursor: pointer;
            transition: background .2s, color .2s;
        }

            .bfp .bb-plans button small {
                font-size: .72rem;
                font-weight: 500;
            }

            .bfp .bb-plans button .bf-badge {
                margin-left: 4px;
                padding: 3px 8px;
                font-size: .6rem;
                letter-spacing: .08em;
                vertical-align: middle;
            }

            .bfp .bb-plans button.on {
                background: #fff;
                color: var(--purple);
                box-shadow: 0 1px 4px rgba(60, 30, 140, .15);
            }

            .bfp .bb-plans button:focus-visible {
                outline: 2px solid var(--purple);
                outline-offset: 2px;
            }

    .bfp .bb-plan-note {
        margin: 10px 0 0;
        font-size: .8rem;
        color: var(--muted);
    }

    .bfp .buybox .bb-row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 12px;
        padding: 8px 0;
        font-size: .93rem;
        margin: 0;
    }

        .bfp .buybox .bb-row::before,
        .bfp .buybox .bb-row::after {
            content: none;
        }

        .bfp .buybox .bb-row > :last-child {
            white-space: nowrap;
            text-align: right;
        }

        .bfp .buybox .bb-row.disc {
            color: var(--purple);
            font-weight: 700;
        }

        .bfp .buybox .bb-row.tot {
            border-top: 1px solid var(--line);
            margin-top: 8px;
            padding-top: 16px;
            font-size: 1.05rem;
            font-weight: 700;
            align-items: end;
        }

            .bfp .buybox .bb-row.tot b {
                font-size: 1.9rem;
                letter-spacing: -.03em;
                color: var(--purple);
            }

    .bfp .price-old {
        color: var(--muted);
        text-decoration: line-through;
    }

    .bfp .bonus {
        background: #eaf8f2;
        color: var(--ok);
        border-radius: 12px;
        padding: 10px 14px;
        font-size: .85rem;
        font-weight: 600;
        line-height: 1.4;
        display: flex;
        align-items: flex-start;
        gap: 8px;
        margin: 10px 0;
    }

    .bfp .inst {
        font-size: .8rem;
        color: var(--muted);
        text-align: right;
    }

    .bfp .bb-acts {
        display: grid;
        gap: 10px;
        margin-top: 18px;
    }

    .bfp .bfp-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 13px 24px;
        border-radius: 999px;
        font-weight: 700;
        font-size: .95rem;
        transition: .2s;
        white-space: nowrap;
    }

    .bfp .bfp-btn-primary,
    .bfp .bfp-btn-primary:hover {
        color: #fff;
    }

    .bfp .bfp-btn-primary {
        background: var(--purple);
        box-shadow: 0 8px 20px rgba(96,56,232,.3);
    }

        .bfp .bfp-btn-primary:hover {
            background: var(--inspire);
            transform: translateY(-2px);
        }

    .bfp .bfp-btn-ghost {
        border: 1.5px solid #000;
        background: transparent;
    }

        .bfp .bfp-btn-ghost:hover {
            background: #000;
            color: #fff;
        }

    .bfp .trust {
        display: grid;
        gap: 8px;
        margin-top: 16px;
        color: var(--muted);
        font-size: .85rem;
    }

        .bfp .trust div {
            display: flex;
            gap: 8px;
            align-items: center;
            line-height: 1.4;
        }

        .bfp .trust i,
        .bfp .trust svg {
            color: var(--purple);
        }

/* Responsivo */
@media (max-width: 1024px) {
    .bfp .detail {
        grid-template-columns: 1fr;
    }

    .bfp .buybox {
        position: static;
        order: -1;
    }
}

@media (max-width: 720px) {
    .bfp .wrap {
        padding: 0 16px;
    }

    .bfp .benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .bfp .bfp-panel {
        padding: 18px;
    }

    .bfp .gallery {
        padding: 0;
    }

    .bfp .dhead {
        padding: 22px 18px 26px;
    }

    .bfp .dbody {
        padding: 18px;
    }

    .bfp .bfp-tabs {
        gap: 4px;
        border-radius: 14px;
    }

        .bfp .bfp-tabs button {
            padding: 9px 14px;
            border-radius: 10px;
            font-size: .85rem;
        }
}
