/* ==================================================================
   Baf Mart — home page
   Warm paper + ember orange, a grotesque display face and a mono for
   prices and labels. Every rule is scoped to .bm-home so the rest of
   the theme is untouched.
   ================================================================== */

/* ---------- tokens ---------- */
.bm-home {
    --bm-bg: #F5F0E8;
    --bm-surface: #FFFCF7;
    --bm-surface-2: #EFE7DA;
    --bm-ink: #1B1612;
    --bm-ink-soft: rgba(27, 22, 18, .62);
    --bm-ink-faint: rgba(27, 22, 18, .38);
    --bm-line: rgba(27, 22, 18, .12);
    --bm-photo: #F1ECE4;
    --bm-solid-bg: #1B1612;
    --bm-solid-fg: #FFF8EE;
    --bm-ember: #0E7C66;
    --bm-ember-deep: #0A5E4D;
    --bm-ember-wash: rgba(14, 124, 102, .11);
    --bm-leaf: #0E7A55;
    --bm-shadow: 0 1px 0 rgba(27, 22, 18, .04), 0 18px 40px -22px rgba(27, 22, 18, .35);
    --bm-radius: 20px;
    --bm-ease: cubic-bezier(.2, .7, .2, 1);
    --bm-spring: cubic-bezier(.34, 1.56, .64, 1);
    --bm-display: "Bricolage Grotesque", "Mulish", system-ui, sans-serif;
    --bm-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    background: var(--bm-bg);
    color: var(--bm-ink);
    overflow-x: clip;
    padding-bottom: 24px;
}

[data-theme="dark"] .bm-home,
[theme="dark"] .bm-home {
    --bm-bg: #13110F;
    --bm-surface: #1C1916;
    --bm-surface-2: #25211D;
    --bm-ink: #F4EEE4;
    --bm-ink-soft: rgba(244, 238, 228, .64);
    --bm-ink-faint: rgba(244, 238, 228, .36);
    --bm-line: rgba(244, 238, 228, .1);
    --bm-photo: #EEE8DF;
    --bm-solid-bg: #F4EEE4;
    --bm-solid-fg: #1B1612;
    --bm-ember-wash: rgba(47, 179, 148, .15);
    --bm-leaf: #3DBB8C;
    --bm-shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 22px 44px -24px rgba(0, 0, 0, .8);
}

.bm-home *,
.bm-home *::before,
.bm-home *::after { box-sizing: border-box; }
:where(.bm-home) a { color: inherit; text-decoration: none; }
:where(.bm-home) img { max-width: 100%; display: block; }
:where(.bm-home) button { font: inherit; color: inherit; }
.bm-home :where(h1, h2, h3) { color: var(--bm-ink); margin: 0; }
.bm-home :where(dl, dd, ol, ul) { margin: 0; padding: 0; list-style: none; }
.bm-home :focus-visible { outline: 2px solid var(--bm-ember); outline-offset: 3px; border-radius: 6px; }

/* ---------- shared pieces ---------- */
.bm-section { padding-block: clamp(44px, 6vw, 84px) 0; }

.bm-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--bm-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bm-ink-soft);
}
.bm-kicker__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--bm-ember);
    box-shadow: 0 0 0 4px var(--bm-ember-wash);
}

.bm-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
    margin-bottom: clamp(20px, 2.6vw, 32px);
}
.bm-head__kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--bm-mono);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bm-ink-soft);
    margin-bottom: 8px;
}
.bm-head__kicker::before {
    content: "";
    width: 22px; height: 2px;
    background: var(--bm-ember);
    border-radius: 2px;
}
.bm-head__title,
.bm-home .bm-head__title {
    font-family: var(--bm-display);
    font-weight: 700;
    font-size: clamp(26px, 3.2vw, 42px);
    line-height: 1.02;
    letter-spacing: -.035em;
}
.bm-head__side { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.bm-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--bm-display);
    font-weight: 600;
    font-size: 15px;
    color: var(--bm-ink);
    padding-bottom: 3px;
    background: linear-gradient(var(--bm-ember), var(--bm-ember)) 0 100% / 0 2px no-repeat;
    transition: background-size .45s var(--bm-ease), color .2s;
}
.bm-link svg { transition: transform .45s var(--bm-ease); }
.bm-link:hover { background-size: 100% 2px; color: var(--bm-ink); }
.bm-link:hover svg { transform: translateX(5px); }

.bm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    font-family: var(--bm-display);
    font-weight: 600;
    font-size: 15.5px;
    letter-spacing: -.01em;
    border: 1.5px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .35s var(--bm-spring), background-color .25s, color .25s, border-color .25s;
}
.bm-btn svg { transition: transform .4s var(--bm-ease); }
.bm-btn:hover svg { transform: translateX(4px); }
.bm-btn:active { transform: scale(.97); }
.bm-btn--solid { background: var(--bm-ember); color: #1B1612; }
.bm-btn--solid:hover { background: var(--bm-ember-deep); color: #1B1612; }
.bm-btn--ghost { border-color: var(--bm-line); color: var(--bm-ink); background: transparent; }
.bm-btn--ghost:hover { border-color: var(--bm-ink); color: var(--bm-ink); }
.bm-btn--ink { background: #1B1612; color: #FFF8EE; }
.bm-btn--ink:hover { background: #000; color: #fff; }
.bm-btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }

.bm-pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--bm-ember);
    position: relative;
}
.bm-pulse::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: 50%;
    background: var(--bm-ember);
    animation: bm-ping 1.6s var(--bm-ease) infinite;
}
@keyframes bm-ping { to { transform: scale(3); opacity: 0; } }

.bm-round {
    width: 42px; height: 42px;
    flex: none;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    border: 1.5px solid var(--bm-line);
    background: var(--bm-surface);
    color: var(--bm-ink);
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .3s var(--bm-spring), opacity .2s;
}
.bm-round:hover { background: var(--bm-ink); color: var(--bm-bg); border-color: var(--bm-ink); }
.bm-round:active { transform: scale(.92); }
.bm-round[disabled] { opacity: .35; pointer-events: none; }

