


/* ============================================================
   PANBLOOM DESKTOP HEADER
   LOCKED SKETCH FINAL V6

   TARGET:
   - approved desktop sketch
   - ONE desktop header geometry
   - English + Arabic
   - homepage/category/product same structure
   - logo and icons share row 1
   - navigation is row 2
   - no top hacks
   - no translateY hacks
   - no JavaScript positioning

   DESKTOP / LAPTOP ONLY:
   >= 1200px
   ============================================================ */

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


    /* ========================================================
       HEADER OUTER SHELL
       ======================================================== */

    .pb-front-header[data-pb-source-header] {
        position: relative !important;

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

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

        overflow: visible !important;

        background: #fffafb !important;

        transform: none !important;
        translate: none !important;
        top: auto !important;
        bottom: auto !important;
    }


    /* ========================================================
       MAIN HEADER
       ROW 1 = LOGO + ICONS
       ROW 2 = NAVIGATION

       90px + 62px = 152px
       ======================================================== */

    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner {
        display: grid !important;

        grid-template-columns:
            minmax(260px, 1fr)
            minmax(260px, 1fr) !important;

        grid-template-rows:
            90px
            62px !important;

        grid-template-areas:
            "brand actions"
            "nav nav" !important;

        width: min(100% - 80px, 1540px) !important;
        max-width: 1540px !important;

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

        margin: 0 auto !important;
        padding: 0 38px !important;

        position: relative !important;

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

        transform: none !important;
        translate: none !important;

        overflow: visible !important;

        box-sizing: border-box !important;

        background: #fffafb !important;
    }


    /* ========================================================
       RTL GRID
       ======================================================== */

    html[dir="rtl"]
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner,

    body.lang-ar
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner {
        grid-template-areas:
            "actions brand"
            "nav nav" !important;
    }


    /* ========================================================
       LOGO
       SAME ROW / SAME CENTER AS ICONS

       IMPORTANT:
       NO top
       NO translateY
       ======================================================== */

    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand {
        grid-area: brand !important;

        position: static !important;

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

        align-self: stretch !important;
        justify-self: stretch !important;

        width: auto !important;
        height: 90px !important;
        min-height: 90px !important;

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

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

        transform: none !important;
        translate: none !important;

        overflow: visible !important;
    }


    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand
    > a {
        position: static !important;

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

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

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

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

        transform: none !important;
        translate: none !important;
    }


    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand img,

    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand svg {
        display: block !important;

        width: auto !important;
        max-width: 220px !important;

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

        object-fit: contain !important;

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

        transform: none !important;
        translate: none !important;
    }


    /* Arabic logo belongs on right side */
    html[dir="rtl"]
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand,

    body.lang-ar
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand {
        justify-content: flex-end !important;
    }


    html[dir="rtl"]
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand
    > a,

    body.lang-ar
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand
    > a {
        justify-content: flex-end !important;
    }


    /* ========================================================
       ACTION ICONS
       SAME 90px ROW AS LOGO
       ======================================================== */

    .pb-front-header[data-pb-source-header]
    .pb-actions {
        grid-area: actions !important;

        position: static !important;

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

        align-self: stretch !important;
        justify-self: stretch !important;

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

        gap: 24px !important;

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

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

        transform: none !important;
        translate: none !important;
    }


    html[dir="rtl"]
    .pb-front-header[data-pb-source-header]
    .pb-actions,

    body.lang-ar
    .pb-front-header[data-pb-source-header]
    .pb-actions {
        justify-content: flex-start !important;
    }


    /* ========================================================
       NAVIGATION ROW
       ======================================================== */

    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-nav {
        grid-area: nav !important;

        position: relative !important;

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

        width: 100% !important;
        height: 62px !important;
        min-height: 62px !important;

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

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

        transform: none !important;
        translate: none !important;

        overflow: visible !important;
    }


    .pb-front-header[data-pb-source-header]
    .pb-nav
    > .pb-nav-item {
        position: relative !important;

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

        height: 62px !important;

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


    .pb-front-header[data-pb-source-header]
    .pb-nav
    > .pb-nav-item
    > .pb-nav-link {
        display: flex !important;
        align-items: center !important;

        height: 62px !important;

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

        line-height: 1.2 !important;

        transform: none !important;
        translate: none !important;
    }


    /* ========================================================
       MEGA MENU
       DIRECTLY UNDER NAV ITEM
       ======================================================== */

    .pb-front-header[data-pb-source-header]
    .pb-nav-item
    > .pb-mega,

    .pb-front-header[data-pb-source-header]
    .pb-mega {
        top: 100% !important;
        bottom: auto !important;

        margin-top: 0 !important;

        transform: none !important;
        translate: none !important;

        z-index: 10000 !important;
    }


    /* ========================================================
       REMOVE HISTORICAL INLINE POSITIONING
       ======================================================== */

    .pb-front-header[data-pb-source-header]
    .pb-brand[style],

    .pb-front-header[data-pb-source-header]
    .pb-brand > a[style],

    .pb-front-header[data-pb-source-header]
    .pb-actions[style] {
        top: auto !important;
        bottom: auto !important;

        transform: none !important;
        translate: none !important;

        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

}


/* ============================================================
   SMALL DESKTOP / LAPTOP
   1200 - 1399
   ============================================================ */

@media screen and (min-width: 1200px) and (max-width: 1399.98px) {

    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner {
        width: calc(100% - 32px) !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }


    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand img,

    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand svg {
        max-width: 190px !important;
        height: 44px !important;
        max-height: 44px !important;
    }


    .pb-front-header[data-pb-source-header]
    .pb-actions {
        gap: 18px !important;
    }


    .pb-front-header[data-pb-source-header]
    .pb-nav
    > .pb-nav-item
    > .pb-nav-link {
        padding-left: 5px !important;
        padding-right: 5px !important;
        font-size: 15px !important;
    }

}


/* ============================================================
   WIDE DESKTOP
   >= 1600
   ============================================================ */

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

    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner {
        max-width: 1600px !important;
        padding-left: 64px !important;
        padding-right: 64px !important;
    }

}


