/**
 * MBK Commerce Modules
 *
 * Isolated styles for the independent commerce modules plugin.
 */

/* Product picker */

.mbk-cm-product-picker {
    max-width: 900px;
}

.mbk-cm-product-search {
    width: 100%;
    max-width: 620px;
    min-height: 40px;
}

.mbk-cm-product-results {
    max-width: 700px;
    margin-top: 10px;
    border: 1px solid #dcdcde;
    background: #fff;
}

.mbk-cm-search-status {
    padding: 14px;
    color: #646970;
}

.mbk-cm-search-product,
.mbk-cm-selected-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid #f0f0f1;
}

.mbk-cm-search-product:last-child,
.mbk-cm-selected-product:last-child {
    border-bottom: 0;
}

.mbk-cm-search-product img,
.mbk-cm-selected-product img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    flex: 0 0 48px;
}

.mbk-cm-product-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.mbk-cm-product-details strong {
    line-height: 1.35;
}

.mbk-cm-product-details span {
    color: #646970;
    font-size: 13px;
}

.mbk-cm-selected-products {
    margin: 12px 0 0;
    padding: 0;
    max-width: 700px;
    border: 1px solid #dcdcde;
    background: #fff;
}

.mbk-cm-selected-products:empty {
    display: none;
}

.mbk-cm-selected-product {
    list-style: none;
    cursor: default;
}

.mbk-cm-product-handle {
    cursor: move;
    color: #646970;
    font-size: 18px;
    line-height: 1;
    flex: 0 0 20px;
}

.mbk-cm-remove-product {
    margin-left: auto;
    white-space: nowrap;
}


/* ============================================================
   MBK COMMERCE MODULES
   INDEPENDENT FRONTEND STYLES
   ============================================================ */

.mbk-cm-section {
    width: 100%;
    margin: 32px 0;
}

.mbk-cm-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.mbk-cm-section-head h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}

.mbk-cm-view-all {
    flex: 0 0 auto;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.mbk-cm-product-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.mbk-cm-product-strip::-webkit-scrollbar {
    height: 6px;
}

.mbk-cm-product {
    flex: 0 0 190px;
    min-width: 190px;
    overflow: hidden;

    scroll-snap-align: start;
}

.mbk-cm-product-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.mbk-cm-product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

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

.mbk-cm-no-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    font-size: 14px;
}

.mbk-cm-product-body {
    padding: 12px 2px 4px;
}

.mbk-cm-product-body h3 {
    margin: 0 0 8px;

    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
}

.mbk-cm-price {
    font-size: 15px;
    font-weight: 700;
}

.mbk-cm-price del {
    margin-right: 6px;
    opacity: 0.6;
    font-weight: 400;
}

.mbk-cm-countdown {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 8px;

    font-size: 13px;
}

.mbk-cm-countdown-label {
    white-space: nowrap;
}

.mbk-cm-countdown-value {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}


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

@media (max-width: 767px) {

    .mbk-cm-section {
        margin: 24px 0;
    }

    .mbk-cm-section-head {
        align-items: flex-start;
        margin-bottom: 14px;
    }

    .mbk-cm-section-head h2 {
        font-size: 20px;
    }

    .mbk-cm-product-strip {
        gap: 12px;

        margin-left: -2px;
        margin-right: -2px;

        padding-left: 2px;
        padding-right: 2px;
    }

    .mbk-cm-product {
        flex-basis: 150px;
        min-width: 150px;
    }

    .mbk-cm-product-body {
        padding-top: 10px;
    }

    .mbk-cm-product-body h3 {
        font-size: 13px;
    }

    .mbk-cm-price {
        font-size: 14px;
    }

    .mbk-cm-countdown {
        flex-wrap: wrap;
        gap: 4px 8px;
    }

}


/* ============================================================
   MBK COMMERCE MODULES
   PRODUCT CAROUSEL CONTROLS
   ============================================================ */

.mbk-cm-product-carousel {
    position: relative;
    width: 100%;
}

/*
 * The product strip remains the scrolling area.
 * The carousel wrapper only provides positioning
 * for the left/right controls.
 */

.mbk-cm-product-carousel
.mbk-cm-product-strip {
    width: 100%;
}


/* ============================================================
   CAROUSEL ARROWS
   ============================================================ */

