/* Black Friday landing (module blackfriday) — design from the BF prototype (quick-wins.css). */

.bf-landing {
    --bf-orange: #ff7c00;
    --bf-dark-start: #241a12;
    --bf-dark-end: #362415;
    --bf-benefits-bg: #fdf1e6;
    --bf-text: #222;
    --bf-text-secondary: #767676;
    --bf-border: #e0e0e0;
    margin-bottom: 24px;
}

.bf-landing p {
    margin: 0;
}

.qw-bf-hero {
    position: relative;
    overflow: visible;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "head mascot"
        "text mascot";
    align-items: start;
    column-gap: 24px;
    row-gap: 12px;
    background: linear-gradient(135deg, var(--bf-dark-start), var(--bf-dark-end));
    border-radius: 14px;
    padding: 24px 32px;
    margin-top: 20px;
}

.qw-bf-hero-headline {
    grid-area: head;
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -.02em;
    word-spacing: .08em;
    line-height: .95;
    white-space: nowrap;
    color: #fff;
}

.qw-bf-hero-text {
    grid-area: text;
}

.qw-bf-hero-mascot-wrap {
    display: contents;
}

.qw-bf-hero-mascot {
    grid-area: mascot;
    align-self: center;
    display: block;
    height: 260px;
    width: auto;
    max-width: none;
    margin-top: -64px;
    margin-bottom: -72px;
    margin-right: -32px;
    z-index: 1;
}

.qw-bf-hero-eyebrow {
    margin-bottom: 6px !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #a89c8f;
}

.qw-bf-hero-title {
    margin: 0 0 8px !important;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.02;
    color: var(--bf-orange);
    text-transform: uppercase;
}

.qw-bf-hero-sub {
    font-size: 16px;
    color: #cfc6bc;
}

/* SEO H1 of the category (BO → Categories) under the big banner title */
.qw-bf-hero-seo {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    text-transform: none;
    letter-spacing: 0;
}

.qw-bf-hero-kern {
    margin-left: -0.07em;
}

.qw-bf-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--bf-text-secondary);
}

.qw-bf-stat strong {
    color: var(--bf-text);
    font-weight: 700;
}

.qw-bf-stat-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.qw-bf-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bf-orange);
    animation: qw-bf-pulse 1.6s ease-out infinite;
}

@keyframes qw-bf-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 124, 0, .55); }
    70%, 100% { box-shadow: 0 0 0 8px rgba(255, 124, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .qw-bf-live-dot {
        animation: none;
    }
}

.qw-bf-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: var(--bf-benefits-bg);
    border-radius: 14px;
    padding: 16px 20px;
    margin-top: 24px;
}

.qw-bf-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.qw-bf-benefit .material-icons {
    color: var(--bf-orange);
    font-size: 24px;
    flex: 0 0 auto;
}

.qw-bf-benefit-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--bf-text);
}

.qw-bf-benefit-sub {
    font-size: 11px;
    color: var(--bf-text-secondary);
    overflow-wrap: break-word;
}

/* "Who are you shopping for?" */
.qw-audience {
    margin-top: 24px;
}

.qw-audience-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.qw-audience-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--bf-text);
}

.qw-audience-subtitle {
    font-size: 13px;
    color: var(--bf-text-secondary);
}

.qw-audience-viewport {
    position: relative;
}

.qw-audience-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qw-audience-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border: 1px solid var(--bf-border);
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.qw-audience-card:hover,
.qw-audience-card:focus {
    border-color: var(--bf-orange);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
    text-decoration: none;
}

.qw-audience-card-img {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.qw-audience-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qw-audience-card-text {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.qw-audience-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--bf-orange);
}

.qw-audience-card-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--bf-text-secondary);
}

.qw-audience-nav {
    display: none;
}

