/*
 * Merci Bokku Header Enhancements
 *
 * Functional enhancement layer only.
 * The Elementor header remains the source of truth.
 */

#mbk-clean-header {
    position: relative;
    z-index: 1000;
}

/* ==========================================================
   SEARCH
   ========================================================== */

#mbk-clean-header .mbk-enhanced-search-wrapper,
#mbk-clean-header .mbk-clean-search,
#mbk-clean-header .mbk-clean-mobile-search {
    position: relative !important;
}

#mbk-clean-header
form
button[type="submit"] {
    position: relative;
    z-index: 3;
}

#mbk-clean-header
.mbk-enhanced-search-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    cursor: pointer !important;
}

/* ==========================================================
   SEARCH SUGGESTIONS
   ========================================================== */

#mbk-clean-header
.mbk-search-suggestions {
    position: absolute !important;

    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;
    min-width: 300px !important;

    background: #ffffff !important;

    border: 1px solid rgba(0, 0, 0, .08) !important;
    border-radius: 16px !important;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, .16) !important;

    overflow: hidden !important;

    display: none !important;

    z-index: 999999 !important;
}

#mbk-clean-header
.mbk-search-suggestions.is-visible {
    display: block !important;
}

#mbk-clean-header
.mbk-search-product {
    display: flex !important;

    align-items: center !important;
    gap: 12px !important;

    padding: 11px 13px !important;

    text-decoration: none !important;

    background: #fff !important;

    border-bottom: 1px solid #f0f0f0 !important;

    transition:
        background .15s ease,
        transform .15s ease !important;
}

#mbk-clean-header
.mbk-search-product:last-child {
    border-bottom: 0 !important;
}

#mbk-clean-header
.mbk-search-product:hover {
    background: #f7faf8 !important;
}

#mbk-clean-header
.mbk-search-product-image {
    width: 54px !important;
    height: 54px !important;

    flex: 0 0 54px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #f5f5f5 !important;

    border-radius: 10px !important;

    overflow: hidden !important;
}

#mbk-clean-header
.mbk-search-product-image img {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
}

#mbk-clean-header
.mbk-search-product-placeholder {
    font-size: 22px !important;
}

