/*
==============================================================
MERCI BOKKU
PRODUCT PAGE — EXACT DESKTOP COMMERCE LAYOUT
==============================================================
*/

.mbk-product-page {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    padding: 24px 0 80px;
    color: #102b3f;
    box-sizing: border-box;
}

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

/*
==============================================================
BREADCRUMB
==============================================================
*/

.mbk-product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    color: #718096;
    font-size: 14px;
    line-height: 1.5;
}

.mbk-product-breadcrumb a {
    color: #718096;
    text-decoration: none;
}

.mbk-product-breadcrumb a:hover {
    color: #006b46;
}

.mbk-crumb-separator {
    color: #9aa6b2;
}

.mbk-current-product {
    max-width: 700px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*
==============================================================
MAIN DESKTOP GRID
==============================================================
*/

.mbk-product-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 42px;
    align-items: start;
    position: relative;
    overflow: visible;
}

.mbk-product-left {
    min-width: 0;
    overflow: visible;
}

.mbk-product-sidebar {
    min-width: 0;
    align-self: start;
    position: sticky;
    top: 24px;
    height: fit-content;
    z-index: 20;
}

/*
IMPORTANT:
The sidebar is sticky, NOT fixed.
Therefore it remains inside the product page
and cannot invade header/footer.
*/

.mbk-purchase-panel {
    position: static !important;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

/*
==============================================================
GALLERY
==============================================================
*/

.mbk-product-gallery-section {
    width: 100%;
    margin-bottom: 24px;
}

.mbk-product-gallery {
    width: 100%;
}

.mbk-gallery-main {
    position: relative;
    width: 100%;
    height: 600px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e4e8eb;
    border-radius: 16px;
    overflow: hidden;
}

.mbk-main-gallery-image {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
}

.mbk-main-gallery-image.is-active {
    display: block;
}

.mbk-gallery-placeholder {
    color: #7b8794;
}

.mbk-gallery-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 4;
    background: #087443;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 5px;
    text-transform: uppercase;
}

.mbk-gallery-favorite {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 50px;
    height: 50px;
    border: 1px solid #e1e6ea;
    border-radius: 50%;
    background: #fff;
    color: #006b46;
    font-size: 27px;
    cursor: pointer;
    z-index: 5;
}

.mbk-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 1px solid #e2e7ea;
    background: #fff;
    border-radius: 50%;
    color: #00734b;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
}

.mbk-gallery-prev {
    left: 18px;
}

.mbk-gallery-next {
    right: 18px;
}

.mbk-gallery-arrow:hover {
    background: #f7faf9;
}

/*
==============================================================
THUMBNAILS
==============================================================
*/

.mbk-product-thumbnails {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.mbk-product-thumb,
.mbk-product-more-images {
    height: 88px;
    min-width: 0;
    padding: 5px;
    border: 1px solid #e2e7ea;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
}

.mbk-product-thumb.is-active {
    border: 2px solid #ff6900;
}

.mbk-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mbk-product-more-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #17344b;
}

.mbk-product-more-images strong {
    font-size: 20px;
}

.mbk-product-more-images span {
    font-size: 12px;
}

/*
==============================================================
ABOUT / FULL DESCRIPTION
==============================================================
*/

.mbk-product-description-section,
.mbk-product-details-section,
.mbk-recommendations {
    width: 100%;
    margin-top: 24px;
    border: 1px solid #e4e8eb;
    border-radius: 14px;
    background: #fff;
    padding: 24px;
}

.mbk-section-heading {
    color: #006b46;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.mbk-product-accordion > details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    cursor: pointer;
    list-style: none;
}

.mbk-product-accordion > details > summary::-webkit-details-marker {
    display: none;
}

.mbk-product-accordion > details > summary .mbk-accordion-chevron {
    flex: 0 0 auto;
    color: #ff6900;
    font-size: 24px;
    line-height: 1;
    transition: transform 180ms ease;
}

.mbk-product-accordion > details[open] > summary {
    margin-bottom: 20px;
}

.mbk-product-accordion > details[open] > summary .mbk-accordion-chevron {
    transform: rotate(180deg);
}

.mbk-accordion-panel {
    width: 100%;
}

.mbk-about-preview {
    margin-top: 20px;
}

.mbk-about-preview video,
.mbk-about-preview iframe,
.mbk-about-preview embed {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 360px;
    border: 0;
    border-radius: 10px;
    background: #132d47;
    object-fit: contain;
}

.mbk-about-preview iframe {
    aspect-ratio: 16 / 9;
}

.mbk-accordion-preview-link {
    display: inline-flex;
    align-items: center;
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ff6900;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.mbk-accordion-preview-link:hover,
.mbk-accordion-preview-link:focus-visible {
    color: #006b46;
    text-decoration: underline;
}

.mbk-full-description {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    color: #475569;
    font-size: 15px;
    line-height: 1.75;
}

.mbk-full-description p {
    margin: 0 0 18px;
}

.mbk-full-description img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto !important;
    margin: 18px auto;
    object-fit: contain;
}

.mbk-full-description iframe,
.mbk-full-description video,
.mbk-full-description embed {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
}

.mbk-full-description iframe {
    min-height: 420px;
}

.mbk-full-description table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

.mbk-full-description figure {
    max-width: 100%;
    margin: 20px 0;
}

.mbk-full-description figure img {
    max-width: 100%;
}

.mbk-full-description video {
    max-height: 760px;
    object-fit: contain;
}

/*
AliExpress long-description images must NEVER
escape the left content column.
*/

.mbk-full-description > img,
.mbk-full-description > p > img,
.mbk-full-description > div > img {
    max-width: 100% !important;
    height: auto !important;
}

/*
==============================================================
PRODUCT DETAILS
==============================================================
*/

.mbk-product-attributes {
    width: 100%;
}

.mbk-attribute-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f2;
}

.mbk-attribute-row strong {
    color: #243b53;
}

.mbk-attribute-row span {
    color: #62758a;
}

.mbk-info-accordions {
    margin-top: 20px;
    border-top: 1px solid #e6eaed;
}

.mbk-info-accordions details {
    border-bottom: 1px solid #e6eaed;
}

.mbk-info-accordions summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 4px;
    cursor: pointer;
    font-weight: 700;
    color: #17344b;
    list-style: none;
}

.mbk-info-accordions summary::-webkit-details-marker {
    display: none;
}

.mbk-info-accordions details > div {
    padding: 0 4px 18px;
    color: #66788a;
    line-height: 1.7;
}

/*
==============================================================
RIGHT PURCHASE PANEL
==============================================================
*/

.mbk-purchase-category {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #718096;
    font-size: 14px;
    margin-bottom: 12px;
}

.mbk-purchase-category span {
    color: #00734b;
}