.mbk-cm-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;

    width: 34px;
    height: 34px;

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

    transform: translateY(-50%);

    border: 1px solid #e5e5e5;
    border-radius: 50%;

    background: #fff;
    color: #333;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 4px 14px
        rgba(0, 0, 0, .12);

    transition:
        opacity .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.mbk-cm-carousel-arrow:hover {
    transform:
        translateY(-50%)
        scale(1.06);

    box-shadow:
        0 6px 18px
        rgba(0, 0, 0, .16);
}

.mbk-cm-carousel-arrow:disabled {
    opacity: 0;
    pointer-events: none;
}


/*
 * Place controls slightly inside the
 * product carousel edges.
 */

.mbk-cm-carousel-prev {
    left: 8px;
}

.mbk-cm-carousel-next {
    right: 8px;
}


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

@media (max-width: 767px) {

    .mbk-cm-carousel-arrow {
        width: 30px;
        height: 30px;

        font-size: 21px;
    }

    .mbk-cm-carousel-prev {
        left: 4px;
    }

    .mbk-cm-carousel-next {
        right: 4px;
    }

}


/* ============================================================
   MBK COMMERCE MODULES
   FINAL CAROUSEL ARROW APPEARANCE
   Match "Découvrez nos produits"
   ============================================================ */

.mbk-cm-product-carousel {
    position: relative;
    width: 100%;
}


/* ------------------------------------------------------------
   ARROW BUTTON
   ------------------------------------------------------------ */

.mbk-cm-carousel-arrow {
    position: absolute !important;
    top: 50% !important;

    width: 36px !important;
    height: 36px !important;

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

    padding: 0 !important;

    transform: translateY(-50%) !important;

    border: 1px solid #e3e7e5 !important;
    border-radius: 50% !important;

    background: #ffffff !important;

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

    cursor: pointer;

    z-index: 20 !important;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.12) !important;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


/* ------------------------------------------------------------
   CSS CHEVRON
   ------------------------------------------------------------ */

.mbk-cm-carousel-arrow::before {
    content: "";

    width: 8px;
    height: 8px;

    display: block;

    border-top: 2px solid #2f3432;
    border-right: 2px solid #2f3432;

    box-sizing: border-box;
}


/* LEFT CHEVRON */

.mbk-cm-carousel-prev::before {
    transform: rotate(-135deg);
    margin-left: 4px;
}


/* RIGHT CHEVRON */

.mbk-cm-carousel-next::before {
    transform: rotate(45deg);
    margin-right: 4px;
}


/* ------------------------------------------------------------
   POSITIONING
   ------------------------------------------------------------ */

.mbk-cm-carousel-prev {
    left: -18px !important;
}

.mbk-cm-carousel-next {
    right: -18px !important;
}


/* ------------------------------------------------------------
   HOVER
   ------------------------------------------------------------ */

.mbk-cm-carousel-arrow:hover:not(:disabled) {
    background: #ffffff !important;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.18) !important;
}


/* ------------------------------------------------------------
   DISABLED
   ------------------------------------------------------------ */

.mbk-cm-carousel-arrow:disabled {
    opacity: 0 !important;
    pointer-events: none !important;
}


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

@media (max-width: 767px) {

    .mbk-cm-carousel-arrow {
        width: 32px !important;
        height: 32px !important;
    }

    .mbk-cm-carousel-prev {
        left: -12px !important;
    }

    .mbk-cm-carousel-next {
        right: -12px !important;
    }

}



/* ============================================================
   WHOLESALE EXPERIENCE
   Matches the dedicated wholesale background area in the UI.
   Only affects the two wholesale commerce modules.
   ============================================================ */


/* ------------------------------------------------------------
   WHOLESALE DISCOVERY — START OF WHOLESALE AREA
   ------------------------------------------------------------ */

.mbk-cm-section.mbk-cm-wholesale-discovery {
    position: relative;

    margin-top: 32px;
    margin-bottom: 0;

    padding-top: 28px;
    padding-bottom: 24px;

    background:
        linear-gradient(
            180deg,
            #f5f8f6 0%,
            #f5f8f6 100%
        );
}


/* Extend the wholesale background to the viewport edges */

.mbk-cm-section.mbk-cm-wholesale-discovery::before {
    content: "";

    position: absolute;
    z-index: -1;

    top: 0;
    right: 50%;

    width: 100vw;
    height: 100%;

    background: #f5f8f6;
}