#mbk-clean-header
.mbk-search-product-info {
    min-width: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

#mbk-clean-header
.mbk-search-product-info strong {
    display: block !important;

    color: #171717 !important;

    font-size: 14px !important;
    line-height: 1.35 !important;

    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

#mbk-clean-header
.mbk-search-product-price {
    color: #138a4b !important;

    font-size: 13px !important;
    font-weight: 700 !important;
}

#mbk-clean-header
.mbk-search-empty,
#mbk-clean-header
.mbk-search-loading {
    padding: 18px !important;

    text-align: center !important;

    color: #777 !important;

    font-size: 14px !important;
}

/* ==========================================================
   MOBILE CATEGORY SECTION
   ========================================================== */

#mbk-clean-header
.mbk-enhanced-categories {
    margin: 4px 0 16px !important;

    padding: 0 !important;
}

#mbk-clean-header
.mbk-enhanced-section-title {
    padding: 14px 18px 10px !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

#mbk-clean-header
.mbk-enhanced-section-title span {
    color: #111 !important;

    font-size: 16px !important;
    font-weight: 800 !important;
}

#mbk-clean-header
.mbk-enhanced-section-title small {
    color: #777 !important;

    font-size: 11px !important;
}

#mbk-clean-header
.mbk-enhanced-category-tree {
    width: 100% !important;
}

#mbk-clean-header
.mbk-enhanced-category-item {
    width: 100% !important;
}

#mbk-clean-header
.mbk-enhanced-category-row {
    min-height: 52px !important;

    display: flex !important;
    align-items: center !important;

    border-bottom: 1px solid rgba(0, 0, 0, .06) !important;
}

#mbk-clean-header
.mbk-enhanced-category-link {
    flex: 1 1 auto !important;

    min-width: 0 !important;

    display: flex !important;
    align-items: center !important;
    gap: 12px !important;

    padding: 12px 10px 12px 18px !important;

    color: #171717 !important;

    text-decoration: none !important;

    font-size: 14px !important;
    font-weight: 600 !important;
}

#mbk-clean-header
.mbk-enhanced-category-icon {
    width: 34px !important;
    height: 34px !important;

    flex: 0 0 34px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 10px !important;

    background: #f2f8f4 !important;

    font-size: 18px !important;
}

#mbk-clean-header
.mbk-enhanced-category-name {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#mbk-clean-header
.mbk-enhanced-category-toggle {
    width: 48px !important;
    height: 52px !important;

    flex: 0 0 48px !important;

    border: 0 !important;

    background: transparent !important;

    color: #777 !important;

    font-size: 24px !important;

    cursor: pointer !important;
}

#mbk-clean-header
.mbk-enhanced-category-children {
    display: none !important;

    background: #fafafa !important;
}

#mbk-clean-header
.mbk-enhanced-category-item.is-expanded
> .mbk-enhanced-category-children {
    display: block !important;
}

#mbk-clean-header
.mbk-enhanced-category-item[data-level="1"]
> .mbk-enhanced-category-row {
    padding-left: 18px !important;
}

#mbk-clean-header
.mbk-enhanced-category-item[data-level="2"]
> .mbk-enhanced-category-row {
    padding-left: 34px !important;
}

#mbk-clean-header
.mbk-enhanced-category-item[data-level="1"]
.mbk-enhanced-category-icon {
    width: 28px !important;
    height: 28px !important;
    flex-basis: 28px !important;
    font-size: 15px !important;
}

#mbk-clean-header
.mbk-enhanced-category-item[data-level="2"]
.mbk-enhanced-category-icon {
    width: 24px !important;
    height: 24px !important;
    flex-basis: 24px !important;
    font-size: 13px !important;
}

#mbk-clean-header
.mbk-category-loading,
#mbk-clean-header
.mbk-category-empty {
    padding: 18px !important;

    text-align: center !important;

    color: #777 !important;

    font-size: 13px !important;
}

/* ==========================================================
   ACCOUNT
   ========================================================== */

#mbk-clean-header
.mbk-enhanced-account {
    margin: 0 0 10px !important;

    padding: 10px 0 !important;

    border-bottom: 1px solid rgba(0, 0, 0, .08) !important;
}

#mbk-clean-header
.mbk-enhanced-account a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;

    min-height: 46px !important;

    padding: 8px 18px !important;

    color: #171717 !important;

    text-decoration: none !important;

    font-size: 14px !important;
    font-weight: 600 !important;
}

#mbk-clean-header
.mbk-enhanced-account a:hover {
    background: #f5f7f6 !important;
}

/* ==========================================================
   TOP INFORMATION BAR
   ========================================================== */

#mbk-clean-header
.mbk-clean-topbar {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 34px !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 40px !important;
    background: #138a4b !important;
    box-sizing: border-box !important;
}

@media (max-width: 1100px) {
    #mbk-clean-header
    .mbk-clean-topbar {
        padding: 0 20px !important;
    }
}

/* ==========================================================
   AUTHENTICATED DESKTOP ACCOUNT
   ========================================================== */

#mbk-clean-header
.mbk-clean-nav > .mbk-clean-account {
    position: relative;
    min-width: 132px;
}

#mbk-clean-header
.mbk-clean-account-identity {
    align-items: center !important;
    flex-direction: row !important;
    gap: 8px !important;
    min-width: 132px !important;
}

#mbk-clean-header
.mbk-clean-account-avatar-wrap {
    display: flex;
    flex: 0 0 36px;
}

#mbk-clean-header
.mbk-clean-account-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50%;
}

#mbk-clean-header
.mbk-clean-account-label {
    min-width: 0;
}

#mbk-clean-header
.mbk-clean-account-label strong {
    display: block;
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
}

#mbk-clean-header
.mbk-clean-account-caret {
    color: #777;
    font-size: 11px;
}

#mbk-clean-header
.mbk-clean-account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 101;
    display: none;
    width: 168px;
    padding: 6px 0;
    border: 1px solid #eee;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

#mbk-clean-header
.mbk-clean-nav > .mbk-clean-account::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 168px;
    height: 10px;
}

#mbk-clean-header
.mbk-clean-account:hover .mbk-clean-account-menu,
#mbk-clean-header
.mbk-clean-account:focus-within .mbk-clean-account-menu {
    display: block;
}

#mbk-clean-header
.mbk-clean-account-menu a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    min-width: 0 !important;
    min-height: 36px;
    padding: 7px 12px;
    color: #171717;
    font-size: 13px;
}

#mbk-clean-header
.mbk-clean-account-menu a:hover {
    background: #f5f7f6;
}

#mbk-clean-header
.mbk-clean-account-menu span {
    min-width: 20px;
    padding: 1px 5px;
    border-radius: 10px;
    background: #ff6900;
    color: #fff;
    font-size: 11px;
    text-align: center;
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 900px) {

    #mbk-clean-header
    .mbk-search-suggestions {
        position: fixed !important;

        top: 130px !important;
        left: 10px !important;
        right: 10px !important;

        width: auto !important;
        min-width: 0 !important;

        max-height: 65vh !important;

        overflow-y: auto !important;

        border-radius: 14px !important;
    }

    #mbk-clean-header
    .mbk-search-product {
        padding: 10px !important;
    }

    #mbk-clean-header
    .mbk-search-product-image {
        width: 48px !important;
        height: 48px !important;
        flex-basis: 48px !important;
    }

}

/* ==========================================================
   DESKTOP
   ========================================================== */

@media (min-width: 901px) {

    #mbk-clean-header
    .mbk-search-suggestions {
        max-height: 480px !important;
        overflow-y: auto !important;
    }

}

/* ============================================================
   MERCI BOKKU — SINGLE MOBILE ACCOUNT + CART ICON LAYER
   ============================================================ */