/* ---------- reveal on scroll ---------- */
.bm-js .bm-home [data-bm-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--bm-ease), transform .8s var(--bm-ease);
    transition-delay: calc(var(--i, 0) * 70ms);
}
.bm-js .bm-home [data-bm-reveal].is-in { opacity: 1; transform: none; }

/* words that rise into place (wrapped by JS) */
.bm-w {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: .08em;
    margin-bottom: -.08em;
}
.bm-w > span {
    display: inline-block;
    transform: translateY(105%);
    transition: transform .9s var(--bm-ease);
    transition-delay: calc(var(--wi, 0) * 55ms + 120ms);
}
.bm-split-in .bm-w > span { transform: none; }

/* =========================== HERO =========================== */
.bm-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 64px); }
.bm-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
}
.bm-hero__title,
.bm-home .bm-hero__title {
    font-family: var(--bm-display);
    font-weight: 800;
    font-size: clamp(38px, 4.6vw, 68px);
    line-height: .96;
    letter-spacing: -.045em;
    margin: 18px 0 22px;
    font-variation-settings: "opsz" 96;
}
.bm-line { display: block; }
.bm-line--soft { color: var(--bm-ink-faint); font-weight: 700; }

.bm-scribble { position: relative; display: inline-block; white-space: nowrap; }
.bm-scribble__line {
    position: absolute;
    left: -2%;
    bottom: -.12em;
    width: 104%;
    height: .3em;
    color: var(--bm-ember);
    overflow: visible;
    pointer-events: none;
}
.bm-scribble__line path {
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    transition: stroke-dashoffset 1.1s var(--bm-ease) .9s;
}
.bm-split-in .bm-scribble__line path,
html:not(.bm-js) .bm-scribble__line path { stroke-dashoffset: 0; }

.bm-hero__lead {
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.65;
    color: var(--bm-ink-soft);
    max-width: 44ch;
    margin: 0 0 28px;
}
.bm-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.bm-stats {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 0;
    margin-top: 36px;
    border-top: 1px solid var(--bm-line);
    padding-top: 20px;
}
.bm-stats__item { padding-right: clamp(18px, 2.6vw, 36px); }
.bm-stats__item + .bm-stats__item { padding-left: clamp(18px, 2.6vw, 36px); border-left: 1px solid var(--bm-line); }
.bm-stats dt {
    font-family: var(--bm-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bm-ink-soft);
    margin-bottom: 4px;
}
.bm-stats dd {
    font-family: var(--bm-display);
    font-weight: 700;
    font-size: clamp(24px, 2.4vw, 32px);
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.bm-hero__stage { position: relative; }
.bm-hero__frame {
    position: relative;
    border-radius: 34px 34px 34px 8px;
    background: var(--bm-surface-2);
    aspect-ratio: 2 / 1.08;
    box-shadow: var(--bm-shadow);
}
.bm-swiper,
.bm-hero__fallback {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
}
.bm-hero__fallback {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, .25), transparent 55%),
        var(--bm-ember);
}
.bm-hero__fallback .bm-logo { color: #1B1612; transform: scale(1.6); }
.bm-hero__fallback .bm-logo__mark { color: #1B1612; }
.bm-swiper .swiper-wrapper { height: 100%; }
.bm-swiper .swiper-slide { height: 100%; overflow: hidden; }
.bm-hero__slide { display: block; width: 100%; height: 100%; }
.bm-hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 6s linear;
}
.bm-swiper .swiper-slide-active .bm-hero__slide img { transform: scale(1); }

.bm-stamp {
    position: absolute;
    width: clamp(92px, 9vw, 124px);
    height: auto;
    left: clamp(-34px, -2.4vw, -18px);
    bottom: clamp(-34px, -2.4vw, -18px);
    z-index: 3;
    animation: bm-spin 22s linear infinite;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .25));
}
.bm-stamp__bg { fill: var(--bm-ember); }
.bm-stamp__text {
    font-family: var(--bm-mono);
    font-size: 10.4px;
    font-weight: 600;
    letter-spacing: .14em;
    fill: #1B1612;
}
.bm-stamp__plus { stroke: #1B1612; stroke-width: 4; stroke-linecap: round; }
@keyframes bm-spin { to { transform: rotate(360deg); } }

.bm-hero__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding-left: clamp(80px, 8vw, 110px);
}
.bm-hero__count {
    font-family: var(--bm-mono);
    font-size: 13px;
    color: var(--bm-ink-soft);
    font-variant-numeric: tabular-nums;
}
.bm-hero__count b { color: var(--bm-ink); font-weight: 600; }
.bm-hero__progress {
    flex: 1;
    height: 2px;
    background: var(--bm-line);
    border-radius: 2px;
    overflow: hidden;
}
.bm-hero__progress i {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--bm-ember);
    transform-origin: left;
    transform: scaleX(0);
}
.bm-hero__progress.is-running i { animation: bm-fill var(--bm-hero-delay, 5000ms) linear forwards; }
@keyframes bm-fill { to { transform: scaleX(1); } }

/* ========================== TICKER ========================== */
.bm-ticker { padding: 10px 0; overflow: hidden; }
.bm-ticker__band {
    background: var(--bm-ember);
    color: #1B1612;
    transform: rotate(-1.4deg);
    margin: 0 -2%;
    border-block: 2px solid #1B1612;
    overflow: hidden;
}
.bm-ticker__track {
    display: flex;
    width: max-content;
    animation: bm-marquee 38s linear infinite;
}
.bm-ticker:hover .bm-ticker__track { animation-play-state: paused; }
.bm-ticker__list { display: flex; align-items: center; flex: none; }
.bm-ticker__list li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    font-family: var(--bm-display);
    font-weight: 700;
    font-size: clamp(15px, 1.4vw, 19px);
    letter-spacing: -.01em;
    white-space: nowrap;
}
.bm-ticker__list li i { font-size: 1.1em; }
.bm-ticker__list .bm-ticker__sep { padding: 0 6px; font-size: 18px; opacity: .8; }
@keyframes bm-marquee { to { transform: translateX(-50%); } }