/* END PANBLOOM DESKTOP HEADER LOCKED SKETCH FINAL V6 */


/* ============================================================
   PANBLOOM DESKTOP HEADER
   REAL DOM STRUCTURAL AUTHORITY V7

   >= 1200px ONLY

   ACTUAL DOM:
   .pb-main-menu-inner
       > a.pb-brand
       > nav.pb-nav
       > div.pb-header-actions

   ROW 1:
       logo LEFT
       actions RIGHT

   ROW 2:
       navigation

   NO LOGO translateY
   NO LOGO top hack
   ============================================================ */

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


    /* ========================================================
       REMOVE OUTER HOMEPAGE POSITIONING
       ======================================================== */

    html body
    .pb-front-header[data-pb-source-header]
    .pb-front-shell,

    html body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-bar {

        position: static !important;

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

        transform: none !important;
        translate: none !important;

        margin: 0 !important;

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

        overflow: visible !important;
    }


    /* ========================================================
       ONE DESKTOP GRID
       ======================================================== */

    html body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner {

        display: grid !important;

        grid-template-columns:
            minmax(260px, 1fr)
            minmax(260px, 1fr) !important;

        grid-template-rows:
            90px
            62px !important;

        grid-template-areas:
            "brand actions"
            "nav nav" !important;

        position: relative !important;

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

        transform: none !important;
        translate: none !important;

        width: min(calc(100% - 80px), 1540px) !important;
        max-width: 1540px !important;

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

        margin: 0 auto !important;
        padding: 0 38px !important;

        overflow: visible !important;

        box-sizing: border-box !important;
    }


    /* ========================================================
       REAL LOGO ELEMENT = a.pb-brand
       ======================================================== */

    html body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > a.pb-brand {

        grid-area: brand !important;

        position: static !important;

        display: flex !important;

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

        align-self: stretch !important;
        justify-self: stretch !important;

        width: auto !important;
        height: 90px !important;
        min-height: 90px !important;

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

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

        transform: none !important;
        translate: none !important;

        overflow: visible !important;
    }


    html body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > a.pb-brand
    > img.pb-brand-logo {

        display: block !important;

        position: static !important;

        width: auto !important;
        max-width: 220px !important;

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

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

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

        transform: none !important;
        translate: none !important;

        object-fit: contain !important;
    }


    /* ========================================================
       REAL ACTION ELEMENT = .pb-header-actions
       THIS WAS THE V6 ERROR
       ======================================================== */

    html body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-header-actions {

        grid-area: actions !important;

        position: static !important;

        display: flex !important;

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

        align-self: stretch !important;
        justify-self: stretch !important;

        width: auto !important;

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

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

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

        transform: none !important;
        translate: none !important;

        gap: 24px !important;
    }


    /* ========================================================
       NAVIGATION = ROW 2
       ======================================================== */

    html body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > nav.pb-nav {

        grid-area: nav !important;

        position: relative !important;

        display: flex !important;

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

        width: 100% !important;

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

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

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

        transform: none !important;
        translate: none !important;

        overflow: visible !important;
    }


    /* ========================================================
       ARABIC / RTL

       logo RIGHT
       actions LEFT
       ======================================================== */

    html[dir="rtl"] body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner,

    body.lang-ar
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner {

        grid-template-areas:
            "actions brand"
            "nav nav" !important;
    }


    html[dir="rtl"] body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > a.pb-brand,

    body.lang-ar
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > a.pb-brand {

        justify-content: flex-end !important;
    }


    html[dir="rtl"] body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-header-actions,

    body.lang-ar
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-header-actions {

        justify-content: flex-start !important;
    }

}