.mbk-purchase-panel h1 {
    margin: 0 0 16px;
    color: #006b46;
    font-size: clamp(30px, 2.8vw, 48px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -1px;
}

.mbk-product-rating {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #718096;
    font-size: 14px;
    margin-bottom: 28px;
}

.mbk-stars {
    color: #ff8a00;
    letter-spacing: 1px;
    font-size: 18px;
}

.mbk-product-price {
    margin-bottom: 20px;
    color: #132d47;
    font-size: 32px;
    font-weight: 900;
}

.mbk-product-price del {
    color: #9aa5af;
    font-size: 17px;
    margin-right: 8px;
}

.mbk-product-price ins {
    text-decoration: none;
    color: #ff6900;
}

.mbk-stock-row {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 28px;
    font-size: 14px;
    color: #718096;
}

.mbk-in-stock {
    color: #007443;
    font-weight: 700;
}

.mbk-out-stock {
    color: #c53030;
    font-weight: 700;
}

/*
==============================================================
PAYMENT
==============================================================
*/

.mbk-payment-box {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 18px;
    border: 1px solid #e0e5e9;
    border-radius: 10px;
    margin-bottom: 22px;
}

.mbk-payment-box strong {
    display: block;
    color: #1d2939;
    margin-bottom: 12px;
    font-size: 13px;
}

.mbk-payment-methods {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #152c42;
    font-weight: 700;
    font-size: 13px;
}

.mbk-payment-brand {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border: 1px solid rgba(0, 107, 70, 0.18);
    border-radius: 6px;
    background: #f2faf6;
    color: #006b46;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.mbk-payment-methods span {
    padding: 5px 7px;
    border-radius: 5px;
}

/*
==============================================================
VARIATIONS
==============================================================
*/

.mbk-variation-options {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.mbk-variation-options label {
    display: grid;
    gap: 8px;
}

.mbk-variation-options select {
    width: 100%;
    height: 44px;
    border: 1px solid #dce2e7;
    border-radius: 8px;
    background: #fff;
    padding: 0 12px;
}

/*
==============================================================
QUANTITY
==============================================================
*/

.mbk-quantity-label {
    color: #172b3a;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 8px;
}

.mbk-quantity {
    display: flex;
    align-items: center;
    width: 130px;
    height: 48px;
    border: 1px solid #dce2e7;
    border-radius: 8px;
    margin-bottom: 18px;
    overflow: hidden;
}

.mbk-quantity button {
    width: 42px;
    height: 100%;
    border: 0;
    background: #fff;
    cursor: pointer;
    font-size: 20px;
}

.mbk-quantity input {
    width: 46px;
    height: 100%;
    border: 0;
    text-align: center;
    font-weight: 700;
    background: #fff;
}

.mbk-quantity input::-webkit-inner-spin-button,
.mbk-quantity input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/*
==============================================================
ACTION BUTTONS
==============================================================
*/

.mbk-add-cart-button,
.mbk-buy-now-button {
    width: 100%;
    height: 52px;
    border-radius: 7px;
    border: 0;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    margin-bottom: 10px;
}

.mbk-add-cart-button {
    background: #ff6900;
    color: #fff;
}

.mbk-buy-now-button {
    background: #007443;
    color: #fff;
}

.mbk-add-cart-button:hover {
    background: #e95f00;
}

.mbk-buy-now-button:hover {
    background: #005f37;
}

.mbk-favorite-button {
    width: 100%;
    height: 48px;
    background: #fff;
    border: 1px solid #e1e6e9;
    color: #007443;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    margin-bottom: 20px;
}

/*
==============================================================
SIDEBAR BENEFITS
==============================================================
*/

.mbk-sidebar-benefits {
    display: grid;
    gap: 18px;
    padding: 18px 0;
}

.mbk-sidebar-benefit {
    display: flex;
    align-items: center;
    gap: 13px;
}

.mbk-benefit-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe6e1;
    border-radius: 50%;
    color: #007443;
}

.mbk-sidebar-benefit strong,
.mbk-sidebar-benefit small {
    display: block;
}

.mbk-sidebar-benefit strong {
    color: #17344b;
    font-size: 13px;
}

.mbk-sidebar-benefit small {
    margin-top: 3px;
    color: #7b8794;
    font-size: 12px;
}

/*
==============================================================
SELLER
==============================================================
*/

.mbk-seller-box {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid #e2e7ea;
    border-radius: 10px;
    margin-top: 8px;
}

.mbk-seller-box strong {
    color: #17344b;
}

.mbk-seller-box span {
    color: #718096;
    font-size: 13px;
}

/*
==============================================================
RECOMMENDATIONS
==============================================================
*/

.mbk-recommendation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.mbk-recommendation-header h2 {
    margin: 0;
    color: #006b46;
    font-size: 20px;
    font-weight: 900;
}

.mbk-recommendation-header a {
    color: #17344b;
    font-size: 13px;
    text-decoration: none;
}

.mbk-recommendation-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.mbk-recommendation-card {
    min-width: 0;
}

.mbk-recommendation-card a {
    text-decoration: none;
    color: inherit;
}

.mbk-recommendation-image {
    width: 100%;
    height: 180px;
    border: 1px solid #e3e7ea;
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
}

.mbk-recommendation-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mbk-recommendation-card h3 {
    margin: 10px 0 7px;
    color: #17344b;
    font-size: 14px;
    line-height: 1.4;
}

.mbk-rec-price {
    color: #ff6900;
    font-weight: 900;
}

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

.mbk-mobile-sticky-buy {
    display: none;
}

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

@media (max-width: 900px) {

    .mbk-product-page {
        width: calc(100% - 24px);
        padding: 14px 0 80px;
    }

    .mbk-product-shell {
        display: block;
    }

    .mbk-product-sidebar {
        position: static;
        width: 100%;
    }

    .mbk-purchase-panel {
        margin-top: 20px;
    }

    .mbk-purchase-panel h1 {
        font-size: 27px;
        line-height: 1.12;
        letter-spacing: -.4px;
    }

    .mbk-gallery-main {
        height: 430px;
        min-height: 360px;
    }

    .mbk-product-thumbnails {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .mbk-product-thumb,
    .mbk-product-more-images {
        height: 72px;
    }

    .mbk-product-description-section,
    .mbk-product-details-section,
    .mbk-recommendations {
        padding: 16px;
    }

    .mbk-full-description {
        font-size: 14px;
    }

    .mbk-full-description iframe {
        min-height: 250px;
    }

    .mbk-attribute-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .mbk-recommendation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /*
     * Mobile purchase panel is normal content.
     * Compact bar remains visible at top.
     */

    .mbk-mobile-sticky-buy {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 99999;
        min-height: 58px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 8px 12px;
        background: #fff;
        border-bottom: 1px solid #e2e7ea;
        box-shadow: 0 3px 15px rgba(0,0,0,.08);
    }

    .mbk-mobile-sticky-buy strong {
        color: #17344b;
        font-size: 15px;
    }

    .mbk-mobile-add-cart {
        height: 42px;
        padding: 0 18px;
        border: 0;
        border-radius: 7px;
        background: #ff6900;
        color: #fff;
        font-weight: 800;
    }
}

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

@media (min-width: 1500px) {

    .mbk-product-shell {
        grid-template-columns: minmax(0, 1fr) 460px;
        gap: 50px;
    }

    .mbk-gallery-main {
        height: 650px;
    }
}


/* ============================================================
   MBK — EXACT PRODUCT PAGE STRUCTURE
   ============================================================

   Desktop:

   ┌────────────────────────────────────┬───────────────┐
   │                                    │               │
   │         PRODUCT LEFT               │ PURCHASE INFO │
   │                                    │               │
   │         Gallery                    │ Price         │
   │         Description                │ Payment       │
   │         Video                      │ Quantity      │
   │         Details                    │ Add to cart   │
   │         Recommendations            │ Buy now       │
   │                                    │               │
   └────────────────────────────────────┴───────────────┘

   The right column is STICKY.
   It is NOT fixed.
   It is NOT inside a scrolling box.
   It is NOT a card.
   It cannot enter the header or footer.
   ============================================================ */


@media (min-width: 901px) {

    /*
     * ----------------------------------------------------------
     * PAGE
     * ----------------------------------------------------------
     */

    .mbk-product-page {
        width: 100% !important;
        max-width: 1440px !important;

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

        padding-left: 32px !important;
        padding-right: 32px !important;

        box-sizing: border-box !important;

        position: relative !important;

        overflow: visible !important;
    }


    /*
     * ----------------------------------------------------------
     * BREADCRUMB
     * ----------------------------------------------------------
     */

    .mbk-product-breadcrumb {
        width: 100% !important;

        margin-bottom: 20px !important;

        position: relative !important;

        z-index: 1 !important;
    }


    /*
     * ----------------------------------------------------------
     * REAL PRODUCT SHELL
     *
     * THIS is the actual wrapper used by the new PHP.
     * ----------------------------------------------------------
     */

    .mbk-product-shell {

        display: grid !important;

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

        column-gap: 48px !important;

        align-items: start !important;

        width: 100% !important;

        margin: 0 !important;

        padding: 0 !important;

        position: relative !important;

        overflow: visible !important;

        height: auto !important;

        max-height: none !important;
    }


    /*
     * ----------------------------------------------------------
     * LEFT SIDE
     *
     * Gallery + description + video + details +
     * recommendations remain in normal document flow.
     * ----------------------------------------------------------
     */

    .mbk-product-left {

        grid-column: 1 !important;

        grid-row: 1 !important;

        width: 100% !important;

        min-width: 0 !important;

        margin: 0 !important;

        padding: 0 !important;

        position: relative !important;

        overflow: visible !important;

        height: auto !important;

        max-height: none !important;
    }


    /*
     * ----------------------------------------------------------
     * RIGHT PURCHASE COLUMN
     *
     * IMPORTANT:
     * sticky belongs to the RIGHT COLUMN.
     *
     * It must remain in the grid.
     * ----------------------------------------------------------
     */

    .mbk-product-shell > .mbk-product-info {

        grid-column: 2 !important;

        grid-row: 1 !important;

        align-self: start !important;

        position: sticky !important;

        top: 110px !important;

        width: 100% !important;

        max-width: 430px !important;

        height: auto !important;

        min-height: 0 !important;

        max-height: none !important;

        margin: 0 !important;

        padding: 0 !important;

        overflow: visible !important;

        overflow-y: visible !important;

        overflow-x: visible !important;

        background: transparent !important;

        border: 0 !important;

        border-radius: 0 !important;

        box-shadow: none !important;

        box-sizing: border-box !important;

        z-index: 20 !important;
    }


    /*
     * ----------------------------------------------------------
     * NEVER TURN PURCHASE COLUMN INTO A CARD
     * ----------------------------------------------------------
     */

    .mbk-product-shell > .mbk-product-info::before,
    .mbk-product-shell > .mbk-product-info::after {

        display: none !important;

        content: none !important;

        border: 0 !important;

        box-shadow: none !important;
    }


    /*
     * ----------------------------------------------------------
     * NO INTERNAL SCROLLING
     * ----------------------------------------------------------
     */

    .mbk-product-shell > .mbk-product-info,
    .mbk-product-shell > .mbk-product-info * {

        max-height: none !important;
    }

    .mbk-product-shell > .mbk-product-info {

        overflow: visible !important;
        overflow-y: visible !important;
        overflow-x: visible !important;
    }


    /*
     * ----------------------------------------------------------
     * LEFT CONTENT MUST NOT BE RESTRICTED
     * ----------------------------------------------------------
     */

    .mbk-product-gallery-section,
    .mbk-product-description-section,
    .mbk-product-details-section,
    .mbk-product-recommendations,
    .mbk-product-left section {

        width: 100% !important;

        max-width: none !important;

        height: auto !important;

        max-height: none !important;

        overflow: visible !important;
    }


    /*
     * ----------------------------------------------------------
     * DESCRIPTION MEDIA
     *
     * Imported AliExpress descriptions often contain huge
     * images/videos. Keep them inside the left column.
     * ----------------------------------------------------------
     */

    .mbk-full-description img {

        display: block !important;

        max-width: 100% !important;

        width: auto !important;

        height: auto !important;

        object-fit: contain !important;

        margin-left: auto !important;

        margin-right: auto !important;
    }

    .mbk-full-description video,
    .mbk-full-description iframe {

        display: block !important;

        max-width: 100% !important;

        width: 100% !important;

        height: auto !important;

        margin-left: auto !important;

        margin-right: auto !important;
    }


    /*
     * ----------------------------------------------------------
     * HEADER ALWAYS ABOVE PRODUCT CONTENT
     * ----------------------------------------------------------
     */

    header,
    #mbk-clean-header,
    .mbk-clean-header {

        position: relative !important;

        z-index: 1000 !important;
    }


    /*
     * ----------------------------------------------------------
     * FOOTER ALWAYS ABOVE / OUTSIDE PRODUCT AREA
     * ----------------------------------------------------------
     */

    footer {

        position: relative !important;

        z-index: 1000 !important;
    }

}


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

@media (max-width: 900px) {

    .mbk-product-page {

        width: 100% !important;

        max-width: none !important;

        margin: 0 !important;

        padding-left: 16px !important;

        padding-right: 16px !important;

        box-sizing: border-box !important;
    }


    .mbk-product-shell {

        display: block !important;

        width: 100% !important;

        margin: 0 !important;

        padding: 0 !important;

        overflow: visible !important;
    }


    .mbk-product-left {

        width: 100% !important;

        min-width: 0 !important;

        overflow: visible !important;
    }


    .mbk-product-shell > .mbk-product-info {

        position: static !important;

        top: auto !important;

        right: auto !important;

        bottom: auto !important;

        left: auto !important;

        width: 100% !important;

        max-width: none !important;

        height: auto !important;

        max-height: none !important;

        margin: 0 !important;

        padding: 0 !important;

        overflow: visible !important;
    }

}



/* ============================================================
   MERCI BOKKU — COMPACT DESKTOP PURCHASE PANEL
   ============================================================

   IMPORTANT:
   Keep the existing desktop structure exactly as it is.

   LEFT:
     Gallery
     Description
     Video
     Details
     Recommendations

   RIGHT:
     Sticky purchase information

   This patch ONLY reduces the vertical size of the
   purchase information so the action buttons are visible
   without scrolling to the bottom.

   MOBILE IS NOT TOUCHED.
   ============================================================ */


@media (min-width: 901px) {

    /*
     * ----------------------------------------------------------
     * PURCHASE SIDEBAR
     * ----------------------------------------------------------
     */

    .mbk-product-sidebar {

        position: sticky !important;

        top: 110px !important;

        align-self: start !important;

        height: fit-content !important;

        max-height: none !important;

        overflow: visible !important;

        z-index: 20 !important;
    }


    /*
     * ----------------------------------------------------------
     * PURCHASE PANEL
     * ----------------------------------------------------------
     *
     * Keep it transparent and in normal sidebar flow.
     */

    .mbk-purchase-panel {

        position: static !important;

        width: 100% !important;

        height: auto !important;

        max-height: none !important;

        overflow: visible !important;

        padding: 0 !important;

        margin: 0 !important;

        background: transparent !important;

        border: 0 !important;

        border-radius: 0 !important;

        box-shadow: none !important;
    }


    /*
     * ----------------------------------------------------------
     * CATEGORY
     * ----------------------------------------------------------
     */

    .mbk-purchase-category {

        margin-bottom: 8px !important;

        font-size: 11px !important;

        line-height: 1.2 !important;
    }


    /*
     * ----------------------------------------------------------
     * PRODUCT TITLE
     *
     * THIS IS THE MAIN FIX.
     *
     * The previous title was consuming most of the
     * purchase panel height.
     * ----------------------------------------------------------
     */

    .mbk-purchase-panel h1 {

        font-size: 32px !important;

        line-height: 1.08 !important;

        letter-spacing: -0.6px !important;

        margin: 0 0 12px 0 !important;

        max-width: 100% !important;
    }


    /*
     * ----------------------------------------------------------
     * RATING
     * ----------------------------------------------------------
     */

    .mbk-product-rating {

        font-size: 13px !important;

        line-height: 1.2 !important;

        margin: 0 0 18px 0 !important;

        gap: 6px !important;
    }


    .mbk-stars {

        font-size: 15px !important;

        letter-spacing: 1px !important;
    }


    /*
     * ----------------------------------------------------------
     * PRICE
     * ----------------------------------------------------------
     */

    .mbk-product-price {

        margin: 0 0 16px 0 !important;

        line-height: 1 !important;
    }


    .mbk-product-price,
    .mbk-product-price * {

        font-size: 30px !important;

        line-height: 1.05 !important;
    }


    /*
     * ----------------------------------------------------------
     * STOCK / DELIVERY
     * ----------------------------------------------------------
     */

    .mbk-stock-row {

        margin: 0 0 18px 0 !important;

        font-size: 13px !important;

        line-height: 1.2 !important;

        gap: 18px !important;
    }


    /*
     * ----------------------------------------------------------
     * PAYMENT BOX
     * ----------------------------------------------------------
     *
     * Keep the payment box.
     * Just make it shorter.
     */

    .mbk-payment-box {

        padding: 12px 14px !important;

        margin: 0 0 16px 0 !important;

        min-height: 0 !important;

        height: auto !important;

        border-radius: 8px !important;
    }


    .mbk-payment-box strong {

        font-size: 12px !important;

        line-height: 1.2 !important;
    }


    .mbk-payment-methods {

        margin-top: 6px !important;

        gap: 10px !important;

        font-size: 12px !important;

        line-height: 1 !important;
    }


    /*
     * ----------------------------------------------------------
     * VARIATIONS
     * ----------------------------------------------------------
     */

    .mbk-variation-options {

        margin-bottom: 14px !important;
    }


    .mbk-variation-options label {

        margin-bottom: 8px !important;
    }


    .mbk-variation-options select {

        min-height: 38px !important;

        height: 38px !important;

        padding: 5px 10px !important;

        font-size: 13px !important;
    }


    /*
     * ----------------------------------------------------------
     * QUANTITY
     * ----------------------------------------------------------
     */

    .mbk-quantity-label {

        margin-bottom: 6px !important;

        font-size: 12px !important;

        line-height: 1.2 !important;
    }


    .mbk-quantity {

        height: 42px !important;

        min-height: 42px !important;

        margin-bottom: 12px !important;
    }


    .mbk-quantity button,
    .mbk-quantity input {

        height: 42px !important;

        min-height: 42px !important;

        font-size: 14px !important;
    }


    /*
     * ----------------------------------------------------------
     * ADD TO CART
     * ----------------------------------------------------------
     */

    .mbk-add-cart-button {

        width: 100% !important;

        height: 46px !important;

        min-height: 46px !important;

        padding: 8px 14px !important;

        margin: 0 0 8px 0 !important;

        font-size: 14px !important;

        line-height: 1 !important;

        border-radius: 6px !important;
    }


    /*
     * ----------------------------------------------------------
     * BUY NOW
     * ----------------------------------------------------------
     */

    .mbk-buy-now-button {

        width: 100% !important;

        height: 46px !important;

        min-height: 46px !important;

        padding: 8px 14px !important;

        margin: 0 !important;

        font-size: 14px !important;

        line-height: 1 !important;

        border-radius: 6px !important;
    }


    /*
     * ----------------------------------------------------------
     * FAVORITE
     * ----------------------------------------------------------
     */

    .mbk-favorite-button {

        min-height: 36px !important;

        height: 36px !important;

        margin: 8px auto 0 !important;

        padding: 5px 12px !important;

        font-size: 11px !important;
    }


    /*
     * ----------------------------------------------------------
     * SIDEBAR BENEFITS
     * ----------------------------------------------------------
     */

    .mbk-sidebar-benefits {

        margin-top: 14px !important;

        gap: 8px !important;
    }


    .mbk-sidebar-benefit {

        padding: 8px 0 !important;

        gap: 8px !important;
    }


    .mbk-sidebar-benefit strong {

        font-size: 11px !important;

        line-height: 1.1 !important;
    }


    .mbk-sidebar-benefit small {

        font-size: 9px !important;

        line-height: 1.1 !important;
    }


    /*
     * ----------------------------------------------------------
     * SELLER
     * ----------------------------------------------------------
     */

    .mbk-seller-box {

        margin-top: 12px !important;

        padding: 10px 0 !important;

        font-size: 11px !important;
    }

}


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

@media (min-width: 1500px) {

    .mbk-purchase-panel h1 {

        font-size: 34px !important;

        line-height: 1.08 !important;
    }

    .mbk-product-price,
    .mbk-product-price * {

        font-size: 32px !important;
    }

}


/* ============================================================
   MOBILE — DO NOT CHANGE
   ============================================================ */

@media (max-width: 900px) {

    /*
     * No desktop compact rules are applied here.
     * Existing mobile UI remains unchanged.
     */

}



/* ============================================================
   MBK — FINAL COMPACT DESKTOP PURCHASE SIDEBAR
   ============================================================ */

@media (min-width: 901px) {

    /* -----------------------------------------------
       SIDEBAR
       ----------------------------------------------- */

    .mbk-product-sidebar {
        position: sticky !important;
        top: 90px !important;
        align-self: start !important;
        height: fit-content !important;
        max-height: none !important;
        overflow: visible !important;
    }


    /* -----------------------------------------------
       CATEGORY
       ----------------------------------------------- */

    .mbk-purchase-category {
        font-size: 10px !important;
        line-height: 1 !important;
        margin: 0 0 6px 0 !important;
    }


    /* -----------------------------------------------
       PRODUCT TITLE
       
       Main reduction.
       ----------------------------------------------- */

    .mbk-purchase-panel h1 {

        font-size: 24px !important;

        line-height: 1.08 !important;

        letter-spacing: -0.35px !important;

        margin: 0 0 8px 0 !important;

        max-width: 100% !important;

        /*
         * Keep the title readable but prevent it
         * from consuming the entire viewport.
         */
        display: -webkit-box !important;

        -webkit-box-orient: vertical !important;

        -webkit-line-clamp: 5 !important;

        overflow: hidden !important;
    }


    /* -----------------------------------------------
       RATING
       ----------------------------------------------- */

    .mbk-product-rating {

        margin: 0 0 10px 0 !important;

        font-size: 11px !important;

        line-height: 1 !important;

        gap: 5px !important;
    }

    .mbk-stars {
        font-size: 13px !important;
        letter-spacing: 0 !important;
    }


    /* -----------------------------------------------
       PRICE
       ----------------------------------------------- */

    .mbk-product-price {

        margin: 0 0 10px 0 !important;

        line-height: 1 !important;
    }

    .mbk-product-price,
    .mbk-product-price * {

        font-size: 25px !important;

        line-height: 1 !important;
    }


    /* -----------------------------------------------
       STOCK
       ----------------------------------------------- */

    .mbk-stock-row {

        margin: 0 0 10px 0 !important;

        font-size: 11px !important;

        line-height: 1 !important;

        gap: 12px !important;
    }


    /* -----------------------------------------------
       PAYMENT
       ----------------------------------------------- */

    .mbk-payment-box {

        margin: 0 0 10px 0 !important;

        padding: 9px 12px !important;

        min-height: 0 !important;

        height: auto !important;

        border-radius: 7px !important;
    }

    .mbk-payment-box strong {

        display: block !important;

        font-size: 10px !important;

        line-height: 1.1 !important;

        margin: 0 !important;
    }

    .mbk-payment-methods {

        margin-top: 5px !important;

        font-size: 10px !important;

        line-height: 1 !important;

        gap: 8px !important;
    }


    /* -----------------------------------------------
       VARIATIONS
       ----------------------------------------------- */

    .mbk-variation-options {

        margin: 0 0 8px 0 !important;
    }

    .mbk-variation-options label {

        margin: 0 0 5px 0 !important;

        font-size: 10px !important;
    }

    .mbk-variation-options select {

        height: 34px !important;

        min-height: 34px !important;

        padding: 3px 8px !important;

        font-size: 11px !important;
    }


    /* -----------------------------------------------
       QUANTITY
       ----------------------------------------------- */

    .mbk-quantity-label {

        margin: 0 0 4px 0 !important;

        font-size: 10px !important;

        line-height: 1 !important;
    }

    .mbk-quantity {

        height: 36px !important;

        min-height: 36px !important;

        margin: 0 0 8px 0 !important;
    }

    .mbk-quantity button,
    .mbk-quantity input {

        height: 36px !important;

        min-height: 36px !important;

        font-size: 12px !important;
    }


    /* -----------------------------------------------
       ADD TO CART
       ----------------------------------------------- */

    .mbk-add-cart-button {

        display: flex !important;

        align-items: center !important;

        justify-content: center !important;

        width: 100% !important;

        height: 42px !important;

        min-height: 42px !important;

        margin: 0 0 6px 0 !important;

        padding: 6px 10px !important;

        font-size: 12px !important;

        line-height: 1 !important;

        border-radius: 5px !important;
    }


    /* -----------------------------------------------
       BUY NOW
       ----------------------------------------------- */

    .mbk-buy-now-button {

        display: flex !important;

        align-items: center !important;

        justify-content: center !important;

        width: 100% !important;

        height: 42px !important;

        min-height: 42px !important;

        margin: 0 !important;

        padding: 6px 10px !important;

        font-size: 12px !important;

        line-height: 1 !important;

        border-radius: 5px !important;
    }


    /* -----------------------------------------------
       FAVORITE
       ----------------------------------------------- */

    .mbk-favorite-button {

        height: 30px !important;

        min-height: 30px !important;

        margin: 5px auto 0 !important;

        padding: 3px 10px !important;

        font-size: 9px !important;
    }


    /* -----------------------------------------------
       BENEFITS
       ----------------------------------------------- */

    .mbk-sidebar-benefits {

        margin-top: 8px !important;

        gap: 4px !important;
    }

    .mbk-sidebar-benefit {

        padding: 5px 0 !important;

        gap: 6px !important;
    }

    .mbk-sidebar-benefit strong {

        font-size: 9px !important;

        line-height: 1 !important;
    }

    .mbk-sidebar-benefit small {

        font-size: 8px !important;

        line-height: 1 !important;
    }


    /* -----------------------------------------------
       SELLER
       ----------------------------------------------- */

    .mbk-seller-box {

        margin-top: 6px !important;

        padding: 6px 0 !important;

        font-size: 9px !important;
    }

}


/* ============================================================
   VERY LARGE DESKTOP
   ============================================================ */

@media (min-width: 1500px) {

    .mbk-purchase-panel h1 {
        font-size: 26px !important;
        line-height: 1.08 !important;
    }

    .mbk-product-price,
    .mbk-product-price * {
        font-size: 27px !important;
    }

}


/* ============================================================
   MOBILE — UNTOUCHED
   ============================================================ */

@media (max-width: 900px) {
    /* Existing mobile rules remain unchanged. */
}










/* ============================================================
   MBK — LIVE VARIATION PRICE
   ============================================================ */

.mbk-product-price.mbk-variation-price-active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mbk-product-price.mbk-variation-price-active .amount {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
}



/* ============================================================
   MBK — DESKTOP GALLERY IMAGE RENDER FIX
   ------------------------------------------------------------
   IMPORTANT:
   - Desktop only
   - Mobile completely untouched
   - Uses the existing active-image system
   - Does not modify PHP
   - Does not modify JS
   ============================================================ */

@media (min-width: 901px) {

    .mbk-product-gallery-section .mbk-gallery-main {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        height: 600px !important;
        min-height: 500px !important;

        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .mbk-product-gallery-section
    .mbk-gallery-main
    > img.mbk-main-gallery-image {
        display: none !important;

        position: absolute !important;

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

        width: 100% !important;
        height: 100% !important;

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

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

        margin: 0 !important;
        padding: 18px !important;

        box-sizing: border-box !important;

        object-fit: contain !important;
        object-position: center center !important;

        visibility: hidden !important;
        opacity: 0 !important;

        z-index: 1 !important;
    }

    .mbk-product-gallery-section
    .mbk-gallery-main
    > img.mbk-main-gallery-image.is-active {
        display: block !important;

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

        z-index: 2 !important;
    }

}


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

@media (min-width: 1500px) {

    .mbk-product-gallery-section
    .mbk-gallery-main {
        height: 650px !important;
        min-height: 650px !important;
    }

}


/* ==========================================================
   MBK PRODUCT REVIEWS
   Real WooCommerce review presentation
   ========================================================== */

.mbk-product-reviews {
    margin-top: 48px;
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    background: #fff;
}

.mbk-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
}

.mbk-reviews-eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #ff6b00;
}

.mbk-product-reviews h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.mbk-reviews-subtitle {
    margin: 8px 0 0;
    color: #777;
}

.mbk-reviews-loading {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 107, 0, 0.08);
    color: #ff6b00;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.mbk-reviews-summary {
    display: grid;
    grid-template-columns: minmax(160px, 0.7fr) 1.5fr;
    gap: 36px;
    padding: 28px 0;
    margin-bottom: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mbk-rating-overview {
    text-align: center;
}

.mbk-rating-average {
    font-size: 52px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.mbk-rating-stars,
.mbk-review-stars {
    color: #ff9d00;
    letter-spacing: 2px;
}

.mbk-rating-stars {
    margin-top: 10px;
    font-size: 22px;
}

.mbk-rating-total {
    margin-top: 8px;
    color: #777;
    font-size: 14px;
}

.mbk-rating-distribution {
    display: grid;
    gap: 10px;
}

.mbk-rating-distribution-row {
    display: grid;
    grid-template-columns: 40px 1fr 36px;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.mbk-rating-distribution-label {
    font-weight: 700;
}

.mbk-rating-distribution-track {
    display: block;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #f0f0f0;
}

.mbk-rating-distribution-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #ff9d00;
    transition: width 250ms ease;
}

.mbk-rating-distribution-count {
    text-align: right;
    color: #777;
}

.mbk-reviews-list {
    display: grid;
    gap: 18px;
}

.mbk-review-card {
    padding: 22px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    background: #fff;
}

.mbk-review-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.mbk-review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mbk-review-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #f2f2f2;
    font-weight: 800;
}

.mbk-review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mbk-review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    color: #888;
    font-size: 12px;
}