/* ======================== CATEGORIES ======================== */
.bm-cats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(132px, auto);
    gap: 14px;
}
.bm-cat {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--bm-radius);
    background: var(--bm-surface);
    border: 1px solid var(--bm-line);
    overflow: hidden;
    isolation: isolate;
    transition: border-color .3s, transform .45s var(--bm-ease), box-shadow .45s var(--bm-ease);
}
.bm-cat::before {
    /* ember wash that grows from the arrow corner */
    content: "";
    position: absolute;
    right: -40px; bottom: -40px;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--bm-ember-wash);
    transform: scale(0);
    transition: transform .6s var(--bm-ease);
    z-index: -1;
}
.bm-cat:hover { border-color: transparent; transform: translateY(-4px); box-shadow: var(--bm-shadow); }
.bm-cat:hover::before { transform: scale(9); }
.bm-cat__no {
    position: absolute;
    top: 14px; left: 18px;
    font-family: var(--bm-mono);
    font-size: 11px;
    color: var(--bm-ink-faint);
}
.bm-cat__img {
    flex: none;
    width: 76px; height: 76px;
    border-radius: 50% 50% 50% 14px;
    background: var(--bm-photo);
    display: grid;
    place-items: center;
    overflow: hidden;
    transition: transform .6s var(--bm-spring), border-radius .6s var(--bm-ease);
}
.bm-cat__img img {
    width: 74%;
    height: 74%;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.bm-cat:hover .bm-cat__img { transform: rotate(-6deg) scale(1.06); border-radius: 14px 50% 50% 50%; }
.bm-cat__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bm-cat__name {
    font-family: var(--bm-display);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -.02em;
    line-height: 1.15;
    color: var(--bm-ink);
}
.bm-cat__count { font-family: var(--bm-mono); font-size: 12px; color: var(--bm-ink-soft); }
.bm-cat__go {
    position: absolute;
    right: 14px; bottom: 14px;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--bm-ink);
    color: var(--bm-bg);
    opacity: 0;
    transform: translate(-6px, 6px) scale(.6);
    transition: opacity .3s, transform .45s var(--bm-spring);
}
.bm-cat:hover .bm-cat__go { opacity: 1; transform: none; }

.bm-cat--lead {
    grid-column: span 2;
    grid-row: span 2;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 26px;
    background: var(--bm-ember);
    border-color: var(--bm-ember);
    color: #1B1612;
}
.bm-cat--lead::before { background: rgba(255, 255, 255, .22); }
.bm-cat--lead .bm-cat__no { color: rgba(244, 238, 228, .6); top: 22px; left: 26px; }
.bm-cat--lead .bm-cat__img {
    width: min(58%, 230px);
    height: auto;
    aspect-ratio: 1;
    align-self: flex-end;
    background: rgba(255, 255, 255, .55);
    margin-top: 10px;
}
.bm-cat--lead .bm-cat__name { font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; color: #F4EEE4; letter-spacing: -.035em; }
.bm-cat--lead .bm-cat__count { color: rgba(244, 238, 228, .78); }
.bm-cat--lead .bm-cat__go { background: #F4EEE4; color: var(--bm-ember-deep); opacity: 1; transform: none; width: 44px; height: 44px; right: 22px; bottom: 22px; }

/* ======================= PRODUCT CARD ======================= */
.bm-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--bm-radius);
    background: var(--bm-surface);
    border: 1px solid var(--bm-line);
    padding: 8px;
    transition: transform .5s var(--bm-ease), box-shadow .5s var(--bm-ease), border-color .3s;
}
.bm-card:hover { transform: translateY(-6px); box-shadow: var(--bm-shadow); border-color: transparent; }
.bm-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    border-radius: 14px;
    background: var(--bm-photo);
    overflow: hidden;
}
.bm-card__media img {
    position: absolute;
    inset: 12%;
    width: 76%;
    height: 76%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .7s var(--bm-ease);
}
.bm-card:hover .bm-card__media img { transform: translateY(-5px) scale(1.06); }

