/*
 * mysimtravel Black Friday
 * Só carrega com a campanha ativa. Tudo parte de .mst-bf (classe no <body>) ou de blocos .bf-*.
 *
 * Material: o cartão do chip do mysimtravel, cortado pela metade.
 * - preto fosco e grafite (o cartão), laranja da marca (o desconto), dourado dos contatos do chip.
 * - o canto chanfrado do SIM marca toda etiqueta de desconto.
 */

.mst-bf, .mst-bf-page {
    --bf-black: #0B0B0D;
    --bf-graphite: #17171B;
    --bf-line: #2C2C33;
    --bf-orange: #FF5000;
    --bf-gold: #F2C46D;
    --bf-mute: #A3A3AD;
    --bf-cut: clamp(20px, 3.5vw, 48px);
    --bf-notch: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}

/* ── Moldura do site: mais preta, sem mexer na estrutura ── */
.mst-bf .topbar { background: var(--bf-black); }
.mst-bf .site-header { border-bottom-color: var(--bf-black); }
.mst-bf .site-footer { background: var(--bf-black); }
.mst-bf .product-gallery__badge--sale { background: var(--bf-black); color: #fff; }

/* ── Faixa do topo ── */
.bf-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 40px;
    padding: 0 16px;
    overflow: hidden;
    background: var(--bf-black);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    border-bottom: 1px solid var(--bf-line);
}
.bf-bar[hidden] { display: none; }
.bf-bar:hover, .bf-bar:focus { color: #fff; }
.bf-bar:focus-visible { outline: 2px solid var(--bf-gold); outline-offset: -3px; }
.bf-bar__tag {
    flex: none;
    padding: 6px 12px 6px 9px;
    background: var(--bf-orange);
    color: var(--bf-black);
    font-family: var(--font-display, inherit);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    clip-path: var(--bf-notch);
}
.bf-bar__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bf-bar__time { flex: none; color: var(--bf-gold); font-variant-numeric: tabular-nums; }
.bf-bar__clock b { font-weight: 700; }
.bf-bar__go {
    flex: none;
    padding-bottom: 2px;
    border-bottom: 1px solid currentColor;
    font-weight: 700;
}
.bf-bar:hover .bf-bar__go { color: var(--bf-orange); }

@media (max-width: 719px) {
    .bf-bar { gap: 9px; padding: 0 12px; font-size: 0.75rem; }
    .bf-bar__tag { padding: 5px 10px 5px 7px; font-size: 0.625rem; }
    .bf-bar__go, .bf-bar__pre, .bf-bar__sec { display: none; }
    /* Duas faixas escuras empilhadas pesam no celular: a do tema volta quando a campanha acaba. */
    .mst-bf .topbar { display: none; }
}

/* ── Home: o chip pela metade ── */
.bf-home {
    position: relative;
    z-index: 1;
    margin-bottom: calc(-1 * var(--bf-cut));
    padding: clamp(2rem, 5vw, 4rem) 0 calc(clamp(2rem, 4vw, 3.5rem) + var(--bf-cut));
    background: var(--bf-black);
    color: #fff;
    /* a base é cortada na mesma diagonal do cartão; o laranja da home aparece por baixo */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--bf-cut)), 0 100%);
    scroll-margin-top: 72px;
}
.mst-bf .v3-hero { padding-top: calc(clamp(1.25rem, 3vw, 2.5rem) + var(--bf-cut)); }