.mbk-cm-section.mbk-cm-wholesale-discovery::after {
    content: "";

    position: absolute;
    z-index: -1;

    top: 0;
    left: 50%;

    width: 100vw;
    height: 100%;

    background: #f5f8f6;
}


/* ------------------------------------------------------------
   WHOLESALE PRODUCTS — CONTINUATION OF SAME AREA
   ------------------------------------------------------------ */

.mbk-cm-section.mbk-cm-wholesale-discovery
+
.mbk-cm-section.mbk-cm-wholesale-products {
    position: relative;

    margin-top: 0;
    margin-bottom: 32px;

    padding-top: 8px;
    padding-bottom: 32px;

    background: #f5f8f6;
}


/* Extend second wholesale background full width */

.mbk-cm-section.mbk-cm-wholesale-discovery
+
.mbk-cm-section.mbk-cm-wholesale-products::before {
    content: "";

    position: absolute;
    z-index: -1;

    top: 0;
    right: 50%;

    width: 100vw;
    height: 100%;

    background: #f5f8f6;
}

.mbk-cm-section.mbk-cm-wholesale-discovery
+
.mbk-cm-section.mbk-cm-wholesale-products::after {
    content: "";

    position: absolute;
    z-index: -1;

    top: 0;
    left: 50%;

    width: 100vw;
    height: 100%;

    background: #f5f8f6;
}


/* ------------------------------------------------------------
   WHOLESALE HEADINGS
   ------------------------------------------------------------ */

.mbk-cm-wholesale-discovery
.mbk-cm-section-head,
.mbk-cm-wholesale-products
.mbk-cm-section-head {
    margin-bottom: 18px;
}


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

@media (max-width: 767px) {

    .mbk-cm-section.mbk-cm-wholesale-discovery {
        margin-top: 24px;

        padding-top: 22px;
        padding-bottom: 20px;
    }

    .mbk-cm-section.mbk-cm-wholesale-discovery
    +
    .mbk-cm-section.mbk-cm-wholesale-products {
        margin-bottom: 24px;

        padding-top: 4px;
        padding-bottom: 24px;
    }

}



/* ============================================================
   WHOLESALE DISCOVERY — REFERENCE PROMOTIONAL PRESENTATION
   Presentation layer only.
   Existing shared product carousel functionality is preserved.
   ============================================================ */

.mbk-cm-section.mbk-cm-wholesale-discovery {
    margin-top: 30px;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
}

.mbk-cm-section.mbk-cm-wholesale-discovery::before,
.mbk-cm-section.mbk-cm-wholesale-discovery::after {
    display: none;
}


/* ------------------------------------------------------------
   MAIN WHOLESALE CONTAINER
   ------------------------------------------------------------ */

.mbk-cm-wholesale-discovery
.mbk-cm-wholesale-reference-carousel {
    display: flex;
    align-items: stretch;

    min-height: 176px;

    overflow: hidden;

    border-radius: 12px;

    background:
        linear-gradient(
            90deg,
            #002f2a 0%,
            #003d36 100%
        );

    box-shadow:
        0 3px 12px
        rgba(
            0,
            0,
            0,
            .16
        );
}


/* ------------------------------------------------------------
   LEFT PROMOTIONAL PANEL
   ------------------------------------------------------------ */

.mbk-cm-wholesale-promo {
    position: relative;
    z-index: 4;

    flex: 0 0 240px;

    padding:
        17px
        18px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #002a25 0%,
            #003a33 100%
        );
}

.mbk-cm-wholesale-promo-title {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 8px;
}

.mbk-cm-wholesale-promo-icon {
    color: #e6f2ed;

    font-size: 20px;
    line-height: 1;
}

.mbk-cm-wholesale-promo h2 {
    margin: 0;

    color: #ffffff;

    font-size: 20px;
    line-height: 1.08;
    font-weight: 800;
}

.mbk-cm-wholesale-promo > p {
    margin:
        0
        0
        11px;

    color:
        rgba(
            255,
            255,
            255,
            .74
        );

    font-size: 11px;
    line-height: 1.45;
    font-weight: 600;
}

.mbk-cm-wholesale-promo ul {
    display: grid;

    gap: 6px;

    margin:
        0
        0
        13px;

    padding: 0;

    list-style: none;
}