.bm-card__tag {
    position: absolute;
    top: 16px; left: 16px;
    padding: 4px 9px;
    border-radius: 6px;
    background: var(--bm-ember);
    color: #1B1612;
    font-family: var(--bm-mono);
    font-size: 11.5px;
    font-weight: 600;
    transform: rotate(-5deg);
    box-shadow: 2px 2px 0 #1B1612;
    transition: transform .45s var(--bm-spring);
}
.bm-card:hover .bm-card__tag { transform: rotate(3deg) scale(1.06); }
.bm-card__rank {
    position: absolute;
    left: 12px;
    bottom: 6px;
    font-family: var(--bm-display);
    font-weight: 800;
    font-size: 46px;
    line-height: 1;
    letter-spacing: -.05em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(27, 22, 18, .5);
    pointer-events: none;
    transition: -webkit-text-stroke-color .3s, color .3s;
}
.bm-card:hover .bm-card__rank { color: var(--bm-ember); -webkit-text-stroke-color: var(--bm-ember); }
.bm-card__peek {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 252, 247, .92);
    color: #1B1612;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .3s, transform .4s var(--bm-spring), background-color .2s;
}
.bm-card:hover .bm-card__peek,
.bm-card__peek:focus-visible { opacity: 1; transform: none; }
.bm-card__peek:hover { background: #1B1612; color: #fff; }

.bm-card__body { display: flex; flex-direction: column; gap: 10px; padding: 12px 6px 4px; flex: 1; }
.bm-card__name {
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.38;
    color: var(--bm-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.76em;
    transition: color .2s;
}
.bm-card__name:hover { color: var(--bm-ember); }
.bm-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.bm-card__price { display: flex; flex-direction: column; min-width: 0; }
.bm-card__price strong {
    font-family: var(--bm-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -.02em;
    color: var(--bm-ink);
    white-space: nowrap;
}
.bm-card__price s { font-family: var(--bm-mono); font-size: 12px; color: var(--bm-ink-faint); }

.bm-add { margin: 0; flex: none; }
.bm-add__btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    height: 40px;
    min-width: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 0;
    background: var(--bm-solid-bg);
    color: var(--bm-solid-fg);
    cursor: pointer;
    font-family: var(--bm-display);
    font-weight: 600;
    font-size: 13px;
    transition: background-color .25s, color .25s, gap .4s var(--bm-ease), transform .3s var(--bm-spring);
}
.bm-add__btn svg { flex: none; transition: transform .4s var(--bm-spring); }
.bm-add__btn span {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width .45s var(--bm-ease);
}
.bm-card:hover .bm-add__btn { background: var(--bm-ember); color: #1B1612; gap: 6px; }
.bm-card:hover .bm-add__btn span { max-width: 110px; }
.bm-add__btn:active { transform: scale(.94); }
.bm-add__btn.is-busy svg { animation: bm-spin .7s linear infinite; }
.bm-add__btn.is-done { background: var(--bm-leaf) !important; color: #fff !important; }
.bm-add__btn.is-done svg { transform: rotate(45deg); }

@media (hover: none) {
    .bm-card__peek { opacity: 1; transform: none; }
}

/* =========================== GRID =========================== */
.bm-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

/* =========================== RAIL =========================== */
.bm-rail { position: relative; min-width: 0; }
.bm-rail__track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 6px 2px 12px;
    margin: -6px -2px 0;
    cursor: grab;
}
.bm-rail__track::-webkit-scrollbar { display: none; }
.bm-rail__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.bm-rail__track.is-dragging a { pointer-events: none; }
.bm-rail__item { flex: 0 0 clamp(178px, 19vw, 232px); scroll-snap-align: start; }
.bm-rail__item--wide { flex-basis: clamp(260px, 28vw, 330px); }
.bm-rail__ctrl {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}
.bm-rail__bar {
    flex: 1;
    height: 2px;
    border-radius: 2px;
    background: var(--bm-line);
    overflow: hidden;
}
.bm-rail__bar i {
    display: block;
    height: 100%;
    width: var(--bm-thumb, 30%);
    background: var(--bm-ink);
    border-radius: 2px;
    transform: translateX(var(--bm-thumb-x, 0));
    transition: transform .15s linear;
}
.bm-rail.is-static .bm-rail__ctrl { display: none; }

/* ========================== FLASH ========================== */
.bm-flash__panel {
    display: grid;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
    padding: clamp(22px, 3vw, 36px);
    border-radius: 32px 8px 32px 32px;
    background: var(--bm-ember);
    color: #1B1612;
    position: relative;
    overflow: hidden;
}
.bm-flash__panel::after {
    /* faint dotted texture: printed-flyer feel */
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(27, 22, 18, .14) 1px, transparent 1.2px);
    background-size: 14px 14px;
    mask-image: linear-gradient(115deg, #000 0%, transparent 45%);
    -webkit-mask-image: linear-gradient(115deg, #000 0%, transparent 45%);
    pointer-events: none;
}
.bm-flash__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; position: relative; z-index: 1; }
.bm-flash__bolt {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: #1B1612;
    color: var(--bm-ember);
    animation: bm-zap 2.8s ease-in-out infinite;
}
@keyframes bm-zap {
    0%, 86%, 100% { transform: rotate(0); }
    89% { transform: rotate(-12deg) scale(1.08); }
    93% { transform: rotate(9deg) scale(1.08); }
}
.bm-home .bm-flash__title {
    font-family: var(--bm-display);
    font-weight: 800;
    font-size: clamp(32px, 3.4vw, 46px);
    letter-spacing: -.045em;
    line-height: .95;
    color: #1B1612;
}
.bm-flash__sub { margin: 0; font-size: 14.5px; line-height: 1.55; color: rgba(27, 22, 18, .75); max-width: 30ch; }
.bm-clock { display: flex; gap: 8px; margin: 4px 0 8px; }
.bm-clock__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 58px;
    padding: 10px 6px 8px;
    border-radius: 12px;
    background: #1B1612;
    color: #FFF8EE;
}
.bm-clock__num {
    font-family: var(--bm-mono);
    font-weight: 600;
    font-size: 24px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    display: inline-block;
}
.bm-clock__num.is-tick { animation: bm-tick .45s var(--bm-ease); }
@keyframes bm-tick {
    0% { transform: translateY(-40%); opacity: 0; }
    100% { transform: none; opacity: 1; }
}
.bm-clock__lbl {
    margin-top: 6px;
    font-family: var(--bm-mono);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 248, 238, .55);
}
.bm-clock.is-over { font-family: var(--bm-mono); font-weight: 600; }
.bm-flash .bm-rail { position: relative; z-index: 1; }
.bm-flash .bm-card { border-color: transparent; }
.bm-flash .bm-round { background: rgba(255, 255, 255, .3); border-color: rgba(27, 22, 18, .25); color: #1B1612; }
.bm-flash .bm-round:hover { background: #1B1612; color: var(--bm-ember); }
.bm-flash .bm-rail__bar { background: rgba(27, 22, 18, .2); }
.bm-flash .bm-rail__bar i { background: #1B1612; }

/* ========================== TABS ========================== */
.bm-tabs {
    position: relative;
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: var(--bm-surface-2);
}
.bm-tabs__btn {
    position: relative;
    z-index: 1;
    border: 0;
    background: transparent;
    padding: 9px 18px;
    border-radius: 999px;
    font-family: var(--bm-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--bm-ink-soft) !important;
    cursor: pointer;
    white-space: nowrap;
    transition: color .3s;
}
.bm-tabs__btn small { font-family: var(--bm-mono); font-size: 11px; opacity: .6; margin-left: 4px; }
.bm-tabs__btn.is-active { color: var(--bm-solid-fg) !important; }
.bm-tabs__ink {
    position: absolute;
    top: 4px; bottom: 4px; left: 0;
    width: 0;
    border-radius: 999px;
    background: var(--bm-solid-bg);
    transition: transform .5s var(--bm-spring), width .5s var(--bm-spring);
}
.bm-tabs--chips {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 100%;
    margin-bottom: 22px;
}
.bm-tabs--chips::-webkit-scrollbar { display: none; }
.bm-panel { display: none; }
.bm-panel.is-active { display: block; animation: bm-panel-in .55s var(--bm-ease); }
@keyframes bm-panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ========================== PROMO ========================== */
.bm-promo__card {
    position: relative;
    display: block;
    border-radius: 32px 32px 8px 32px;
    overflow: hidden;
    box-shadow: var(--bm-shadow);
}
.bm-promo__card img { width: 100%; height: auto; transition: transform 1.2s var(--bm-ease); }
.bm-promo__card:hover img { transform: scale(1.03); }
.bm-promo__cta {
    position: absolute;
    right: 18px; bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    background: #FFF8EE;
    color: #1B1612;
    font-family: var(--bm-display);
    font-weight: 700;
    transition: background-color .3s, gap .4s var(--bm-ease);
}
.bm-promo__card:hover .bm-promo__cta { background: var(--bm-ember); gap: 16px; }

/* ========================== BRANDS ========================== */
.bm-belt {
    overflow: hidden;
    padding: 6px 0 30px;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.bm-belt__track { display: flex; width: max-content; animation: bm-marquee var(--bm-belt-speed, 40s) linear infinite; }
.bm-belt:hover .bm-belt__track { animation-play-state: paused; }
.bm-belt__list { display: flex; gap: 14px; padding-right: 14px; flex: none; }
.bm-belt__logo {
    display: grid;
    place-items: center;
    width: 156px;
    height: 76px;
    padding: 14px 22px;
    border-radius: 16px;
    background: #FFFCF7;
    border: 1px solid var(--bm-line);
    transition: transform .4s var(--bm-spring), box-shadow .4s;
}
.bm-belt__logo img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .7;
    transition: filter .3s, opacity .3s;
}
.bm-belt__logo:hover { transform: translateY(-4px) rotate(-1.5deg); box-shadow: var(--bm-shadow); }
.bm-belt__logo:hover img { filter: none; opacity: 1; }

.bm-brandbox {
    padding: clamp(18px, 2.4vw, 28px);
    border-radius: 28px;
    background: var(--bm-surface);
    border: 1px solid var(--bm-line);
}
.bm-brandbox .bm-card { background: var(--bm-bg); }
.bm-brandbox__more { margin-top: 18px; }

/* ====================== DEAL + JUST FOR YOU ====================== */
.bm-deal__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}
.bm-deal__grid--single { grid-template-columns: minmax(0, 1fr); }
.bm-dotd {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: clamp(22px, 3vw, 40px);
    border-radius: 32px 32px 32px 8px;
    background: var(--bm-surface-2);
    overflow: hidden;
}
.bm-dotd__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; position: relative; z-index: 1; }
.bm-home .bm-dotd__title {
    font-family: var(--bm-display);
    font-weight: 700;
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.1;
    letter-spacing: -.03em;
}
.bm-dotd__title a:hover { color: var(--bm-ember); }
.bm-dotd__price strong {
    display: block;
    font-family: var(--bm-display);
    font-weight: 800;
    font-size: clamp(30px, 3vw, 42px);
    letter-spacing: -.04em;
    color: var(--bm-ember);
    line-height: 1;
}
.bm-dotd__price s { font-family: var(--bm-mono); font-size: 14px; color: var(--bm-ink-faint); }
.bm-dotd__art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.bm-dotd__disc {
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    background: var(--bm-photo);
    box-shadow: inset 0 -18px 40px rgba(27, 22, 18, .08);
}
.bm-dotd__art img {
    position: relative;
    width: 76%;
    height: 76%;
    object-fit: contain;
    mix-blend-mode: multiply;
    animation: bm-bob 6s ease-in-out infinite;
    transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
    transition: transform .4s var(--bm-ease);
}
@keyframes bm-bob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}
.bm-sticker {
    position: absolute;
    top: 4%; right: 2%;
    width: 84px; height: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1B1612;
    color: var(--bm-ember);
    font-family: var(--bm-display);
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
    transform: rotate(12deg);
    box-shadow: 0 0 0 5px var(--bm-surface-2), 0 0 0 6.5px #1B1612;
    animation: bm-wobble 4s ease-in-out infinite;
}
.bm-sticker small { font-family: var(--bm-mono); font-weight: 500; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #FFF8EE; margin-bottom: 4px; }
@keyframes bm-wobble {
    0%, 100% { transform: rotate(12deg); }
    50% { transform: rotate(4deg) scale(1.04); }
}

.bm-just {
    padding: clamp(20px, 2.6vw, 32px);
    border-radius: 32px;
    background: var(--bm-surface);
    border: 1px solid var(--bm-line);
}
.bm-just__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bm-just__head .bm-head__title { font-size: clamp(22px, 2.2vw, 30px); }
.bm-mini {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 4px;
    border-bottom: 1px dashed var(--bm-line);
    transition: padding .35s var(--bm-ease), background-color .3s;
    border-radius: 10px;
}
.bm-just__list li:last-child .bm-mini { border-bottom: 0; }
.bm-mini:hover { padding-left: 12px; background: var(--bm-ember-wash); }
.bm-mini__no { font-family: var(--bm-mono); font-size: 12px; color: var(--bm-ink-faint); width: 20px; flex: none; }
.bm-mini__img { width: 54px; height: 54px; flex: none; border-radius: 12px; background: var(--bm-photo); display: grid; place-items: center; overflow: hidden; }
.bm-mini__img img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.bm-mini__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.bm-mini__name { font-size: 14px; font-weight: 500; color: var(--bm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-mini__price { font-family: var(--bm-display); font-weight: 700; font-size: 15px; color: var(--bm-ember); }
.bm-mini__go { flex: none; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .35s var(--bm-ease); }
.bm-mini:hover .bm-mini__go { opacity: 1; transform: none; }

/* ======================= ORDER AGAIN ======================= */
.bm-receipt {
    height: 100%;
    padding: 18px;
    border-radius: 18px;
    background: var(--bm-surface);
    border: 1.5px dashed var(--bm-line);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.bm-receipt__top { display: flex; justify-content: space-between; font-family: var(--bm-mono); font-size: 12px; color: var(--bm-ink-soft); }
.bm-receipt__id { color: var(--bm-ink); font-weight: 600; }
.bm-receipt__thumbs { display: flex; gap: 8px; }
.bm-receipt__thumbs img { width: 52px; height: 52px; border-radius: 12px; object-fit: contain; background: var(--bm-photo); padding: 4px; }
.bm-receipt__more { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--bm-surface-2); font-family: var(--bm-mono); font-size: 13px; }
.bm-receipt__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; }
.bm-receipt__foot small { display: block; font-family: var(--bm-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--bm-leaf); }
.bm-receipt__foot strong { font-family: var(--bm-display); font-size: 20px; letter-spacing: -.02em; }

/* ========================== STORES ========================== */
.bm-stores__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bm-store {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--bm-surface);
    border: 1px solid var(--bm-line);
    transition: transform .45s var(--bm-ease), box-shadow .45s, border-color .3s;
}
.bm-store img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex: none; background: var(--bm-photo); }
.bm-store__text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.bm-store__name { font-family: var(--bm-display); font-weight: 600; font-size: 15.5px; color: var(--bm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-store__count { font-family: var(--bm-mono); font-size: 12px; color: var(--bm-ink-soft); }
.bm-store__go { margin-left: auto; flex: none; opacity: .35; transition: opacity .3s, transform .4s var(--bm-spring); }
.bm-store:hover { transform: translateY(-4px); box-shadow: var(--bm-shadow); border-color: transparent; }
.bm-store:hover .bm-store__go { opacity: 1; transform: translate(2px, -2px); color: var(--bm-ember); }

/* ======================= CATEGORY ROWS ======================= */
.bm-row__grid {
    display: grid;
    grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
    gap: clamp(18px, 2.4vw, 32px);
    align-items: start;
    border-top: 1px solid var(--bm-line);
    padding-top: clamp(22px, 2.6vw, 32px);
}
.bm-row__side { position: sticky; top: 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.bm-row__no {
    font-family: var(--bm-display);
    font-weight: 800;
    font-size: clamp(52px, 5vw, 76px);
    line-height: .85;
    letter-spacing: -.06em;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--bm-ember);
}
.bm-home .bm-row__title {
    font-family: var(--bm-display);
    font-weight: 700;
    font-size: clamp(22px, 2vw, 28px);
    letter-spacing: -.03em;
    line-height: 1.08;
}
.bm-row + .bm-row { padding-top: clamp(28px, 3.4vw, 44px); }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1199px) {
    .bm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .bm-grid > :nth-child(n+9) { display: none; }
}
@media (max-width: 991px) {
    .bm-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .bm-hero__stage { order: -1; }
    .bm-hero__frame { aspect-ratio: 16 / 9; }
    .bm-stamp { left: auto; right: 14px; bottom: -26px; width: 86px; }
    .bm-hero__meta { padding-left: 0; padding-right: 100px; }
    .bm-cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bm-cat--lead { grid-row: span 1; grid-column: span 3; flex-direction: row; align-items: center; }
    .bm-cat--lead .bm-cat__img { order: 2; width: 120px; margin: 0 0 0 auto; }
    .bm-cat--lead .bm-cat__go { display: none; }
    .bm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bm-grid > :nth-child(n+7) { display: none; }
    .bm-flash__panel { grid-template-columns: minmax(0, 1fr); }
    .bm-deal__grid { grid-template-columns: minmax(0, 1fr); }
    .bm-stores__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bm-row__grid { grid-template-columns: minmax(0, 1fr); }
    .bm-row__side { position: static; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
    .bm-row__side .bm-link { margin-left: auto; }
    .bm-row__no { font-size: 40px; }
}
@media (max-width: 575px) {
    .bm-hero__title,
    .bm-home .bm-hero__title { font-size: clamp(36px, 11vw, 48px); }
    .bm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bm-stats__item, .bm-stats__item + .bm-stats__item { padding-inline: 10px; }
    .bm-stats__item:first-child { padding-left: 0; }
    .bm-hero__actions .bm-btn { flex: 1 1 auto; }
    .bm-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; grid-auto-rows: auto; }
    .bm-cat { flex-direction: column; align-items: flex-start; padding: 16px; gap: 12px; }
    .bm-cat__no { top: 12px; left: auto; right: 14px; }
    .bm-cat__img { width: 60px; height: 60px; }
    .bm-cat__go { display: none; }
    .bm-cat--lead { grid-column: span 2; }
    .bm-cat--lead .bm-cat__img { width: 96px; }
    .bm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .bm-grid > :nth-child(n+7) { display: flex; }
    .bm-grid > :nth-child(n+9) { display: none; }
    .bm-card__price strong { font-size: 16px; }
    .bm-add__btn { height: 36px; min-width: 36px; padding: 0 10px; }
    .bm-clock__cell { min-width: 0; flex: 1; }
    .bm-dotd { grid-template-columns: minmax(0, 1fr); }
    .bm-dotd__art { order: -1; max-width: 260px; justify-self: center; width: 100%; }
    .bm-stores__grid { grid-template-columns: minmax(0, 1fr); }
    .bm-tabs:not(.bm-tabs--chips) { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
    .bm-head__side { width: 100%; justify-content: space-between; }
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
    .bm-home *,
    .bm-home *::before,
    .bm-home *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        transition-delay: 0s !important;
    }
    .bm-ticker__track, .bm-belt__track { animation: none !important; }
    .bm-js .bm-home [data-bm-reveal] { opacity: 1; transform: none; }
    .bm-w > span { transform: none; }
    .bm-scribble__line path { stroke-dashoffset: 0; }
}

/* ============================================================
   Hero promo slider (shown while no admin banners exist)
   ============================================================ */
.bm-promo {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    outline: none;
    isolation: isolate;
}
.bm-promo:focus-visible { box-shadow: 0 0 0 3px var(--bm-bg), 0 0 0 6px var(--bm-ember); }
.bm-promo__slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: 8px;
    padding: clamp(22px, 3.4vw, 44px) clamp(22px, 3.4vw, 46px) clamp(56px, 6vw, 72px);
    opacity: 0;
    visibility: hidden;
    transform: translateX(28px) scale(1.02);
    transition: opacity .8s var(--bm-ease), transform .9s var(--bm-ease), visibility 0s linear .9s;
}
.bm-promo__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .8s var(--bm-ease), transform .9s var(--bm-ease), visibility 0s;
    z-index: 1;
}
.bm-promo__slide.is-leaving { transform: translateX(-28px) scale(.98); }

