
/* ==========================
           NAVBAR
        ========================== */
.row-top {
    position: absolute;
   top:0;
   margin:0;
}
.navbar-custom {
    background: linear-gradient( to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.75) 70%, rgba(0, 0, 0, 1) 100% );
    height: 125px;
    z-index: 1;
}
/* The logo sits in the flex flow (not absolutely positioned) so it can never overlap the
   menu items, and it shrinks with the viewport instead of pushing them underneath it. */
.logo-center {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 0 10px;
    min-width: 0;
    z-index: 1;
}

    /* LOGO IMAGE */
    .logo-center img {
        max-width: min(350px, 30vw);
        max-height: 85px;
        width: auto;
        height: auto;
        object-fit: contain;
    }

/* The two nav lists share the remaining space evenly on either side of the logo. */
#desktopNav .container-fluid {
    flex-wrap: nowrap;
    padding-top: 40px;
}

#desktopNav > .container-fluid > .navbar-nav,
#desktopNav > .container-fluid > .navbar-collapse {
    flex: 1 1 0;
    min-width: 0;
}

/* NAV LINKS */
.navbar-nav .nav-item {
    margin-left: 10px;
    margin-right: 10px;
}
.navbar-nav .nav-link {
    color: #fff !important;
    font-family: "Arial", sans-serif;
    font-weight: 400; /* Regular */
    font-size: clamp(0.95rem, 1.15vw, 1.25rem);
    line-height: 1.2;
    letter-spacing: 1px;
    padding: 0 12px;
    white-space: nowrap;
}

/* ==========================
           TOP RIGHT INFO
        ========================== */
.top-info {
    position: absolute;
    top: 8px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 12pt;
}

    .top-info a {
        color: #ffffff;
        text-decoration: none;
        padding-right:5px;

    }

    .top-info span {
        color: #ffffff;
    }

/* Consumer sign-in / account dropdown (rendered by _ConsumerLoginPartial). The logout action must
   be a POST form for antiforgery, so its button is styled as a normal menu item. */
.consumer-auth {
    position: relative;
    display: inline-block;
}

.consumer-auth__toggle {
    list-style: none;
    font: inherit;
    color: #ffffff;
    cursor: pointer;
    white-space: nowrap;
}

    .consumer-auth__toggle::-webkit-details-marker {
        display: none;
    }

    .consumer-auth__toggle:hover {
        text-decoration: underline;
    }

.consumer-auth__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1000;
    min-width: 190px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
    font-weight: normal;
    font-size: 11pt;
}

    .consumer-auth__menu form {
        margin: 0;
    }

    .consumer-auth__menu a,
    .consumer-auth__menu button {
        display: block;
        width: 100%;
        padding: 8px 16px;
        background: none;
        border: 0;
        text-align: left;
        font: inherit;
        color: #212529;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
    }

        .consumer-auth__menu a:hover,
        .consumer-auth__menu button:hover {
            background: #f1f3f5;
            color: #212529;
        }

.consumer-auth__heart {
    color: #e8412a;
}

/* ==========================
           DROPDOWNS
        ========================== */

.dropdown-menu {
    background: rgba(var(--primary-bg-rgb), 0.8);
    width: auto;
    min-width: 170px;
    max-width: 320px;
    border: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
    margin-top: 8px;
}

.dropdown-item {
    color: #ffffff;
    font-size: 17px;
    padding: 8px 15px;
    white-space: normal;
    overflow-wrap: break-word;
}

    .dropdown-item:hover {
        background: rgba(255,255,255,0.12);
    }

.navbar .dropdown-toggle::after {
    display: none !important;
}

/* Tighten spacing on narrow desktops so the links stay on one line next to the logo. */
@media (min-width: 992px) and (max-width: 1399px) {
    .navbar-nav .nav-item {
        margin-left: 2px;
        margin-right: 2px;
    }

    .navbar-nav .nav-link {
        padding: 0 6px;
        letter-spacing: 0;
    }

    .logo-center img {
        max-width: min(260px, 26vw);
        max-height: 70px;
    }
}

/* MOBILE */
.navbar-toggler {
    border-color: rgba(255,255,255,0.6);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}



@media (max-width: 991px) {
    /* The fixed 125px height clips the expanded collapse, so let the bar grow. */
    .navbar-custom {
        height: auto;
        min-height: 125px;
    }

    #desktopNav .container-fluid {
        flex-wrap: wrap;
        padding-top: 0;
    }

    .logo-center {
        margin: 0 auto;
        padding: 0;
    }

        .logo-center img {
            max-width: min(250px, 45vw);
            max-height: 65px;
        }

    /* The info row is absolutely positioned, so let it wrap instead of overflowing. */
    .top-info {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
        max-width: calc(100% - 30px);
        font-size: 10pt;
    }

    #desktopNav .navbar-collapse {
        background: rgba(var(--primary-bg-rgb), 0.95);
        border-radius: 0 0 10px 10px;
        margin-top: 8px;
        padding: 8px 0;
    }

    #desktopNav .navbar-nav .nav-item {
        margin-left: 0;
        margin-right: 0;
    }

    #desktopNav .navbar-nav .nav-link {
        padding: 8px 16px;
    }

    #desktopNav .dropdown-menu {
        position: static;
        margin-top: 0;
        box-shadow: none;
        background: transparent;
        max-width: none;
    }

    #desktopNav .dropdown-item.text-end {
        text-align: left !important;
    }

    /* Keep the toggler clear of the absolutely positioned top info row. */
    #desktopNav .navbar-toggler {
        margin-top: 35px;
    }
}


