/* Modern two-row header (modules/header.ascx), shared by every page and site.
   Row 1: logo | Login / Sign up.   Row 2: menu, with the logged-in bidder's details right aligned.
   Only layout, size and shape are set here: header and menu bar colours stay with each site's css/custom.css. */

/* The header now scrolls into place and sticks (was position: fixed with a 125px padding and an opSpacer div to make
   room for it), so pages no longer depend on the header's height. */
.site-header-wrapper.hdr-modern { position: -webkit-sticky; position: sticky; top: 0; z-index: 999; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); }
.hdr-modern ~ .body, .body { padding-top: 0 !important; }
.site-header-wrapper.hdr-modern + [class*="spacer-"] { display: none; }

/* ---- Row 1: logo and buttons ---- */
.hdr-modern .site-header { padding: 10px 0; box-shadow: none; }
.hdr-modern .sticky-header.site-header { padding: 6px 0; }
.hdr-modern .site-header > .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hdr-modern .site-header > .container::before,
.hdr-modern .site-header > .container::after { display: none; }
.hdr-modern .site-logo,
.hdr-modern .site-logo h1,
.hdr-modern .header-right,
.hdr-modern .user-login-panel { float: none !important; margin: 0; }
.hdr-modern .site-logo img { max-height: 80px; max-width: 260px; height: auto; width: auto; }
.hdr-modern .sticky-header .site-logo img { max-height: 54px; }

.hdr-modern .user-login-panel { display: flex; align-items: center; gap: 8px; }
.hdr-modern .user-login-panel > [class*="spacer-"], .hdr-modern .user-login-panel > br { display: none; }   /* cfButtonTopSpacer */
.hdr-modern .user-login-panel .btn {
    margin: 0;
    padding: 8px 18px;
    border-radius: 22px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

/* ---- Row 2: menu bar ---- */
.hdr-modern .navbar { height: auto; min-height: 0; box-shadow: none; border: 0; }
.hdr-modern .navbar > .container { display: flex; align-items: center; }
.hdr-modern .navbar > .container::before,
.hdr-modern .navbar > .container::after { display: none; }
.hdr-modern .main-navigation { flex: 1 1 auto; min-width: 0; }
.hdr-modern .main-navigation > ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 0; margin: 0; }
.hdr-modern .main-navigation > ul > li { float: none; margin: 0; font-size: 15px; }
.hdr-modern .main-navigation > ul > li > a {
    line-height: 1.3;
    padding: 8px 14px;
    border-radius: 18px;
    font-weight: 600;
    transition: background-color 0.15s ease;
}
.hdr-modern .main-navigation > ul > li > a:hover,
.hdr-modern .main-navigation > ul > li > a:focus { background: rgba(128, 128, 128, 0.18); text-decoration: none; }

/* logged-in bidder (name : bidder no - Change Pwd) at the right of the menu row */
.hdr-modern .main-navigation > ul > li.hdr-bidder { margin-left: auto; float: none !important; font-size: 13px; }
.hdr-modern .main-navigation > ul > li.hdr-bidder:empty { display: none; }
.hdr-modern .main-navigation > ul > li.hdr-bidder > a { font-weight: 600; opacity: 0.9; }

/* Bidder details under the Login/Logout buttons: only at 992-1229px, where the menu row has no room for them */
.hdr-modern .header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.hdr-modern .hdr-bidder-top { display: none; font-size: 13px; font-weight: 600; text-align: right; }
@media (min-width: 992px) and (max-width: 1229px) {
    .hdr-modern .hdr-bidder-top:not(:empty) { display: block; }
    .hdr-modern .main-navigation > ul > li.hdr-bidder { display: none; }
}

/* ---- Phones and tablets (< 992px): the theme shows the menu button and drops the menu down under the bar ---- */
@media (max-width: 991px) {
    .hdr-modern .site-logo img { max-height: 56px; max-width: 170px; }
    .hdr-modern .navbar #menu-toggle {
        float: none;
        width: 44px;
        height: 44px;
        line-height: 44px;
        margin: 4px 8px;
        border-radius: 10px;
        background: rgba(128, 128, 128, 0.22);
        color: inherit;
        text-align: center;
    }
    .hdr-modern .main-navigation.toggle-menu {
        left: 0;
        right: 0;
        border-top: 0;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
    }
    .hdr-modern .toggle-menu > ul { display: block; padding: 6px 8px 10px; }
    .hdr-modern .toggle-menu > ul > li { border-bottom: 1px solid #f0f0f0; }
    .hdr-modern .toggle-menu > ul > li:last-child { border-bottom: 0; }
    .hdr-modern .toggle-menu > ul > li > a { padding: 12px; border-radius: 8px; color: #222222 !important; }
    .hdr-modern .main-navigation > ul > li.hdr-bidder { margin-left: 0; }
}
@media (max-width: 479px) {
    .hdr-modern .user-login-panel .btn { padding: 7px 12px; font-size: 12px; }
    .hdr-modern .site-logo img { max-width: 130px; max-height: 48px; }
}