/* ============================================================
   SMALL LAPTOP
   ============================================================ */

@media screen and (min-width: 1200px) and (max-width: 1399.98px) {

    html body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner {

        width: calc(100% - 32px) !important;

        padding-left: 24px !important;
        padding-right: 24px !important;
    }


    html body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > a.pb-brand
    > img.pb-brand-logo {

        max-width: 190px !important;

        height: 44px !important;
        max-height: 44px !important;
    }


    html body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-header-actions {

        gap: 18px !important;
    }

}


/* END PANBLOOM DESKTOP HEADER REAL DOM STRUCTURAL AUTHORITY V7 */


/* ============================================================
   PANBLOOM DESKTOP HEADER
   LOGO ISOLATED FINAL AUTHORITY V8

   >= 1200px only

   Do NOT alter:
   - icons
   - navigation
   - mega menu
   - hero

   Only normalize the complete logo chain.
   ============================================================ */

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

    /* Brand cell */
    html body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand {

        position: relative !important;

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

        transform: none !important;
        translate: none !important;

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

        align-self: center !important;
        justify-self: start !important;

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

        height: 100% !important;

        overflow: visible !important;
    }


    /* Logo link */
    html body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand
    > a {

        position: static !important;

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

        transform: none !important;
        translate: none !important;

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

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

        height: auto !important;

        overflow: visible !important;
    }


    /* Actual logo image */
    html body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand
    img {

        position: static !important;

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

        transform: none !important;
        translate: none !important;

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

        display: block !important;

        width: auto !important;
        max-width: 220px !important;

        height: auto !important;
        max-height: 52px !important;

        object-fit: contain !important;

        overflow: visible !important;
    }


    /* Arabic stays on its natural opposite side */
    html[dir="rtl"]
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand {

        justify-self: end !important;
        justify-content: flex-end !important;
    }

}


/* END PANBLOOM DESKTOP HEADER LOGO ISOLATED FINAL AUTHORITY V8 */


