/* Use the display face at its native weight; use a bold system face on devices without it. */
@font-face {
    font-family: "Black Friday Headline";
    src: local("Impact"), local("Haettenschweiler"), local("Arial Black"), local("Segoe UI Black");
    font-weight: 900;
}

.black-friday-deals {
    --bf-page-navy: #030514;
    container-type: inline-size;
    background: var(--bf-page-navy);
    color: #f6f7ff;
    font-family: "Segoe UI", Arial, sans-serif;
    text-align: left;
}

.black-friday-deals p {
    margin: 0;
    padding: 0 !important; /* The shared site stylesheet pads every paragraph. */
}

.black-friday-deals .bf-hero {
    position: relative;
    padding: clamp(24px, 4cqw, 58px) 5.5% clamp(18px, 2.4cqw, 34px);
    background: linear-gradient(to bottom, transparent 64%, var(--bf-page-navy) 100%),
                linear-gradient(to right, transparent 74%, #03051b 92%),
                linear-gradient(12deg, rgba(2, 4, 18, .92) 9%, transparent 42%),
                radial-gradient(ellipse at 83% 95%, rgba(91, 36, 241, .16), transparent 40%),
                url("images/black-friday-deals-hero.jpg") calc(70% - 8cqw) center / cover no-repeat, #03051b;
}

.black-friday-deals .bf-hero-helmet {
    position: absolute;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    justify-items: center;
    top: 50%;
    right: 0;
    width: 38%;
    height: 98%;
    transform: translateY(-50%);
    padding-bottom: .5rem;
    color: #fff;
    text-decoration: none;
}

.black-friday-deals .bf-hero-helmet img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.black-friday-deals .bf-helmet-tag {
    display: grid;
    justify-items: center;
    padding: .32em .8em;
    border: 1px solid #849bec;
    border-radius: .55rem;
    background: #101b40;
    font-size: clamp(.875rem, 1.4cqw, 1.15rem);
    line-height: 1.25;
}

.black-friday-deals .bf-helmet-tag > span:first-child { color: #d6dfff; }
.black-friday-deals .bf-hero-helmet:hover .bf-helmet-tag { border-color: #fff; }
.black-friday-deals .bf-helmet-tag .bf-price-fallback { color: #fff; font-size: inherit; }

.black-friday-deals h1 {
    width: max-content;
    max-width: 100%;
    margin: 0 0 .18em;
    color: #fafbff;
    font: 900 clamp(3rem, 7.35cqw, 7rem)/.97 "Black Friday Headline", system-ui, sans-serif;
    word-spacing: .035em;
    text-shadow: 0 .025em #adb7ce, 0 .065em .075em #01020c;
}

.black-friday-deals h1 > * {
    display: block;
    transform: skewX(-10deg) scaleX(1.1);
    transform-origin: left center;
}

.black-friday-deals h1 strong {
    font-size: 1.55em;
    font-weight: inherit;
}

.black-friday-deals .bf-early {
    margin-bottom: .25em;
    font-size: clamp(1rem, .36em, 2.25rem);
    letter-spacing: .12em;
    color: #c9dcff;
}

.black-friday-deals .bf-action {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35em;
    min-height: 44px;
    max-width: 100%;
    border: 0;
    padding: .34em 1em;
    background: transparent;
    color: #fff;
    font: italic 800 clamp(1rem, 1.8cqw, 1.55rem)/1.1 "Segoe UI", Arial, sans-serif;
    text-decoration: none;
}

.black-friday-deals .bf-action::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(165deg, #075be9 10%, #183abf 58%, #2912bc);
    transform: skewX(-16deg);
    content: "";
}

.black-friday-deals .bf-action span { font-style: normal; }
.black-friday-deals a.bf-action:hover { color: #fff; text-decoration: underline; }
.black-friday-deals a:focus, .black-friday-deals #featured-shortlist:focus-visible { outline: 3px solid #ffdc82; outline-offset: 3px; }
.black-friday-deals .bf-action:disabled { opacity: .78; cursor: default; }
.black-friday-deals .bf-jump { font-size: clamp(1.3rem, 2.8cqw, 2.5rem); }

.black-friday-deals .bf-intro {
    margin-top: .8rem;
    max-width: min(51%, 38rem);
    color: #f2f4ff;
    font-size: clamp(1rem, 1.5cqw, 1.24rem);
    font-style: italic;
    line-height: 1.35;
    text-shadow: 0 1px 4px #020415;
}
.black-friday-deals .bf-intro > span { display: block; }

.black-friday-deals #featured-shortlist {
    --bf-card-gap: clamp(8px, .9cqw, 14px);
    padding: 0 clamp(12px, 2cqw, 30px) clamp(20px, 3cqw, 42px);
    scroll-margin-top: calc(var(--gf-primary-sticky-height, 84px) + 8px);
    /* Meet the hero at the top and Bootstrap's bg-dark footer at the bottom. */
    background: linear-gradient(to bottom, var(--bf-page-navy), #030413 65%,
                                #030413 max(65%, calc(100% - 110px)), var(--dark, #343a40));
}

.black-friday-deals .bf-update {
    padding: .75em 0 1em !important;
    color: #fafaff;
    font: italic 800 clamp(.94rem, 1.7cqw, 1.45rem)/1.25 "Segoe UI", Arial, sans-serif;
    letter-spacing: .055em;
    text-align: center;
    text-wrap: balance;
}

.black-friday-deals .bf-grid {
    display: grid;
    gap: var(--bf-card-gap);
}

.black-friday-deals .bf-grid + .bf-grid { margin-top: var(--bf-card-gap); }

.black-friday-deals .bf-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    align-items: center;
    gap: .6rem;
    min-width: 0;
    min-height: clamp(170px, 20cqw, 280px);
    padding: clamp(16px, 1.6cqw, 28px);
    border: 2px solid #c9d1e7;
    border-radius: 16px;
    background: linear-gradient(130deg, #050925, #03051b);
    overflow-wrap: anywhere;
}

.black-friday-deals .bf-featured { grid-template-columns: minmax(0, 1fr); }
.black-friday-deals .bf-photo {
    display: block;
    width: clamp(72px, 10cqw, 150px);
    max-width: 100%;
    height: auto;
    max-height: 12rem;
    object-fit: contain;
    justify-self: center;
}

.black-friday-deals .bf-featured .bf-photo { max-height: none; }
.black-friday-deals .bf-detail { grid-column: 1 / -1; min-width: 0; }
.black-friday-deals .bf-photo + .bf-detail { grid-column: auto; }
.black-friday-deals .bf-amazon-photo { aspect-ratio: 1; visibility: hidden; }
.black-friday-deals .bf-amazon-photo.bf-photo-ready { visibility: visible; }
.black-friday-deals .bf-photo img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: inherit; }
.black-friday-deals .bf-detail h2 {
    margin: .15em 0;
    color: #fff;
    font: 750 clamp(1.15rem, 1.85cqw, 1.6rem)/1.14 "Segoe UI", Arial, sans-serif;
}
.black-friday-deals .bf-featured h2 { font-size: clamp(1.35rem, 2.4cqw, 2.1rem); }
.black-friday-deals .bf-line, .black-friday-deals .bf-terms { color: #c5cce2; font-size: .94rem; }
.black-friday-deals .bf-price strong { font-size: 1.3em; }
.black-friday-deals .bf-price s { margin-left: .35em; color: #c5cce2; }
.black-friday-deals .bf-price-fallback, .black-friday-deals .bf-price-note {
    color: #c5cce2;
    font-size: .875rem;
}
.black-friday-deals .bf-price-note { margin-top: .85rem; }
.black-friday-deals .bf-action-label { font-weight: inherit; }
.black-friday-deals .bf-card .bf-action { grid-column: 1 / -1; align-self: end; justify-self: end; margin-right: .35em; }
.black-friday-deals .bf-featured .bf-action { font-size: clamp(1.1rem, 2.2cqw, 1.75rem); }

/* Let the featured photo share the card's full height alongside the offer. */
@media (min-width: 576px) {
    .black-friday-deals .bf-featured:has(> .bf-photo) {
        grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
        grid-template-rows: 1fr auto auto 1fr;
        grid-template-areas: "photo ." "photo detail" "photo action" "photo .";
        gap: 0;
        padding: 0;
        overflow: hidden;
    }
    .black-friday-deals .bf-featured > .bf-photo {
        grid-area: photo;
        width: 100%;
        height: 100%;
        min-height: 0;
        contain: size;
        object-position: center bottom;
    }
    .black-friday-deals .bf-featured .bf-photo ~ .bf-detail {
        grid-area: detail;
        padding: 1rem clamp(12px, 1.6cqw, 20px) 0;
    }
    .black-friday-deals .bf-featured .bf-photo ~ .bf-action {
        grid-area: action;
        margin: .85rem 1rem 1.25rem;
        max-width: calc(100% - 2rem);
    }
}

@media (min-width: 768px) {
    .black-friday-deals .bf-featured .bf-photo ~ .bf-action { justify-self: start; }
    .black-friday-deals .bf-grid {
        /* Either seven-track feature keeps the original 1.45:1 split beside five compact tracks. */
        grid-template-columns: repeat(5, minmax(0, 1fr)) repeat(2, minmax(0, 1.125fr)) repeat(5, minmax(0, 1fr));
        grid-auto-rows: minmax(170px, 1fr) minmax(170px, 1.1fr);
    }
    .black-friday-deals .bf-card { grid-column: span 5; min-height: 170px; }
    .black-friday-deals .bf-featured { grid-column: span 7; grid-row: span 2; }
    .black-friday-deals .bf-card:not(.bf-featured) > .bf-photo { grid-row: span 2; }
    .black-friday-deals .bf-card:not(.bf-featured) .bf-photo ~ .bf-action { grid-column: 2; }
    .black-friday-deals .bf-regular-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
    }
    .black-friday-deals .bf-regular-grid > .bf-card { grid-column: auto; }
}

@media (min-width: 992px) {
    .black-friday-deals .bf-regular-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .black-friday-deals .bf-regular-grid .bf-photo { width: clamp(72px, 8cqw, 112px); }
}

@media (max-width: 767.98px) {
    .black-friday-deals .bf-hero {
        display: grid;
        grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
        grid-template-areas: "title helmet" "jump helmet" "intro intro";
        align-items: center;
        padding: 20px 3% 20px 6%;
        background-image: linear-gradient(0deg, var(--bf-page-navy) 5%, rgba(3, 5, 20, .94) 26%, transparent 61%),
                          linear-gradient(to right, transparent 75%, #03051b 92%),
                          url("images/black-friday-deals-hero.jpg");
        background-position: center, center, calc(70% - 9cqw) -12px;
        background-size: cover, cover, max(500px, 130%) auto;
        background-repeat: no-repeat;
    }
    .black-friday-deals .bf-hero-helmet {
        grid-area: helmet;
        position: static;
        transform: none;
        width: 100%;
        height: auto;
        grid-template-rows: auto auto;
        padding-bottom: 0;
    }
    .black-friday-deals .bf-hero-helmet img { height: auto; }
    .black-friday-deals h1 { grid-area: title; font-size: clamp(1.65rem, 7.8cqw, 2.9rem); }
    .black-friday-deals .bf-jump { grid-area: jump; justify-self: start; font-size: clamp(1rem, 3.8cqw, 1.35rem); }
    .black-friday-deals .bf-intro {
        grid-area: intro;
        max-width: none;
        font-size: .9375rem;
        line-height: 1.45;
    }
    .black-friday-deals .bf-intro > span { display: inline; }
    .black-friday-deals .bf-grid { grid-template-columns: minmax(0, 1fr); }
    .black-friday-deals .bf-card { min-height: 165px; }
    .black-friday-deals .bf-card .bf-action { justify-self: center; margin-inline: 0; }
    .black-friday-deals .bf-featured { min-height: 210px; }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .black-friday-deals .bf-featured:has(> .bf-photo) {
        grid-template-rows: 1fr auto;
        grid-template-areas: "photo detail" "action action";
    }
}

@media (max-width: 575.98px) {
    .black-friday-deals .bf-featured > .bf-photo { width: 100%; height: clamp(200px, 56cqw, 300px); }
}