/* Tablet: 3 columns, card as a column */
@media (min-width: 768px) and (max-width: 1024px) {
    .qw-audience-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop: one row of six; more than six scroll sideways with arrows */
@media (min-width: 1025px) {
    .qw-audience:not(.qw-audience--scroll) .qw-audience-list {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }

    .qw-audience--scroll .qw-audience-viewport {
        padding-inline: 44px;
        overflow: hidden;
    }

    .qw-audience--scroll .qw-audience-list {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 12px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        touch-action: pan-x pan-y pinch-zoom;
    }

    .qw-audience--scroll .qw-audience-list::-webkit-scrollbar {
        display: none;
    }

    .qw-audience--scroll .qw-audience-card {
        flex: 0 0 auto;
        scroll-snap-align: start;
        box-sizing: border-box;
    }

    .qw-audience-nav:not([hidden]) {
        position: absolute;
        top: 50%;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 1px solid var(--bf-border);
        border-radius: 50%;
        background: #fff;
        color: var(--bf-text);
        box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
        transform: translateY(-50%);
        cursor: pointer;
    }

    .qw-audience-nav:hover {
        border-color: var(--bf-orange);
        color: var(--bf-orange);
    }

    .qw-audience-prev {
        left: 0;
    }

    .qw-audience-next {
        right: 0;
    }
}

@media (min-width: 768px) {
    .qw-audience-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 16px 10px;
    }

    .qw-audience-card-img {
        width: 80px;
        height: 80px;
    }

    .qw-audience-card-text {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
}

@media (max-width: 1024px) {
    .qw-bf-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: big headline on top, text left, mascot bottom right */
@media (max-width: 767px) {
    .qw-bf-hero {
        grid-template-areas:
            "head head"
            "text mascot";
        column-gap: 0;
        row-gap: 16px;
        padding: 24px;
        margin-top: 32px;
        margin-bottom: 40px;
    }

    .qw-bf-hero-headline {
        font-size: clamp(40px, 13.5vw, 58px);
        word-spacing: .05em;
    }

    .qw-bf-hero-text {
        position: relative;
        z-index: 2;
        align-self: center;
    }

    .qw-bf-hero-eyebrow {
        font-size: 12px;
    }

    .qw-bf-hero-title {
        font-size: clamp(26px, 8.5vw, 34px);
        line-height: 1.1;
        letter-spacing: .02em;
        margin-bottom: 14px !important;
    }

    .qw-bf-hero-sub {
        font-size: 15px;
        line-height: 1.4;
        text-wrap: balance;
    }

    .qw-bf-hero-mascot {
        align-self: end;
        justify-self: end;
        height: clamp(190px, 56vw, 240px);
        margin: 0 -24px 0 0;
    }

    .qw-bf-benefits {
        grid-template-columns: 1fr;
    }

    .qw-audience-list,
    .qw-audience--scroll .qw-audience-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        overflow: visible;
    }

    .qw-audience-card {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        padding: 12px 8px;
        width: auto !important;
        max-width: none;
        min-height: 0;
        flex-basis: auto !important;
        text-align: center;
    }

    .qw-audience-card-img {
        width: 72px;
        height: 72px;
    }

    .qw-audience-card-text {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        width: 100%;
    }

    .qw-audience-card-name {
        font-size: 14px;
        line-height: 1.25;
        word-break: break-word;
    }

    .qw-audience-card-count {
        font-size: 12px;
    }

    .qw-audience-nav {
        display: none !important;
    }
}

/* "Show only" → BLACK FRIDAY checkbox: the same dark badge as on the product cards. */
/* "Only Black Friday products": the checkbox stays on and can not be changed */
.bf-label-filter--forced label {
    cursor: default;
}

.bf-label-filter .bf-label-filter-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    background: linear-gradient(135deg, #241a12, #362415);
    color: #ffa34d;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .05em;
    line-height: 13px;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: middle;
}

/* Filter "Black Friday discounts": one choice, round like a radio */
#pds-fltrs .qw-discount-radio .cbx span:first-child,
.qw-popover .qw-discount-radio .cbx span:first-child,
.qw-discount-radio .cbx span:first-child {
    border-radius: 50%;
}

.bf-filter-cancel {
    position: relative;
    overflow: hidden;
    margin: 10px 0;
    padding: 5px;
    border: 1px solid var(--danger, #e9242e);
    border-radius: 4px;
    color: var(--danger, #e9242e);
    text-transform: uppercase;
    text-align: center;
    transition: .2s;
}

.bf-filter-cancel .icon {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: .2s;
}

.bf-filter-cancel .text {
    display: inline-block;
    transition: .2s;
}

.bf-filter-cancel:hover {
    background: var(--danger, #e9242e);
}

.bf-filter-cancel:hover .icon {
    opacity: 1;
    transform: none;
}

.bf-filter-cancel:hover .text {
    transform: translateY(-20px);
}

/* Banner in a category opened from the landing: the whole banner links back to the landing. */
a.qw-bf-hero,
a.qw-bf-hero:hover,
a.qw-bf-hero:focus {
    text-decoration: none;
    color: inherit;
}

a.qw-bf-hero {
    transition: box-shadow .15s ease;
}

a.qw-bf-hero:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
}

/* "Bestsellers during Black Friday" (hook categoryTopProducts) — replaces "Popular products in the
   category" while the campaign runs. Rows reuse the theme's .top-selling list (first 3 visible,
   the rest after "Show more"); medals 1–3 sit on the photo, prices are stacked on the right. */
.bf-top-products {
    margin-bottom: 20px;
}

.bf-top-products .top-selling {
    margin-bottom: 0;
}

.bf-top-products .top-selling-product {
    position: relative;
}

.bf-top-products .top-selling-product .img {
    flex: 0 0 48px;
}

.bf-top-products .top-selling-product .content > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.bf-top-products .top-selling-product .content > div:last-child {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-left: 20px;
    white-space: nowrap;
}

.bf-medal {
    --bf-medal-from: #f5b301;
    --bf-medal-to: #ffd95e;
    position: absolute;
    top: 0;
    left: 8px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bf-medal-from), var(--bf-medal-to));
    color: #222;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

.bf-medal-2 {
    --bf-medal-from: #9aa3ad;
    --bf-medal-to: #d9dee3;
}

.bf-medal-3 {
    --bf-medal-from: #cf8a4a;
    --bf-medal-to: #e0a068;
}

/* The digit is centred, the dot hangs right of it. */
.bf-medal-num {
    position: relative;
    display: block;
    line-height: 1;
}

.bf-medal-dot {
    position: absolute;
    left: 100%;
    bottom: 0;
}

/* From the 2nd row the theme adds a divider and 7px padding on top. */
.bf-top-products .top-selling-product + .top-selling-product .bf-medal {
    top: 7px;
}

.bf-expand {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    cursor: pointer;
}

.bf-expand:hover {
    text-decoration: underline;
}

.bf-expand .material-icons {
    font-size: 16px;
    transition: transform .15s ease;
}

.bf-expand[aria-expanded="true"] .material-icons {
    transform: rotate(180deg);
}

@media (max-width: 767px) {
    .bf-top-products .top-selling-product .content {
        padding-right: 16px;
    }
}

/* Mobile filter bar: rounded like the other filter buttons, dark BLACK FRIDAY colours. The box stays visible; the tick only while the filter is on. */
.bf-quick-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    height: 34px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #241a12, #362415);
    color: #ffa34d;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.bf-quick-badge-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1.5px solid #fff;
    border-radius: 4px;
    background: #fff;
    flex: 0 0 auto;
    box-sizing: border-box;
}

.bf-quick-badge-check svg {
    display: none;
}

.bf-quick-badge--on .bf-quick-badge-check svg {
    display: block;
}

.bf-quick-badge--locked,
.bf-quick-badge:disabled {
    cursor: default;
    opacity: 1;
}
