/* =====================================================
   MBK HOMEPAGE ENGINE v4
   Mobile first. Same visual language as v3, with
   readable type sizes (v3 used 7–9px on mobile).
   ===================================================== */

body.home .site-main,
body.home .site-main .page-content,
body.home .site-main .entry-content {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.mbk-homepage {
    --mbk-green: #087443;
    --mbk-orange: #ff6900;
    --mbk-orange-text: #c74f00;
    --mbk-dark: #101715;
    --mbk-border: #e7ebe9;
    --mbk-muted: #5d6662;
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 10px 16px 28px;
    box-sizing: border-box;
}

.mbk-homepage *,
.mbk-homepage *::before,
.mbk-homepage *::after {
    box-sizing: border-box;
}

.mbk-homepage a:focus-visible,
.mbk-homepage button:focus-visible {
    outline: 2px solid var(--mbk-green);
    outline-offset: 2px;
}

/* ---------- section rhythm ---------- */

.mbk-hp-section { margin: 18px 0; }

.mbk-hp-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.mbk-hp-section-head h1,
.mbk-hp-section-head h2 {
    margin: 0;
    color: var(--mbk-dark);
    line-height: 1.15;
}

.mbk-hp-section-head h1 { font-size: 22px; }
.mbk-hp-section-head h2 { font-size: 18px; }

.mbk-hp-kicker {
    display: block;
    color: var(--mbk-orange-text);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 3px;
}

/* ---------- hero ---------- */

.mbk-hp-hero { margin: 4px 0 17px; }

.mbk-hp-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    gap: 9px;
    border-radius: 13px;
}

.mbk-hp-slider::-webkit-scrollbar { display: none; }

.mbk-hp-hero-product {
    flex: 0 0 100%;
    scroll-snap-align: start;
    height: 220px;
    border-radius: 13px;
    overflow: hidden;
    background: linear-gradient(120deg, #f3f6f3, #ffffff);
    border: 1px solid var(--mbk-border);
}

.mbk-hp-hero-product > a {
    height: 100%;
    display: grid;
    grid-template-columns: 48% 52%;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.mbk-hp-hero-copy {
    padding: 16px;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.mbk-hp-hero-copy > span {
    color: var(--mbk-orange-text);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.mbk-hp-hero-copy h2 {
    margin: 6px 0 7px;
    font-size: 19px;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--mbk-dark);
}

.mbk-hp-hero-price {
    color: var(--mbk-orange-text);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 10px;
}

.mbk-hp-hero-copy strong {
    display: inline-flex;
    padding: 8px 12px;
    background: var(--mbk-green);
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
}

.mbk-hp-hero-image {
    height: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mbk-hp-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply;
}

.mbk-hp-slider-controls { display: flex; gap: 6px; }

.mbk-hp-slider-controls button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--mbk-border);
    background: #fff;
    color: #444;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

/* ---------- categories ---------- */

.mbk-hp-categories {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
}

.mbk-hp-category {
    min-width: 0;
    text-align: center;
    text-decoration: none;
    color: var(--mbk-dark);
    border: 1px solid var(--mbk-border);
    border-radius: 12px;
    background: #fff;
    padding: 13px 6px 10px;
    min-height: 94px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.mbk-hp-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .07);
}

.mbk-hp-category-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mbk-green);
}

.mbk-hp-category-icon svg { width: 30px; height: 30px; display: block; stroke: currentColor; }

.mbk-hp-category-ecole-fournitures .mbk-hp-category-icon,
.mbk-hp-category-cuisine-electromenager .mbk-hp-category-icon,
.mbk-hp-category-non-classe .mbk-hp-category-icon,
.mbk-hp-category-chargeurs-cables .mbk-hp-category-icon { color: var(--mbk-orange); }

.mbk-hp-category strong {
    display: block;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--mbk-dark);
}

