/*
 * Black Friday pages (/black-friday, /black-friday-offers).
 * Loaded by Views/Shared/_LayoutBlackFriday.cshtml only. Rules are scoped under .bf-page,
 * .bf-site-header or body.blackfriday-route so nothing leaks onto shop pages.
 * Colours follow the 2026 campaign assets (red #ff0200 on near-black).
 */
:root {
    --bf-black: #0b0b0b;
    --bf-panel: #161616;
    --bf-panel-2: #1f1f1f;
    --bf-line: #333;
    --bf-red: #f20d0d;
    --bf-red-dark: #b80000;
    --bf-text: #fff;
    --bf-muted: #a3a3a3;
    --bf-green: #1f9d4c;
    --bf-radius: 8px;
    --bf-gold: #f5b50f;
    --bf-gold-light: #ffd768;
}

body.blackfriday-route { background: var(--bf-black); }
body.bf-panel-open { overflow: hidden; }

/* ============================================================ header */
.bf-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #000;
    border-bottom: 1px solid #1c1c1c;
}
.bf-site-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.bf-site-header__start { display: flex; align-items: center; gap: 18px; min-width: 0; }
.bf-site-header__logo { display: flex; align-items: center; min-width: 0; }
.bf-site-header__logo img { height: 36px; width: auto; max-width: 100%; display: block; }
.bf-site-header__utils { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.bf-site-header__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #fff;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: color .15s ease;
}
.bf-site-header__icon:hover { color: var(--bf-red); }
.bf-site-header__icon:focus-visible { outline: 2px solid var(--bf-red); outline-offset: 2px; border-radius: 6px; }
.bf-site-header__badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--bf-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

@media (max-width: 575px) {
    .bf-site-header__inner { padding: 0 12px; height: 60px; gap: 8px; }
    .bf-site-header__start { gap: 8px; }
    .bf-site-header__logo img { height: 26px; }
    .bf-site-header__utils { gap: 2px; }
}

/* ============================================================ page shell */
.bf-page {
    background: var(--bf-black);
    color: var(--bf-text);
    padding-bottom: 64px;
    overflow-x: hidden;
}
.bf-page a { color: inherit; }
.bf-page a:focus-visible,
.bf-page button:focus-visible,
.bf-page summary:focus-visible { outline: 2px solid var(--bf-red); outline-offset: 2px; }

.bf-hero { background: #000; }
.bf-hero__img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: cover; }
@media (min-width: 1600px) { .bf-hero__img { max-height: 720px; } }
/* Offers hero: wide 1916×821 / phone 941×1672 art with the text baked in, made for
   these shapes, so it is shown whole at full width (no height cap, no crop). */
.bf-hero--full .bf-hero__img { max-height: none; }
/* Landing with a dedicated phone image uploaded from the admin: shown whole on phones. */
@media (max-width: 767px) { .bf-hero--mobile-art .bf-hero__img { max-height: none; } }

