/* Bande supérieure du header en blanc */
#header .header-top,
#header .header-nav,
#header .desktop-header-top,
#header .mobile-header-top {
  background: #ffffff !important;
  background-image: none !important;
  border-bottom: 1px solid #e9e9e9 !important;
}

#header .header-top,
#header .header-top a,
#header .header-top .material-icons,
#header .header-nav,
#header .header-nav a,
#header .header-nav .material-icons {
  color: #555555 !important;
}

#header .header-top .shopping-cart,
#header .header-top .user-info a,
#header .header-top .language-selector a,
#header .header-top .search-widget i {
  color: #d97db0 !important;
}



/* === OPDIS_CSS_MINIMAL_01_COMMUN === */

/* Logo responsive : proportions originales conservees */
.header-bottom__logo img.logo {
    width: 270px;
    max-width: 100%;
    height: auto;
    max-height: none;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .header-bottom__logo img.logo {
        width: 200px;
    }
}

@media (max-width: 767px) {
    .header-bottom__logo img.logo {
        width: clamp(100px, 34vw, 150px);
    }
}

/* Menu principal OPDIS */
body
.ps-mainmenu__tree-link {
    font-weight: 700;
    font-size: clamp(13px, 1.1vw, 16px);
    padding: 12px 6px !important;
}

/* Menu mobile */
body
.menu--mobile .menu__link {
    font-weight: 700;
}

/* Bandeau de livraison compact */
body
.header-banner .sfsf-wrapper {
    margin: 0;
    padding: 5px 12px;
    border-radius: 0;
}

body
.header-banner .sfsf-message {
    margin: 0 0 4px;
    font-size: 13px;
    text-align: center;
}

body
.header-banner .sfsf-bar {
    height: 5px;
}

/* === FIN OPDIS_CSS_MINIMAL_01_COMMUN === */


/* === OPDIS_CSS_MINIMAL_02_COMMUN === */

/* Centrage du menu sur ordinateur */
@media (min-width: 1200px) {
    body
    .header-nav-full-width .ps-mainmenu__tree {
        justify-content: center;
    }
}

/* Recherche responsive sur ordinateur et tablette */
@media (min-width: 768px) {
    body
    #_desktop_ps_searchbar {
        width: clamp(250px, 32vw, 400px);
        max-width: 50%;
    }

    body
    #ps_searchbar {
        width: 100%;
    }

    body
    .ps-searchbar__input {
        width: 100%;
    }
}

/* === FIN OPDIS_CSS_MINIMAL_02_COMMUN === */


/* === CROQ_NATIVE_MENU_ICONS_OPDIS_COMMUN === */

body
.native-menu-icon {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

@media (min-width: 1200px) {

    body
    .ps-mainmenu__tree > li
    > .ps-mainmenu__tree-item-wrapper
    > .ps-mainmenu__tree-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        text-align: center;
        font-weight: 700;
    }

    body
    .ps-mainmenu__tree-link .native-menu-icon {
        width: 48px;
        height: 48px;
        max-width: none;
        max-height: none;
    }
}

body
#menu-mobile > .menu__list > li
> .menu__link:has(.native-menu-icon) {
    display: flex;
    align-items: center;
    gap: 10px;
}

body
#menu-mobile .native-menu-icon {
    width: 30px;
    height: 30px;
    max-width: none;
    max-height: none;
}

/* === FIN CROQ_NATIVE_MENU_ICONS_OPDIS_COMMUN === */

/* === HUMMINGBIRD_LAYOUT_COMMUN_01 === */

.header-bottom__row {
    min-height: 90px;
    height: auto !important;
    align-items: center !important;
}

.header-bottom__logo {
    align-self: center;
    padding-top: 6px;
    padding-bottom: 6px;
}

.header-bottom__logo img.logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 270px;
    max-height: 78px;
    object-fit: contain;
}