@media (max-width: 1100px) {
    .mbk-hp-categories { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .mbk-hp-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
    .mbk-hp-category { min-height: 88px; padding: 10px 4px 8px; }
    .mbk-hp-category-icon { width: 44px; height: 44px; margin-bottom: 6px; }
    .mbk-hp-category strong { font-size: 11px; }
}

/* ---------- product cards ---------- */

.mbk-hp-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mbk-hp-product-strip {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    padding-bottom: 2px;
}

.mbk-hp-product-strip::-webkit-scrollbar { display: none; }
.mbk-hp-product-strip .mbk-hp-product { flex: 0 0 142px; }

.mbk-hp-product {
    min-width: 0;
    border: 1px solid var(--mbk-border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
}

.mbk-hp-product-link { color: inherit; text-decoration: none; display: block; }

.mbk-hp-product-image {
    aspect-ratio: 1 / .94;
    background: #f6f7f6;
    position: relative;
}

.mbk-hp-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.mbk-hp-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--mbk-green);
}

.mbk-hp-sale {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--mbk-orange);
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
}

.mbk-hp-heart {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    font-size: 16px;
    line-height: 30px;
    padding: 0;
    cursor: pointer;
    color: var(--mbk-dark);
}

.mbk-hp-heart[aria-pressed="true"] { color: #e0245e; }

.mbk-hp-product-body { padding: 8px; }

.mbk-hp-reason {
    position: absolute;
    left: 6px;
    bottom: 6px;
    max-width: calc(100% - 12px);
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    color: var(--mbk-green);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mbk-hp-product-body h3 {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    height: 31px;
    overflow: hidden;
    color: var(--mbk-dark);
}

.mbk-hp-price {
    color: var(--mbk-orange-text);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
}

.mbk-hp-price del { color: var(--mbk-muted); font-weight: 500; font-size: 11px; }
.mbk-hp-price ins { text-decoration: none; }

.mbk-hp-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 3px;
    font-size: 10px;
    min-height: 12px;
}

.mbk-hp-rating small { color: var(--mbk-muted); font-size: 11px; }

.mbk-hp-more-wrap { display: flex; justify-content: center; margin-top: 14px; }

.mbk-hp-more {
    border: 1px solid var(--mbk-green);
    background: #fff;
    color: var(--mbk-green);
    font-weight: 800;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
}

.mbk-hp-more[disabled] { opacity: .55; cursor: default; }

/* ---------- ads ---------- */

.mbk-hp-ad {
    display: flex;
    min-height: 92px;
    margin: 17px 0;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--mbk-dark);
    background: #eef3ee;
}

.mbk-hp-ad img { width: 38%; object-fit: cover; }