@media screen and (max-width: 900px) {

    /* --------------------------------------------------------
       ACTION CONTAINER
       -------------------------------------------------------- */

    #mbk-clean-header .mbk-clean-mobile-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;

        height: 54px !important;

        flex-shrink: 0 !important;
    }


    /* --------------------------------------------------------
       ACTION BUTTONS
       -------------------------------------------------------- */

    #mbk-clean-header .mbk-clean-mobile-actions > a {
        position: relative !important;

        width: 50px !important;
        height: 50px !important;

        min-width: 50px !important;
        min-height: 50px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        padding: 0 !important;
        margin: 0 !important;

        background: transparent !important;
        border: 0 !important;
        border-radius: 50% !important;

        color: #ffffff !important;

        font-size: 0 !important;
        line-height: 0 !important;

        text-decoration: none !important;
    }


    /* --------------------------------------------------------
       IMPORTANT:
       REMOVE ORIGINAL ICONS / EMOJIS / SVGs / IMGs
       SO ONLY OUR SINGLE ICON REMAINS
       -------------------------------------------------------- */

    #mbk-clean-header .mbk-clean-mobile-actions > a > *,
    #mbk-clean-header .mbk-clean-mobile-actions > a svg,
    #mbk-clean-header .mbk-clean-mobile-actions > a img,
    #mbk-clean-header .mbk-clean-mobile-actions > a i,
    #mbk-clean-header .mbk-clean-mobile-actions > a span {
        display: none !important;

        visibility: hidden !important;
    }


    /* --------------------------------------------------------
       ACCOUNT — SINGLE LARGE ICON
       -------------------------------------------------------- */

    #mbk-clean-header .mbk-clean-mobile-actions > a:first-child::before {
        content: "" !important;

        display: block !important;

        width: 30px !important;
        height: 30px !important;

        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;

        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4.5 21c.7-4 3.3-6 7.5-6s6.8 2 7.5 6'/%3E%3C/svg%3E") !important;
    }


    /* --------------------------------------------------------
       CART — SINGLE LARGE ICON
       -------------------------------------------------------- */

    #mbk-clean-header .mbk-clean-mobile-actions > a:last-child::before {
        content: "" !important;

        display: block !important;

        width: 34px !important;
        height: 34px !important;

        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;

        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.3 11a2 2 0 0 0 2 1.6h7.8a2 2 0 0 0 2-1.6L21 8H6'/%3E%3Ccircle cx='10' cy='20' r='1.4' fill='%23ffffff' stroke='none'/%3E%3Ccircle cx='18' cy='20' r='1.4' fill='%23ffffff' stroke='none'/%3E%3C/svg%3E") !important;
    }


    /* --------------------------------------------------------
       CART COUNT
       -------------------------------------------------------- */

    #mbk-clean-header .mbk-clean-mobile-actions > a:last-child em {
        display: flex !important;
        visibility: visible !important;

        position: absolute !important;

        top: 1px !important;
        right: -1px !important;

        width: 21px !important;
        height: 21px !important;

        min-width: 21px !important;
        min-height: 21px !important;

        align-items: center !important;
        justify-content: center !important;

        padding: 0 !important;
        margin: 0 !important;

        border-radius: 50% !important;

        background: #ff6b00 !important;
        color: #ffffff !important;

        border: 2px solid #111111 !important;

        font-family: Arial, sans-serif !important;
        font-size: 11px !important;
        font-style: normal !important;
        font-weight: 700 !important;

        line-height: 17px !important;

        z-index: 10 !important;
    }


    /* --------------------------------------------------------
       TOUCH FEEDBACK
       -------------------------------------------------------- */

    #mbk-clean-header .mbk-clean-mobile-actions > a:active {
        background: rgba(255,255,255,.08) !important;
        transform: scale(.94) !important;
    }

}


/* ============================================================
   SMALL PHONES
   ============================================================ */

@media screen and (max-width: 380px) {

    #mbk-clean-header .mbk-clean-mobile-actions {
        gap: 2px !important;
    }

    #mbk-clean-header .mbk-clean-mobile-actions > a {
        width: 46px !important;
        height: 46px !important;

        min-width: 46px !important;
        min-height: 46px !important;
    }

    #mbk-clean-header .mbk-clean-mobile-actions > a:first-child::before {
        width: 28px !important;
        height: 28px !important;
    }

    #mbk-clean-header .mbk-clean-mobile-actions > a:last-child::before {
        width: 32px !important;
        height: 32px !important;
    }

}


/* ============================================================
   MERCI BOKKU — ACTUAL MOBILE ACTION ICONS
   Targets the real Elementor Header #6149 markup.
   ============================================================ */

@media screen and (max-width: 900px) {

    #mbk-clean-header .mbk-clean-mobile-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;

        width: auto !important;
        height: 52px !important;

        flex-shrink: 0 !important;
    }

    #mbk-clean-header .mbk-clean-mobile-actions > a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        position: relative !important;

        width: 48px !important;
        height: 48px !important;

        min-width: 48px !important;
        min-height: 48px !important;

        padding: 0 !important;
        margin: 0 !important;

        color: #ffffff !important;
        background: transparent !important;

        border: 0 !important;
        border-radius: 50% !important;

        text-decoration: none !important;

        font-size: 0 !important;
        line-height: 0 !important;
    }


    /* ACCOUNT */

    #mbk-clean-header .mbk-clean-mobile-account {
        display: flex !important;
    }

    #mbk-clean-header .mbk-mobile-account-icon {
        display: block !important;

        width: 29px !important;
        height: 29px !important;

        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;

        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4.5 21c.7-4 3.3-6 7.5-6s6.8 2 7.5 6'/%3E%3C/svg%3E") !important;
    }


    /* CART */

    #mbk-clean-header .mbk-clean-mobile-cart {
        display: flex !important;
    }

    #mbk-clean-header .mbk-mobile-cart-icon {
        display: block !important;

        width: 32px !important;
        height: 32px !important;

        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;

        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.6L21 8H6'/%3E%3Ccircle cx='10' cy='20' r='1.4' fill='%23ffffff' stroke='none'/%3E%3Ccircle cx='18' cy='20' r='1.4' fill='%23ffffff' stroke='none'/%3E%3C/svg%3E") !important;
    }


    /* CART BADGE */

    #mbk-clean-header .mbk-clean-mobile-cart em {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        position: absolute !important;

        top: 0 !important;
        right: -1px !important;

        width: 20px !important;
        height: 20px !important;

        min-width: 20px !important;
        min-height: 20px !important;

        margin: 0 !important;
        padding: 0 !important;

        border-radius: 50% !important;

        background: #ff6b00 !important;
        color: #ffffff !important;

        border: 2px solid #111111 !important;

        font-family: Arial, sans-serif !important;
        font-size: 10px !important;
        font-style: normal !important;
        font-weight: 700 !important;

        line-height: 16px !important;

        z-index: 20 !important;
    }

    #mbk-clean-header .mbk-clean-mobile-actions > a:active {
        transform: scale(.94) !important;
    }

}