.bm-promo__slide--fashion {
    background:
        radial-gradient(circle at 82% 26%, rgba(14, 124, 102, .14), transparent 46%),
        radial-gradient(circle at 10% 110%, rgba(232, 85, 61, .12), transparent 50%),
        #F4EEE4;
    color: #1B1612;
}
.bm-promo__slide--fresh {
    background:
        radial-gradient(circle at 78% 22%, rgba(255, 255, 255, .7), transparent 48%),
        radial-gradient(circle at 0% 100%, rgba(14, 124, 102, .18), transparent 55%),
        #E2F0E6;
    color: #10251E;
}
.bm-promo__slide--tech {
    background:
        radial-gradient(circle at 80% 30%, rgba(232, 85, 61, .26), transparent 46%),
        radial-gradient(circle at 0% 100%, rgba(14, 124, 102, .35), transparent 55%),
        #1B1612;
    color: #F4EEE4;
}

.bm-promo__copy { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(8px, 1vw, 14px); min-width: 0; }
.bm-promo__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--bm-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .72;
}
.bm-promo__kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: .6; }
.bm-promo__slide--tech .bm-promo__kicker::before { background: #E8553D; opacity: 1; }
.bm-promo__title {
    margin: 0;
    font-family: var(--bm-display);
    font-weight: 800;
    font-size: clamp(24px, 2.6vw, 40px);
    line-height: 1.02;
    letter-spacing: -.035em;
    color: inherit;
    text-wrap: balance;
}
.bm-promo__sub { margin: 0; font-size: clamp(13px, 1vw, 15px); line-height: 1.5; opacity: .74; max-width: 30ch; }
.bm-promo__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    background: #1B1612;
    color: #F4EEE4 !important;
    transition: background-color .25s var(--bm-ease), transform .3s var(--bm-spring), gap .3s var(--bm-ease);
}
.bm-promo__cta:hover { background: var(--bm-ember); gap: 14px; transform: translateY(-2px); }
.bm-promo__slide--tech .bm-promo__cta { background: #E8553D; color: #fff !important; }
.bm-promo__slide--tech .bm-promo__cta:hover { background: #F4EEE4; color: #1B1612 !important; }

.bm-promo__art { align-self: stretch; display: grid; place-items: center; min-width: 0; }
.bm-promo__art svg { width: 100%; max-height: 100%; height: auto; overflow: visible; }
.bm-promo__slide .bm-promo__copy > *,
.bm-promo__slide .bm-promo__art {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s var(--bm-ease), transform .7s var(--bm-ease);
}
.bm-promo__slide.is-active .bm-promo__copy > *,
.bm-promo__slide.is-active .bm-promo__art { opacity: 1; transform: none; }
.bm-promo__slide.is-active .bm-promo__copy > :nth-child(1) { transition-delay: .15s; }
.bm-promo__slide.is-active .bm-promo__copy > :nth-child(2) { transition-delay: .22s; }
.bm-promo__slide.is-active .bm-promo__copy > :nth-child(3) { transition-delay: .3s; }
.bm-promo__slide.is-active .bm-promo__copy > :nth-child(4) { transition-delay: .38s; }
.bm-promo__slide.is-active .bm-promo__art { transition-delay: .2s; }

.bm-art-bob { animation: bm-art-bob 4.5s ease-in-out infinite; transform-box: fill-box; }
.bm-art-sway { animation: bm-art-sway 5s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; }
.bm-art-glow { animation: bm-art-glow 3s ease-in-out infinite; }
@keyframes bm-art-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes bm-art-sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes bm-art-glow { 0%, 100% { opacity: .12; } 50% { opacity: .28; } }

.bm-promo__nav {
    position: absolute;
    right: clamp(16px, 2.4vw, 28px);
    bottom: clamp(14px, 2vw, 22px);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 252, 247, .78);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px -14px rgba(27, 22, 18, .6);
}
.bm-promo__arrow {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #1B1612;
    transition: background-color .2s, color .2s, transform .2s var(--bm-spring);
}
.bm-promo__arrow:hover { background: #1B1612; color: #F4EEE4; }
.bm-promo__arrow:active { transform: scale(.9); }
.bm-promo__dots { display: flex; align-items: center; gap: 6px; padding-inline: 2px; }
.bm-promo__dot {
    position: relative;
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(27, 22, 18, .22);
    overflow: hidden;
    transition: width .45s var(--bm-ease), background-color .3s;
}
.bm-promo__dot:hover { background: rgba(27, 22, 18, .4); }
.bm-promo__dot.is-active { width: 34px; background: rgba(27, 22, 18, .16); }
.bm-promo__dot i {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--bm-ember);
    transform: scaleX(0);
    transform-origin: left center;
}
.bm-promo__dot.is-active i { transform: scaleX(1); }
.bm-promo.is-playing .bm-promo__dot.is-active i { animation: bm-promo-progress var(--bm-promo-delay, 5000ms) linear both; }
.bm-promo.is-paused .bm-promo__dot.is-active i { animation-play-state: paused; }
@keyframes bm-promo-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* the stamp must stay above the slides */
.bm-hero__frame .bm-stamp { z-index: 4; }

@media (max-width: 575px) {
    .bm-hero__frame:has(.bm-promo) { aspect-ratio: 1 / .92; }
    .bm-promo__slide { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); padding: 22px 22px 64px; }
    .bm-promo__art { max-height: 140px; justify-self: end; width: 56%; }
    .bm-promo__sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .bm-promo__slide,
    .bm-promo__slide.is-active,
    .bm-promo__slide .bm-promo__copy > *,
    .bm-promo__slide .bm-promo__art { transition: none !important; transform: none !important; }
    .bm-art-bob, .bm-art-sway, .bm-art-glow { animation: none !important; }
}

