.bfs {
    --bfs-accent: #d20b20;
    box-sizing: border-box;
    background: #f3f4f6;
    color: #141414;
    border-radius: 18px;
    padding: clamp(12px, 2.3vw, 30px);
}
.bfs .bfs-header, .bfs .bfs-controls, .bfs .bfs-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.bfs .bfs-header { flex-wrap: wrap; margin-bottom: 18px; }
.bfs .bfs-header h2 {
    margin: 0;
    color: inherit;
    font: inherit;
    font-size: clamp(19px, 2.5vw, 33px);
    font-weight: 850;
    padding-inline-start: 12px;
    border-inline-start: 4px solid var(--bfs-accent);
}
.bfs a { color: inherit; }
.bfs .bfs-controls a { text-decoration: underline; font-size: .875rem; }
.bfs .bfs-controls button, .bfs .bfs-buy {
    display: inline-grid;
    place-items: center;
    background: #fff;
    color: #141414;
    border: 1px solid currentColor;
    padding: 0;
    width: 40px;
    height: 40px;
    line-height: 1;
    flex: 0 0 auto;
}
.bfs .bfs-controls button { border-radius: 50%; font-size: 24px; cursor: pointer; }
.bfs .bfs-controls button[hidden] { display: none; }
.bfs .bfs-controls button:disabled { opacity: .34; cursor: default; }
.bfs .bfs-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 64px) / 4);
    gap: 12px;
    list-style: none;
    padding: 2px 2px 12px;
    margin: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #696969 #dedfe2;
}
.bfs .bfs-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    border: 1px solid #e0e1e4;
    border-radius: 14px;
    padding: 10px;
    scroll-snap-align: start;
}
.bfs .bfs-image { display: block; background: #fafafa; border-radius: 9px; overflow: hidden; }
.bfs .bfs-image img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.bfs .bfs-badge {
    position: absolute;
    inset-block-start: 16px;
    inset-inline-start: 16px;
    border-radius: 8px;
    background: var(--bfs-accent);
    color: white;
    padding: 4px 8px;
    font-size: .78rem;
    font-weight: 700;
    pointer-events: none;
}
.bfs .bfs-card h3 { margin: 12px 0 8px; font: inherit; font-weight: 750; overflow-wrap: anywhere; }
.bfs .bfs-bottom { margin-top: auto; flex-wrap: wrap; }
.bfs .bfs-price { font-weight: 750; overflow-wrap: anywhere; }
.bfs .bfs-price del { display: block; color: #626262; font-size: .82em; font-weight: 400; }
.bfs .bfs-price ins { text-decoration: none; }
.bfs .bfs-buy { border-radius: 9px; }
.bfs :focus-visible { outline: 2px solid var(--bfs-accent); outline-offset: 2px; }
@media (max-width: 1024px) { .bfs .bfs-track { grid-auto-columns: calc((100% - 50px) / 3); } }

/* Dark campaign panel with an animated light rail. */
.bfs {
    --bfs-accent: #ff791c;
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(132px, 18%) minmax(0, 1fr);
    align-items: center;
    gap: clamp(12px, 2vw, 26px);
    border: 7px solid transparent;
    background:
        radial-gradient(ellipse at 88% 40%, #3a2420, #17171f 67%) padding-box,
        linear-gradient(154deg, #83828b, #2c292e 29%, #69646c 50%, #1f1d24 78%, #a5a0a6) border-box;
    border-radius: 24px;

    box-shadow: inset 0 0 0 3px #202027, 0 8px 32px #f267273e;
    padding: clamp(18px, 2.6vw, 34px);
}
.bfs::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 5px;
    pointer-events: none;
    border: 2px solid var(--bfs-accent);
    border-radius: 16px;
    box-shadow: inset 0 0 15px var(--bfs-accent), 0 0 16px var(--bfs-accent), 0 0 28px var(--bfs-accent);
}
.bfs.bfs-pulse::before { animation: bfs-neon 3s ease-in-out infinite; }
@keyframes bfs-neon {
    0%, 100% { opacity: .42; }
    28%, 72% { opacity: 1; }
    46% { opacity: .68; }
}
@media (prefers-reduced-motion: reduce) {
    .bfs.bfs-pulse::before { animation: none; }
}
.bfs .bfs-header {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 14px;
    margin: 0;
    color: #fff7ef;
}
.bfs .bfs-header h2 { border: 0; padding: 0; line-height: 1.22; }
.bfs .bfs-promo {
    display: block;
    width: min(100%, 212px);
    height: auto;
    filter: drop-shadow(0 8px 18px #000a);
}
.bfs .bfs-controls { justify-content: center; flex-wrap: wrap; }
.bfs .bfs-controls button {
    background: #242028;
    color: #fff;
    border-color: var(--bfs-accent);
}
.bfs .bfs-controls a { color: #fff; }
.bfs .bfs-track { scrollbar-color: var(--bfs-accent) #37313a; }
.bfs .bfs-badge { background: #31190e; border: 1px solid var(--bfs-accent); }
.bfs .bfs-price ins { color: #a53600; }
@media (max-width: 767px) {
    .bfs {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        border-width: 4px;
        border-radius: 19px;
        padding: 10px;
    }
    .bfs::before { inset: 3px; border-radius: 13px; }
    .bfs .bfs-header {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        text-align: start;
        gap: 6px;
        min-height: 34px;
    }
    .bfs .bfs-header h2 { font-size: clamp(13px, 3.5vw, 17px); }
    .bfs .bfs-promo { width: 38px; }
    .bfs .bfs-controls { margin-inline-start: auto; gap: 4px; }
    .bfs .bfs-controls button { width: 26px; height: 26px; font-size: 17px; }
    .bfs .bfs-controls a { font-size: 10px; }
    .bfs .bfs-track {
        grid-auto-columns: clamp(104px, 37.5%, 188px);
        gap: 7px;
        padding-block: 2px 5px;
    }
    .bfs .bfs-track:has(> .bfs-card:nth-child(2):last-child) {
        grid-auto-columns: calc((100% - 7px) / 2);
    }
    .bfs .bfs-track:has(> .bfs-card:only-child) {
        grid-auto-columns: min(100%, 240px);
    }
    .bfs .bfs-card {
        --bfs-mobile-image: clamp(75px, 23vw, 134px);
        padding: 6px;
        min-height: 0;
        border-radius: 10px;
    }
    .bfs .bfs-image img {
        width: 100%;
        height: var(--bfs-mobile-image);
        aspect-ratio: auto;
        object-fit: contain;
    }
    .bfs .bfs-badge {
        inset-block-start: 8px;
        inset-inline-start: 8px;
        padding: 2px 4px;
        border-radius: 5px;
        font-size: 10px;
        line-height: 1.4;
    }
    .bfs .bfs-card h3 {
        margin: 6px 0 5px;
        min-block-size: 2.8em;
        font-size: 11px;
        line-height: 1.4;
    }
    .bfs .bfs-card h3 a {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
    .bfs .bfs-bottom { display: block; }
    .bfs .bfs-price { min-width: 0; font-size: 12px; line-height: 1.4; }
    .bfs .bfs-buy {
        position: absolute;
        inset-inline-end: 7px;
        inset-block-start: calc(var(--bfs-mobile-image) - 22px);
        width: 28px;
        height: 28px;
        border-color: #e0e1e4;
    }
    .bfs .bfs-buy svg { width: 15px; height: 15px; }
}

@font-face {
    font-family: "BFS Yekan Bakh";
    src: url("YekanBakhFaNum-VF.ttf") format("truetype");
    font-weight: 100 900;
    font-display: swap;
}
.bfs, .bfs .bfs-controls button {
    font-family: "BFS Yekan Bakh", Tahoma, sans-serif;
}