@media screen and (max-width: 380px) {

    #mbk-clean-header .mbk-clean-mobile-actions {
        gap: 4px !important;
    }

    #mbk-clean-header .mbk-clean-mobile-actions > a {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
    }

    #mbk-clean-header .mbk-mobile-account-icon {
        width: 27px !important;
        height: 27px !important;
    }

    #mbk-clean-header .mbk-mobile-cart-icon {
        width: 30px !important;
        height: 30px !important;
    }

}


/* ============================================================
   MERCI BOKKU — HARD SEARCH ICON
   Elementor / theme independent
   ============================================================ */

/*
 * The search button must have a fixed physical size.
 */

#mbk-clean-header .mbk-clean-search button,
#mbk-clean-header .mbk-clean-mobile-search button {
    position: relative !important;

    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;

    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex-shrink: 0 !important;

    background: #ff6900 !important;
    border: 0 !important;
    border-radius: 0 12px 12px 0 !important;

    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;

    overflow: hidden !important;

    box-sizing: border-box !important;

    opacity: 1 !important;
    visibility: visible !important;
}

/*
 * Completely remove whatever Elementor/theme/icon library
 * puts inside the button.
 */

#mbk-clean-header .mbk-clean-search button > *,
#mbk-clean-header .mbk-clean-mobile-search button > * {
    display: none !important;

    width: 0 !important;
    height: 0 !important;

    max-width: 0 !important;
    max-height: 0 !important;

    font-size: 0 !important;
    line-height: 0 !important;
}

/*
 * Magnifying glass — circle.
 */

#mbk-clean-header .mbk-clean-search button::before,
#mbk-clean-header .mbk-clean-mobile-search button::before {
    content: "" !important;

    position: absolute !important;

    width: 13px !important;
    height: 13px !important;

    left: 50% !important;
    top: 50% !important;

    margin-left: -9px !important;
    margin-top: -9px !important;

    border: 2.5px solid #ffffff !important;
    border-radius: 50% !important;

    background: transparent !important;

    display: block !important;

    box-sizing: border-box !important;

    transform: none !important;

    opacity: 1 !important;
    visibility: visible !important;
}

/*
 * Magnifying glass — handle.
 */

#mbk-clean-header .mbk-clean-search button::after,
#mbk-clean-header .mbk-clean-mobile-search button::after {
    content: "" !important;

    position: absolute !important;

    width: 8px !important;
    height: 2.5px !important;

    left: 50% !important;
    top: 50% !important;

    margin-left: 3px !important;
    margin-top: 4px !important;

    background: #ffffff !important;

    border-radius: 3px !important;

    display: block !important;

    transform: rotate(45deg) !important;
    transform-origin: center !important;

    opacity: 1 !important;
    visibility: visible !important;
}


/* ============================================================
   DESKTOP
   ============================================================ */

@media screen and (min-width: 901px) {

    #mbk-clean-header .mbk-clean-search {
        display: flex !important;
        align-items: stretch !important;
        position: relative !important;
    }

    #mbk-clean-header .mbk-clean-search input {
        height: 48px !important;
        min-height: 48px !important;
        box-sizing: border-box !important;
    }

    #mbk-clean-header .mbk-clean-search button {
        display: flex !important;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media screen and (max-width: 900px) {

    #mbk-clean-header .mbk-clean-mobile-search {
        width: 100% !important;
        display: block !important;
        position: relative !important;
    }

    #mbk-clean-header .mbk-clean-mobile-search form {
        width: 100% !important;
        display: flex !important;
        align-items: stretch !important;
        position: relative !important;
    }

    #mbk-clean-header .mbk-clean-mobile-search input {
        flex: 1 1 auto !important;

        width: 100% !important;
        min-width: 0 !important;

        height: 48px !important;
        min-height: 48px !important;

        box-sizing: border-box !important;
    }

    #mbk-clean-header .mbk-clean-mobile-search button {
        display: flex !important;

        width: 80px !important;
        min-width: 80px !important;

        height: 48px !important;
        min-height: 48px !important;
    }
}


/* ============================================================
   PREVENT THE ICON FROM SHRINKING AFTER PAGE LOAD
   ============================================================ */