/* ============================================================
   PANBLOOM DESKTOP HEADER
   ENGLISH LOGO REBUILD FINAL V11

   Desktop/laptop >= 1200px only.

   English:
   - hide historical logo image
   - render a fresh logo in the brand cell
   - brand shares Row 1 with action icons

   Arabic untouched.
   Navigation untouched.
   Mega menu untouched.
   Hero untouched.
   ============================================================ */

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

    /* --------------------------------------------------------
       ENGLISH BRAND CELL
       The REAL DOM is:
       <a class="pb-brand">
           <img class="pb-brand-logo">
       </a>
       -------------------------------------------------------- */

    html[lang^="en"]
    body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand {

        grid-area: brand !important;

        position: relative !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        inset: auto !important;

        align-self: stretch !important;
        justify-self: start !important;

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

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

        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;

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

        transform: none !important;
        translate: none !important;

        overflow: visible !important;

        text-decoration: none !important;

        font-size: 0 !important;

        z-index: 20 !important;
    }


    /* --------------------------------------------------------
       HIDE THE HISTORICAL ENGLISH IMG COMPLETELY

       We no longer move this image.
       It cannot interfere with positioning.
       -------------------------------------------------------- */

    html[lang^="en"]
    body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand
    > .pb-brand-logo {

        display: none !important;

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

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

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

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

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

        transform: none !important;
    }


    /* --------------------------------------------------------
       CLEAN NEW ENGLISH LOGO

       Because it is generated inside .pb-brand, no historical
       IMG selector can move it.

       Adjust ONLY background-position-y later if ever needed.
       -------------------------------------------------------- */

    html[lang^="en"]
    body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand::before {

        content: "" !important;

        display: block !important;
        flex: 0 0 auto !important;

        width: 190px !important;
        height: 58px !important;

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

        background-image:
            url("../img/panbloomlogo_black_en.svg") !important;

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

        transform: none !important;
        translate: none !important;

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

        pointer-events: none !important;
    }


    /* --------------------------------------------------------
       ABSOLUTE SAFETY:
       remove any old generated decoration from the brand.
       Keep ::before exclusively for our new logo.
       -------------------------------------------------------- */

    html[lang^="en"]
    body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand::after {

        content: none !important;
        display: none !important;
    }

}


/* END PANBLOOM DESKTOP HEADER ENGLISH LOGO REBUILD FINAL V11 */


/* ============================================================
   PANBLOOM DESKTOP HEADER
   ENGLISH LOGO ABSOLUTE ROW POSITION FINAL V12

   Desktop/laptop >= 1200px only.

   English only.
   Arabic untouched.
   Icons untouched.
   Navigation untouched.
   Mega menu untouched.
   Hero untouched.

   Final authority:
   position the generated English logo independently
   inside Row 1 instead of inheriting historical flex/grid
   vertical behavior.
   ============================================================ */

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

    html[lang^="en"]
    body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand {

        position: relative !important;

        align-self: stretch !important;
        justify-self: start !important;

        overflow: visible !important;

        transform: none !important;
        translate: none !important;

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


    html[lang^="en"]
    body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand::before {

        content: "" !important;

        position: absolute !important;

        left: 0 !important;

        /*
         * FINAL VERTICAL POSITION.
         * This is now independent from historical logo/flex rules.
         */
        top: 50% !important;

        width: 190px !important;
        height: 58px !important;

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

        background-image:
            url("../img/panbloomlogo_black_en.svg") !important;

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

        transform: translateY(-50%) !important;
        translate: none !important;

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

        pointer-events: none !important;

        z-index: 50 !important;
    }

}


/* END PANBLOOM DESKTOP HEADER ENGLISH LOGO ABSOLUTE ROW POSITION FINAL V12 */


/* ============================================================
   PANBLOOM DESKTOP HEADER
   LOGO SIZE + RTL POSITION FINAL V13

   >= 1200px only

   EN:
   - keep current V12 position
   - make logo slightly smaller

   AR:
   - logo MUST stay on right side
   - actions remain on left side

   Navigation / mega menu / hero untouched.
   ============================================================ */

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

    /* ========================================================
       ENGLISH
       Keep V12 positioning; reduce logo size only.
       ======================================================== */

    html[lang^="en"]
    body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand::before {

        width: 175px !important;
        height: 54px !important;

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

        top: 50% !important;

        background-position: left center !important;
        background-size: contain !important;

        transform: translateY(-50%) !important;
    }


    /* ========================================================
       ARABIC BRAND CONTAINER
       Force brand into RIGHT side of Row 1.
       ======================================================== */

    html[dir="rtl"]
    body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand {

        grid-area: brand !important;

        position: relative !important;

        justify-self: end !important;
        align-self: stretch !important;

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

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

        height: 100% !important;

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

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

        transform: none !important;
        translate: none !important;

        overflow: visible !important;

        z-index: 30 !important;
    }


    /* ========================================================
       ARABIC LOGO IMAGE
       Keep real Arabic asset; size it and anchor right.
       ======================================================== */

    html[dir="rtl"]
    body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand
    > .pb-brand-logo {

        display: block !important;

        position: relative !important;

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

        max-width: 175px !important;
        max-height: 58px !important;

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

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

        transform: none !important;
        translate: none !important;

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

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


    /* Do not generate the English replacement logo in RTL. */

    html[dir="rtl"]
    body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand::before {

        content: none !important;
        display: none !important;
    }

}


