/* ============================================================
   Header : mnd-top-bar, header-nav, language selector,
   account buttons, desktop cart, nav links
   ============================================================ */

.header-desktop {
    display: block;
}

.header-mobile {
    display: none;
}

.mnd-top-bar {
    background-color: #7e7e7d;
    padding: 2px 0;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 9999;
    display: flex;
    align-items: center;
    min-height: 24px;
}

.header-nav {
    background-color: #222221;
    position: fixed;
    top: 24px;
    width: 100vw;
    z-index: 9000;
    padding: 0px !important;
    height: 76px !important;
}

.mnd-top-bar .container {
    display: flex;
    justify-content: flex-end;
    /* Aligner à droite */
}

.mnd-top-bar .mnd-language-selector {
    font-size: 14px;
    color: #333;
    /* Couleur du texte */
}

.mnd-language-selector {
    position: relative;
    display: inline-block;
    cursor: pointer;
    min-width: 7rem;
}

.mnd-current-language {
    /* padding: 10px; */
    background-color: #7e7e7d;
    /* Couleur de fond pour l'élément sélectionné */
    border: 1px solid #7e7e7d;
    color: #ffffff;
}

.mnd-language-list {
    display: none;
    /* Caché par défaut */
    position: absolute;
    background-color: #7e7e7d;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid #ccc;
    z-index: 1000;
    /* Pour s'assurer que la liste est au-dessus des autres éléments */
    width: 100%;
}

.mnd-language-list li {
    padding: 8px 12px;
}

.mnd-language-list li a {
    text-decoration: none;
    color: #ffffff !important;
    display: block;
}

.mnd-language-list li:hover {
    background-color: #52625c;
    /* Changer la couleur au survol */
    color: #7e7e7d !important;
    ;
}

.mnd-language-selector:hover .mnd-language-list,
.mnd-language-selector.active .mnd-language-list {
    display: block;
    /* Afficher la liste au survol */
}

.mnd-account-button {
    display: flex;
    /* Utiliser flexbox pour aligner l'icône et le texte */
    align-items: center;
    /* Aligne verticalement le texte et l'icône */
    justify-content: center;
    /* Centre le contenu horizontalement */
    padding: 10px 20px;
    /* Espacement interne */
    background-color: #fff;
    /* Couleur de fond blanche */
    color: #222221 !important;
    border-radius: 30px;
    /* Pour obtenir les coins arrondis */
    border: 2px solid #222221;
    /* Ajout d'une bordure subtile */
    text-decoration: none;
    /* Enlever le soulignement des liens */
    font-weight: bold;
    /* Texte en gras */
    font-size: 16px;
    /* Taille du texte */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mnd-account-buttons {
    margin-left: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    /* Espace entre les boutons */
}

.mnd-account-button:hover {
    background-color: #f1f1f1;
    /* Légère modification au survol */
    color: #222221 !important;
    /* Couleur du texte au survol */
}

.mnd-account-button span {
    color: #222221 !important;
}

.mnd-account-button i {
    font-size: 16px;
    /* Taille de l'icône */
    margin-right: 10px;
    /* Espace entre l'icône et le texte */
    color: #222221 !important;
}

.mnd-account-button span {
    font-size: 16px;
    /* Taille du texte */
    font-weight: bold;
}

/* .mnd-desktop-cart,
.mnd-desktop-cart .a {
    background-color: #222221 !important;
} */

.mnd-desktop-cart .blockcart .header {
    background-color: #222221;
    /* Couleur de fond sombre */
    border-radius: 50%;
    /* Rond si vous voulez arrondi, ou 0 pour carré */
    width: 60px;
    /* Taille du bouton (largeur) */
    height: 60px;
    /* Taille du bouton (hauteur) */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mnd-desktop-cart .blockcart .shopping-cart {
    font-size: 24px;
    /* Taille de l'icône */
    color: #fff;
    /* Couleur de l'icône (blanc) */
}

.mnd-desktop-cart .blockcart .cart-products-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff0000;
    /* Couleur du badge de nombre de produits (rouge) */
    color: #fff;
    font-size: 12px;
    border-radius: 50%;
    padding: 2px 5px;
    min-width: 20px;
    text-align: center;
}

.mnd-header-link {
    margin-top: .9375rem;
}

.mnd-header-link a {
    color: #ffffff !important;
    background-color: #222221 !important;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
    /* height: 48px; */
}

.mnd-centered-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    text-decoration: none;
    font-weight: bold;
}

.mnd-centered-link:hover {
    color: #ffffff !important;
}

/* Ajustement spécifique pour les tailles d'écran moyennes et petites */
@media (max-width: 767px) {
    .mnd-centered-link {
        padding: 8px 15px;
        font-size: 14px;
    }
}


/* Desktop nav compact (992px–1200px) : les liens ne wrappent plus */
@media (max-width: 992px) {
    .header-desktop {
        display: none;
    }

    .header-mobile {
        display: block;
    }

    #header .logo {
        height: 50px;
        width: unset !important;
        max-height: unset !important;
    }

    #header .header-nav .user-info {
        padding: 8px;
        height: 50px;
        margin-top: 0px;
    }

    .mnd-account-button {
        padding: 5px 10px;
    }

    .mnd-account-button span {
        font-size: 12px;
        font-weight: bold;
    }

    #header .header-nav .blockcart {
        height: 50px;
        padding: 12px 4px;
    }

    .mnd-centered-link {
        padding: 10px;
        font-size: 12px !important;
    }

    #header .header-nav {
        height: 50px !important;
        /* border-bottom: #f6f6f6 2px solid; */
    }

    body {
        margin-top: 74px !important;
    }

    .mnd-header-link {
        margin-top: 0;
    }
}