#mbk-clean-header .mbk-clean-search button::before,
#mbk-clean-header .mbk-clean-search button::after,
#mbk-clean-header .mbk-clean-mobile-search button::before,
#mbk-clean-header .mbk-clean-mobile-search button::after {
    flex: none !important;
    zoom: 1 !important;
    scale: 1 !important;
}


/* ============================================================
   MERCI BOKKU — MOBILE SEARCH ICON
   FINAL FIELD-BASED IMPLEMENTATION
   ============================================================ */

@media screen and (max-width: 900px) {

    /*
     * Search form becomes the positioning container.
     */
    #mbk-clean-header .mbk-clean-mobile-search form {
        position: relative !important;

        width: 100% !important;

        display: block !important;

        box-sizing: border-box !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    /*
     * Keep the search field full width.
     */
    #mbk-clean-header .mbk-clean-mobile-search input {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        height: 60px !important;
        min-height: 60px !important;

        box-sizing: border-box !important;

        padding-left: 20px !important;
        padding-right: 60px !important;

        border-radius: 12px !important;

        background: #ffffff !important;

        color: #222222 !important;

        font-size: 16px !important;
        line-height: 1.2 !important;
    }


    /*
     * Do NOT depend on the actual search button.
     *
     * Elementor has been collapsing/hiding it on mobile.
     */
    #mbk-clean-header .mbk-clean-mobile-search button {
        display: none !important;
    }


    /*
     * Draw the magnifying glass directly inside
     * the search field.
     */
    #mbk-clean-header .mbk-clean-mobile-search form::before {
        content: "" !important;

        position: absolute !important;

        right: 22px !important;
        top: 50% !important;

        width: 15px !important;
        height: 15px !important;

        margin-top: -10px !important;

        border: 2.5px solid #172033 !important;

        border-radius: 50% !important;

        box-sizing: border-box !important;

        display: block !important;

        z-index: 20 !important;

        pointer-events: none !important;

        opacity: 1 !important;

        transform: none !important;
    }


    /*
     * Magnifying-glass handle.
     */
    #mbk-clean-header .mbk-clean-mobile-search form::after {
        content: "" !important;

        position: absolute !important;

        right: 18px !important;
        top: 50% !important;

        width: 9px !important;
        height: 2.5px !important;

        margin-top: 5px !important;

        background: #172033 !important;

        border-radius: 3px !important;

        display: block !important;

        z-index: 21 !important;

        pointer-events: none !important;

        opacity: 1 !important;

        transform: rotate(45deg) !important;

        transform-origin: center !important;
    }

}


/* ============================================================
   MERCI BOKKU — HERO PRODUCT IMAGE CIRCLE
   Plain white hero + premium orange circle
   ============================================================ */

.mbk-hero-product-image {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    isolation: isolate !important;
}

/* Premium orange ring */
.mbk-hero-product-image::before {
    content: "" !important;

    position: absolute !important;

    width: 430px !important;
    height: 430px !important;

    left: 50% !important;
    top: 50% !important;

    transform: translate(-50%, -50%) !important;

    border-radius: 50% !important;

    background: transparent !important;

    border: 12px solid #ff6900 !important;

    box-sizing: border-box !important;

    z-index: -1 !important;

    pointer-events: none !important;
}

/* Product remains above the ring */
.mbk-hero-product-image img {
    position: relative !important;
    z-index: 2 !important;

    display: block !important;

    max-width: 100% !important;
    height: auto !important;
}

/* Tablet */
@media (min-width: 601px) and (max-width: 900px) {

    .mbk-hero-product-image::before {
        width: 350px !important;
        height: 350px !important;
        border-width: 10px !important;
    }

}

/* Mobile */
@media (max-width: 600px) {

    .mbk-hero-product-image::before {
        width: 260px !important;
        height: 260px !important;
        border-width: 8px !important;
    }

}


/* ============================================================
   MERCI BOKKU — HERO BACKGROUND ONLY
   Keep the existing hero layout/product exactly as-is.
   Remove only the orange hero background.
   ============================================================ */

/*
 * Remove the orange background layer without changing
 * the hero's content, dimensions or positioning.
 */
.mbk-dynamic-hero,
.mbk-dynamic-hero > .elementor-element,
.mbk-dynamic-hero .elementor-container,
.mbk-dynamic-hero .e-con,
.mbk-dynamic-hero .e-con-inner {
    background-color: #ffffff !important;
    background-image: none !important;
}

/*
 * Remove any orange decorative pseudo-element that may
 * have been added by the previous experiment.
 */
.mbk-dynamic-hero::before,
.mbk-dynamic-hero::after {
    background-image: none !important;
}

/*
 * IMPORTANT:
 * Do not modify product images, typography,
 * spacing, buttons or category navigation.
 */


/* ============================================================
   MERCI BOKKU — REMOVE EXPERIMENTAL HERO CIRCLE
   ============================================================ */