/* END PANBLOOM DESKTOP HEADER LOGO SIZE + RTL POSITION FINAL V13 */


/* ============================================================
   PANBLOOM DESKTOP HEADER
   LOGO FINAL AUTHORITY V14

   >= 1200px

   ENGLISH:
   - same good position
   - smaller logo

   ARABIC:
   - completely independent from historical grid position
   - Arabic logo fixed to RIGHT side of Row 1
   - smaller logo
   - actions remain LEFT

   Does NOT modify:
   - nav
   - mega menu
   - hero
   - action icon geometry
   ============================================================ */

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


    /* ========================================================
       ENGLISH - SIZE ONLY
       ======================================================== */

    html[lang^="en"]
    body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand::before {

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

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

        top: 50% !important;

        background-image:
            url("../img/panbloomlogo_black_en.svg") !important;

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

        transform: translateY(-50%) !important;
    }


    /* ========================================================
       ARABIC
       REMOVE OLD IMAGE FROM LAYOUT
       ======================================================== */

    html[dir="rtl"]
    body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand
    > .pb-brand-logo {

        display: none !important;

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

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


    /* ========================================================
       ARABIC BRAND CONTAINER
       ABSOLUTE RIGHT SIDE OF ROW 1
       ======================================================== */

    html[dir="rtl"]
    body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand {

        position: absolute !important;

        top: 0 !important;
        right: 36px !important;
        bottom: auto !important;
        left: auto !important;

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

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

        display: block !important;

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

        transform: none !important;
        translate: none !important;

        overflow: visible !important;

        z-index: 100 !important;
    }


    /* ========================================================
       CLEAN ARABIC LOGO
       ======================================================== */

    html[dir="rtl"]
    body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand::before {

        content: "" !important;

        display: block !important;

        position: absolute !important;

        top: 50% !important;
        right: 0 !important;
        bottom: auto !important;
        left: auto !important;

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

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

        background-image:
            url("../img/panbloomlogo_black_ar.svg") !important;

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

        transform: translateY(-50%) !important;
        translate: none !important;

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

        pointer-events: none !important;

        z-index: 101 !important;
    }

}


/* END PANBLOOM DESKTOP HEADER LOGO FINAL AUTHORITY V14 */


/* ============================================================
   PANBLOOM DESKTOP HEADER
   ARABIC LOGO RIGHT FINAL AUTHORITY V15

   >= 1200px

   IMPORTANT:
   Arabic detection uses the REAL project language class:
   body.lang-ar

   Fix:
   - kill English generated logo on Arabic
   - hide historical Arabic img
   - create Arabic SVG
   - place it independently on RIGHT side
   - icons stay LEFT
   - nav untouched
   ============================================================ */

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


    /* ========================================================
       ARABIC BRAND CELL
       RIGHT SIDE OF ROW 1
       ======================================================== */

    body.lang-ar
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand {

        position: absolute !important;

        top: 0 !important;
        right: 36px !important;
        bottom: auto !important;
        left: auto !important;

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

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

        display: block !important;

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

        transform: none !important;
        translate: none !important;

        overflow: visible !important;

        z-index: 100 !important;
    }


    /* ========================================================
       HIDE ORIGINAL IMG
       ======================================================== */

    body.lang-ar
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand
    > .pb-brand-logo {

        display: none !important;

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

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

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

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


    /* ========================================================
       ARABIC LOGO
       FINAL RIGHT POSITION
       ======================================================== */

    body.lang-ar
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand::before {

        content: "" !important;

        display: block !important;

        position: absolute !important;

        top: 50% !important;
        right: 0 !important;
        bottom: auto !important;
        left: auto !important;

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

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

        background-image:
            url("../img/panbloomlogo_black_ar.svg") !important;

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

        transform: translateY(-50%) !important;
        translate: none !important;

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

        pointer-events: none !important;

        z-index: 101 !important;
    }

}


/* END PANBLOOM DESKTOP HEADER ARABIC LOGO RIGHT FINAL AUTHORITY V15 */


