.popover-body{
    padding: 0;
}

.f-language:hover{
    background-color: #F1F1F1;
    cursor: pointer;
}

.selected-language{
    background-color: #F1F1F1;
}

/* Mobile menu styles */
.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler {
    outline: none;
}

#navbarNav {
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
    padding-top: 1rem;
}

#navbarNav .nav-link {
    padding: 0.75rem 0.5rem;
    color: #767d85;
    display: block;
}

#navbarNav .nav-link:hover,
#navbarNav .nav-link:focus {
    color: #324150;
}

#navbarNav .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    transform: none !important;
    border: none;
    box-shadow: none;
    padding-left: 1.5rem;
    background-color: transparent;
    margin-top: 0;
}

#navbarNav .dropdown-item {
    padding: 0.5rem 0.5rem;
    color: #767d85;
    font-size: 0.95rem;
}

#navbarNav .dropdown-item:hover {
    background-color: #F1F1F1;
    color: #324150;
}

/* Active nav item (current page) — soft pill */
.header-euro-wrapper .nav-link-active,
.header-euro-wrapper .link-hover-selected.nav-link-active,
.header-euro-wrapper .dropdown-toggle.nav-link-active {
    color: #b9172f !important;
    font-weight: 700 !important;
    background-color: rgba(185, 23, 47, 0.08);
    border-radius: 6px;
    padding: 6px 12px !important;
    border-bottom: none !important;
}

.header-euro-wrapper .nav-link-active:hover,
.header-euro-wrapper .nav-link-active:focus,
.header-euro-wrapper .link-hover-selected.nav-link-active:hover,
.header-euro-wrapper .link-hover-selected.nav-link-active:focus,
.header-euro-wrapper .dropdown-toggle.nav-link-active:hover,
.header-euro-wrapper .dropdown-toggle.nav-link-active:focus {
    color: #b9172f !important;
    background-color: rgba(185, 23, 47, 0.12);
}

#navbarNav .nav-link.nav-link-active,
#navbarNav .dropdown-toggle.nav-link-active {
    color: #b9172f !important;
    font-weight: 700 !important;
    background-color: rgba(185, 23, 47, 0.08);
    border-radius: 6px;
}

#navbarNav .dropdown-toggle::after {
    margin-left: 0.5rem;
}

/* Logged-in initials avatar */
.header-euro-wrapper .header-account-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #5b4040;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    flex-shrink: 0;
    text-transform: uppercase;
}

.header-euro-wrapper .header-account-btn:hover .header-account-avatar,
.header-euro-wrapper .header-account-btn:focus .header-account-avatar,
.header-euro-wrapper .header-account-btn.show .header-account-avatar {
    background-color: #b9172f;
}

@media screen and (max-width: 767px){
    .header-icons{
        /* No needed margins */
    }
    
    header {
        position: relative;
    }
    
    #navbarNav {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        width: 100%;
    }
    
    #navbarNav .nav-item {
        border-bottom: 1px solid #f0f0f0;
    }
    
    #navbarNav .nav-item:last-child {
        border-bottom: none;
    }
}