#header {
    position: relative;
}

#header #_desktop_logo {
    padding-left: unset;
    padding-right: unset;
}

#header .header-top img.logo {
    height: 70px;
    width: fit-content;
    float: left;
}

#header .header-top .row {
    margin: 0;
}

#header .header-top .row .header-top-right {
    display: flex;
    justify-content: space-between;
    padding: 0;
}

#header #_desktop_search {
    width: 60%;
    max-width: unset;
    position: relative;
    margin: auto;
}

#header #search_widget {
    width: 100%;
    max-width: unset;
}

#header #search_widget .search-submit-btn {
    position: absolute;
    right: 5px;
    background-color: var(--main-color);
    width: 38px;
    height: 38px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
}

#header #search_widget .search-submit-btn img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#header .header-top .header-top-right #_desktop_wishlist,
#header .header-top .header-top-right #_desktop_user_info,
#header .header-top .header-top-right #_desktop_cart {
    align-self: center;
}

.header-top #_desktop_logo {
    position: relative;
}

.header-top #_desktop_logo::after {
    position: absolute;
    content: "Revendeur Specialized";
    text-transform: uppercase;
    right: -75px;
    bottom: 0;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    font-family: var(--main-font);
    color: var(--text-color);
}

#_desktop_cart .cart-products-count {
    color: var(--main-color);
}

#header #search_widget input.ui-autocomplete-input {
    height: 48px;
    padding-left: 33px;
    border-radius: 10px;
    border: 1px solid var(--Filets-clairs, #EBEBEB);
    background: #FFF;
    color: #838383;
    font-family: var(--main-font);
    font-size: 14px;
    font-style: normal;
    text-transform: uppercase;
    font-weight: 400;
    line-height: normal;
}

#header .header-top .row .header-top-right .user-info {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 15px;
    padding-right: 15px;
    border-right: solid 1px #EBEBEB;
    height: fit-content;
}

#header .header-top .row .header-top-right .blockwishlist-header-link {
    margin-right: 15px;
    padding-right: 15px;
    border-right: solid 1px #EBEBEB;
    height: fit-content;
}

#header .header-top .row .header-top-right #_desktop_cart {
    height: fit-content;
}

#header .header-top .row .header-top-right .user-info span {
    font-family: var(--main-font);
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
    color: var(--text-color);
}

#header .header-top .row .header-top-right .user-info.logged a:hover {
    color: var(--main-color);
}

/* Suppression des règles forcées pour permettre l'adaptation automatique de la box de résultats */
/* Le module ps_searchbar utilise jQuery UI Position pour gérer dynamiquement le positionnement */
#header .header-top .header-top-right .user-info .login {
    font-size: 16px;
    text-transform: uppercase;
}

#header .header-top .header-top-right .user-info .login:hover {
    color: var(--main-color);
}

#header .header-top .header-top-right .blockcart a:hover {
    color: var(--main-color);
}

#header .header-bottom {
    position: absolute;
    right: 95px;
    bottom: 15px;
    display: flex;
    gap: 10px;
    z-index: 9999;
}

#header .header-bottom .about-us {
    position: relative;
}

#header .header-bottom .about-us::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 15px;
    background-color: #EBEBEB;
}

#header .header-bottom div a {
    padding: 0 10px;
    color: var(--secondary-color);
    font-family: var(--main-font);
    font-size: 15px;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
    vertical-align: bottom;
}

#wrapper .breadcrumb ol li::after {
    content: ">";
}

#header .header-top .row .header-top-right .user-info.logged .logout img {
    width: 30px;
    height: 24px;
}

#header .header-top .row .header-top-right .user-info.logged a.account img {
    display: none;
}

@media (max-width: 480px) {
    #header div.header-mega-search-tools {
        padding-left: var(--margin-left-mobile, 15px);
        padding-right: var(--margin-right-mobile, 15px);
    }
}