/* ============================================================
   PANBLOOM DESKTOP HEADER
   LANGUAGE LOGO FINAL AUTHORITY V16

   Desktop/laptop >= 1200px only.

   ENGLISH:
   html lang=en...

   ARABIC:
   body.lang-ar / html lang=ar...

   No dir attribute dependency.
   ============================================================ */

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


    /* ========================================================
       ENGLISH
       Must NEVER render on Arabic.
       ======================================================== */

    html[lang^="en"]
    body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand::before {

        background-image:
            url("../img/panbloomlogo_black_en.svg") !important;

    }


    /* ========================================================
       ARABIC BRAND
       RIGHT SIDE
       ======================================================== */

    html[lang^="ar"]
    body.lang-ar
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand {

        position: absolute !important;

        top: 0 !important;
        right: 36px !important;
        bottom: auto !important;
        left: auto !important;

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

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

        display: block !important;

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

        transform: none !important;
        translate: none !important;

        overflow: visible !important;

        z-index: 100 !important;
    }


    /* ========================================================
       ARABIC ORIGINAL IMAGE
       Hide historical image completely.
       ======================================================== */

    html[lang^="ar"]
    body.lang-ar
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand
    > .pb-brand-logo {

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

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

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


    /* ========================================================
       ARABIC GENERATED LOGO
       ======================================================== */

    html[lang^="ar"]
    body.lang-ar
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand::before {

        content: "" !important;

        display: block !important;

        position: absolute !important;

        top: 50% !important;
        right: 0 !important;
        bottom: auto !important;
        left: auto !important;

        width: 150px !important;
        height: 46px !important;

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

        background-image:
            url("../img/panbloomlogo_black_ar.svg") !important;

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

        transform: translateY(-50%) !important;
        translate: none !important;

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

        pointer-events: none !important;

        z-index: 101 !important;
    }

}


/* END PANBLOOM DESKTOP HEADER LANGUAGE LOGO FINAL AUTHORITY V16 */


/* ============================================================
   PANBLOOM DESKTOP LOGO ALIGNMENT ONLY V17

   LOGO ONLY.

   English:
   - move logo 6px upward
   - move logo 18px inward from left

   Arabic:
   - move logo 6px upward
   - move logo 18px inward from right

   DO NOT MODIFY:
   - header
   - icons
   - navigation
   - mega menu
   - hero
   - logo size
   ============================================================ */

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


    /* ENGLISH LOGO ONLY */

    html[lang^="en"]
    body
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand::before {

        left: 18px !important;
        right: auto !important;

        /*
         * Existing center = 50%.
         * Move artwork upward by 6px only.
         */
        top: calc(50% - 10px) !important;

        transform: translateY(-50%) !important;
    }


    /* ARABIC LOGO ONLY */

    html[lang^="ar"]
    body.lang-ar
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-brand::before {

        right: 18px !important;
        left: auto !important;

        /*
         * Existing center = 50%.
         * Move artwork upward by 6px only.
         */
        top: calc(50% - 10px) !important;

        transform: translateY(-50%) !important;
    }

}


/* END PANBLOOM DESKTOP LOGO ALIGNMENT ONLY V17 */


/* ============================================================
   PANBLOOM DESKTOP MEGA MENU HOVER GAP FIX V2

   Desktop/laptop only >= 1200px.

   ONLY affects mega dropdown vertical position / hover bridge.

   DOES NOT CHANGE:
   - logo
   - action icons
   - navigation typography
   - header dimensions
   - hero
   - tablet
   - mobile
   ============================================================ */

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

    /*
     * Bring the REAL dropdown box upward.
     *
     * The screenshots show roughly 25-30px dead space.
     * Previous -14px was not enough.
     */
    .pb-front-header[data-pb-source-header]
    .pb-mega {

        margin-top: 0 !important;

        /*
         * Move the complete element AND its mouse hit area,
         * not only visual contents.
         */
        transform: translateY(-58px) !important;

        z-index: 10000 !important;
    }


    /*
     * Extra transparent mouse bridge.
     *
     * The panel is already moved upward, but this gives
     * another protected zone immediately above it.
     */
    .pb-front-header[data-pb-source-header]
    .pb-mega::before {

        content: "" !important;

        position: absolute !important;

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

        top: -22px !important;

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

        background: transparent !important;

        pointer-events: auto !important;
    }

}