/* brand belt: logo + name, and a clean name-only chip when the brand has no logo yet */
.bm-belt__logo { display: flex; align-items: center; justify-content: center; gap: 10px; width: auto; min-width: 156px; }
.bm-belt__name {
    font-family: var(--bm-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -.01em;
    color: var(--bm-ink-soft);
    white-space: nowrap;
    transition: color .3s;
}
.bm-belt__logo:hover .bm-belt__name { color: var(--bm-ink); }
.bm-belt__logo img[src*="/placeholder/"] { display: none; }
.bm-belt__logo:has(img[src*="/placeholder/"])::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bm-ember);
    box-shadow: 0 0 0 4px var(--bm-ember-wash);
}
.bm-belt__logo:has(img[src*="/placeholder/"]) .bm-belt__name { font-size: 18px; color: var(--bm-ink); }

/* ---------- Just for you: grid when there is no deal of the day ---------- */
.bm-deal__grid--single .bm-just{background:transparent;border:0;box-shadow:none;padding:0}
.bm-deal__grid--single .bm-just__head{margin-bottom:22px}
.bm-deal__grid--single .bm-just__list{display:grid;grid-template-columns:1.25fr 1fr 1fr;grid-auto-rows:1fr;gap:16px}
.bm-deal__grid--single .bm-just__list li{border:0!important;padding:0!important;margin:0!important}
.bm-deal__grid--single .bm-mini{position:relative;height:100%;display:grid;grid-template-columns:96px 1fr;align-items:center;gap:16px;padding:14px 16px 14px 14px;background:var(--bm-surface);border:1px solid var(--bm-line);border-radius:20px;transition:transform .45s var(--bm-ease),box-shadow .45s var(--bm-ease),border-color .3s}
.bm-deal__grid--single .bm-mini:hover{transform:translateY(-4px);box-shadow:var(--bm-shadow);border-color:transparent}
.bm-deal__grid--single .bm-mini__img{width:96px;height:96px;border-radius:14px;background:var(--bm-photo);display:grid;place-items:center;overflow:hidden}
.bm-deal__grid--single .bm-mini__img img{width:72%;height:72%;object-fit:contain;mix-blend-mode:multiply;transition:transform .6s var(--bm-ease)}
.bm-deal__grid--single .bm-mini:hover .bm-mini__img img{transform:scale(1.08) rotate(-3deg)}
.bm-deal__grid--single .bm-mini__no{position:absolute;top:10px;right:14px;font-family:var(--bm-mono);font-size:11px;color:var(--bm-ink-faint)}
.bm-deal__grid--single .bm-mini__text{display:flex;flex-direction:column;gap:6px;min-width:0}
.bm-deal__grid--single .bm-mini__name{font-weight:700;font-size:15px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bm-deal__grid--single .bm-mini__price{font-family:var(--bm-mono);font-weight:600;font-size:15px;color:var(--bm-ember)}
.bm-deal__grid--single .bm-mini__go{position:absolute;right:14px;bottom:14px;width:30px;height:30px;padding:7px;border-radius:50%;background:var(--bm-solid-bg);color:var(--bm-solid-fg);opacity:0;transform:scale(.6) rotate(-45deg);transition:transform .45s var(--bm-spring),opacity .25s,background-color .2s}
.bm-deal__grid--single .bm-mini:hover .bm-mini__go{opacity:1;transform:none;background:var(--bm-ember)}
.bm-deal__grid--single .bm-just__list li:first-child{grid-row:span 2}
.bm-deal__grid--single .bm-just__list li:first-child .bm-mini{grid-template-columns:1fr;grid-template-rows:1fr auto;align-items:end;padding:20px;background:linear-gradient(160deg,var(--bm-ember) 0%,var(--bm-ember-deep) 100%);border:0;color:#F4EEE4}
.bm-deal__grid--single .bm-just__list li:first-child .bm-mini::before{content:attr(data-pick-label);position:absolute;top:18px;left:18px;z-index:2;font-family:var(--bm-mono);font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;background:#E8553D;color:#fff;padding:6px 10px;border-radius:8px 12px 9px 13px;transform:rotate(-4deg);box-shadow:0 2px 0 #C2412B}
.bm-deal__grid--single .bm-just__list li:first-child .bm-mini__img{width:100%;height:100%;min-height:190px;background:rgba(255,255,255,.1);border-radius:16px}
.bm-deal__grid--single .bm-just__list li:first-child .bm-mini__img img{width:58%;height:auto;mix-blend-mode:normal}
.bm-deal__grid--single .bm-just__list li:first-child .bm-mini__name{font-size:22px;color:#F4EEE4;letter-spacing:-.02em}
.bm-deal__grid--single .bm-just__list li:first-child .bm-mini__price{color:#F4EEE4;font-size:18px}
.bm-deal__grid--single .bm-just__list li:first-child .bm-mini__no{color:rgba(244,238,228,.6);top:20px;right:20px}
.bm-deal__grid--single .bm-just__list li:first-child .bm-mini__go{opacity:1;transform:none;background:#F4EEE4;color:#1B1612;width:38px;height:38px;padding:9px;right:20px;bottom:20px}
@media (min-width:992px){.bm-deal__grid--single .bm-just__list li:nth-child(n+6){display:none}}
@media (max-width:991px){.bm-deal__grid--single .bm-just__list{grid-template-columns:1fr 1fr}.bm-deal__grid--single .bm-just__list li:first-child{grid-column:1/-1;grid-row:auto}.bm-deal__grid--single .bm-just__list li:first-child .bm-mini__img{min-height:170px}}
@media (max-width:575px){.bm-deal__grid--single .bm-just__list{grid-template-columns:1fr}.bm-deal__grid--single .bm-mini{grid-template-columns:76px 1fr}.bm-deal__grid--single .bm-mini__img{width:76px;height:76px}}
