body.BlackFriday2026:has(.fb-bf-scene) {
    isolation: isolate;
    --bf-ink: #161514;
    --bf-marker: #b08634;
}
.fb-bf-scene {
    --gutter: max(4vw, calc((100vw - 1600px) / 2));
    position: fixed;
    inset: 0;
    z-index: 3;
    /* Keep every moving pixel inside the outer gutters, including on opaque product pages. */
    mask-image: linear-gradient(to right, #000 var(--gutter), transparent var(--gutter),
        transparent calc(100% - var(--gutter)), #000 calc(100% - var(--gutter)));
    pointer-events: none;
    overflow: hidden;
    contain: strict;
}
.fb-bf-chart {
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(var(--gutter), 180px);
    opacity: .19;
    color: #87aeae;
    background: repeating-radial-gradient(ellipse 178px 330px at -150px 20%,
        transparent 0 17px, currentColor 18px, transparent 19px 26px);
    mask-image: linear-gradient(90deg, #000, transparent);
}
.fb-bf-chart--port { left: 0; }
.fb-bf-chart--starboard { right: 0; transform: rotate(180deg); }
.fb-bf-float {
    --piece-width: clamp(27px, 2.9vw, 46px);
    position: absolute;
    width: var(--gutter);
    height: 0;
    top: 0;
    animation: fb-regatta-fall var(--fall) linear var(--phase) infinite paused;
}
.fb-bf-float--port { left: 0; }
.fb-bf-float--starboard { right: 0; }
.fb-bf-piece {
    display: block;
    position: absolute;
    left: var(--lane);
    width: var(--piece-width);
    aspect-ratio: 1.56;
    animation: fb-regatta-pitch 6s ease-in-out var(--phase) infinite alternate paused;
    transform-origin: 15% 40%;
}
.fb-bf-scene.is-running :is(.fb-bf-float,.fb-bf-piece) { animation-play-state: running; }
.fb-bf-piece {
    aspect-ratio: 1.42;
    box-sizing: border-box;
    border: 1px solid var(--stock);
    border-radius: 4px;
    color: #fff;
    background: var(--stock);
    mask-image: radial-gradient(circle at 0 50%, transparent 2.5px, #000 3px),
        radial-gradient(circle at 100% 50%, transparent 2.5px, #000 3px);
    mask-composite: intersect;
}
.fb-bf-piece--black { --stock: #151719; }
.fb-bf-piece--navy  { --stock: #103653; }
.fb-bf-piece--blue  { --stock: #37688c; }
.fb-bf-piece::before {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid currentColor;
    border-radius: 2px;
    opacity: .30;
}
.fb-bf-piece b {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font: italic 800 calc(var(--piece-width) * .43) / 1 Georgia, serif;
}
@keyframes fb-regatta-fall {
    from { transform: translateY(-58px); }
    to { transform: translateY(calc(100vh + 58px)); }
}
@keyframes fb-regatta-pitch {
    from { transform: translateX(calc(-50% - 4px)) rotate(calc(var(--heel) - 8deg)); }
    to { transform: translateX(calc(-50% + 3px)) rotate(calc(var(--heel) + 8deg)); }
}

/* The two edges come from the rendered logo and search field, including the stacked mobile layout. */
.BlackFriday2026 .home-header-inner:has(.fb-bf-sign) { position: relative; }
.fb-bf-sign {
    position: absolute;
    left: var(--sign-x);
    top: var(--sign-y);
    width: var(--sign-width);
    aspect-ratio: 1807 / 865;
    transform: translate(-50%, -50%);
    container-type: inline-size;
    text-decoration: none;
    background: url('../images/editorial-2026/capitan-bf-rotulo.webp') center / contain no-repeat;
}
.fb-bf-sign[hidden] { display: none; }
.fb-bf-sign:focus-visible { outline: 2px solid #007db5; outline-offset: 2px; }
.fb-bf-sign::before {
    content: '';
    position: absolute;
    inset: 50% 0 auto;
    height: max(100%, 24px);
    transform: translateY(-50%);
}
.fb-bf-sign b {
    position: absolute;
    inset: 47% 6% 9% 34%;
    display: grid;
    place-content: center;
    color: #fff7e3;
    text-align: center;
    font: 900 11cqw/.92 Arial, sans-serif;
    letter-spacing: -.04em;
}
@media (min-width: 761px) and (max-width: 1040px) {
    body.BlackFriday2026:has(.fb-bf-scene) .home-header .home-logo { max-width: min(158px, 85%); }
}
@media (max-width: 760px) {
    body.BlackFriday2026:has(.fb-bf-scene) .home-header .home-header-inner { row-gap: 28px; padding-block: 9px; }
}
.fb-page-product_info.BlackFriday2026 .fb-bf-scene {
    --gutter: max(4vw, calc((100vw - 1600px) / 2));
}
.fb-page-product_info.BlackFriday2026 #fich h1.titu {
    background-image: linear-gradient(90deg, var(--bf-ink) 0 22px, transparent 22px 25px, #d1aa55 25px 35px);
    background-repeat: no-repeat;
    background-size: 35px 2px;
    background-position: left bottom;
    padding-bottom: 5px;
}
.BlackFriday2026 .home-offers .home-heading-rule,
.BlackFriday2026 .home-featured .home-heading-rule {
    position: relative;
    background: linear-gradient(90deg,#cbb27d, #ceddeb 12%,#ceddeb);
}
.BlackFriday2026 .home-offers .home-heading-rule::before,
.BlackFriday2026 .home-featured .home-heading-rule::before {
    content: '';
    position: absolute;
    inset: -3px auto auto 0;
    width: 28px;
    height: 7px;
    background: repeating-linear-gradient(120deg,#35312a 0 3px,transparent 3px 6px);
}
.BlackFriday2026 .home-offers .home-heading-rule::after {
    content: '';
    display: block;
    width: 9px;
    height: 7px;
    margin: -3px 0 0 31px;
    background: var(--bf-marker);
    transform: skewX(-26deg);
}
.BlackFriday2026 .home-product-badge--sale {
    border-radius: 3px;
    padding-inline-end: 14px;
    clip-path: polygon(0 0,100% 0,100% 33%,calc(100% - 4px) 50%,100% 67%,100% 100%,0 100%);
}
.fb-bf-motion {
    position: fixed;
    z-index: 35;
    bottom: max(14px,env(safe-area-inset-bottom));
    left: 10px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #b4cbd2;
    border-radius: 50%;
    color: #244b5d;
    background: #fff;
    padding: 0;
    cursor: pointer;
}
.fb-bf-motion[hidden], .fb-bf-motion .fb-bf-play,
.fb-bf-motion[aria-pressed="true"] .fb-bf-pause { display: none; }
.fb-bf-motion[aria-pressed="true"] .fb-bf-play { display: block; }
.fb-bf-motion:focus-visible { outline: 2px solid #137a90; outline-offset: 2px; }
.fb-bf-motion svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
@media(max-width:700px) {
    .fb-bf-scene, .fb-page-product_info.BlackFriday2026 .fb-bf-scene { --gutter: 13px; }
    .fb-bf-float { --piece-width: 14px; }
    .fb-bf-float:nth-last-child(-n+2) { display: none; }
    .fb-bf-motion { width: 26px; height: 26px; bottom: 9px; left: 5px; }
    .fb-bf-piece::before { display: none; }
}
@media(prefers-reduced-motion:reduce) {
    .fb-bf-float { animation: none; top: calc(var(--lane) * .94); }
    .fb-bf-piece { animation: none; transform: translateX(-50%) rotate(var(--heel)); }
    .fb-bf-motion { display: none; }
}
@media print {
    .fb-bf-scene, .fb-bf-motion, .fb-bf-sign { display: none; }
}

/* Private preview toolbar (all themes). */
.fb-theme-preview-bar{position:fixed;bottom:14px;left:50%;transform:translateX(-50%);z-index:2147483000;display:flex;align-items:center;gap:24px;padding:10px 14px 10px 18px;background:#172f40;color:#fff;border:1px solid #7c919e;border-radius:12px;box-shadow:0 6px 28px #102b3e40;font:13px/1.45 Arial,sans-serif;max-width:calc(100vw - 24px);width:max-content}
.fb-theme-preview-bar b{display:block;font-size:13px;color:#fff}
.fb-theme-preview-bar small{color:#d2dfe7;font-size:11px;display:block}
.fb-theme-preview-bar form{margin:0}
.fb-theme-preview-bar button{font:700 12px/1.2 Arial,sans-serif;background:white;color:#173f55;border:0;border-radius:7px;padding:10px 12px;cursor:pointer;white-space:nowrap}
.fb-theme-preview-bar button:hover{background:#e9f0f4}
.fb-theme-preview-bar button:focus-visible{outline:3px solid #e5b64f;outline-offset:3px}
@media(max-width:600px){.fb-theme-preview-bar{gap:10px;padding:9px 10px;bottom:8px}.fb-theme-preview-bar small{font-size:10px}.fb-theme-preview-bar b{font-size:12px}.fb-theme-preview-bar button{font-size:11px;padding:9px}}