@media (min-width: 1200px) {

    .header-nav-full-width .ps-mainmenu--desktop,
    .header-nav-full-width .ps-mainmenu__desktop {
        width: 100%;
        max-width: 100%;
    }

    .header-nav-full-width .ps-mainmenu__tree {
        display: flex;
        justify-content: center !important;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {

    .header-bottom__row {
        min-height: 64px;
    }

    .header-bottom__logo img.logo {
        max-width: 150px;
        max-height: 52px;
    }
}

/* === FIN HUMMINGBIRD_LAYOUT_COMMUN_01 === */

/* === LIVRAISON_RESPONSIVE_COMMUN_01 === */

.header-nav-full-width .sfsf-wrapper {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 7px 12px;
    border-radius: 0;
    text-align: center;
}

.header-nav-full-width .sfsf-message {
    width: 100%;
    max-width: 100%;
    margin: 0 0 5px;
    text-align: center !important;
    font-size: clamp(12px, 1.05vw, 14px);
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    justify-content: center;
}

.header-nav-full-width .sfsf-message p {
    margin: 0;
    text-align: center;
}

.header-nav-full-width .sfsf-bar {
    width: 100%;
    max-width: 100%;
    height: 5px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767px) {

    .header-nav-full-width .sfsf-wrapper {
        padding: 6px 10px;
    }

    .header-nav-full-width .sfsf-message {
        font-size: 12px;
        line-height: 1.4;
    }
}

/* === FIN LIVRAISON_RESPONSIVE_COMMUN_01 === */


/* === HUMMINGBIRD_HEADER_COMMUN_NAV2 === */

.header-bottom__nav2 {
    flex: 0 0 auto;
    width: auto;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    order: 3;
}

@media (min-width: 992px) {

    .header-bottom__row {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center !important;
    }

    .header-bottom__logo {
        flex: 0 0 auto;
        order: 1;
    }

    .header-bottom__row #_desktop_ps_searchbar {
        flex: 1 1 300px;
        width: auto;
        min-width: 0;
        max-width: 520px;
        margin-left: auto !important;
        margin-right: auto !important;
        order: 2;
    }

    .header-bottom__nav2 {
        white-space: nowrap;
    }
}

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

    .header-bottom__row {
        flex-wrap: wrap;
    }

    .header-bottom__row #_desktop_ps_searchbar {
        flex: 1 1 240px;
        min-width: 0;
        max-width: 100%;
    }

    .header-bottom__nav2 {
        flex: 1 0 100%;
        justify-content: center;
        padding-top: 6px;
        padding-bottom: 6px;
    }
}

/* === FIN HUMMINGBIRD_HEADER_COMMUN_NAV2 === */


/* === HUMMINGBIRD_DEGRADES_MENU_01 === */

/* CROQADOM - Charte historique */

body:has(.header-bottom__logo a[href^="https://croqadom.nc/"]) {
    --shop-menu-gradient: linear-gradient(
        100deg,
        #ffc5e3 0%,
        #ffe0ef 32%,
        #ddecff 70%,
        #ded4ff 100%
    );
}

/* OPDIS - Charte verte et orange */

body:has(.header-bottom__logo a[href^="https://opdis.nc/"]) {
    --shop-menu-gradient: linear-gradient(
        100deg,
        #c8edaf 0%,
        #e4f6d5 32%,
        #fff0d9 70%,
        #ffd0a1 100%
    );
}

/* Bandeau commun responsive */

.header-nav-full-width {
    background: var(--shop-menu-gradient, #ffffff);
}

.header-nav-full-width .ps-mainmenu--desktop,
.header-nav-full-width .ps-mainmenu__desktop,
.header-nav-full-width .ps-mainmenu__tree {
    background: transparent;
}

/* Livraison sur fond blanc */

.header-nav-full-width .sfsf-wrapper {
    background: #ffffff !important;
}

/* === FIN HUMMINGBIRD_DEGRADES_MENU_01 === */


/* === SOUS_CATEGORIES_COMMUN_01 === */

/* Masquer les doublons sur ordinateur */

@media (min-width: 992px) {
    body.page-category .subcategory {
        display: none !important;
    }
}

/* === FIN SOUS_CATEGORIES_COMMUN_01 === */