.mbk-cm-wholesale-promo li {
    display: flex;
    align-items: center;

    gap: 7px;

    color:
        rgba(
            255,
            255,
            255,
            .86
        );

    font-size: 10px;
    line-height: 1.25;
    font-weight: 600;
}

.mbk-cm-wholesale-promo li span {
    color: #42b783;

    font-size: 13px;
    font-weight: 900;
}

.mbk-cm-wholesale-promo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;

    padding:
        0
        15px;

    border-radius: 4px;

    background: #ffffff;

    color: #00352f !important;

    text-decoration: none;

    font-size: 10px;
    line-height: 1;
    font-weight: 800;
}


/* ------------------------------------------------------------
   EXISTING CAROUSEL — WHOLESALE LAYOUT ONLY
   ------------------------------------------------------------ */

.mbk-cm-wholesale-discovery
.mbk-cm-wholesale-reference-carousel
.mbk-cm-product-strip {
    flex: 1;

    padding:
        10px
        58px
        10px
        10px;

    gap: 9px;
}

.mbk-cm-wholesale-discovery
.mbk-cm-wholesale-reference-carousel
.mbk-cm-product {
    flex:
        0 0 112px;

    min-width: 112px;

    height: 156px;

    overflow: hidden;

    border-radius: 7px;

    background: #ffffff;

    box-shadow:
        0 1px 4px
        rgba(
            0,
            0,
            0,
            .15
        );
}

.mbk-cm-wholesale-discovery
.mbk-cm-wholesale-reference-carousel
.mbk-cm-product-image {
    height: 88px;

    padding: 5px;
}

.mbk-cm-wholesale-discovery
.mbk-cm-wholesale-reference-carousel
.mbk-cm-product-body {
    padding:
        5px
        8px
        7px;
}