.mbk-hp-ad-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mbk-hp-ad-content span { color: var(--mbk-orange-text); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.mbk-hp-ad-content strong { font-size: 15px; line-height: 1.15; margin: 3px 0; }
.mbk-hp-ad-content p { margin: 0 0 6px; font-size: 12px; line-height: 1.3; color: var(--mbk-muted); }

.mbk-hp-ad-content em {
    width: fit-content;
    padding: 6px 10px;
    background: var(--mbk-green);
    color: #fff;
    border-radius: 5px;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

/* ---------- discovery ---------- */

.mbk-hp-discovery {
    margin: 20px 0 12px;
    border-radius: 11px;
    padding: 18px;
    background: var(--mbk-dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mbk-hp-discovery span { color: #ff8b36; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.mbk-hp-discovery h2 { margin: 4px 0; font-size: 18px; line-height: 1.1; color: #fff; }
.mbk-hp-discovery p { margin: 0; color: #cbd3cf; font-size: 13px; line-height: 1.4; }

.mbk-hp-discovery a {
    width: fit-content;
    padding: 9px 13px;
    background: var(--mbk-orange);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

/* ---------- tablet / desktop ---------- */

@media (min-width: 600px) {
    .mbk-homepage { padding: 14px 20px 35px; }
    .mbk-hp-hero-product { height: 280px; }
    .mbk-hp-hero-copy h2 { font-size: 22px; -webkit-line-clamp: 4; }
    .mbk-hp-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
    .mbk-hp-product-strip .mbk-hp-product { flex-basis: 170px; }
}

@media (min-width: 1000px) {
    .mbk-homepage { padding: 16px 24px 40px; }
    .mbk-hp-section { margin: 22px 0; }
    .mbk-hp-hero-product { height: 300px; }
    .mbk-hp-hero-copy { padding: 22px; }
    .mbk-hp-hero-copy h2 { font-size: 27px; max-width: 470px; }
    .mbk-hp-hero-price { font-size: 16px; }
    .mbk-hp-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
    .mbk-hp-product-strip .mbk-hp-product { flex-basis: 180px; }
    .mbk-hp-section-head h2 { font-size: 20px; }
    .mbk-hp-discovery { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* =====================================================
   REELS
   ===================================================== */

.mbk-hp-reels { width: 100%; margin: 22px 0; position: relative; }
.mbk-hp-reels-head { margin-bottom: 12px; }
.mbk-hp-reels-carousel { position: relative; width: 100%; }

.mbk-hp-reels-status { min-height: 20px; color: var(--mbk-muted); font-size: 13px; padding: 8px 0; }
.mbk-hp-reels-status:empty { display: none; }

.mbk-hp-reels-feed {
    display: flex;
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 2px 1px 8px;
}

.mbk-hp-reels-feed::-webkit-scrollbar { display: none; }
.mbk-hp-reels.is-empty { display: none; }

.mbk-hp-reel {
    position: relative;
    flex: 0 0 220px;
    height: 300px;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .10);
    scroll-snap-align: start;
    isolation: isolate;
}

.mbk-hp-reel-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111;
}

.mbk-hp-reel-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .42) 32%, rgba(0, 0, 0, .04) 68%);
}

.mbk-hp-reel-content {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 4;
    color: #fff;
}

.mbk-hp-reel-title {
    margin: 0 0 5px;
    font-size: 13px;
    line-height: 1.28;
    font-weight: 800;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mbk-hp-reel-price { margin-bottom: 9px; color: #fff; font-size: 13px; font-weight: 800; }
.mbk-hp-reel-price del { opacity: .65; margin-right: 5px; }
.mbk-hp-reel-price ins { text-decoration: none; }

.mbk-hp-reel-shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 6px;
    background: var(--mbk-orange);
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
}

.mbk-hp-reel-shop:active { transform: scale(.97); }

.mbk-hp-reel-controls {
    position: absolute;
    right: 9px;
    top: 9px;
    z-index: 5;
    display: flex;
    gap: 6px;
}

.mbk-hp-reel-control {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .48);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mbk-hp-reel-control:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.mbk-hp-reel-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    z-index: 6;
    background: rgba(255, 255, 255, .18);
}

.mbk-hp-reel-progress-bar { width: 0; height: 100%; background: var(--mbk-orange); transition: width .15s linear; }

.mbk-hp-reel-loading {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    pointer-events: none;
}

.mbk-hp-reel.is-loaded .mbk-hp-reel-loading,
.mbk-hp-reel.is-playing .mbk-hp-reel-loading { display: none; }

.mbk-hp-reel-error {
    position: absolute;
    inset: 0;
    z-index: 7;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    color: #fff;
    font-size: 12px;
    background: rgba(0, 0, 0, .72);
}

.mbk-hp-reel.is-error .mbk-hp-reel-error { display: flex; }

.mbk-hp-reels-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--mbk-dark);
    box-shadow: 0 5px 18px rgba(0, 0, 0, .14);
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}

.mbk-hp-reels-arrow-prev { left: -14px; }
.mbk-hp-reels-arrow-next { right: -14px; }
.mbk-hp-reels-arrow:disabled { opacity: 0; pointer-events: none; }

@media (min-width: 600px) {
    .mbk-hp-reel { flex-basis: 235px; height: 320px; }
}

@media (min-width: 1000px) {
    .mbk-hp-reels { margin: 24px 0; }
    .mbk-hp-reels-feed { gap: 14px; }
    .mbk-hp-reel { flex-basis: 250px; height: 340px; }
    .mbk-hp-reel-title { font-size: 14px; }
    .mbk-hp-reels-arrow-prev { left: -18px; }
    .mbk-hp-reels-arrow-next { right: -18px; }
}

@media (max-width: 599px) {
    .mbk-hp-reels-feed { gap: 10px; padding-right: 20px; }
    .mbk-hp-reel { flex-basis: 78vw; height: calc(78vw * 1.35); }
    .mbk-hp-reels-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .mbk-hp-slider,
    .mbk-hp-reels-feed { scroll-behavior: auto; }
    .mbk-hp-category,
    .mbk-hp-reel-progress-bar { transition: none; }
}

/* =====================================================
   IMAGE LOCK — themes often ship `img { height: auto }`
   (or `.entry-content img`) after this stylesheet, which
   made product photos take their natural height: tall
   cards, cropped/zoomed hero. Images are now positioned
   inside fixed-ratio frames the theme cannot resize.
   ===================================================== */

.mbk-homepage .mbk-hp-hero-image {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: #fff;
}

.mbk-homepage .mbk-hp-hero-image img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 14px !important;
    box-sizing: border-box !important;
    object-fit: contain !important;
    object-position: center !important;
    mix-blend-mode: multiply;
}

.mbk-homepage .mbk-hp-product {
    display: flex;
    flex-direction: column;
}

.mbk-homepage .mbk-hp-product-link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
}