.mbk-hero-product-image::before,
.mbk-hero-product-image::after {
    content: none !important;
    display: none !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

.mbk-hero-product-image {
    background: transparent !important;
}



/* ============================================================
   V3.6 — APP-DRIVING DESKTOP MEGA MENU
   ============================================================ */

@media (min-width: 901px) {

    #mbk-clean-header {
        position: relative !important;
        z-index: 10000 !important;
    }

    #mbk-clean-header .mbk-app-mega-menu {
        position: absolute !important;

        top: 100% !important;
        left: 0 !important;
        right: 0 !important;

        width: 100% !important;

        display: none !important;

        background: #ffffff !important;

        border-top: 1px solid rgba(0,0,0,.06) !important;

        box-shadow:
            0 24px 60px rgba(0,0,0,.16) !important;

        z-index: 99999 !important;
    }

    #mbk-clean-header .mbk-app-mega-menu.is-open {
        display: block !important;
    }

    #mbk-clean-header .mbk-app-mega-inner {
        width: min(1240px, calc(100% - 48px)) !important;

        min-height: 390px !important;

        margin: 0 auto !important;

        display: grid !important;

        grid-template-columns:
            300px minmax(0, 1fr) !important;
    }

    #mbk-clean-header .mbk-app-mega-sidebar {
        padding: 22px 0 !important;

        background: #f7faf8 !important;

        border-right:
            1px solid rgba(0,0,0,.06) !important;
    }

    #mbk-clean-header .mbk-app-mega-heading {
        padding:
            0 22px 18px !important;

        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }

    #mbk-clean-header .mbk-app-mega-heading strong {
        color: #111111 !important;

        font-size: 18px !important;
        font-weight: 800 !important;
    }

    #mbk-clean-header .mbk-app-mega-heading span {
        color: #777777 !important;

        font-size: 12px !important;
    }

    #mbk-clean-header .mbk-app-mega-primary {
        display: flex !important;

        flex-direction: column !important;
    }

    #mbk-clean-header .mbk-app-mega-primary-item {
        width: 100% !important;

        min-height: 58px !important;

        padding: 9px 18px !important;

        display: grid !important;

        grid-template-columns:
            38px minmax(0, 1fr) 20px !important;

        align-items: center !important;

        gap: 10px !important;

        border: 0 !important;

        background: transparent !important;

        color: #171717 !important;

        text-align: left !important;

        cursor: pointer !important;
    }

    #mbk-clean-header .mbk-app-mega-primary-item:hover,
    #mbk-clean-header .mbk-app-mega-primary-item.is-active {
        background: #ffffff !important;
    }

    #mbk-clean-header .mbk-app-mega-primary-icon {
        width: 38px !important;
        height: 38px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        border-radius: 11px !important;

        background: #eaf5ee !important;

        font-size: 19px !important;
    }

    #mbk-clean-header .mbk-app-mega-primary-text {
        min-width: 0 !important;

        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
    }

    #mbk-clean-header .mbk-app-mega-primary-text strong {
        overflow: hidden !important;

        text-overflow: ellipsis !important;
        white-space: nowrap !important;

        font-size: 13px !important;
        font-weight: 700 !important;
    }

    #mbk-clean-header .mbk-app-mega-primary-text small {
        color: #888888 !important;

        font-size: 10px !important;
    }

    #mbk-clean-header .mbk-app-mega-arrow {
        color: #999999 !important;

        font-size: 24px !important;

        line-height: 1 !important;
    }

    #mbk-clean-header .mbk-app-mega-content {
        padding: 28px 32px !important;

        min-width: 0 !important;
    }

    #mbk-clean-header .mbk-app-mega-content-head {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        gap: 20px !important;

        padding-bottom: 18px !important;

        border-bottom:
            1px solid rgba(0,0,0,.07) !important;
    }

    #mbk-clean-header .mbk-app-mega-content-head strong {
        color: #111111 !important;

        font-size: 21px !important;
        font-weight: 800 !important;
    }

    #mbk-clean-header .mbk-app-mega-view-all {
        color: #138a4b !important;

        font-size: 13px !important;
        font-weight: 700 !important;

        text-decoration: none !important;

        white-space: nowrap !important;
    }

    #mbk-clean-header .mbk-app-mega-view-all:hover {
        text-decoration: underline !important;
    }

    #mbk-clean-header .mbk-app-mega-children {
        padding-top: 22px !important;

        display: grid !important;

        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;

        gap: 10px !important;
    }

    #mbk-clean-header .mbk-app-mega-child {
        min-height: 54px !important;

        padding: 12px 14px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        gap: 12px !important;

        color: #222222 !important;

        background: #fafafa !important;

        border: 1px solid rgba(0,0,0,.05) !important;

        border-radius: 12px !important;

        text-decoration: none !important;

        transition:
            background .15s ease,
            transform .15s ease,
            border-color .15s ease !important;
    }

    #mbk-clean-header .mbk-app-mega-child:hover {
        background: #f0f8f3 !important;

        border-color:
            rgba(19,138,75,.18) !important;

        transform: translateY(-1px) !important;
    }

    #mbk-clean-header .mbk-app-mega-child span {
        overflow: hidden !important;

        text-overflow: ellipsis !important;

        font-size: 13px !important;
        font-weight: 600 !important;
    }

    #mbk-clean-header .mbk-app-mega-child small {
        flex: 0 0 auto !important;

        color: #999999 !important;

        font-size: 10px !important;
    }

    #mbk-clean-header .mbk-app-mega-no-children {
        min-height: 180px !important;

        grid-column: 1 / -1 !important;

        display: flex !important;
        flex-direction: column !important;

        align-items: center !important;
        justify-content: center !important;

        gap: 6px !important;

        color: #555555 !important;

        text-align: center !important;
    }

    #mbk-clean-header .mbk-app-mega-no-children > span {
        font-size: 34px !important;
    }

    #mbk-clean-header .mbk-app-mega-no-children strong {
        color: #222222 !important;

        font-size: 15px !important;
    }

    #mbk-clean-header .mbk-app-mega-no-children small {
        color: #888888 !important;

        font-size: 12px !important;
    }
}