/* ============================================================ trust strip */
.bf-trust {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.bf-trust li {
    background: #222;
    border-radius: var(--bf-radius);
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.bf-trust img { height: 100%; width: 100%; object-fit: contain; display: block; }

/* Desktop/tablet trust bar (mockup): one row under the hero, gold line icons, thin
   dividers. Phones (≤767px) show the image cards (.bf-trust) instead. */
.bf-trustbar {
    background: linear-gradient(180deg, #121212 0%, #0b0b0b 100%);
    border-bottom: 1px solid #1e1e1e;
}
.bf-trustbar ul {
    list-style: none;
    margin: 0;
    padding: 18px 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.bf-trustbar li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 4px 16px;
    min-width: 0;
}
.bf-trustbar li + li {
    border-left: 1px solid transparent;
    border-image: linear-gradient(180deg, transparent, #3a3a3a 25%, #3a3a3a 75%, transparent) 1;
}
.bf-trustbar__icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    color: var(--bf-gold);
    filter: drop-shadow(0 0 6px rgba(245, 181, 15, .35));
}
.bf-trustbar__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bf-trustbar__text strong {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
}
.bf-trustbar__text span { font-size: 12px; line-height: 1.3; color: #cfcfcf; }
.bf-trust { display: none; }

@media (max-width: 991px) {
    .bf-trustbar li { gap: 10px; padding: 4px 10px; }
    .bf-trustbar__icon { width: 34px; height: 34px; }
    .bf-trustbar__text strong { font-size: 12px; }
    .bf-trustbar__text span { font-size: 11px; }
}
@media (max-width: 767px) {
    .bf-trustbar { display: none; }
    .bf-trust { display: grid; }
}

/* ============================================================ category tiles */
.bf-tiles ul {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
}
.bf-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.bf-tile__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #000;
    border: 1px solid #262626;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .15s ease, transform .15s ease;
}
.bf-tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-tile__label { font-size: 14px; font-weight: 600; text-align: center; color: #e5e5e5; }
.bf-tile:hover .bf-tile__img { border-color: var(--bf-red); transform: translateY(-2px); }
.bf-tile:hover .bf-tile__label { color: #fff; }

/* ============================================================ pills (shared) */
.bf-pills {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.bf-pill { position: relative; }
.bf-pill > summary,
.bf-filter-btn {
    list-style: none;
    cursor: pointer;
    height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #3a3a3a;
    background: var(--bf-panel);
    color: var(--bf-text);
    font-size: 14px;
    font-weight: 600;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: border-color .15s ease;
}
.bf-pill > summary::-webkit-details-marker { display: none; }
.bf-pill > summary:hover,
.bf-pill[open] > summary { border-color: var(--bf-red); }
.bf-pill-caret { opacity: .75; transition: transform .15s ease; }
.bf-pill[open] .bf-pill-caret { transform: rotate(180deg); }
.bf-pill--sort > summary { border-color: var(--bf-red); }
.bf-icon { flex-shrink: 0; }
.bf-pill-count {
    background: var(--bf-red);
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    padding: 0 6px;
    text-align: center;
}
.bf-pill-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 60;
    width: 280px;
    max-height: 380px;
    overflow-y: auto;
    background: var(--bf-panel);
    color: var(--bf-text);
    border: 1px solid var(--bf-line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
    padding: 8px;
}
.bf-pill-panel--end { left: auto; right: 0; }
.bf-pill-search {
    width: 100%;
    margin-bottom: 6px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--bf-line);
    border-radius: 8px;
    background: #0e0e0e;
    color: #fff;
}
.bf-pill-empty { margin: 8px; color: var(--bf-muted); }
.bf-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
.bf-opt:hover { background: var(--bf-panel-2); }
.bf-opt input { accent-color: var(--bf-red); width: 16px; height: 16px; margin: 0; }
.bf-opt-label { flex: 1; }
.bf-opt-count { color: var(--bf-muted); font-size: 12px; }
.bf-opt.is-disabled { opacity: .4; cursor: default; }
.bf-pill-apply {
    position: sticky;
    bottom: -8px;
    width: calc(100% + 16px);
    margin: 6px -8px -8px;
    height: 44px;
    border: 0;
    border-radius: 0 0 12px 12px;
    background: var(--bf-red);
    color: #fff;
    font-weight: 700;
}
.bf-show-all {
    padding: 0 8px;
    font-weight: 600;
    text-decoration: underline;
    color: var(--bf-text) !important;
}

/* ============================================================ landing */
.bf-landing-pills { margin-top: 28px; }
.bf-section { margin-top: 36px; }

/* Section banners: the image (style="background-image") is only the backdrop,
   the copy and the button are HTML so they stay sharp. */
.bf-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 100px;
    margin-bottom: 16px;
    padding: 14px 28px;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    background-color: #111;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.bf-banner:focus-visible { outline: 2px solid var(--bf-red); outline-offset: 2px; }
.bf-banner__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bf-banner__title {
    font-size: clamp(20px, 2.6vw, 32px);
    font-weight: 900;
    font-style: italic;
    letter-spacing: .01em;
    text-transform: uppercase;
    line-height: 1.1;
    color: #fff;
}
.bf-banner__title em { color: var(--bf-red); font-style: italic; }
.bf-banner__text small { font-size: 14px; color: #d4d4d4; }
.bf-banner__btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 4px;
    background: var(--bf-red);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color .15s ease;
}
.bf-banner__btn::after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 2.5px solid currentColor;
    border-right: 2.5px solid currentColor;
    transform: rotate(45deg);
}
.bf-banner:hover .bf-banner__btn { background: var(--bf-red-dark); }
.bf-banner--all { margin-top: 40px; }

.bf-section-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 4px;
}
.bf-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--bf-red);
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
}
.bf-nav:hover:not(:disabled) { background: var(--bf-red); }
.bf-nav:disabled { opacity: .35; cursor: default; }
.bf-view-all { font-weight: 700; text-decoration: underline; white-space: nowrap; }
.bf-swiper { overflow: hidden; }
.bf-slide-grid > div { margin-bottom: 24px; }
.bf-slot-empty {
    height: 100%;
    min-height: 260px;
    border: 1px dashed var(--bf-line);
    border-radius: var(--bf-radius);
}

/* ============================================================ product card */
/* The card itself is the shop's _ProductTemplate (tp-product-item-2), styled by main.css/style.css.
   Its text is dark on a transparent background, so on the black page it sits on a white tile,
   exactly as it looks on the shop's white pages. Nothing inside the card is restyled here. */
.bf-card {
    height: 100%;
    background: #fff;
    color: var(--tp-common-black, #010f1c);
    border-radius: var(--bf-radius);
    overflow: hidden;
}
.bf-card .tp-product-item-2 { margin-bottom: 0; padding-bottom: 16px; }

/* ============================================================ offers */
.bf-offers { padding-top: 24px; transition: opacity .15s; }
#bf-offers-root.is-loading .bf-offers { opacity: .5; pointer-events: none; }

.bf-offers-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.bf-offers-title { margin: 0; font-size: 32px; font-weight: 800; color: #fff; }
.bf-offers-title span { color: var(--bf-red); }
.bf-result-count { margin: 0; color: var(--bf-muted); font-size: 15px; }

.bf-tabs {
    display: inline-flex;
    gap: 4px;
    margin: 14px 0 18px;
    padding: 4px;
    border: 1px solid var(--bf-line);
    border-radius: 999px;
    background: var(--bf-panel);
}
.bf-tab {
    padding: 6px 16px;
    border-radius: 999px;
    color: var(--bf-muted) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.bf-tab:hover { color: #fff !important; }
.bf-tab.is-active { background: var(--bf-red); color: #fff !important; }

.bf-toolbar { margin-bottom: 16px; }
.bf-toolbar .bf-pill--sort { margin-left: auto; }

.bf-toolbar-mobile { position: relative; gap: 10px; margin-bottom: 12px; }
.bf-toolbar-mobile .bf-pills { flex: 1; min-width: 0; position: static; }
.bf-toolbar-mobile .bf-pill { flex: 1; min-width: 0; position: static; }
.bf-toolbar-mobile .bf-pill > summary { width: 100%; justify-content: space-between; }
.bf-toolbar-mobile .bf-pill > summary > span { overflow: hidden; text-overflow: ellipsis; }
.bf-toolbar-mobile .bf-pill-panel { left: 0; right: 0; width: auto; }
.bf-filter-btn { border-color: var(--bf-red); position: relative; flex-shrink: 0; }
.bf-filter-btn__count {
    position: absolute;
    top: -7px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--bf-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.bf-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 16px; }
.bf-active__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-active-chip {
    background: var(--bf-panel);
    border: 1px solid #4a4a4a;
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
}
.bf-active-chip:hover { border-color: var(--bf-red); }
.bf-clear-link { background: none; border: 0; padding: 0; color: #fff; text-decoration: underline; font-size: 13px; }

.bf-grid > .bf-grid-col { margin-bottom: 24px; }
.bf-empty { text-align: center; padding: 40px 0; color: var(--bf-muted); }
.bf-sentinel { height: 1px; }
.bf-loadmore-wrap { text-align: center; }
.bf-loadmore {
    background: var(--bf-red);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 12px 32px;
    font-weight: 700;
}
.bf-loading { color: var(--bf-muted); }

/* ============================================================ mobile filter sheet */
.bf-panel { position: fixed; inset: 0; z-index: 100000; }
.bf-panel[hidden] { display: none; }
.bf-panel-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .65); }
.bf-panel-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: #121212;
    color: var(--bf-text);
    border: 1px solid #2a2a2a;
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
}
.bf-panel-grip { width: 44px; height: 4px; border-radius: 4px; background: #555; margin: 10px auto 0; }
.bf-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px 14px;
    border-bottom: 1px solid var(--bf-line);
}
.bf-panel-head strong { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; }
.bf-panel-head .bf-icon { width: 22px; height: 22px; color: var(--bf-red); }
.bf-panel-close { background: none; border: 0; color: #fff; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.bf-panel-scroll { overflow-y: auto; padding: 0 18px; flex: 1; }

.bf-acc { border-bottom: 1px solid var(--bf-line); }
.bf-acc > summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}
.bf-acc > summary::-webkit-details-marker { display: none; }
.bf-acc > summary .bf-icon { width: 22px; height: 22px; color: var(--bf-red); }
.bf-acc__title { flex: 1; }
.bf-acc__caret { transition: transform .15s ease; }
.bf-acc[open] .bf-acc__caret { transform: rotate(180deg); }
.bf-acc__body { padding: 0 0 12px 34px; display: flex; flex-direction: column; }

.bf-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 15px;
    cursor: pointer;
}
.bf-check input {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 1.5px solid #6b6b6b;
    border-radius: 4px;
    background: transparent;
    display: grid;
    place-content: center;
}
.bf-check input::after {
    content: "";
    width: 11px;
    height: 6px;
    border-left: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
    opacity: 0;
}
.bf-check input:checked { background: var(--bf-red); border-color: var(--bf-red); }
.bf-check input:checked::after { opacity: 1; }
.bf-check input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bf-check small { color: var(--bf-muted); font-size: 14px; }
.bf-check.is-disabled { opacity: .4; cursor: default; }

.bf-panel-foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--bf-line);
}
.bf-panel-foot button { width: 100%; height: 52px; border-radius: 12px; font-size: 16px; font-weight: 700; }
.bf-btn-primary { background: var(--bf-red); color: #fff; border: 0; }
.bf-btn-primary:hover { background: var(--bf-red-dark); }
.bf-btn-secondary { background: transparent; color: #fff; border: 1.5px solid #fff; }

/* ============================================================ breakpoints */
@media (max-width: 991px) {
    .bf-tiles ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    /* Pills wrap; a panel opens full width under the row instead of under its pill. */
    .bf-landing-pills .bf-pill { position: static; }
    .bf-landing-pills .bf-pill-panel { left: 0; right: 0; width: auto; }
    .bf-offers-title { font-size: 24px; }
}

@media (max-width: 767px) {
    .bf-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .bf-trust li { height: 84px; }
    .bf-slide-grid,
    .bf-grid { --bs-gutter-x: 12px; }
    .bf-slide-grid > div,
    .bf-grid > .bf-grid-col { margin-bottom: 12px; }
}

/* Phones: smaller copy, the button shrinks to a round arrow (label kept for screen readers). */
@media (max-width: 575px) {
    .bf-banner { min-height: 72px; padding: 12px 14px; gap: 12px; }
    .bf-banner__text { gap: 2px; }
    .bf-banner__title { font-size: 20px; }
    .bf-banner__text small { font-size: 12px; }
    .bf-banner__btn {
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        gap: 0;
        border: 2px solid var(--bf-red);
        border-radius: 50%;
        background: transparent;
        color: var(--bf-red);
        font-size: 0;
    }
    .bf-banner__btn::after { width: 9px; height: 9px; margin-left: -3px; }
    .bf-banner:hover .bf-banner__btn { background: transparent; }
    .bf-tiles ul { gap: 8px; }
    .bf-tile__img { border-radius: 10px; }
    .bf-tile__label { font-size: 12px; }
    .bf-pill > summary,
    .bf-filter-btn { height: 40px; padding: 0 12px; font-size: 13px; }
    .bf-offers-title { font-size: 21px; }
}