.bf-home__top {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
}
.bf-home__eyebrow {
    margin: 0 0 1rem;
    color: var(--bf-gold);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.bf-home__title {
    margin: 0;
    max-width: 11.5em;
    color: #fff;
    font-family: var(--font-display, inherit);
    font-size: clamp(2.1rem, 5.4vw, 4.4rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.04em;
    text-wrap: balance;
}
.bf-home__lead {
    margin: 1.1rem 0 0;
    max-width: 32em;
    color: #C4C4CC;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.5;
}

.bf-chip {
    position: relative;
    justify-self: end;
    width: min(100%, 400px);
    aspect-ratio: 1.586;
    margin: 0 16px 14px 0;
    container-type: inline-size;
}
.bf-chip__half {
    position: absolute;
    inset: 0;
    border-radius: 7%/11%;
}
.bf-chip__half--plan {
    background: linear-gradient(140deg, #2B2B33 0%, #17171B 70%);
    clip-path: polygon(13% 0, 60% 0, 40% 100%, 0 100%, 0 20%);
}
.bf-chip__half--plan svg {
    position: absolute;
    left: 9%;
    top: 27%;
    width: 17%;
    height: auto;
}
.bf-chip__plan {
    position: absolute;
    left: 9%;
    bottom: 11%;
    color: #fff;
    font-family: var(--font-display, inherit);
    font-size: 17px;
    font-size: 4.6cqw;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.01em;
}
.bf-chip__half--off {
    background: var(--bf-orange);
    color: var(--bf-black);
    clip-path: polygon(60% 0, 100% 0, 100% 100%, 40% 100%);
    transform: translate(5%, 7%) rotate(3deg);
    transform-origin: 100% 100%;
    animation: bf-slice 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s backwards;
}
@keyframes bf-slice {
    from { transform: none; }
}
.bf-chip__percent {
    position: absolute;
    right: 7%;
    bottom: 22%;
    font-family: var(--font-display, inherit);
    font-size: 92px;
    font-size: 24cqw;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.06em;
}
.bf-chip__percent small { font-size: 0.5em; letter-spacing: 0; margin-left: 0.06em; }
.bf-chip__off {
    position: absolute;
    right: 7%;
    bottom: 10%;
    font-size: 15px;
    font-size: 4.1cqw;
    font-weight: 700;
}

/* ── Home: as ofertas ── */
.bf-offers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: clamp(2rem, 4vw, 3rem) 0 0;
    padding: 0;
    list-style: none;
}
.bf-offers > li { display: flex; margin: 0; }
.bf-offer {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2px 12px;
    width: 100%;
    padding: 20px;
    border: 1px solid var(--bf-line);
    border-radius: 18px;
    background: var(--bf-graphite);
    color: #fff;
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s;
}
.bf-offer:hover, .bf-offer:focus { color: #fff; border-color: var(--bf-orange); transform: translateY(-2px); }
.bf-offer:focus-visible { outline: 2px solid var(--bf-gold); outline-offset: 3px; }
.bf-offer__tag {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 11px 6px 9px;
    background: var(--bf-orange);
    color: var(--bf-black);
    font-family: var(--font-display, inherit);
    font-size: 0.8125rem;
    font-weight: 800;
    line-height: 1;
    clip-path: var(--bf-notch);
}
.bf-offer__name {
    grid-column: 1 / -1;
    padding-right: 68px;
    font-family: var(--font-display, inherit);
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.bf-offer__meta {
    grid-column: 1 / -1;
    margin-bottom: 18px;
    color: var(--bf-mute);
    font-size: 0.875rem;
    line-height: 1.35;
}
.bf-offer__prices { display: grid; gap: 4px; }
.bf-offer__was { color: var(--bf-mute); font-size: 0.875rem; line-height: 1; }
.bf-offer__now {
    font-family: var(--font-display, inherit);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}
.bf-offer__cta {
    padding: 9px 15px;
    border: 1px solid #3A3A42;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.bf-offer:hover .bf-offer__cta { background: var(--bf-orange); border-color: var(--bf-orange); color: var(--bf-black); }

@media (max-width: 959px) {
    .bf-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .bf-home__top { grid-template-columns: 1fr; }
    .bf-chip { justify-self: start; width: min(86%, 320px); }
}
@media (max-width: 559px) {
    .bf-offers { gap: 10px; }
    .bf-offer { grid-template-columns: 1fr; padding: 14px; border-radius: 14px; }
    .bf-offer__tag { top: 12px; right: 12px; padding: 5px 9px 5px 7px; font-size: 0.6875rem; }
    .bf-offer__name { padding-right: 0; padding-top: 30px; font-size: 1.0625rem; }
    .bf-offer__meta { margin-bottom: 12px; font-size: 0.8125rem; }
    .bf-offer__types, .bf-offer__cta { display: none; }
    .bf-offer__now { font-size: 1.375rem; }
}

/* ── Página de produto ── */
.bf-product {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 16px;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--bf-black);
    color: #fff;
}
.bf-product p { margin: 0; }
.bf-product__tag {
    grid-column: 1;
    color: var(--bf-gold);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.bf-product__offer { grid-column: 1; font-size: 1rem; line-height: 1.2; }
.bf-product__offer strong {
    font-family: var(--font-display, inherit);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.bf-product__offer s { margin-left: 6px; color: var(--bf-mute); font-size: 0.875rem; }
.bf-product__note { grid-column: 1; color: #C4C4CC; font-size: 0.8125rem; line-height: 1.4; }
.bf-product__pick {
    grid-column: 2;
    grid-row: 1 / span 3;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    background: var(--bf-orange);
    color: var(--bf-black);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 800;
    cursor: pointer;
}
.bf-product__pick:hover { background: #FF7A3D; }
.bf-product__pick:focus-visible { outline: 2px solid var(--bf-gold); outline-offset: 3px; }
@media (max-width: 559px) {
    .bf-product { grid-template-columns: 1fr; }
    .bf-product__pick { grid-column: 1; grid-row: auto; margin-top: 10px; min-height: 44px; }
}

/* ── Planos controle: linha da oferta no cartão ── */
.bf-plan {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 9px 12px 9px 9px;
    border-radius: 12px;
    background: var(--bf-black);
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.2;
}
.bf-plan__tag {
    flex: none;
    padding: 6px 10px 6px 8px;
    background: var(--bf-orange);
    color: var(--bf-black);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    clip-path: var(--bf-notch);
}
.bf-plan__text strong { font-weight: 800; }
.bf-plan__text s { margin-left: 4px; color: var(--bf-mute); font-size: 0.8125rem; }

/* ── Carrinho e checkout ── */
.bf-saved {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--bf-black);
    color: #fff;
    font-size: 0.9375rem;
}
.bf-saved__tag {
    margin-right: 8px;
    color: var(--bf-gold);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.bf-saved-row td { color: #0B0B0D; font-weight: 600; text-align: left !important; }
.bf-saved-row strong { font-weight: 800; }

.bf-home__more { margin: 1.25rem 0 0; font-size: 0.9375rem; }
.bf-home__more a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.bf-home__more a:hover { color: var(--bf-orange); }

/* ── Página /black-friday/ ── */
.site-main.bf-page { padding: 0; margin: 0; background: var(--bf-black); }
.bf-hero {
    padding: clamp(2.25rem, 5vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
    background: var(--bf-black);
    color: #fff;
}
.bf-hero--idle { padding-bottom: clamp(3rem, 7vw, 6rem); }
.bf-hero .bf-home__title { font-size: clamp(2rem, 4.6vw, 3.75rem); max-width: 13em; }
.bf-hero--idle .bf-home__title { max-width: 16em; }

.bf-count { margin: 1.75rem 0 0; }
.bf-count[hidden] { display: none; }
.bf-count__label {
    margin: 0 0 0.6rem;
    color: var(--bf-gold);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.bf-count__fallback { margin: 0; font-family: var(--font-display, inherit); font-size: 1.5rem; font-weight: 800; }
.bf-count__grid { display: flex; gap: 8px; margin: 0; }
.bf-count__grid[hidden] { display: none; }
.bf-count__grid > div {
    min-width: 68px;
    padding: 12px 10px 10px;
    border: 1px solid var(--bf-line);
    border-radius: 14px;
    background: var(--bf-graphite);
    text-align: center;
}
.bf-count__grid dd {
    margin: 0;
    font-family: var(--font-display, inherit);
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}
.bf-count__grid dt { margin-top: 6px; color: var(--bf-mute); font-size: 0.75rem; font-weight: 600; }

.bf-btn {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    margin-top: 1.75rem;
    padding: 0 24px;
    border-radius: 12px;
    background: var(--bf-orange);
    color: var(--bf-black);
    font-weight: 800;
    text-decoration: none;
}
.bf-btn:hover, .bf-btn:focus { background: #FF7A3D; color: var(--bf-black); }
.bf-btn:focus-visible { outline: 2px solid var(--bf-gold); outline-offset: 3px; }

.bf-h2 {
    margin: 0 0 1.5rem;
    font-family: var(--font-display, inherit);
    font-size: clamp(1.5rem, 2.6vw, 2.125rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.bf-deals {
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 calc(clamp(2.5rem, 5vw, 4rem) + var(--bf-cut));
    background: var(--bf-black);
    color: #fff;
    scroll-margin-top: 72px;
}
.bf-deals .bf-h2 { color: #fff; }
.bf-deals__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.bf-deals__grid > li { display: flex; margin: 0; }
.bf-deal {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--bf-line);
    border-radius: 18px;
    background: var(--bf-graphite);
    color: #fff;
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s;
}
.bf-deal:hover, .bf-deal:focus { color: #fff; border-color: var(--bf-orange); transform: translateY(-2px); }
.bf-deal:focus-visible { outline: 2px solid var(--bf-gold); outline-offset: 3px; }
.bf-deal:hover .bf-offer__cta { background: var(--bf-orange); border-color: var(--bf-orange); color: var(--bf-black); }
.bf-deal__media { position: relative; display: block; aspect-ratio: 300 / 190; background: #23232A; }
.bf-deal__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bf-deal__body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 18px 20px 20px; }
.bf-deal .bf-offer__name { padding-right: 0; }
.bf-deal .bf-offer__meta { margin-bottom: 8px; }
.bf-deal__text { color: #C4C4CC; font-size: 0.875rem; line-height: 1.45; }
.bf-deal__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }

/* Papel: a parte clara entra pelo mesmo corte diagonal do cartão. */
.bf-paper {
    position: relative;
    margin-top: calc(-1 * var(--bf-cut));
    padding: calc(clamp(2.5rem, 5vw, 4rem) + var(--bf-cut)) 0 clamp(3rem, 6vw, 5rem);
    background: #fff;
    color: var(--bf-black);
    clip-path: polygon(0 var(--bf-cut), 100% 0, 100% 100%, 0 100%);
}
.bf-paper .bf-h2 { color: var(--bf-black); }
.bf-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 clamp(2.5rem, 5vw, 4rem);
    padding: 0;
    list-style: none;
    counter-reset: bf-step;
}
.bf-steps > li {
    margin: 0;
    padding: 20px;
    border: 1px solid #E4E4E7;
    border-radius: 18px;
    counter-increment: bf-step;
}
.bf-steps > li::before {
    content: counter(bf-step);
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px 6px 10px;
    background: var(--bf-black);
    color: #fff;
    font-family: var(--font-display, inherit);
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1;
    clip-path: var(--bf-notch);
}
.bf-steps h3 { margin: 0 0 6px; font-family: var(--font-display, inherit); font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; color: var(--bf-black); }
.bf-steps p { margin: 0; color: #4B4B55; font-size: 0.9375rem; line-height: 1.5; }

.bf-faq { max-width: 760px; border-top: 1px solid #E4E4E7; }
.bf-faq details { border-bottom: 1px solid #E4E4E7; }
.bf-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    font-weight: 700;
    font-size: 1.0625rem;
    cursor: pointer;
    list-style: none;
}
.bf-faq summary::-webkit-details-marker { display: none; }
.bf-faq summary::after { content: "+"; flex: none; font-size: 1.375rem; font-weight: 500; line-height: 1; color: var(--bf-orange); }
.bf-faq details[open] summary::after { content: "−"; }
.bf-faq summary:focus-visible { outline: 2px solid var(--bf-orange); outline-offset: 2px; }
.bf-faq p { margin: 0 0 18px; max-width: 62ch; color: #4B4B55; line-height: 1.6; }
.bf-more { margin: 2rem 0 0; color: #4B4B55; }
.bf-more a { color: var(--bf-black); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 959px) {
    .bf-deals__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bf-steps { grid-template-columns: 1fr; }
}
@media (max-width: 559px) {
    .bf-deals__grid { grid-template-columns: 1fr; }
    .bf-deal .bf-offer__name { padding-top: 0; font-size: 1.25rem; }
    .bf-deal .bf-offer__cta, .bf-deal .bf-offer__types { display: inline-block; }
    .bf-deal .bf-offer__now { font-size: 1.625rem; }
    .bf-count__grid > div { min-width: 0; flex: 1; }
    .bf-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .bf-deal { transition: none; }
    .bf-deal:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .bf-chip__half--off { animation: none; }
    .bf-offer { transition: none; }
    .bf-offer:hover { transform: none; }
}