/* Never render the desktop mega-menu on mobile. */

@media (max-width: 900px) {

    #mbk-clean-header .mbk-app-mega-menu {
        display: none !important;
    }
}


/*
 * ==========================================================
 * V3.6.5 — PERSONALIZED MEGA MENU CATEGORY UI
 * ==========================================================
 */

#mbk-clean-header .mbk-app-mega-primary-item.is-personalized {
    position: relative !important;
}

#mbk-clean-header
.mbk-app-mega-primary-item.is-personalized
.mbk-app-mega-primary-icon {
    background: #e8f7ef !important;

    box-shadow:
        inset 0 0 0 1px rgba(19,138,75,.08) !important;
}

#mbk-clean-header
.mbk-app-mega-primary-item.is-personalized
.mbk-app-mega-primary-text {
    padding-right: 4px !important;
}

#mbk-clean-header
.mbk-app-mega-primary-item.is-personalized
.mbk-app-mega-primary-text::after {
    content: "Pour vous";

    display: inline-flex !important;

    width: fit-content !important;

    margin-top: 2px !important;

    padding: 2px 6px !important;

    border-radius: 999px !important;

    background: #e8f7ef !important;

    color: #138a4b !important;

    font-size: 9px !important;

    font-weight: 700 !important;

    line-height: 1.2 !important;

    letter-spacing: .01em !important;
}

#mbk-clean-header
.mbk-app-mega-primary-item.is-personalized:hover
.mbk-app-mega-primary-icon,
#mbk-clean-header
.mbk-app-mega-primary-item.is-personalized.is-active
.mbk-app-mega-primary-icon {
    background: #dff2e8 !important;
}

/*
 * ==========================================================
 * V3.7.9 — RUNTIME CATEGORIES TRIGGER
 * ==========================================================
 */

#mbk-clean-header
.mbk-enhanced-categories-trigger {

    display: flex !important;

    align-items: center !important;

    gap: 9px !important;

    min-height: 44px !important;

    padding: 7px 12px !important;

    margin: 0 !important;

    border: 0 !important;

    border-radius: 12px !important;

    background: #138a4b !important;

    color: #ffffff !important;

    font-family: inherit !important;

    font-size: 13px !important;

    line-height: 1.15 !important;

    text-align: left !important;

    cursor: pointer !important;

    appearance: none !important;

    -webkit-appearance: none !important;

    box-shadow: none !important;

    transition:
        transform .15s ease,
        background .15s ease !important;
}

#mbk-clean-header
.mbk-enhanced-categories-trigger:hover {

    background: #0f713d !important;

    transform: translateY(-1px) !important;
}

#mbk-clean-header
.mbk-enhanced-categories-trigger:active {

    transform: translateY(0) !important;
}

#mbk-clean-header
.mbk-enhanced-categories-trigger
.mbk-enhanced-categories-icon {

    width: 30px !important;

    height: 30px !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    flex: 0 0 30px !important;

    border-radius: 9px !important;

    background: rgba(255,255,255,.14) !important;

    color: #ffffff !important;

    font-size: 17px !important;

    line-height: 1 !important;
}

#mbk-clean-header
.mbk-enhanced-categories-trigger
strong {

    display: block !important;

    color: #ffffff !important;

    font-size: 13px !important;

    font-weight: 800 !important;

    line-height: 1.1 !important;
}

#mbk-clean-header
.mbk-enhanced-categories-trigger
small {

    display: block !important;

    margin-top: 2px !important;

    color: rgba(255,255,255,.78) !important;

    font-size: 9px !important;

    line-height: 1.1 !important;
}

@media (max-width: 900px) {

    #mbk-clean-header
    .mbk-enhanced-categories-trigger {

        display: none !important;
    }
}


/*
 * ==========================================================
 * V3.7.10 — HEADER TOP SPACE RESET
 * ==========================================================
 */

html,
body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.elementor-location-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.elementor-location-header > .e-con,
.elementor-location-header > .e-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#mbk-clean-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/*
 * ==========================================================
 * V3.7.11 — ELEMENTOR HEADER WRAPPER GAP RESET
 * ==========================================================
 *
 * Keep the Elementor header at its natural viewport position.
 * Do not use a negative top margin here because it clips the
 * top bar above the visible screen area.
 */

.elementor-location-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.elementor-location-header > .e-con,
.elementor-location-header > .e-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#mbk-clean-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/*
 * ==========================================================
 * V3.8.0 — APP + DESKTOP STICKY SEARCH
 * ==========================================================
 */

/*
 * Desktop
 *
 * The search stays accessible while the page scrolls.
 * The rest of the header remains normally positioned.
 */

@media (min-width: 901px) {

    #mbk-clean-header .mbk-clean-search {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
    }

}


/*
 * Mobile / App
 *
 * The mobile search becomes the persistent shopping/search
 * surface while browsing.
 */