.mbk-verified-purchase {
    color: #18864b;
    font-weight: 700;
}

.mbk-review-stars {
    font-size: 16px;
    white-space: nowrap;
}

.mbk-review-content {
    margin-top: 18px;
    color: #333;
    line-height: 1.7;
}

.mbk-reviews-empty {
    padding: 52px 24px;
    text-align: center;
    border: 1px dashed rgba(0, 0, 0, 0.14);
    border-radius: 18px;
}

.mbk-reviews-empty-icon {
    margin-bottom: 12px;
    font-size: 40px;
    color: #ff9d00;
}

.mbk-reviews-empty h3 {
    margin: 0;
}

.mbk-reviews-empty p {
    max-width: 420px;
    margin: 10px auto 0;
    color: #777;
}

.mbk-reviews-pagination {
    margin-top: 24px;
    text-align: center;
}

.mbk-reviews-load-more {
    min-width: 220px;
    padding: 13px 20px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.mbk-reviews-load-more:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.mbk-reviews-load-more:disabled {
    opacity: 0.65;
    cursor: wait;
}

.mbk-reviews-error {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(180, 30, 30, 0.08);
    color: #9d1d1d;
    font-size: 14px;
}

@media (max-width: 767px) {

    .mbk-product-reviews {
        margin-top: 32px;
        padding: 22px 16px;
        border-radius: 18px;
    }

    .mbk-reviews-header {
        display: block;
    }

    .mbk-reviews-loading {
        display: inline-block;
        margin-top: 14px;
    }

    .mbk-product-reviews h2 {
        font-size: 24px;
    }

    .mbk-reviews-summary {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .mbk-review-top {
        flex-direction: column;
    }

    .mbk-review-stars {
        margin-left: 58px;
    }

    .mbk-rating-average {
        font-size: 46px;
    }
}

/* ============================================================
   MBK MODERN VISUAL VARIANT SWITCHER
   ============================================================ */

.mbk-visual-variant-group {
    margin: 0 0 24px;
    width: 100%;
}

.mbk-visual-variant-label {
    display: block;
    margin: 0 0 10px;
    color: #17344b;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.mbk-native-variant-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.mbk-visual-variant-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.mbk-visual-variant-option {
    position: relative;
    min-height: 86px;
    padding: 10px;
    border: 1.5px solid #dfe5e9;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease,
        background .18s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.mbk-visual-variant-option:hover {
    border-color: #ff6900;
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(23, 52, 75, .08);
}

.mbk-visual-variant-option.is-selected {
    border: 2px solid #ff6900;
    background: linear-gradient(
        145deg,
        #fffaf5 0%,
        #fff 100%
    );
    box-shadow: 0 6px 20px rgba(255, 105, 0, .12);
}

.mbk-visual-variant-option.is-disabled {
    opacity: .38;
    cursor: not-allowed;
    filter: grayscale(.35);
}

.mbk-visual-variant-option.is-disabled:hover {
    transform: none;
    border-color: #dfe5e9;
    box-shadow: none;
}

.mbk-variant-check {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff6900;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    opacity: 0;
    transform: scale(.7);
    transition: .18s ease;
}

.mbk-visual-variant-option.is-selected .mbk-variant-check {
    opacity: 1;
    transform: scale(1);
}

.mbk-variant-image {
    width: 58px;
    height: 58px;
    margin: 0 auto 7px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.mbk-variant-option-text {
    color: #17344b;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
}

.mbk-variant-option-subtext {
    margin-top: 4px;
    color: #718096;
    font-size: 11px;
    line-height: 1.25;
}

.mbk-visual-variant-group[data-variant-type="color"]
.mbk-visual-variant-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mbk-visual-variant-group[data-variant-type="memory"]
.mbk-visual-variant-options,
.mbk-visual-variant-group[data-variant-type="ram"]
.mbk-visual-variant-options,
.mbk-visual-variant-group[data-variant-type="rom"]
.mbk-visual-variant-options,
.mbk-visual-variant-group[data-variant-type="storage"]
.mbk-visual-variant-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mbk-variant-memory-icon,
.mbk-variant-storage-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mbk-variant-memory-icon::before {
    content: "";
    width: 28px;
    height: 28px;
    border: 3px solid #64748b;
    border-radius: 6px;
    box-sizing: border-box;
}

.mbk-variant-memory-icon::after {
    content: "••••";
    position: absolute;
    width: 40px;
    height: 40px;
    top: 0;
    left: 1px;
    color: #64748b;
    font-size: 13px;
    letter-spacing: 3px;
    line-height: 40px;
}

.mbk-visual-variant-option.is-selected
.mbk-variant-memory-icon::before {
    border-color: #ff6900;
}

.mbk-visual-variant-option.is-selected
.mbk-variant-memory-icon::after {
    color: #ff6900;
}

.mbk-variant-storage-icon::before {
    content: "";
    width: 28px;
    height: 34px;
    border: 3px solid #64748b;
    border-radius: 5px;
    box-sizing: border-box;
}

.mbk-variant-storage-icon::after {
    content: "•••";
    position: absolute;
    top: 3px;
    left: 12px;
    color: #64748b;
    font-size: 10px;
    letter-spacing: 2px;
}

.mbk-visual-variant-option.is-selected
.mbk-variant-storage-icon::before {
    border-color: #ff6900;
}

.mbk-visual-variant-option.is-selected
.mbk-variant-storage-icon::after {
    color: #ff6900;
}

@media (max-width: 900px) {

    .mbk-visual-variant-options {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .mbk-visual-variant-option {
        min-height: 82px;
    }

    .mbk-variant-image {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 420px) {

    .mbk-visual-variant-options {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
    }

    .mbk-visual-variant-option {
        padding: 9px 7px;
        border-radius: 10px;
    }
}


/* ============================================================
   MBK — MODERN VISUAL VARIANT SWITCHER
   ============================================================ */

.mbk-native-variant-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.mbk-visual-variant-group {
    display: block !important;
    width: 100% !important;
    margin: 0 0 22px !important;
}

.mbk-visual-variant-label {
    display: block !important;
    margin: 0 0 9px !important;
    color: #17344b !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

.mbk-visual-variant-options {
    display: grid !important;
    grid-template-columns: repeat(
        auto-fit,
        minmax(105px, 1fr)
    ) !important;
    gap: 9px !important;
    width: 100% !important;
}

.mbk-visual-variant-option {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 58px !important;
    padding: 13px 28px 13px 13px !important;
    margin: 0 !important;

    border: 1.5px solid #d9e0e5 !important;
    border-radius: 11px !important;

    background: #fff !important;
    color: #172033 !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;

    cursor: pointer !important;

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

.mbk-visual-variant-option:hover {
    border-color: #ff6900 !important;
    box-shadow:
        0 5px 16px
        rgba(255, 105, 0, .10) !important;
    transform: translateY(-1px) !important;
}

.mbk-visual-variant-option.is-selected {
    border: 2px solid #ff6900 !important;
    background: #fff8f2 !important;
    color: #17344b !important;
    box-shadow:
        0 5px 18px
        rgba(255, 105, 0, .12) !important;
}

.mbk-visual-variant-option.is-disabled {
    opacity: .35 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.mbk-variant-option-text {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.mbk-variant-check {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;

    width: 19px !important;
    height: 19px !important;

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

    border-radius: 50% !important;

    background: #ff6900 !important;
    color: #fff !important;

    font-size: 11px !important;
    font-weight: 900 !important;

    opacity: 0 !important;
    transform: scale(.7) !important;

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

.mbk-visual-variant-option.is-selected
.mbk-variant-check {
    opacity: 1 !important;
    transform: scale(1) !important;
}

@media (max-width: 900px) {

    .mbk-visual-variant-options {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

    .mbk-visual-variant-option {
        min-height: 55px !important;
        font-size: 13px !important;
    }
}




/* ============================================================
   MBK DIRECT MODERN VISUAL VARIANT SWITCHER
   ============================================================ */

.mbk-variation-options {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
}

.mbk-variation-group {
    width: 100%;
}

.mbk-variation-group-header {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.3;
    color: #132238;
    font-weight: 800;
    text-transform: none;
}

.mbk-variation-group > select.mbk-variation-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.mbk-visual-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 10px;
    width: 100%;
}

.mbk-visual-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 108px;
    padding: 8px;
    border: 1.5px solid #dfe5ea;
    border-radius: 14px;
    background: #fff;
    color: #162338;
    cursor: pointer;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease,
        background .18s ease;
    text-align: center;
    font: inherit;
}

.mbk-visual-option:hover {
    border-color: #087443;
    box-shadow: 0 8px 24px rgba(8,116,67,.10);
    transform: translateY(-1px);
}

.mbk-visual-option.is-selected {
    border-color: #ff6900;
    border-width: 2px;
    background: #fffaf6;
    box-shadow: 0 8px 24px rgba(255,105,0,.12);
}

.mbk-visual-option-image {
    width: 100%;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 9px;
    background: #f7f8f9;
}

.mbk-visual-option-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}

.mbk-visual-option-fallback {
    width: 100%;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #f4f7f6;
    color: #087443;
    font-size: 12px;
    font-weight: 900;
    padding: 6px;
}

.mbk-visual-option-name {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
}

.mbk-visual-option-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ff6900;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.mbk-visual-option.is-selected .mbk-visual-option-check {
    display: flex;
}

@media (max-width: 600px) {

    .mbk-visual-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .mbk-visual-option {
        min-height: 96px;
        padding: 6px;
        border-radius: 11px;
    }

    .mbk-visual-option-image,
    .mbk-visual-option-fallback {
        height: 58px;
    }

    .mbk-visual-option-name {
        font-size: 11px;
    }
}

/* ============================================================
   MBK — FINAL VISUAL VARIANT SWITCHER
   ============================================================ */

.mbk-variation-options .mbk-visual-options {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    width: 100%;
}

.mbk-variation-options .mbk-visual-option {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 104px;
    padding: 10px;
    border: 1.5px solid #e1e6ea;
    border-radius: 14px;
    background: #fff;
    color: #172b3a;
    cursor: pointer;
    text-align: center;
    font: inherit;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease,
        background .18s ease;
}

.mbk-variation-options .mbk-visual-option:hover {
    border-color: #087443;
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(8,116,67,.10);
}

.mbk-variation-options .mbk-visual-option.is-selected {
    border-color: #ff6900 !important;
    background: #fff8f2;
    box-shadow: 0 7px 22px rgba(255,105,0,.13);
}

.mbk-variation-options .mbk-visual-option-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border-radius: 10px;
    background: #f5f6f7;
}

.mbk-variation-options .mbk-visual-option-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mbk-variation-options .mbk-visual-option-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 10px;
    background: #f2f4f5;
    font-size: 11px;
    font-weight: 800;
}

.mbk-variation-options .mbk-visual-option-name {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
}

.mbk-variation-options .mbk-visual-option-check {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #ff6900;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .15s ease, transform .15s ease;
}

.mbk-variation-options
.mbk-visual-option.is-selected
.mbk-visual-option-check {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 600px) {
    .mbk-variation-options .mbk-visual-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .mbk-variation-options .mbk-visual-option {
        min-height: 88px;
        padding: 7px;
        border-radius: 11px;
    }

    .mbk-variation-options .mbk-visual-option-image,
    .mbk-variation-options .mbk-visual-option-fallback {
        width: 46px;
        height: 46px;
    }

    .mbk-variation-options .mbk-visual-option-name {
        font-size: 11px;
    }
}

/* ============================================================
   MBK — VISUAL VARIANT SWITCHER / RESPONSIVE FINAL FIX
   ============================================================ */

.mbk-product-page,
.mbk-product-page * {
    box-sizing: border-box;
}

.mbk-product-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.mbk-product-shell {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.mbk-variation-options {
    width: 100% !important;
    max-width: 100% !important;
}

.mbk-variation-group {
    width: 100% !important;
    max-width: 100% !important;
}

.mbk-visual-options {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
}

.mbk-visual-option {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

@media (min-width: 901px) {

    .mbk-product-shell {
        grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr) !important;
    }

    .mbk-visual-options {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

}

@media (max-width: 900px) {

    .mbk-product-shell {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .mbk-product-left,
    .mbk-product-right,
    .mbk-product-gallery-section,
    .mbk-purchase-panel {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .mbk-visual-options {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

}

@media (max-width: 480px) {

    .mbk-visual-options {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .mbk-visual-option {
        min-height: 96px !important;
        padding: 7px !important;
    }

    .mbk-visual-option-image,
    .mbk-visual-option-fallback {
        width: 52px !important;
        height: 52px !important;
    }

    .mbk-visual-option-name {
        font-size: 11px !important;
        line-height: 1.15 !important;
    }

}

@media (max-width: 320px) {

    .mbk-visual-options {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

}


.mbk-product-page,
.mbk-product-page * {
    box-sizing: border-box;
}

.mbk-product-page {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
}

.mbk-product-shell {
    width: 100% !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.mbk-variation-options,
.mbk-variation-group,
.mbk-visual-options {
    width: 100% !important;
    max-width: 100% !important;
}

.mbk-visual-options {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.mbk-visual-option {
    width: 100% !important;
    min-width: 0 !important;
}

@media (max-width: 900px) {
    .mbk-product-shell {
        display: flex !important;
        flex-direction: column !important;
    }

    .mbk-product-left,
    .mbk-product-right {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .mbk-visual-options {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    .mbk-visual-options {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .mbk-visual-option {
        min-height: 90px !important;
        padding: 7px !important;
    }
}


/* ============================================================
   MBK — COMPACT VARIATION LAYOUT
   Couleur = full row
   RAM + Stockage = same row underneath
   ============================================================ */

.mbk-variation-options {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 18px 16px !important;
    width: 100% !important;
}

.mbk-variation-group {
    width: 100% !important;
    min-width: 0 !important;
}

/* First variation — usually Couleur — full width */
.mbk-variation-group:first-child {
    grid-column: 1 / -1 !important;
}

/* RAM + Stockage */
.mbk-variation-group:nth-child(2),
.mbk-variation-group:nth-child(3) {
    grid-column: auto !important;
}

/* Keep option cards compact */
.mbk-variation-group .mbk-visual-options {
    grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)) !important;
    gap: 8px !important;
}

.mbk-variation-group .mbk-visual-option {
    min-height: 82px !important;
    padding: 7px !important;
}

.mbk-variation-group .mbk-visual-option-image,
.mbk-variation-group .mbk-visual-option-fallback {
    width: 48px !important;
    height: 48px !important;
}

.mbk-variation-group .mbk-visual-option-name {
    font-size: 12px !important;
}

/* Mobile: stack everything */
@media (max-width: 700px) {
    .mbk-variation-options {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .mbk-variation-group:first-child,
    .mbk-variation-group:nth-child(2),
    .mbk-variation-group:nth-child(3) {
        grid-column: 1 !important;
    }
}


/* ============================================================
   MBK MOBILE — GALLERY FIRST, ABOUT SECOND
   ============================================================ */

@media (max-width: 700px) {

    /*
     * Remove any mobile sticky/fixed purchase bar.
     * Keep the normal purchase controls in document flow.
     */
    .mbk-mobile-sticky,
    .mbk-sticky-cart,
    .mbk-sticky-buy,
    .mbk-mobile-buy-bar,
    .mbk-fixed-cart,
    .mbk-fixed-buy,
    .mbk-sticky-purchase,
    .mbk-mobile-sticky-cart {
        display: none !important;
        position: static !important;
        bottom: auto !important;
        top: auto !important;
    }

    /*
     * Prevent the hidden sticky bar from leaving bottom spacing.
     */
    body {
        padding-bottom: 0 !important;
    }

    .mbk-product-page {
        padding-bottom: 0 !important;
    }

    /*
     * Mobile product sections:
     * Gallery first, then About the Product.
     */
    .mbk-product-gallery {
        order: 1 !important;
    }

    .mbk-product-about,
    .mbk-about-product,
    .mbk-product-description {
        order: 2 !important;
    }
}


/* ============================================================
   MBK MOBILE — FINAL PRODUCT ORDER
   Gallery → About → Details → Purchase content
   ============================================================ */

@media (max-width: 700px) {

    /* Remove the actual mobile sticky purchase bar */
    .mbk-mobile-sticky-buy {
        display: none !important;
        position: static !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
    }

    /* Remove space that may have been reserved for the sticky bar */
    body {
        padding-bottom: 0 !important;
    }

    .mbk-product-page {
        padding-bottom: 0 !important;
    }

    /*
     * The left column contains:
     * 1. Gallery
     * 2. About
     * 3. Details
     *
     * Force normal vertical mobile flow.
     */
    .mbk-product-left {
        display: flex !important;
        flex-direction: column !important;
    }

    /* FIRST: Gallery */
    .mbk-product-gallery-section {
        order: 1 !important;
        width: 100% !important;
    }

    /* SECOND: About the product */
    .mbk-product-description-section {
        order: 2 !important;
        width: 100% !important;
    }

    /* THIRD: Product details */
    .mbk-product-details-section {
        order: 3 !important;
        width: 100% !important;
    }

}


/* ============================================================
   MBK MOBILE — GALLERY → HERO → ABOUT
   MOBILE ONLY — DO NOT AFFECT DESKTOP
   ============================================================ */

@media (max-width: 700px) {

    /*
     * Turn the product shell into a mobile ordering container.
     */
    .mbk-product-shell {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    /*
     * Flatten the left content wrapper so its sections can
     * participate directly in the mobile shell ordering.
     */
    .mbk-product-left {
        display: contents !important;
    }

    /*
     * 1 — PRODUCT GALLERY
     */
    .mbk-product-gallery-section {
        order: 1 !important;
        width: 100% !important;
    }

    /*
     * 2 — PRODUCT HERO / PURCHASE PANEL
     */
    .mbk-product-sidebar {
        order: 2 !important;
        width: 100% !important;
        position: static !important;
    }

    /*
     * 3 — ABOUT THE PRODUCT
     */
    .mbk-product-description-section {
        order: 3 !important;
        width: 100% !important;
    }

    /*
     * 4 — PRODUCT DETAILS
     */
    .mbk-product-details-section {
        order: 4 !important;
        width: 100% !important;
    }

    /*
     * Sticky mobile purchase bar remains removed.
     */
    .mbk-mobile-sticky-buy {
        display: none !important;
        position: static !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    body {
        padding-bottom: 0 !important;
    }

}


/* ============================================================
   MBK MOBILE — GALLERY → ABOUT → HERO
   MOBILE ONLY
   ============================================================ */

@media (max-width: 700px) {

    .mbk-product-shell {
        display: flex !important;
        flex-direction: column !important;
    }

    .mbk-product-left {
        display: contents !important;
    }

    /* 1. Gallery */
    .mbk-product-gallery-section {
        order: 1 !important;
    }

    /* 2. About — immediately after gallery */
    .mbk-product-description-section {
        order: 2 !important;
    }

    /* 3. Product hero — KEEP IT */
    .mbk-product-sidebar {
        order: 3 !important;
    }

    /* 4. Details */
    .mbk-product-details-section {
        order: 4 !important;
    }

    /* Sticky bar stays removed */
    .mbk-mobile-sticky-buy {
        display: none !important;
    }
}


/* ============================================================
   MBK MOBILE — DEFINITIVE PRODUCT SECTION ORDER
   MOBILE ONLY — DESKTOP COMPLETELY UNCHANGED
   ============================================================ */

@media (max-width: 700px) {

    /*
     * The left wrapper is flattened so its sections and the
     * purchase sidebar can participate in one mobile flow.
     */
    .mbk-product-shell {
        display: flex !important;
        flex-direction: column !important;
    }

    .mbk-product-left {
        display: contents !important;
    }

    /* --------------------------------------------------------
       1. PRODUCT GALLERY
       -------------------------------------------------------- */
    .mbk-product-gallery-section {
        order: 1 !important;
    }

    /* --------------------------------------------------------
       2. À PROPOS DU PRODUIT
       Immediately after gallery
       -------------------------------------------------------- */
    .mbk-product-description-section {
        order: 2 !important;
    }

    /* --------------------------------------------------------
       3. PRODUCT HERO / PURCHASE PANEL
       -------------------------------------------------------- */
    .mbk-product-sidebar {
        order: 3 !important;
        width: 100% !important;
    }

    /* --------------------------------------------------------
       4. PRODUCT DETAILS
       -------------------------------------------------------- */
    .mbk-product-details-section {
        order: 4 !important;
    }

    /* --------------------------------------------------------
       5. REVIEWS
       -------------------------------------------------------- */
    .mbk-product-reviews {
        order: 5 !important;
    }

    /* --------------------------------------------------------
       6. RECOMMENDATIONS
       -------------------------------------------------------- */
    .mbk-recommendations {
        order: 6 !important;
    }

    /* --------------------------------------------------------
       STICKY MOBILE BUY BAR — REMOVED
       -------------------------------------------------------- */
    .mbk-mobile-sticky-buy {
        display: none !important;
        position: static !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    body {
        padding-bottom: 0 !important;
    }

}


/* ============================================================
   MBK — DESKTOP GALLERY FINAL FIX
   ------------------------------------------------------------
   DESKTOP ONLY
   Mobile is intentionally NOT touched.
   Only the product gallery is affected.
   ============================================================ */

@media (min-width: 901px) {

    /* Main gallery frame */
    .mbk-product-gallery-section .mbk-gallery-main {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: 600px !important;
        min-height: 500px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        background: #fff !important;
    }

    /* All gallery images are layers */
    .mbk-product-gallery-section
    .mbk-gallery-main
    > img.mbk-main-gallery-image {
        position: absolute !important;
        inset: 0 !important;

        width: 100% !important;
        height: 100% !important;

        display: none !important;

        margin: 0 !important;
        padding: 70px 30px 30px !important;

        box-sizing: border-box !important;

        object-fit: contain !important;
        object-position: center center !important;

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

        z-index: 1 !important;
    }

    /* ONLY the selected image is visible */
    .mbk-product-gallery-section
    .mbk-gallery-main
    > img.mbk-main-gallery-image.is-active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 2 !important;
    }

    /*
     * Promotion badge:
     * keep it inside the gallery but give the product image
     * enough top space so the badge does not cover the product.
     */
    .mbk-product-gallery-section
    .mbk-gallery-main
    > .mbk-gallery-badge {
        position: absolute !important;
        top: 18px !important;
        left: 18px !important;

        z-index: 10 !important;

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

        width: auto !important;
        height: auto !important;

        padding: 8px 12px !important;
        margin: 0 !important;

        box-sizing: border-box !important;

        background: #087443 !important;
        color: #fff !important;

        border-radius: 5px !important;

        font-size: 13px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        text-transform: uppercase !important;
    }

    /* Favorite stays above the image */
    .mbk-product-gallery-section
    .mbk-gallery-main
    > .mbk-gallery-favorite {
        z-index: 11 !important;
    }

    /* Navigation arrows stay above the image */
    .mbk-product-gallery-section
    .mbk-gallery-main
    > .mbk-gallery-arrow {
        z-index: 11 !important;
    }

}

/* Larger desktop keeps the existing larger gallery */
@media (min-width: 1500px) {

    .mbk-product-gallery-section
    .mbk-gallery-main {
        height: 650px !important;
        min-height: 650px !important;
    }

}


/* MBK — DESKTOP PRODUCT CONTAINER WIDTH FIX
 * Fixes theme .site-main 600px constraint at 901–1499px.
 * Mobile is intentionally untouched.
 */
@media (min-width: 901px) and (max-width: 1499px) {
    body:has(.mbk-product-page) .site-main {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }

    body:has(.mbk-product-page) .mbk-product-page {
        width: 100% !important;
        max-width: 1440px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
}
