/* ============================================================
   PANBLOOM MYHOME RESPONSIVE HEADER
   CLEAN FINAL V1

   ONLY:
   /myhome
   /ar/myhome

   BREAKPOINT CONTRACT
   0 - 767       phone
   768 - 1199    tablet / iPad / compact laptop
   1200+         desktop

   Working mobile drawer JavaScript is intentionally untouched.
   ============================================================ */


/* ============================================================
   COMMON
   ============================================================ */

body#index .pb-front-header[data-pb-source-header],
body#index .pb-front-header[data-pb-source-header] *,
#pb-myhome-isolated-mobile-drawer-v1,
#pb-myhome-isolated-mobile-drawer-v1 * {
    box-sizing: border-box;
}


body#index .pb-front-header[data-pb-source-header] {
    position: relative !important;
    z-index: 10020 !important;

    width: 100% !important;

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

    overflow: visible !important;

    background: #fff !important;
}


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

body#index
.pb-front-header[data-pb-source-header]
.pb-main-menu-bar {
    width: 100% !important;
    max-width: none !important;

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

    overflow: visible !important;
}


/* ============================================================
   DESKTOP
   >= 1200
   ============================================================ */

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

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

        grid-template-columns:
            minmax(170px, 1fr)
            max-content !important;

        grid-template-rows:
            72px
            54px !important;

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

        align-items: center !important;

        width: calc(100% - 96px) !important;
        max-width: 1600px !important;

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

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

        column-gap: 24px !important;

        overflow: visible !important;

        background: #fff !important;
    }


    body#index
    .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;

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

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

        transform: none !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand-logo {
        display: block !important;

        width: auto !important;
        max-width: 190px !important;
        height: 48px !important;
        max-height: 48px !important;

        object-fit: contain !important;

        margin: 0 !important;
    }


    body#index
    .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;

        height: 72px !important;

        gap: 20px !important;

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

        transform: none !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-header-actions
    .pb-action-button {
        flex: 0 0 38px !important;

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

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

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


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

        position: static !important;

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

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

        gap: clamp(12px, 1.35vw, 30px) !important;

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

        overflow: visible !important;
    }


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

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

        flex: 0 1 auto !important;

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

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


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav
    > .pb-nav-item
    > .pb-nav-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        height: 54px !important;

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

        white-space: nowrap !important;

        font-size: clamp(14px, .95vw, 18px) !important;
        line-height: 1.2 !important;
        font-weight: 650 !important;
    }


    /*
     * Pick Your Color / desktop dropdown.
     */
    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav-item
    > .pb-mega {
        position: absolute !important;

        top: 100% !important;
        bottom: auto !important;
        left: 50% !important;

        display: block !important;

        width: min(960px, calc(100vw - 80px)) !important;
        max-width: 960px !important;
        max-height: min(560px, calc(100vh - 180px)) !important;

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

        overflow: auto !important;

        border: 0 !important;
        border-radius: 26px !important;

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

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

        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;

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

        transition:
            opacity .18s ease,
            transform .18s ease,
            visibility .18s ease !important;

        z-index: 10050 !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav-item:hover
    > .pb-mega,

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav-item:focus-within
    > .pb-mega,

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav-item.is-open
    > .pb-mega {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;

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


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-mega-grid {
        gap: 14px !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-menu-card {
        min-width: 0 !important;

        border-radius: 18px !important;

        overflow: hidden !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-menu-card-media {
        height: 145px !important;
        min-height: 145px !important;
        max-height: 145px !important;

        overflow: hidden !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-menu-card-media img {
        display: block !important;

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

        object-fit: cover !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-mobile-toggle[data-pb-mobile-toggle] {
        display: none !important;
    }


    #pb-myhome-isolated-mobile-drawer-v1 {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}


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

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

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner {
        width: calc(100% - 40px) !important;

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


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-nav {
        gap: 10px !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav
    > .pb-nav-item
    > .pb-nav-link {
        font-size: 14px !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-header-actions {
        gap: 14px !important;
    }
}


/* ============================================================
   TABLET / IPAD / COMPACT VIEW
   768 - 1199
   ============================================================ */

@media screen and (min-width: 768px) and (max-width: 1199.98px) {

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner {
        display: flex !important;
        align-items: center !important;

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

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

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

        gap: 18px !important;

        overflow: visible !important;

        background: #fff !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand {
        flex: 0 0 auto !important;

        position: static !important;

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

        transform: none !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand-logo {
        display: block !important;

        width: auto !important;
        max-width: 165px !important;
        height: 38px !important;
        max-height: 38px !important;

        object-fit: contain !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-header-actions {
        flex: 1 1 auto !important;

        position: static !important;

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

        gap: 14px !important;

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

        transform: none !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav {
        display: none !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-mobile-toggle[data-pb-mobile-toggle] {
        display: inline-flex !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-mega {
        display: none !important;
    }
}


/* ============================================================
   PHONES
   0 - 767
   ============================================================ */

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

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner {
        display: flex !important;
        align-items: center !important;

        width: 100% !important;

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

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

        gap: 4px !important;

        overflow: visible !important;

        background: #fff !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand {
        flex: 0 1 auto !important;

        min-width: 0 !important;

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


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand-logo {
        display: block !important;

        width: 104px !important;
        max-width: 104px !important;
        height: auto !important;

        object-fit: contain !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-header-actions {
        flex: 1 1 auto !important;

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

        min-width: 0 !important;

        gap: 3px !important;

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


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-header-actions
    .pb-action-button {
        flex: 0 0 33px !important;

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

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

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


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav,

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-mega {
        display: none !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-mobile-toggle[data-pb-mobile-toggle] {
        flex: 0 0 40px !important;

        position: relative !important;

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

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

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

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

        gap: 5px !important;

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

        background: transparent !important;
        box-shadow: none !important;

        overflow: visible !important;

        transform: none !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-mobile-toggle[data-pb-mobile-toggle]
    > span {
        display: block !important;

        position: static !important;

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

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

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

        border: 0 !important;
        border-radius: 99px !important;

        background: #171315 !important;

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

        transform: none !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-mobile-toggle[data-pb-mobile-toggle]::before,

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-mobile-toggle[data-pb-mobile-toggle]::after {
        content: none !important;
        display: none !important;
    }
}


/* ============================================================
   WORKING MOBILE/TABLET DRAWER UI
   < 1200
   ============================================================ */

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

    #pb-myhome-isolated-mobile-drawer-v1 {
        position: fixed !important;

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

        width: min(86vw, 390px) !important;
        max-width: 390px !important;
        height: 100dvh !important;
        min-height: 100vh !important;

        margin: 0 !important;

        padding:
            max(78px, env(safe-area-inset-top))
            28px
            max(30px, env(safe-area-inset-bottom))
            28px !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;

        background: #fff !important;

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

        z-index: 2147483000 !important;
    }


    #pb-myhome-isolated-mobile-drawer-v1
    > .pb-nav-item {
        width: 100% !important;

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

        border: 0 !important;
    }


    #pb-myhome-isolated-mobile-drawer-v1
    > .pb-nav-item
    > .pb-nav-link {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

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

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

        color: #202126 !important;

        font-size: 20px !important;
        line-height: 1.25 !important;
        font-weight: 600 !important;

        text-decoration: none !important;
    }


    #pb-myhome-isolated-mobile-drawer-v1
    .pb-mega {
        position: static !important;

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

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

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

        box-shadow: none !important;

        background: #fff !important;

        transform: none !important;
    }


    #pb-myhome-isolated-mobile-drawer-v1
    .pb-mega-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;

        gap: 10px !important;

        width: 100% !important;
    }


    #pb-myhome-isolated-mobile-drawer-v1
    .pb-menu-card {
        width: 100% !important;

        margin: 0 !important;
    }


    #pb-myhome-isolated-mobile-drawer-v1
    .pb-menu-card-media {
        height: 110px !important;

        overflow: hidden !important;

        border-radius: 12px !important;
    }


    #pb-myhome-isolated-mobile-drawer-v1
    .pb-menu-card-media img {
        display: block !important;

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

        object-fit: cover !important;
    }


    /*
     * JS adds mobile-active state.
     */
    html.pb-mobile-menu-active,
    body.pb-mobile-menu-active {
        overflow: hidden !important;
    }
}


/* ============================================================
   PHONE DRAWER
   ============================================================ */

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

    #pb-myhome-isolated-mobile-drawer-v1 {
        width: calc(100vw - 56px) !important;
        max-width: none !important;

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


    #pb-myhome-isolated-mobile-drawer-v1
    > .pb-nav-item
    > .pb-nav-link {
        min-height: 52px !important;

        font-size: 18px !important;
    }
}


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

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

    html[dir="rtl"]
    #pb-myhome-isolated-mobile-drawer-v1,

    body.lang-ar
    #pb-myhome-isolated-mobile-drawer-v1 {
        right: auto !important;
        left: 0 !important;

        direction: rtl !important;
        text-align: right !important;

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


    html[dir="rtl"]
    #pb-myhome-isolated-mobile-drawer-v1
    > .pb-nav-item
    > .pb-nav-link,

    body.lang-ar
    #pb-myhome-isolated-mobile-drawer-v1
    > .pb-nav-item
    > .pb-nav-link {
        direction: rtl !important;
        text-align: right !important;
    }
}


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

    html[dir="rtl"]
    body#index
    .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 {
        direction: rtl !important;
    }


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

    body.lang-ar
    .pb-front-header[data-pb-source-header]
    .pb-header-actions {
        direction: rtl !important;
    }
}


/* END PANBLOOM MYHOME RESPONSIVE HEADER CLEAN FINAL V1 */


/* ============================================================
   PANBLOOM MYHOME
   MOBILE + TABLET FINAL UI V1

   Scope:
   /myhome
   /ar/myhome

   IMPORTANT:
   - JS untouched
   - desktop >= 1200px untouched
   - phone + tablet UI only
   ============================================================ */


/* ============================================================
   PHONE
   0 - 767
   ============================================================ */

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

    /* HEADER */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner {
        min-height: 78px !important;
        height: 78px !important;

        padding:
            0
            14px !important;

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


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 118px !important;
        margin: 0 !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand img,
    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand svg {
        max-width: 118px !important;
        width: auto !important;
        height: auto !important;
        display: block !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-header-actions {
        display: flex !important;
        align-items: center !important;

        gap: 13px !important;

        margin-left: auto !important;
        padding: 0 !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-header-actions a,
    body#index
    .pb-front-header[data-pb-source-header]
    .pb-header-actions button {
        width: 30px !important;
        min-width: 30px !important;
        height: 38px !important;

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

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


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-mobile-toggle[data-pb-mobile-toggle] {
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;

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

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

        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;

        position: relative !important;
        z-index: 10000002 !important;
    }


    /* DRAWER */

    #pb-myhome-isolated-mobile-drawer-v1 {
        width: min(86vw, 360px) !important;
        max-width: 360px !important;

        height: 100dvh !important;
        min-height: 100vh !important;

        top: 0 !important;
        bottom: 0 !important;

        padding:
            94px
            28px
            36px
            28px !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;

        -webkit-overflow-scrolling: touch !important;

        background: #fff !important;

        box-shadow:
            -10px 0 30px rgba(0, 0, 0, 0.08) !important;
    }


    #pb-myhome-isolated-mobile-drawer-v1
    > .pb-nav-item {
        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
    }


    #pb-myhome-isolated-mobile-drawer-v1
    > .pb-nav-item
    > .pb-nav-link {
        min-height: 50px !important;

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

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

        font-size: 17px !important;
        line-height: 1.3 !important;
        font-weight: 600 !important;

        white-space: normal !important;
    }


    #pb-myhome-isolated-mobile-drawer-v1
    .pb-nav-item + .pb-nav-item {
        margin-top: 1px !important;
    }


    #pb-myhome-isolated-mobile-drawer-v1
    .pb-nav-link svg,
    #pb-myhome-isolated-mobile-drawer-v1
    .pb-nav-link i {
        flex: 0 0 auto !important;
        margin-left: 8px !important;
    }


    /* dropdown content */

    #pb-myhome-isolated-mobile-drawer-v1
    .pb-mega {
        position: static !important;

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

        margin:
            4px
            0
            10px
            0 !important;

        padding:
            8px
            0
            4px
            0 !important;

        box-shadow: none !important;
        border: 0 !important;
        background: transparent !important;
    }


    #pb-myhome-isolated-mobile-drawer-v1
    .pb-menu-card {
        margin-bottom: 10px !important;
    }


    #pb-myhome-isolated-mobile-drawer-v1
    .pb-menu-card-media {
        max-height: 120px !important;
        overflow: hidden !important;
        border-radius: 8px !important;
    }


    #pb-myhome-isolated-mobile-drawer-v1
    .pb-menu-card-media img {
        width: 100% !important;
        height: 120px !important;
        object-fit: cover !important;
        display: block !important;
    }


    /* close state icon */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-mobile-toggle.is-open {
        background: transparent !important;
        box-shadow: none !important;
    }

}



/* ============================================================
   TABLET / IPAD / COMPACT LAPTOP
   768 - 1199
   ============================================================ */

@media screen and (min-width: 768px) and (max-width: 1199.98px) {

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner {
        height: 92px !important;
        min-height: 92px !important;

        padding:
            0
            26px !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand {
        max-width: 150px !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand img,
    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand svg {
        max-width: 150px !important;
        height: auto !important;
    }


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


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-mobile-toggle[data-pb-mobile-toggle] {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;

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


    #pb-myhome-isolated-mobile-drawer-v1 {
        width: min(54vw, 460px) !important;
        max-width: 460px !important;

        height: 100dvh !important;
        min-height: 100vh !important;

        padding:
            108px
            36px
            44px
            36px !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;

        -webkit-overflow-scrolling: touch !important;
    }


    #pb-myhome-isolated-mobile-drawer-v1
    > .pb-nav-item
    > .pb-nav-link {
        min-height: 54px !important;

        padding:
            11px
            0 !important;

        font-size: 18px !important;
        line-height: 1.3 !important;
        font-weight: 600 !important;
    }


    #pb-myhome-isolated-mobile-drawer-v1
    .pb-mega {
        position: static !important;

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

        margin:
            6px
            0
            12px
            0 !important;

        padding:
            8px
            0 !important;

        box-shadow: none !important;
    }

}



/* ============================================================
   ARABIC RTL
   PHONE + TABLET ONLY
   ============================================================ */

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

    html[dir="rtl"]
    #pb-myhome-isolated-mobile-drawer-v1,
    body.lang-ar
    #pb-myhome-isolated-mobile-drawer-v1 {
        direction: rtl !important;
        text-align: right !important;
    }


    html[dir="rtl"]
    #pb-myhome-isolated-mobile-drawer-v1
    > .pb-nav-item
    > .pb-nav-link,

    body.lang-ar
    #pb-myhome-isolated-mobile-drawer-v1
    > .pb-nav-item
    > .pb-nav-link {
        direction: rtl !important;
        text-align: right !important;
    }


    html[dir="rtl"]
    #pb-myhome-isolated-mobile-drawer-v1
    .pb-nav-link svg,

    html[dir="rtl"]
    #pb-myhome-isolated-mobile-drawer-v1
    .pb-nav-link i,

    body.lang-ar
    #pb-myhome-isolated-mobile-drawer-v1
    .pb-nav-link svg,

    body.lang-ar
    #pb-myhome-isolated-mobile-drawer-v1
    .pb-nav-link i {
        margin-left: 0 !important;
        margin-right: 8px !important;
    }

}


/* END PANBLOOM MYHOME MOBILE + TABLET FINAL UI V1 */


/* ============================================================
   PANBLOOM MYHOME
   FINAL MOBILE/TABLET DRAWER POLISH V2

   Scope:
   /myhome
   /ar/myhome

   IMPORTANT:
   - CSS only
   - drawer JS untouched
   - open / close mechanism untouched
   - desktop >=1200 untouched
   - does NOT control display / visibility / transform
   ============================================================ */


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

    /* ========================================================
       DRAWER SHELL
       ======================================================== */

    #pb-myhome-isolated-mobile-drawer-v1 {
        width: min(86vw, 390px) !important;
        max-width: 390px !important;

        height: 100dvh !important;
        max-height: 100dvh !important;

        padding:
            max(72px, env(safe-area-inset-top))
            24px
            calc(28px + env(safe-area-inset-bottom))
            24px !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;

        background: #fff !important;

        box-shadow:
            0 0 36px
            rgba(0, 0, 0, 0.16) !important;
    }


    /* ========================================================
       TOP LEVEL MENU ITEMS
       ======================================================== */

    #pb-myhome-isolated-mobile-drawer-v1
    > .pb-nav-item {
        width: 100% !important;

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

        border: 0 !important;
    }


    #pb-myhome-isolated-mobile-drawer-v1
    > .pb-nav-item
    > .pb-nav-link {
        width: 100% !important;

        min-height: 48px !important;

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

        gap: 10px !important;

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

        font-size: 18px !important;
        line-height: 1.35 !important;
        font-weight: 600 !important;

        white-space: normal !important;

        border: 0 !important;
        background: transparent !important;

        text-decoration: none !important;
    }


    /* ========================================================
       NORMAL LINKS INSIDE DRAWER
       ======================================================== */

    #pb-myhome-isolated-mobile-drawer-v1
    .pb-nav-link {
        color: #171717 !important;

        box-shadow: none !important;
        outline: none !important;
    }


    #pb-myhome-isolated-mobile-drawer-v1
    .pb-nav-link:hover,
    #pb-myhome-isolated-mobile-drawer-v1
    .pb-nav-link:focus,
    #pb-myhome-isolated-mobile-drawer-v1
    .pb-nav-link:active {
        color: #171717 !important;
        background: transparent !important;

        box-shadow: none !important;
        outline: none !important;
    }


    /* ========================================================
       DROPDOWN ARROW
       ======================================================== */

    #pb-myhome-isolated-mobile-drawer-v1
    .pb-nav-link svg,
    #pb-myhome-isolated-mobile-drawer-v1
    .pb-nav-link i {
        flex: 0 0 auto !important;

        width: 16px !important;
        height: 16px !important;

        margin: 0 !important;
    }


    /* ========================================================
       SUBMENU / MEGA CONTENT
       ======================================================== */

    #pb-myhome-isolated-mobile-drawer-v1
    .pb-mega,
    #pb-myhome-isolated-mobile-drawer-v1
    .pb-submenu {
        position: static !important;

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

        margin: 4px 0 10px !important;
        padding: 4px 0 4px !important;

        border: 0 !important;
        box-shadow: none !important;

        background: transparent !important;

        overflow: visible !important;
    }


    /* ========================================================
       SUBMENU LINKS
       ======================================================== */

    #pb-myhome-isolated-mobile-drawer-v1
    .pb-mega a,
    #pb-myhome-isolated-mobile-drawer-v1
    .pb-submenu a {
        min-height: 40px !important;

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

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

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

        white-space: normal !important;
    }


    /* ========================================================
       IMAGE / COLLECTION CARDS INSIDE MOBILE DRAWER
       Keep them compact.
       ======================================================== */

    #pb-myhome-isolated-mobile-drawer-v1
    .pb-menu-card {
        width: 100% !important;
        max-width: 100% !important;

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

        border-radius: 12px !important;
    }


    #pb-myhome-isolated-mobile-drawer-v1
    .pb-menu-card-media {
        width: 72px !important;
        min-width: 72px !important;
        max-width: 72px !important;

        height: 58px !important;

        margin: 0 10px 0 0 !important;

        border-radius: 8px !important;

        overflow: hidden !important;
    }


    #pb-myhome-isolated-mobile-drawer-v1
    .pb-menu-card-media img {
        width: 100% !important;
        height: 100% !important;

        object-fit: cover !important;

        display: block !important;
    }


    /* ========================================================
       REMOVE UNNECESSARY GIANT GAPS
       ======================================================== */

    #pb-myhome-isolated-mobile-drawer-v1
    ul,
    #pb-myhome-isolated-mobile-drawer-v1
    ol {
        margin-top: 0 !important;
        margin-bottom: 0 !important;

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


    #pb-myhome-isolated-mobile-drawer-v1
    li {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }


    /* ========================================================
       PHONE-SPECIFIC WIDTH
       ======================================================== */

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

        #pb-myhome-isolated-mobile-drawer-v1 {
            width: min(84vw, 360px) !important;
            max-width: 360px !important;

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

    }


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

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

        #pb-myhome-isolated-mobile-drawer-v1 {
            width: 88vw !important;

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


        #pb-myhome-isolated-mobile-drawer-v1
        > .pb-nav-item
        > .pb-nav-link {
            min-height: 45px !important;

            padding-top: 7px !important;
            padding-bottom: 7px !important;

            font-size: 17px !important;
        }

    }


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

    html[dir="rtl"]
    #pb-myhome-isolated-mobile-drawer-v1,

    body.lang-ar
    #pb-myhome-isolated-mobile-drawer-v1 {
        direction: rtl !important;
        text-align: right !important;
    }


    html[dir="rtl"]
    #pb-myhome-isolated-mobile-drawer-v1
    > .pb-nav-item
    > .pb-nav-link,

    body.lang-ar
    #pb-myhome-isolated-mobile-drawer-v1
    > .pb-nav-item
    > .pb-nav-link {
        direction: rtl !important;
        text-align: right !important;
    }


    html[dir="rtl"]
    #pb-myhome-isolated-mobile-drawer-v1
    .pb-menu-card-media,

    body.lang-ar
    #pb-myhome-isolated-mobile-drawer-v1
    .pb-menu-card-media {
        margin:
            0
            0
            0
            10px !important;
    }

}


/* ============================================================
   ABSOLUTE DESKTOP SAFETY
   ============================================================ */

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

    /*
     * UI polish above must have zero effect on desktop.
     * Existing desktop header continues to control >=1200.
     */

    #pb-myhome-isolated-mobile-drawer-v1 {
        max-width: none;
    }

}


/* END PANBLOOM MYHOME FINAL MOBILE/TABLET DRAWER POLISH V2 */


/* ============================================================
   PANBLOOM MYHOME
   DESKTOP HEADER COMPACT FIX V1

   Scope:
   /myhome
   /ar/myhome

   Desktop only >= 1200px

   Purpose:
   - remove excessive vertical white space
   - center logo/actions
   - tighten navigation row
   - preserve mobile/tablet drawer
   ============================================================ */

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

    /* --------------------------------------------------------
       HEADER OUTER
       -------------------------------------------------------- */

    body#index
    .pb-front-header[data-pb-source-header] {
        min-height: 116px !important;
        height: 116px !important;

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


    /* --------------------------------------------------------
       MAIN HEADER GRID
       -------------------------------------------------------- */

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

        grid-template-columns:
            minmax(180px, 1fr)
            max-content !important;

        grid-template-rows:
            66px
            50px !important;

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

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

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

        margin: 0 !important;

        padding:
            0
            28px !important;

        align-items: center !important;

        overflow: visible !important;
    }


    /* --------------------------------------------------------
       LOGO
       -------------------------------------------------------- */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand {
        grid-area: brand !important;

        position: static !important;

        display: flex !important;

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

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

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

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


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand img,

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand svg {
        display: block !important;

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

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

        margin: 0 !important;
    }


    /* --------------------------------------------------------
       ACTION ICONS
       -------------------------------------------------------- */

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

        position: static !important;

        display: flex !important;

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

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

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

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

        gap: 22px !important;
    }


    /* --------------------------------------------------------
       NAVIGATION ROW
       -------------------------------------------------------- */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-nav,

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav {
        grid-area: nav !important;

        position: static !important;

        display: flex !important;

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

        width: 100% !important;

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

        margin: 0 !important;

        padding:
            0
            8px !important;

        gap: clamp(22px, 2.3vw, 44px) !important;

        overflow: visible !important;
    }


    /* --------------------------------------------------------
       MENU ITEMS
       -------------------------------------------------------- */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav
    > .pb-nav-item {
        display: flex !important;

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

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

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


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav
    > .pb-nav-item
    > .pb-nav-link {
        display: flex !important;

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

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

        margin: 0 !important;

        padding:
            0
            2px !important;

        line-height: 1.15 !important;

        white-space: nowrap !important;
    }


    /* --------------------------------------------------------
       MOBILE ELEMENTS MUST NEVER SHOW ON DESKTOP
       -------------------------------------------------------- */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-mobile-toggle[data-pb-mobile-toggle],

    #pb-myhome-isolated-mobile-drawer-v1 {
        display: none !important;
    }

}


/* END PANBLOOM MYHOME DESKTOP HEADER COMPACT FIX V1 */


/* ============================================================
   PANBLOOM MYHOME
   DESKTOP HEADER COMPACT FIX V1

   Scope:
   /myhome
   /ar/myhome

   Desktop only >= 1200px

   Purpose:
   - remove excessive vertical white space
   - center logo/actions
   - tighten navigation row
   - preserve mobile/tablet drawer
   ============================================================ */

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

    /* --------------------------------------------------------
       HEADER OUTER
       -------------------------------------------------------- */

    body#index
    .pb-front-header[data-pb-source-header] {
        min-height: 116px !important;
        height: 116px !important;

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


    /* --------------------------------------------------------
       MAIN HEADER GRID
       -------------------------------------------------------- */

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

        grid-template-columns:
            minmax(180px, 1fr)
            max-content !important;

        grid-template-rows:
            66px
            50px !important;

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

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

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

        margin: 0 !important;

        padding:
            0
            28px !important;

        align-items: center !important;

        overflow: visible !important;
    }


    /* --------------------------------------------------------
       LOGO
       -------------------------------------------------------- */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand {
        grid-area: brand !important;

        position: static !important;

        display: flex !important;

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

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

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

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


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand img,

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand svg {
        display: block !important;

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

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

        margin: 0 !important;
    }


    /* --------------------------------------------------------
       ACTION ICONS
       -------------------------------------------------------- */

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

        position: static !important;

        display: flex !important;

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

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

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

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

        gap: 22px !important;
    }


    /* --------------------------------------------------------
       NAVIGATION ROW
       -------------------------------------------------------- */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-main-menu-inner
    > .pb-nav,

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav {
        grid-area: nav !important;

        position: static !important;

        display: flex !important;

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

        width: 100% !important;

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

        margin: 0 !important;

        padding:
            0
            8px !important;

        gap: clamp(22px, 2.3vw, 44px) !important;

        overflow: visible !important;
    }


    /* --------------------------------------------------------
       MENU ITEMS
       -------------------------------------------------------- */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav
    > .pb-nav-item {
        display: flex !important;

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

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

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


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav
    > .pb-nav-item
    > .pb-nav-link {
        display: flex !important;

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

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

        margin: 0 !important;

        padding:
            0
            2px !important;

        line-height: 1.15 !important;

        white-space: nowrap !important;
    }


    /* --------------------------------------------------------
       MOBILE ELEMENTS MUST NEVER SHOW ON DESKTOP
       -------------------------------------------------------- */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-mobile-toggle[data-pb-mobile-toggle],

    #pb-myhome-isolated-mobile-drawer-v1 {
        display: none !important;
    }

}


/* END PANBLOOM MYHOME DESKTOP HEADER COMPACT FIX V1 */


/* ============================================================
   PANBLOOM REAL HOMEPAGE
   DESKTOP LOGO + MEGA POSITION FINAL V1

   Applies through homepage-only stylesheet:
   /
   /ar/

   Desktop only >= 1200px
   ============================================================ */

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


    /* ========================================================
       1. HEADER BRAND / LOGO
       Remove every historical vertical offset.
       ======================================================== */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand {
        position: static !important;

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

        transform: none !important;

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

        align-self: center !important;

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

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

        overflow: visible !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand-logo {
        position: static !important;

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

        transform: none !important;

        display: block !important;

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

        max-width: 170px !important;
        max-height: 46px !important;

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

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

        overflow: visible !important;
    }


    /* English logo */
    html:not([dir="rtl"])
    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand-logo {
        width: 145px !important;
        max-width: 145px !important;
        max-height: 44px !important;
    }


    /*
     * Arabic SVG has different internal geometry.
     * Keep full logo visible instead of allowing it
     * to rise above the header.
     */
    html[dir="rtl"]
    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand,

    body.lang-ar#index
    .pb-front-header[data-pb-source-header]
    .pb-brand {
        align-items: center !important;
        justify-content: flex-start !important;

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


    html[dir="rtl"]
    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand-logo,

    body.lang-ar#index
    .pb-front-header[data-pb-source-header]
    .pb-brand-logo {
        width: auto !important;
        height: 44px !important;

        max-width: 190px !important;
        max-height: 44px !important;

        top: auto !important;
        margin-top: 0 !important;

        transform: none !important;
    }



    /* ========================================================
       2. NAVIGATION ITEM
       Dropdown anchor must be the menu item itself.
       ======================================================== */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav-item {
        position: relative !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav-link {
        position: relative !important;

        margin-bottom: 0 !important;
    }



    /* ========================================================
       3. MEGA MENU
       Keep it immediately below navigation.
       ======================================================== */

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

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav-item
    .pb-mega {
        top: calc(100% + 3px) !important;

        margin-top: 0 !important;

        transform: none !important;
    }


    /*
     * Kill historical vertical spacing on wrappers
     * without modifying card/content spacing inside.
     */
    body#index
    .pb-front-header[data-pb-source-header]
    .pb-mega {
        padding-top: 0 !important;
    }


    /* ========================================================
       4. PICK YOUR COLOR ACTIVE UNDERLINE
       Keep underline close to text.
       ======================================================== */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav-link::after {
        bottom: 2px !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav-item.is-open
    > .pb-nav-link,

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav-item:hover
    > .pb-nav-link {
        margin-bottom: 0 !important;
    }

}


/* END PANBLOOM REAL HOMEPAGE DESKTOP LOGO + MEGA POSITION FINAL V1 */


/* ============================================================
   PANBLOOM REAL HOMEPAGE
   DESKTOP HEADER ALIGNMENT FINAL V2

   /
   /ar/

   >= 1200px only

   Fixes:
   1. logo vertical position
   2. mega dropdown excessive vertical gap
   ============================================================ */

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


    /* ========================================================
       1. LOGO — MOVE DOWN, DO NOT CHANGE HEADER GEOMETRY
       ======================================================== */

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

        top: 10px !important;

        transform: none !important;

        overflow: visible !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand-logo {
        position: relative !important;

        top: 0 !important;

        margin-top: 0 !important;

        transform: none !important;

        overflow: visible !important;
    }



    /* ========================================================
       ARABIC LOGO
       Arabic SVG needs a little more vertical correction.
       ======================================================== */

    html[dir="rtl"]
    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand,

    body.lang-ar#index
    .pb-front-header[data-pb-source-header]
    .pb-brand {
        top: 12px !important;
    }



    /* ========================================================
       2. MEGA MENU — REMOVE LARGE GAP
       ======================================================== */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav-item {
        position: relative !important;
    }


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

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav-item
    .pb-mega {
        top: calc(100% - 30px) !important;

        margin-top: 0 !important;

        margin-bottom: 0 !important;
    }



    /*
     * Some existing rules position the mega container
     * relative to the entire navigation/header instead
     * of the Pick Your Color item.
     *
     * This removes that additional vertical offset.
     */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-mega {
        margin-top: -30px !important;
    }



    /* ========================================================
       3. KEEP ACTIVE UNDERLINE CLOSE TO TEXT
       ======================================================== */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav-link::after {
        bottom: 3px !important;
    }



    /* ========================================================
       4. PREVENT EXTRA SPACE FROM OPEN ITEM
       ======================================================== */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav-item.is-open,

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav-item:hover {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

}


/* END PANBLOOM REAL HOMEPAGE DESKTOP HEADER ALIGNMENT FINAL V2 */


/* ============================================================
   PANBLOOM REAL HOMEPAGE
   DESKTOP MEGA GAP + ARABIC LOGO FINAL V3

   REAL HOMEPAGES:
   /
   /ar/

   Desktop >= 1200px only

   English logo is already correct.
   ============================================================ */

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


    /* ========================================================
       1. MEGA DROPDOWN
       Current measured visual gap is roughly 35-40px.
       Pull panel upward without changing nav/header geometry.
       ======================================================== */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-mega {
        transform: translateY(-30px) !important;
    }



    /* ========================================================
       2. ENGLISH LOGO
       Keep current working position.
       ======================================================== */

    html:not([dir="rtl"])
    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand {
        top: 10px !important;
    }



    /* ========================================================
       3. ARABIC LOGO
       Current screenshot shows top of logo clipped.
       Move only Arabic brand downward.
       ======================================================== */

    html[dir="rtl"]
    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand,

    body.lang-ar#index
    .pb-front-header[data-pb-source-header]
    .pb-brand {
        position: relative !important;

        top: 26px !important;

        margin-top: 0 !important;

        transform: none !important;

        overflow: visible !important;
    }


    html[dir="rtl"]
    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand-logo,

    body.lang-ar#index
    .pb-front-header[data-pb-source-header]
    .pb-brand-logo {
        position: relative !important;

        top: 0 !important;

        margin-top: 0 !important;

        transform: none !important;

        overflow: visible !important;
    }

}


/* END PANBLOOM REAL HOMEPAGE DESKTOP MEGA GAP + ARABIC LOGO FINAL V3 */


/* ============================================================
   PANBLOOM REAL HOMEPAGE
   DESKTOP MEGA GAP + ARABIC LOGO FINAL V4

   REAL HOMEPAGES:
   /
   /ar/

   >= 1200px ONLY
   ============================================================ */

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


    /* ========================================================
       1. MEGA PANEL
       Target: approximately 6-10px below nav row.
       Previous -30px still left ~35px gap.
       ======================================================== */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-mega {
        transform: translateY(-58px) !important;
    }



    /* ========================================================
       2. ENGLISH LOGO
       DO NOT MOVE IT - CURRENT RESULT IS GOOD
       ======================================================== */

    html:not([dir="rtl"])
    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand {
        top: 10px !important;
    }



    /* ========================================================
       3. ARABIC BRAND CONTAINER
       Remove historical offsets/clipping.
       ======================================================== */

    html[dir="rtl"]
    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand,

    body.lang-ar#index
    .pb-front-header[data-pb-source-header]
    .pb-brand {
        position: relative !important;

        top: 10px !important;
        bottom: auto !important;

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

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

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

        overflow: visible !important;

        transform: none !important;
    }



    /* ========================================================
       4. ARABIC LOGO IMAGE/SVG
       Override any old negative top/translate rules.
       ======================================================== */

    html[dir="rtl"]
    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand img,

    html[dir="rtl"]
    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand svg,

    body.lang-ar#index
    .pb-front-header[data-pb-source-header]
    .pb-brand img,

    body.lang-ar#index
    .pb-front-header[data-pb-source-header]
    .pb-brand svg,

    html[dir="rtl"]
    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand-logo,

    body.lang-ar#index
    .pb-front-header[data-pb-source-header]
    .pb-brand-logo {
        position: static !important;

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

        margin: 0 !important;

        transform: none !important;

        max-height: 54px !important;
        height: auto !important;
        width: auto !important;

        display: block !important;

        overflow: visible !important;
    }

}


/* END PANBLOOM REAL HOMEPAGE DESKTOP MEGA GAP + ARABIC LOGO FINAL V4 */


/* ============================================================
   PANBLOOM REAL HOMEPAGE
   DESKTOP LOGO VERTICAL ALIGNMENT FINAL V5

   REAL HOMEPAGES:
   /
   /ar/

   Desktop >= 1200px only

   Goal:
   Align logo vertically with action icons.
   Do not change header/nav/mega geometry.
   ============================================================ */

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

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

        top: 216px !important;

        transform: none !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;

        overflow: visible !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand img,

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand svg,

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand-logo {
        top: auto !important;
        transform: none !important;
    }

}


/* END PANBLOOM REAL HOMEPAGE DESKTOP LOGO VERTICAL ALIGNMENT FINAL V5 */


/* ============================================================
   PANBLOOM DESKTOP LOGO DOWN V6
   ONLY vertical logo position
   ============================================================ */

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

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand {
        position: relative !important;
        top: 52px !important;
    }

}

/* END PANBLOOM DESKTOP LOGO DOWN V6 */


/* ============================================================
   PANBLOOM
   UNIFIED DESKTOP HEADER V1

   Goal:
   Make homepage desktop header behave like normal category/
   subcategory pages.

   Desktop/laptop only:
   >= 1200px

   Mobile/tablet untouched.
   ============================================================ */

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


    /* ========================================================
       1. REMOVE HOMEPAGE-SPECIFIC BRAND POSITION HACKS
       ======================================================== */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand {

        position: static !important;

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

        inset: auto !important;

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

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

        align-self: center !important;

        overflow: visible !important;
    }


    body#index
    .pb-front-header[data-pb-source-header]
    .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;

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


    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand img,

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand svg {

        position: static !important;

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

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

        margin: 0 !important;
    }


    /* ========================================================
       2. REMOVE HOMEPAGE-SPECIFIC ACTION POSITION HACKS
       ======================================================== */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-actions {

        position: static !important;

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

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

        align-self: center !important;

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


    /* ========================================================
       3. HEADER ROW
       Use normal flow instead of artificial vertical offsets.
       ======================================================== */

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

        position: relative !important;

        top: auto !important;

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

        overflow: visible !important;
    }


    /* ========================================================
       4. NAVIGATION
       Keep normal desktop navigation geometry.
       ======================================================== */

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-nav {

        position: relative !important;

        top: auto !important;

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

        overflow: visible !important;
    }


    /* ========================================================
       5. MEGA MENU
       Anchor directly beneath nav item like category pages.
       ======================================================== */

    body#index
    .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;
    }


    /* ========================================================
       6. ABSOLUTELY KILL HISTORICAL LOGO PIXEL OFFSETS
       ======================================================== */

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

    body#index
    .pb-front-header[data-pb-source-header]
    .pb-brand > a[style] {

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

}


/* END PANBLOOM UNIFIED DESKTOP HEADER V1 */

/*
 * PANBLOOM_IPHONE_DRAWER_CORRECTION_V1
 * Mobile/tablet only.
 * Desktop >=1200px is not affected.
 */

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

  /* Existing isolated mobile drawer */

  #pb-myhome-isolated-mobile-drawer-v1 {
    width:min(85vw,340px) !important;
    max-width:340px !important;
    height:100dvh !important;
    max-height:100dvh !important;
    overflow-y:auto !important;
    box-sizing:border-box !important;
    padding:64px 16px 24px !important;
    background:#fff !important;
  }

  #pb-myhome-isolated-mobile-drawer-v1 .pb-nav-item {
    margin:0 !important;
    padding:0 !important;
    min-height:0 !important;
  }

  #pb-myhome-isolated-mobile-drawer-v1 .pb-nav-item > a {
    min-height:44px !important;
    padding:10px 4px !important;
    line-height:1.4 !important;
  }

  /* Compact icon alignment */

  .pb-front-header[data-pb-source-header] .pb-header-actions {
    display:flex !important;
    align-items:center !important;
    flex-wrap:nowrap !important;
    gap:4px !important;
  }

  .pb-front-header[data-pb-source-header] .pb-header-actions > * {
    flex-shrink:0 !important;
  }

  .pb-front-header[data-pb-source-header]
  .pb-mobile-toggle[data-pb-mobile-toggle] {
    width:38px !important;
    min-width:38px !important;
    height:40px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
  }
}