@media (max-width: 900px) {

    #mbk-clean-header .mbk-clean-mobile-search {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
    }

}


/*
 * When sticky, give the search a small elevated app feel.
 */

#mbk-clean-header .mbk-clean-search,
#mbk-clean-header .mbk-clean-mobile-search {
    isolation: isolate;
}

@media (max-width: 900px) {

    #mbk-clean-header .mbk-clean-mobile-search {
        box-shadow:
            0 4px 14px rgba(0,0,0,.14);
    }

}

/*
 * ==========================================================
 * V3.8.0 — TRUE STICKY APP SEARCH
 * ==========================================================
 *
 * The header itself scrolls normally.
 * Once the user scrolls, the search becomes a fixed
 * shopping/search surface.
 */

/* ----------------------------------------------------------
   DESKTOP
   ---------------------------------------------------------- */

@media (min-width: 901px) {

    #mbk-clean-header .mbk-clean-search.mbk-search-stuck {

        position: fixed !important;

        top: 0 !important;
        left: 50% !important;

        transform: translateX(-50%) !important;

        width: min(
            calc(100vw - 360px),
            650px
        ) !important;

        max-width: 650px !important;

        height: 54px !important;

        z-index: 99999 !important;

        margin: 8px 0 !important;

        box-shadow:
            0 6px 20px rgba(0,0,0,.16) !important;
    }

}


/* ----------------------------------------------------------
   MOBILE / APP
   ---------------------------------------------------------- */

@media (max-width: 900px) {

    #mbk-clean-header
    .mbk-clean-mobile-search.mbk-search-stuck {

        position: fixed !important;

        top: 0 !important;
        left: 0 !important;
        right: 0 !important;

        width: 100% !important;

        z-index: 99999 !important;

        padding:
            8px
            12px
            8px !important;

        box-shadow:
            0 5px 18px rgba(0,0,0,.18) !important;
    }

}


/* ----------------------------------------------------------
   Smooth app-like transition
   ---------------------------------------------------------- */

#mbk-clean-header
.mbk-search-stuck {

    transition:
        box-shadow .18s ease,
        transform .18s ease !important;
}


/*
 * Prevent the fixed mobile search from visually
 * disappearing behind the page.
 */

@media (max-width: 900px) {

    body.mbk-search-is-stuck {
        scroll-padding-top: 68px !important;
    }

}

/* ============================================================
   MERCI BOKKU — MOBILE APP HEADER COMPACT FULL-WIDTH
   FINAL MOBILE PRESENTATION LAYER
   Desktop is intentionally untouched.
   ============================================================ */

@media screen and (max-width: 900px) {

    /* --------------------------------------------------------
       TRUE EDGE-TO-EDGE MOBILE HEADER
       Remove Elementor/container side gutters on mobile only.
       -------------------------------------------------------- */

    .elementor-location-header,
    .elementor-location-header > .e-con,
    .elementor-location-header > .e-container {
        width: 100% !important;
        max-width: 100% !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        padding-left: 0 !important;
        padding-right: 0 !important;
    }


    #mbk-clean-header {
        width: 100vw !important;
        max-width: 100vw !important;

        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;

        padding-left: 0 !important;
        padding-right: 0 !important;

        box-sizing: border-box !important;

        overflow-x: clip !important;
    }


    /* --------------------------------------------------------
       COMPACT MOBILE HEADER
       -------------------------------------------------------- */

    #mbk-clean-header .mbk-clean-mobile-actions {
        height: 46px !important;
    }


    #mbk-clean-header .mbk-clean-mobile-actions > a {
        width: 44px !important;
        height: 44px !important;

        min-width: 44px !important;
        min-height: 44px !important;
    }


    #mbk-clean-header .mbk-mobile-account-icon {
        width: 27px !important;
        height: 27px !important;
    }


    #mbk-clean-header .mbk-mobile-cart-icon {
        width: 29px !important;
        height: 29px !important;
    }


    /* --------------------------------------------------------
       COMPACT APP SEARCH
       Previous final rule forced this to 60px.
       52px is more appropriate for an app-style header.
       -------------------------------------------------------- */

    #mbk-clean-header .mbk-clean-mobile-search {
        width: 100% !important;

        margin: 0 !important;
    }


    #mbk-clean-header .mbk-clean-mobile-search form {
        width: 100% !important;

        margin: 0 !important;
    }


    #mbk-clean-header .mbk-clean-mobile-search input {
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;

        padding-left: 18px !important;
        padding-right: 58px !important;

        border-radius: 12px !important;

        font-size: 16px !important;
    }


    /* Keep the current search icon positioning proportional */

    #mbk-clean-header .mbk-clean-mobile-search form::before {
        right: 21px !important;
    }


    #mbk-clean-header .mbk-clean-mobile-search form::after {
        right: 17px !important;
    }


    /* --------------------------------------------------------
       STICKY SEARCH
       Keep full-width app behaviour when activated.
       -------------------------------------------------------- */

    #mbk-clean-header
    .mbk-clean-mobile-search.mbk-search-stuck {

        left: 0 !important;
        right: 0 !important;

        width: 100vw !important;
        max-width: 100vw !important;

        margin: 0 !important;

        padding:
            7px
            10px !important;

        box-sizing: border-box !important;
    }

}