.mbk-homepage .mbk-hp-product-image {
    position: relative;
    width: 100%;
    height: 0 !important;
    padding-top: 100% !important;          /* square frame, works in every browser */
    aspect-ratio: auto !important;
    overflow: hidden;
    background: #f6f7f6;
    flex: 0 0 auto;
}

.mbk-homepage .mbk-hp-product-image img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
}

.mbk-homepage .mbk-hp-product-image .mbk-hp-no-image {
    position: absolute;
    inset: 0;
}

.mbk-homepage .mbk-hp-product-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 3px;
    min-height: 0;
}

.mbk-homepage .mbk-hp-product-body h3 {
    height: auto;
    min-height: 2.6em;
    max-height: 2.6em;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.mbk-homepage .mbk-hp-price {
    margin-top: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mbk-homepage .mbk-hp-product-strip {
    align-items: stretch;
}

.mbk-homepage .mbk-hp-product-grid {
    align-items: stretch;
}

/* A photo that could not be loaded at all: hide the alt text, keep the frame. */
.mbk-homepage img.is-broken {
    color: transparent !important;
    font-size: 0 !important;
    opacity: 0;
}

.mbk-homepage .mbk-hp-product-image img,
.mbk-homepage .mbk-hp-hero-image img {
    color: transparent;
    font-size: 0;
}

/* =====================================================
   4.1 — EXPERIENCES
   ===================================================== */

html.mbk-hp-lock, html.mbk-hp-lock body { overflow: hidden; }

/* ---------- story bubbles ---------- */
.mbk-homepage .mbk-hp-stories { margin: 2px -16px 10px; }
.mbk-homepage .mbk-hp-stories-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 6px 16px 4px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}
.mbk-homepage .mbk-hp-stories-track::-webkit-scrollbar { display: none; }
.mbk-homepage .mbk-hp-story {
    flex: 0 0 auto;
    width: 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--mbk-dark);
    text-decoration: none;
    cursor: pointer;
    scroll-snap-align: start;
    font: inherit;
}
.mbk-homepage .mbk-hp-story-ring {
    --ring: var(--mbk-green);
    position: relative;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    padding: 3px;
    background: var(--ring);
}
.mbk-homepage .mbk-hp-story-live .mbk-hp-story-ring { background: conic-gradient(var(--mbk-orange), #ffb703, var(--mbk-orange), #e63946, var(--mbk-orange)); animation: mbk-spin 6s linear infinite; }
.mbk-homepage .mbk-hp-story-event .mbk-hp-story-ring { background: var(--ring, var(--mbk-orange)); }
.mbk-homepage .mbk-hp-story-flash .mbk-hp-story-ring { background: linear-gradient(135deg, #e63946, var(--mbk-orange)); }
.mbk-homepage .mbk-hp-story-new .mbk-hp-story-ring { background: linear-gradient(135deg, var(--mbk-green), #2ec4b6); }
.mbk-homepage .mbk-hp-story-cat .mbk-hp-story-ring { background: #dfe7e3; }
.mbk-homepage .mbk-hp-story-img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 2px solid #fff;
    animation: none;
}
.mbk-homepage .mbk-hp-story-live .mbk-hp-story-img { animation: mbk-spin 6s linear infinite reverse; }
.mbk-homepage .mbk-hp-story-img img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    display: block;
}
.mbk-homepage .mbk-hp-story-letter {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 22px;
    color: var(--mbk-green);
}
.mbk-homepage .mbk-hp-story-ring em {
    position: absolute;
    left: 50%;
    bottom: -4px;
    transform: translateX(-50%);
    padding: 1px 6px;
    border-radius: 999px;
    background: #e63946;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    font-style: normal;
    white-space: nowrap;
}
.mbk-homepage .mbk-hp-story-label {
    max-width: 74px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@keyframes mbk-spin { to { transform: rotate(360deg); } }

/* ---------- badges, countdowns ---------- */
.mbk-homepage .mbk-hp-badge {
    position: absolute;
    left: 6px;
    bottom: 6px;
    z-index: 2;
    max-width: calc(100% - 12px);
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    background: var(--mbk-green);
}
.mbk-homepage .mbk-hp-badge-flash { background: #e63946; font-variant-numeric: tabular-nums; }
.mbk-homepage .mbk-hp-badge-drop { background: var(--mbk-orange); }
.mbk-homepage .mbk-hp-badge-back { background: var(--mbk-green); }
.mbk-homepage .mbk-hp-was { color: var(--mbk-muted); font-weight: 500; font-size: 11px; }
.mbk-homepage .mbk-hp-countdown {
    padding: 6px 10px;
    border-radius: 999px;
    background: #e63946;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.mbk-homepage .mbk-hp-rail-flash .mbk-hp-product { border-color: rgba(230, 57, 70, .35); }

/* ---------- quick add button ---------- */
.mbk-homepage .mbk-hp-quick {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--mbk-green);
    color: #fff;
    font-size: 22px;
    font-weight: 400;
    line-height: 34px;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(8, 116, 67, .3);
    transition: transform .15s ease;
}
.mbk-homepage .mbk-hp-quick:hover { transform: scale(1.08); }
.mbk-homepage .mbk-hp-product .mbk-hp-price { padding-right: 38px; }

/* ---------- bundle ---------- */
.mbk-homepage .mbk-hp-bundle-box {
    border: 1px solid var(--mbk-border);
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    display: grid;
    gap: 12px;
}
.mbk-homepage .mbk-hp-bundle-items {
    display: flex;
    align-items: stretch;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}
.mbk-homepage .mbk-hp-bundle-items::-webkit-scrollbar { display: none; }
.mbk-homepage .mbk-hp-bundle-plus { align-self: center; font-size: 22px; font-weight: 900; color: var(--mbk-muted); flex: none; }
.mbk-homepage .mbk-hp-bundle-item {
    position: relative;
    flex: 0 0 130px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border: 2px solid var(--mbk-green);
    border-radius: 10px;
    cursor: pointer;
    transition: opacity .15s ease, border-color .15s ease;
}
.mbk-homepage .mbk-hp-bundle-item.is-off { opacity: .45; border-color: var(--mbk-border); }
.mbk-homepage .mbk-hp-bundle-item input { position: absolute; top: 8px; left: 8px; z-index: 2; width: 18px; height: 18px; accent-color: var(--mbk-green); }
.mbk-homepage .mbk-hp-bundle-img { position: relative; display: block; width: 100%; padding-top: 100%; background: #f6f7f6; border-radius: 6px; overflow: hidden; }
.mbk-homepage .mbk-hp-bundle-img img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: contain !important; }
.mbk-homepage .mbk-hp-bundle-name { font-size: 12px; font-weight: 600; line-height: 1.3; max-height: 2.6em; overflow: hidden; }
.mbk-homepage .mbk-hp-bundle-price { font-size: 12px; font-weight: 800; color: var(--mbk-orange-text); }
.mbk-homepage .mbk-hp-bundle-link { font-size: 11px; color: var(--mbk-green); }
.mbk-homepage .mbk-hp-bundle-total { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; }
.mbk-homepage .mbk-hp-bundle-total strong { font-size: 18px; color: var(--mbk-orange-text); }
.mbk-homepage .mbk-hp-bundle-total del { color: var(--mbk-muted); }
.mbk-homepage .mbk-hp-bundle-total small { flex-basis: 100%; color: var(--mbk-muted); font-size: 12px; }
.mbk-homepage .mbk-hp-bundle-total small.is-on { color: var(--mbk-green); font-weight: 700; }
.mbk-homepage .mbk-hp-bundle-add {
    margin-left: auto;
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    background: var(--mbk-orange);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
}
.mbk-homepage .mbk-hp-bundle-add[disabled] { opacity: .5; }
@media (min-width: 760px) {
    .mbk-homepage .mbk-hp-bundle-box { grid-template-columns: 1fr 260px; align-items: center; }
    .mbk-homepage .mbk-hp-bundle-item { flex: 1 1 0; min-width: 110px; max-width: 180px; }
    .mbk-homepage .mbk-hp-bundle-total { flex-direction: column; align-items: flex-start; }
    .mbk-homepage .mbk-hp-bundle-add { margin-left: 0; width: 100%; }
}

/* ---------- toast ---------- */
.mbk-hp-toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 100001;
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: #101715;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    transform: translate(-50%, 150%);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.mbk-hp-toast.is-in { transform: translate(-50%, 0); }
.mbk-hp-toast a { color: #ffb37a; font-weight: 800; text-decoration: none; }

/* ---------- quick view ---------- */
.mbk-hp-qv {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(16, 23, 21, .6);
    opacity: 0;
    transition: opacity .25s ease;
}
.mbk-hp-qv.is-in { opacity: 1; }
.mbk-hp-qv-box {
    position: relative;
    width: 100%;
    max-height: 92vh;
    overflow: auto;
    background: #fff;
    border-radius: 18px 18px 0 0;
    transform: translateY(40px);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
    color: #101715;
    font-size: 14px;
}
.mbk-hp-qv.is-in .mbk-hp-qv-box { transform: none; }
.mbk-hp-qv-close {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #101715;
}
.mbk-hp-qv-loading { padding: 60px 20px; text-align: center; color: #5d6662; }
.mbk-hp-qv-gallery { position: relative; background: #f6f7f6; }
.mbk-hp-qv-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mbk-hp-qv-track::-webkit-scrollbar { display: none; }
.mbk-hp-qv-slide { position: relative; flex: 0 0 100%; aspect-ratio: 1 / 1; max-height: 52vh; scroll-snap-align: start; }
.mbk-hp-qv-slide img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: contain !important; }
.mbk-hp-qv-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.mbk-hp-qv-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .25); cursor: pointer; }
.mbk-hp-qv-dots button.is-on { background: #087443; width: 20px; border-radius: 999px; }
.mbk-hp-qv-info { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.mbk-hp-qv-title { margin: 0; font-size: 18px; line-height: 1.25; color: #101715; }
.mbk-hp-qv-price { font-size: 18px; font-weight: 800; color: #c74f00; }
.mbk-hp-qv-price del { color: #5d6662; font-weight: 500; font-size: 14px; }
.mbk-hp-qv-price ins { text-decoration: none; }
.mbk-hp-qv-rating { color: #b7791f; font-weight: 700; font-size: 13px; }
.mbk-hp-qv-stock { color: #087443; font-weight: 700; font-size: 13px; }
.mbk-hp-qv-excerpt { margin: 0; color: #444; line-height: 1.45; }
.mbk-hp-qv-variations { display: grid; gap: 8px; }
.mbk-hp-qv-attr { display: grid; gap: 4px; font-weight: 700; font-size: 13px; }
.mbk-hp-qv-attr select { padding: 10px; border: 1px solid #d5dcd9; border-radius: 8px; font-size: 14px; background: #fff; }
.mbk-hp-qv-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.mbk-hp-qv-qty { width: 70px; padding: 11px 8px; border: 1px solid #d5dcd9; border-radius: 8px; font-size: 15px; text-align: center; }
.mbk-hp-qv-add { flex: 1; min-width: 160px; padding: 13px 16px; border: 0; border-radius: 999px; background: #ff6900; color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; }
.mbk-hp-qv-add[disabled] { opacity: .6; }
.mbk-hp-qv-more { padding: 12px 14px; color: #087443; font-weight: 800; text-decoration: none; }
.mbk-hp-qv-msg { color: #b32d2e; font-weight: 700; min-height: 1em; }
@media (min-width: 760px) {
    .mbk-hp-qv { align-items: center; padding: 20px; }
    .mbk-hp-qv-box { display: grid; grid-template-columns: 1fr 1fr; width: min(900px, 100%); border-radius: 18px; }
    .mbk-hp-qv-slide { max-height: none; }
    .mbk-hp-qv-info { padding: 26px; }
    .mbk-hp-qv-title { font-size: 22px; padding-right: 30px; }
}

/* ---------- story viewer ---------- */
.mbk-hp-sv {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .92);
    opacity: 0;
    transition: opacity .25s ease;
}
.mbk-hp-sv.is-in { opacity: 1; }
.mbk-hp-sv-frame {
    position: relative;
    width: min(100vw, calc(100vh * 9 / 16));
    height: min(100vh, calc(100vw * 16 / 9));
    max-height: 100vh;
    background: #000;
    overflow: hidden;
    border-radius: 0;
}
@media (min-width: 600px) { .mbk-hp-sv-frame { height: 92vh; width: calc(92vh * 9 / 16); border-radius: 14px; } }
.mbk-hp-sv-bars { position: absolute; left: 8px; right: 8px; top: 8px; z-index: 5; display: flex; gap: 4px; }
.mbk-hp-sv-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.mbk-hp-sv-bar i { display: block; height: 100%; width: 0; background: #fff; }
.mbk-hp-sv-top { position: absolute; right: 8px; top: 18px; z-index: 6; display: flex; gap: 8px; }
.mbk-hp-sv-top button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; font-size: 18px; cursor: pointer; }
.mbk-hp-sv-close { font-size: 26px !important; }
.mbk-hp-sv-stage { position: absolute; inset: 0; }
.mbk-hp-sv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mbk-hp-sv-stage .bsa-slot { position: absolute; inset: 0; }
.mbk-hp-sv .bsa-ad-sound { display: none; }            /* the viewer's own sound button controls it */
.mbk-hp-sv .bsa-ad-label { top: 22px; }
.mbk-hp-sv .bsa-ad-off { top: 66px; }
.mbk-hp-sv .bsa-ad-body { padding-bottom: 22px; }
.mbk-hp-sv-zone { position: absolute; top: 70px; bottom: 150px; z-index: 4; width: 35%; border: 0; background: transparent; cursor: pointer; }
.mbk-hp-sv-prev { left: 0; }
.mbk-hp-sv-next { right: 0; width: 65%; }
.mbk-hp-sv-product {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 70px 16px 18px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .85));
    color: #fff;
}
.mbk-hp-sv-product strong { font-size: 16px; line-height: 1.25; }
.mbk-hp-sv-price { font-weight: 800; font-size: 15px; }
.mbk-hp-sv-price del { opacity: .65; }
.mbk-hp-sv-price ins { text-decoration: none; }
.mbk-hp-sv-actions { display: flex; gap: 8px; margin-top: 4px; }
.mbk-hp-sv-buy { flex: 1; padding: 12px; border: 0; border-radius: 999px; background: #ff6900; color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; }
.mbk-hp-sv-see { padding: 12px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff !important; font-weight: 700; text-decoration: none !important; }

/* ---------- BrandIT Smart Ads slots inside the homepage ---------- */
/* Empty slots take no room but stay "visible" so they load when scrolled near. */
.mbk-homepage .mbk-hp-product-grid { position: relative; }
.mbk-homepage .mbk-hp-product-grid > .bsa-slot { min-width: 0; }
.mbk-homepage .mbk-hp-product-grid > .bsa-slot:not(.is-filled) { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mbk-homepage .mbk-hp-product-grid > .bsa-f-video.is-filled { grid-column: span 2; }
.mbk-homepage .mbk-hp-ad-wide.is-filled { margin: 22px 0; }
.mbk-homepage .mbk-hp-hero-ad { background: none; border: 0; }
.mbk-homepage .mbk-hp-hero-ad:empty { display: none; }
.mbk-homepage .mbk-hp-hero-ad .bsa-slot { height: 100%; }
.mbk-homepage .mbk-hp-reel-ad { background: #111; }
.mbk-homepage .mbk-hp-reel-ad:not(.is-filled) { flex: 0 0 1px; width: 1px; min-width: 1px; margin-left: -12px; background: none; box-shadow: none; }
.mbk-homepage .mbk-hp-reel-ad .bsa-ad { border-radius: 12px; }

@media (prefers-reduced-motion: reduce) {
    .mbk-homepage .mbk-hp-story-live .mbk-hp-story-ring,
    .mbk-homepage .mbk-hp-story-live .mbk-hp-story-img { animation: none; }
    .mbk-hp-toast, .mbk-hp-qv, .mbk-hp-qv-box, .mbk-hp-sv { transition: none; }
}