#header .header-mega-search-tools {
    padding-left: var(--margin-left, 15px);
    padding-right: var(--margin-right, 15px);
}
@media (max-width: 600px) {
    .header-top .header-top-right {
        margin-bottom: 25px;
    }
    .header-top #_mobile_logo {
        position: relative;
    }
    .header-top #_mobile_logo::after {
        position: absolute;
        content: "Revendeur Specialized";
        text-transform: uppercase;
        left: 0px;
        white-space: nowrap;
        bottom: -30px;
        font-size: 15px;
        font-style: normal;
        font-weight: 600;
        font-family: var(--main-font);
        color: var(--text-color);
    }
}
@media (min-width: 600px) and (max-width: 767px) {
    .header-top #_mobile_logo::after {
        position: absolute;
        content: "Revendeur Specialized";
        text-transform: uppercase;
        right: -180px;
        bottom: 0;
        font-size: 15px;
        font-style: normal;
        font-weight: 600;
        font-family: var(--main-font);
        color: var(--text-color);
    }
}
@media (min-width: 768px) and (max-width: 1600px) { 
    #header .header-top {
        padding-bottom: 40px;
    }
    .header-top #_desktop_logo::after {
        left: 0;
        right: unset;
        bottom: -30px;
        white-space: nowrap;
    }
}
@media (max-width: 767px) {
    .header-top .blockcart .cart-products-count {
        color: var(--main-color);
    }

    .header-top #_mobile_logo {
        position: relative;
    }
    

    #header .header-top .row .header-top-right .user-info {
        padding: 0;
        margin: 0;
    }

    #header .header-top .row .header-top-right .user-info .account {
        width: min-content;
    }


    /* Uniformisation mobile : logo à gauche, icônes à droite sur une seule ligne */
    #header .header-top .header-top-right .hidden-md-up.text-sm-center.mobile {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
    }

    #header .header-top .header-top-right .hidden-md-up.text-sm-center.mobile #_mobile_logo {
        width: auto;
        margin-right: auto;
    }

    #header .header-top .header-top-right .hidden-md-up.text-sm-center.mobile .float-xs-right {
        float: none;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 30px;
        padding: 0 12px;
        margin: 0;
    }

    /* Séparateurs verticaux : sauf dernier élément */
    #header .header-top .header-top-right .hidden-md-up.text-sm-center.mobile #_mobile_user_info,
    #header .header-top .header-top-right .hidden-md-up.text-sm-center.mobile #_mobile_wishlist {
        border-right: 1px solid #EBEBEB;
    }

    #header .header-top .header-top-right .hidden-md-up.text-sm-center.mobile #_mobile_cart {
        border-right: 0;
        padding-right: 0;
    }

    #header .header-mega-search-tools {
        display: flex;
        align-items: center;
        gap: 12px;

    }

    #header .header-mega-search-tools .neptune-mega-menu {
        flex: 0 0 auto;
        width: auto !important;
    }

    #header .header-mega-search-tools #_mobile_search {
        flex: 1 1 auto;
        min-width: 0;
    }

    #header .header-mega-search-tools #_mobile_search #search_widget {
        margin: 0;
    }

    #header .header-bottom {
        display: none;
    }

    #header .header-nav #menu-icon {
        display: none;
    }

    #header .header-top .row .header-top-right {
        display: block;
    }

    .header-top .header-top-right .hidden-md-up.text-sm-center.mobile #_mobile_logo img.logo {
        height: 55px;
        max-height: unset;
    }

    #header .header-top .header-top-right .hidden-md-up.text-sm-center.mobile .user-info {
        padding: 0 12px 0 0;
        width: fit-content;
        height: 30px;
        padding-right: 0;
        margin: 0;
        align-content: center;
        border-right: 0;
        gap: 8px;
    }

    #header .header-top .header-top-right .hidden-md-up.text-sm-center.mobile #_mobile_wishlist .blockwishlist-header-link {
        margin: 0;
        padding: 0;
        border-right: 0;
        height: auto;
    }

    #header .header-top .header-top-right .hidden-md-up.text-sm-center.mobile .user-info .login,
    #header .header-top .header-top-right .hidden-md-up.text-sm-center.mobile .user-info .account {
        position: relative;
    }

    .header-top .header-top-right .hidden-md-up.text-sm-center.mobile .user-info .login span {
        display: none;
    }

    .header-top .header-top-right .ets_mm_megamenu.sticky_disabled {
        width: fit-content;
        padding: 0;
        margin: 0;
        height: 30px;
        align-content: center;
    }

    .header-top .header-top-right .ets_mm_megamenu.sticky_disabled .container {
        background-color: unset;
        padding: 0 !important;
    }

    .header-top .header-top-right .ets_mm_megamenu.sticky_disabled .container .ybc-menu-toggle.ybc-menu-btn {
        padding: 0;
    }

    #header #_mobile_search #search_widget {
        width: 100%;
        padding: 0;
        margin: 15px 0px;
    }

    #header #_mobile_search #search_widget form {
        margin: 0;
    }

    #header #_mobile_search #search_widget input.ui-autocomplete-input {
        overflow: hidden !important;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding-left: 15px;
        padding-right: 45px;
    }

    #header #_mobile_search #search_widget input.ui-autocomplete-input::placeholder {
        overflow: hidden !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #header .header-top .header-top-right .hidden-md-up.text-sm-center.mobile .user-info.logged a.account span {
        display: none;
    }

    #header .header-top .header-top-right .hidden-md-up.text-sm-center.mobile #_mobile_cart .blockcart {
        height: 30px;
        align-content: center;
        margin-right: 0;
        position: relative;
    }

    #header .header-top .row .header-top-right .user-info.logged a.account img {
        display: block;
    }
}

@media screen and (min-width: 768px) and (max-width: 1280px) and (orientation: landscape) {
    #header .header-bottom {
        gap: 5px;
        right: 60px;
    }

    #header .header-bottom div a {
        font-size: 8px;
        padding-left: 0;
    }

}