/* END PANBLOOM DESKTOP MEGA MENU HOVER GAP FIX V2 */


/* ============================================================
   PANBLOOM ARABIC DESKTOP MEGA UNDER TRIGGER FINAL V2

   Desktop >= 1200px
   Arabic only.

   PURPOSE:
   The Arabic mega dropdown must open directly underneath
   the menu item that owns it -- "اختر لونك".

   IMPORTANT:
   - logo untouched
   - icons untouched
   - header untouched
   - English untouched
   - mobile/tablet untouched
   - mega content/size untouched

   Existing successful vertical position remains -58px.
   ============================================================ */

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

    /* --------------------------------------------------------
       MEGA OWNER

       Make the menu item itself the positioning reference.
       -------------------------------------------------------- */

    body.lang-ar
    .pb-front-header[data-pb-source-header]
    .pb-nav-item:has(> .pb-mega) {

        position: relative !important;

    }


    /* --------------------------------------------------------
       ARABIC MEGA

       Place its horizontal CENTER directly underneath
       the horizontal CENTER of "اختر لونك".

       Vertical -58px is retained from the working V2.1 fix.
       -------------------------------------------------------- */

    body.lang-ar
    .pb-front-header[data-pb-source-header]
    .pb-nav-item:has(> .pb-mega)
    > .pb-mega {

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

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

        transform:
            translateX(-360px)
            translateY(-58px) !important;

        z-index: 10000 !important;
    }


    /* --------------------------------------------------------
       SMALL VERTICAL HOVER BRIDGE ONLY

       No giant horizontal bridge is required anymore because
       dropdown now sits underneath its own trigger.
       -------------------------------------------------------- */

    body.lang-ar
    .pb-front-header[data-pb-source-header]
    .pb-nav-item:has(> .pb-mega)
    > .pb-mega::before {

        content: "" !important;

        position: absolute !important;

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

        top: -22px !important;

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

        background: transparent !important;

        pointer-events: auto !important;
    }

}


/* END PANBLOOM ARABIC DESKTOP MEGA UNDER TRIGGER FINAL V2 */


/* ============================================================
   PANBLOOM ARABIC DESKTOP MEGA TRUE TRIGGER ANCHOR V2.3

   >= 1200px
   Arabic only

   PURPOSE:
   Position Pick Your Color mega relative to its OWN nav item.

   UNTOUCHED:
   - logo
   - icons
   - English
   - header dimensions
   - hero
   - mobile/tablet
   - mega dimensions
   ============================================================ */

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

    /*
     * Make the actual Pick Your Color parent the positioning
     * reference for its own mega panel.
     */
    body.lang-ar
    .pb-front-header[data-pb-source-header]
    .pb-nav-item:has(> .pb-mega) {

        position: relative !important;
    }


    /*
     * Position panel directly underneath that trigger.
     *
     * IMPORTANT:
     * Keep existing vertical correction -58px.
     */
    body.lang-ar
    .pb-front-header[data-pb-source-header]
    .pb-nav-item:has(> .pb-mega)
    > .pb-mega {

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

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

        transform:
            translateX(-600px)
            translateY(-58px) !important;

        z-index: 10000 !important;
    }


    /*
     * Hover bridge directly between trigger and its own panel.
     */
    body.lang-ar
    .pb-front-header[data-pb-source-header]
    .pb-nav-item:has(> .pb-mega)::after {

        content: "" !important;

        position: absolute !important;

        left: -600px !important;
        right: auto !important;

        top: 70% !important;

        width: calc(100% + 600px) !important;
        height: 90px !important;

        background: transparent !important;

        pointer-events: auto !important;

        z-index: 9999 !important;
    }

}

/* END PANBLOOM ARABIC DESKTOP MEGA TRUE TRIGGER ANCHOR V2.3 */

/* PANBLOOM_DESKTOP_MEGA_VISIBILITY_V2 */
@media screen and (min-width:1200px) {

  .pb-front-header .pb-nav-item > .pb-mega {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .pb-front-header .pb-nav-item:hover > .pb-mega,
  .pb-front-header .pb-nav-item:focus-within > .pb-mega {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

}