.mbk-cm-wholesale-discovery
.mbk-cm-wholesale-reference-carousel
.mbk-cm-product-body h3 {
    display: -webkit-box;

    min-height: 22px;

    margin:
        0
        0
        3px;

    overflow: hidden;

    font-size: 9px;
    line-height: 1.2;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mbk-cm-wholesale-discovery
.mbk-cm-wholesale-reference-carousel
.mbk-cm-price {
    margin-bottom: 3px;

    font-size: 10px;
    line-height: 1.1;
    font-weight: 800;
}

.mbk-cm-wholesale-quantity {
    overflow: hidden;

    color: #ef6c3d;

    font-size: 8px;
    line-height: 1.2;
    font-weight: 800;

    white-space: nowrap;
    text-overflow: ellipsis;
}


/* ------------------------------------------------------------
   NAVIGATION
   Existing JS still controls both arrows.
   The reference UI displays only the right arrow.
   ------------------------------------------------------------ */

.mbk-cm-wholesale-discovery
.mbk-cm-wholesale-reference-carousel
.mbk-cm-carousel-prev {
    display: none !important;
}

.mbk-cm-wholesale-discovery
.mbk-cm-wholesale-reference-carousel
.mbk-cm-carousel-next {
    right: 14px;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: #ffffff;

    color: #56615d;
}


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

@media (max-width: 767px) {

    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-reference-carousel {
        display: block;

        border-radius: 10px;
    }

    .mbk-cm-wholesale-promo {
        width: 100%;

        padding:
            16px
            15px;
    }

    .mbk-cm-wholesale-promo > p br {
        display: none;
    }

    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-reference-carousel
    .mbk-cm-product-strip {
        padding:
            10px
            46px
            10px
            10px;

        background: #003a33;
    }

    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-reference-carousel
    .mbk-cm-product {
        flex-basis: 118px;

        min-width: 118px;

        height: 166px;
    }

}


/* ============================================================
   WHOLESALE DISCOVERY — FINAL COMPACT REFERENCE MATCH
   Overrides only the presentation of the wholesale discovery UI.
   ============================================================ */

@media (min-width: 768px) {

    /* --------------------------------------------------------
       MAIN WHOLESALE STRIP
       -------------------------------------------------------- */

    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-reference-carousel {
        min-height: 168px !important;
        height: 168px;

        align-items: stretch;

        border-radius: 10px;
    }


    /* --------------------------------------------------------
       LEFT PROMOTIONAL AREA
       Reference is compact, not a large sidebar.
       -------------------------------------------------------- */

    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-promo {
        flex: 0 0 190px;

        width: 190px;

        padding:
            16px
            18px;
    }


    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-promo-title {
        gap: 7px;

        margin-bottom: 7px;
    }


    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-promo-icon {
        font-size: 17px;
    }


    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-promo h2 {
        font-size: 17px;
        line-height: 1.12;
    }


    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-promo > p {
        margin:
            0
            0
            10px;

        font-size: 9px;
        line-height: 1.45;
    }


    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-promo ul {
        gap: 5px;

        margin:
            0
            0
            11px;
    }


    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-promo li {
        gap: 6px;

        font-size: 8px;
        line-height: 1.25;
    }


    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-promo li span {
        font-size: 11px;
    }


    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-promo-button {
        min-height: 27px;

        padding:
            0
            13px;

        font-size: 8px;

        border-radius: 4px;
    }


    /* --------------------------------------------------------
       PRODUCT STRIP
       -------------------------------------------------------- */

    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-reference-carousel
    .mbk-cm-product-strip {
        flex: 1 1 auto;

        gap: 8px;

        padding:
            9px
            48px
            9px
            8px;

        min-width: 0;

        align-items: flex-start;
    }


    /* --------------------------------------------------------
       COMPACT PRODUCT CARDS
       -------------------------------------------------------- */

    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-reference-carousel
    .mbk-cm-product {
        flex: 0 0 104px;

        min-width: 104px;
        width: 104px;

        height: 148px;

        border-radius: 6px;
    }


    /* --------------------------------------------------------
       PRODUCT IMAGE
       -------------------------------------------------------- */

    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-reference-carousel
    .mbk-cm-product-image {
        height: 82px;

        aspect-ratio: auto;

        padding: 4px;
    }


    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-reference-carousel
    .mbk-cm-product-image img {
        object-fit: cover;
    }


    /* --------------------------------------------------------
       PRODUCT CONTENT
       -------------------------------------------------------- */

    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-reference-carousel
    .mbk-cm-product-body {
        padding:
            4px
            7px
            6px;
    }


    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-reference-carousel
    .mbk-cm-product-body h3 {
        min-height: 20px;

        margin:
            0
            0
            2px;

        font-size: 8px;
        line-height: 1.2;
    }


    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-reference-carousel
    .mbk-cm-price {
        margin-bottom: 2px;

        font-size: 9px;
        line-height: 1.1;
    }


    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-quantity {
        font-size: 7px;
        line-height: 1.2;
    }


    /* --------------------------------------------------------
       WHOLESALE ARROW
       Explicitly override global !important rules.
       -------------------------------------------------------- */

    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-reference-carousel
    .mbk-cm-carousel-next {
        right: 8px !important;

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

        z-index: 30 !important;
    }

}



/* ============================================================
   WHOLESALE DISCOVERY — PROMO VERTICAL ALIGNMENT FIX
   Prevent button clipping and match compact reference spacing.
   ============================================================ */

@media (min-width: 768px) {

    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-promo {
        display: flex;
        flex-direction: column;

        justify-content: center;

        padding-top: 13px;
        padding-bottom: 13px;
    }


    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-promo-title {
        margin-bottom: 5px;
    }


    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-promo > p {
        margin-bottom: 7px;
    }


    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-promo ul {
        gap: 4px;

        margin-bottom: 9px;
    }


    .mbk-cm-wholesale-discovery
    .mbk-cm-wholesale-promo-button {
        flex: 0 0 auto;

        align-self: flex-start;

        min-height: 26px;
    }

}


/* =========================================================
   WHOLESALE DISCOVERY
   Dedicated frontend layout.
   Only applies to the new Wholesale Discovery renderer.
   ========================================================= */

.mbk-cm-wholesale-discovery-new {
    position: relative !important;
    isolation: isolate;
    width: 100%;
    overflow: hidden;
    padding: 56px 0 64px !important;
    background:
        var(--mbk-cm-wholesale-image, none)
        center center / cover no-repeat,
        var(--mbk-cm-wholesale-background, #063d32) !important;
}


/* Disable legacy full-width wholesale pseudo backgrounds
   for the new dedicated renderer. */

.mbk-cm-wholesale-discovery-new::before,
.mbk-cm-wholesale-discovery-new::after {
    display: none !important;
}


/* Background overlay */

.mbk-cm-wholesale-discovery-new > * {
    position: relative;
    z-index: 2;
}


.mbk-cm-wholesale-discovery-new::marker {
    display: none;
}


/* Inner layout */

.mbk-cm-wholesale-discovery-inner {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 2.1fr);
    gap: 42px;

    align-items: stretch;
}


/* =========================================================
   HERO
   ========================================================= */

.mbk-cm-wholesale-hero {
    position: relative;

    min-height: 100%;

    border-radius: 24px;

    padding: 42px 36px;

    background:
        linear-gradient(
            145deg,
            color-mix(
                in srgb,
                var(--mbk-cm-wholesale-overlay, #063d32) 94%,
                transparent
            ),
            color-mix(
                in srgb,
                var(--mbk-cm-wholesale-overlay, #063d32) 76%,
                transparent
            )
        );

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.22);

    overflow: hidden;
}


.mbk-cm-wholesale-hero::after {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    right: -140px;
    bottom: -140px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.06);
}


.mbk-cm-wholesale-hero-content {
    position: relative;
    z-index: 2;
}


/* Badge */

.mbk-cm-wholesale-badge {
    display: inline-flex;
    align-items: center;

    margin-bottom: 24px;

    padding: 8px 14px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.13);

    border:
        1px solid rgba(255, 255, 255, 0.14);

    color: #ffffff;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* Headline */

.mbk-cm-wholesale-headline {
    margin: 0;

    display: flex;
    flex-direction: column;

    gap: 2px;

    color: #ffffff;

    font-size: clamp(32px, 3vw, 52px);

    line-height: 1.03;

    letter-spacing: -0.04em;
}


.mbk-cm-wholesale-headline span {
    display: block;

    font-weight: 700;
}


.mbk-cm-wholesale-headline strong {
    display: block;

    color: #ff9d00;

    font-weight: 900;
}


/* Description */

.mbk-cm-wholesale-description {
    margin: 24px 0 0;

    max-width: 520px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 15px;

    line-height: 1.7;
}


/* Benefits */

.mbk-cm-wholesale-benefits {
    margin: 30px 0;

    padding: 0;

    list-style: none;

    display: grid;

    gap: 14px;
}


.mbk-cm-wholesale-benefits li {
    display: flex;
    align-items: center;

    gap: 12px;

    color: #ffffff;

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


.mbk-cm-wholesale-benefits li span {
    display: inline-flex;

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

    width: 24px;
    height: 24px;

    flex: 0 0 24px;

    border-radius: 50%;

    background: #ff9d00;

    color: #063d32;

    font-size: 13px;
    font-weight: 900;
}


/* CTA */

.mbk-cm-wholesale-cta {
    display: inline-flex;
    align-items: center;

    gap: 14px;

    padding: 15px 22px;

    border-radius: 12px;

    background: #ff9d00;

    color: #063d32 !important;

    text-decoration: none !important;

    font-size: 14px;
    font-weight: 800;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.mbk-cm-wholesale-cta:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.25);
}


.mbk-cm-wholesale-cta span {
    font-size: 20px;
    line-height: 1;
}


/* =========================================================
   PRODUCT AREA
   ========================================================= */

.mbk-cm-wholesale-products-area {
    min-width: 0;

    display: flex;
    align-items: center;
}


/*
 * Desktop:
 * Exactly 4 products per row.
 */

.mbk-cm-wholesale-products-grid {
    width: 100%;

    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px !important;

    overflow: visible !important;
}


/*
 * Completely reset generic carousel/card sizing.
 */

.mbk-cm-wholesale-discovery-new
.mbk-cm-wholesale-products-grid
.mbk-cm-wholesale-product {
    width: auto !important;

    min-width: 0 !important;

    max-width: none !important;

    margin: 0 !important;

    flex: none !important;

    border-radius: 16px;

    overflow: hidden;

    background: #ffffff;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.14);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.mbk-cm-wholesale-discovery-new
.mbk-cm-wholesale-products-grid
.mbk-cm-wholesale-product:hover {
    transform: translateY(-4px);

    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.22);
}


.mbk-cm-wholesale-discovery-new
.mbk-cm-wholesale-product
.mbk-cm-product-link {
    display: flex !important;

    flex-direction: column;

    height: 100%;

    text-decoration: none !important;

    color: inherit !important;
}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.mbk-cm-wholesale-discovery-new
.mbk-cm-wholesale-product
.mbk-cm-product-image {
    position: relative;

    width: 100% !important;

    height: auto !important;

    aspect-ratio: 1 / 1;

    min-height: 0 !important;

    overflow: hidden;

    background: #f6f7f6;
}


.mbk-cm-wholesale-discovery-new
.mbk-cm-wholesale-product
.mbk-cm-product-image img {
    display: block;

    width: 100% !important;

    height: 100% !important;

    max-width: none !important;

    object-fit: cover !important;

    transition: transform 0.35s ease;
}


.mbk-cm-wholesale-discovery-new
.mbk-cm-wholesale-product:hover
.mbk-cm-product-image img {
    transform: scale(1.04);
}


.mbk-cm-wholesale-discovery-new
.mbk-cm-wholesale-product
.mbk-cm-no-image {
    width: 100%;
    height: 100%;

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

    color: #68736e;

    font-size: 13px;
}


/* =========================================================
   PRODUCT BODY
   ========================================================= */

.mbk-cm-wholesale-discovery-new
.mbk-cm-wholesale-product
.mbk-cm-product-body {
    display: flex !important;

    flex-direction: column;

    align-items: flex-start !important;

    gap: 8px;

    padding: 14px 14px 16px !important;

    background: #ffffff;
}


.mbk-cm-wholesale-discovery-new
.mbk-cm-wholesale-product
.mbk-cm-product-body h3 {
    margin: 0 !important;

    width: 100%;

    display: -webkit-box;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;

    color: #18231f !important;

    font-size: 13px !important;

    font-weight: 700 !important;

    line-height: 1.35 !important;
}


.mbk-cm-wholesale-discovery-new
.mbk-cm-wholesale-product
.mbk-cm-price {
    margin-top: auto;

    color: #063d32 !important;

    font-size: 14px !important;

    font-weight: 800 !important;
}


.mbk-cm-wholesale-discovery-new
.mbk-cm-wholesale-product
.mbk-cm-price del {
    opacity: 0.5;
}


.mbk-cm-wholesale-discovery-new
.mbk-cm-wholesale-product
.mbk-cm-price ins {
    text-decoration: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1180px) {

    .mbk-cm-wholesale-discovery-inner {
        grid-template-columns:
            minmax(260px, 0.8fr)
            minmax(0, 1.7fr);

        gap: 28px;
    }


    .mbk-cm-wholesale-products-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE / SMALL TABLET
   ========================================================= */

@media (max-width: 860px) {

    .mbk-cm-wholesale-discovery-new {
        padding: 30px 0 38px !important;
    }


    .mbk-cm-wholesale-discovery-inner {
        width: min(100% - 28px, 680px);

        grid-template-columns: 1fr;

        gap: 24px;
    }


    .mbk-cm-wholesale-hero {
        padding: 30px 24px;
    }


    .mbk-cm-wholesale-products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px !important;
    }

}


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

@media (max-width: 480px) {

    .mbk-cm-wholesale-discovery-inner {
        width: calc(100% - 20px);
    }


    .mbk-cm-wholesale-hero {
        border-radius: 18px;

        padding: 26px 20px;
    }


    .mbk-cm-wholesale-badge {
        margin-bottom: 18px;

        font-size: 10px;
    }


    .mbk-cm-wholesale-headline {
        font-size: 30px;
    }


    .mbk-cm-wholesale-description {
        margin-top: 18px;

        font-size: 13px;
    }


    .mbk-cm-wholesale-benefits {
        margin: 22px 0;

        gap: 11px;
    }


    .mbk-cm-wholesale-benefits li {
        font-size: 13px;
    }


    .mbk-cm-wholesale-products-grid {
        gap: 10px !important;
    }


    .mbk-cm-wholesale-discovery-new
    .mbk-cm-wholesale-product {
        border-radius: 12px;
    }


    .mbk-cm-wholesale-discovery-new
    .mbk-cm-wholesale-product
    .mbk-cm-product-body {
        padding: 10px 10px 12px !important;
    }


    .mbk-cm-wholesale-discovery-new
    .mbk-cm-wholesale-product
    .mbk-cm-product-body h3 {
        font-size: 12px !important;
    }


    .mbk-cm-wholesale-discovery-new
    .mbk-cm-wholesale-product
    .mbk-cm-price {
        font-size: 12px !important;
    }

}


