.public-header {
    width: 100%;
    height: 100px;
    background-color: var(--nalltech-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    transition: height 0.3s ease-in-out;
}

.public-header.scrolled {
    height: 70px;
}

.public-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.public-header .header-logo > img {
    height: 50px;
}

.public-header .header-menu {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.public-header .header-menu > li > a {
    color: var(--nalltech-white);
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
}

/* Book Appointment Button */
.btn-book-appointment {
    background-color: var(--nalltech-brightred);
    color: var(--nalltech-white) !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
    padding: 10px 20px;
    border-radius: 4px;
    text-transform: uppercase;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
    transition: all 0.3s ease;
}

.btn-book-appointment:hover {
    background-color: #d12c2c; /* slightly darker red */
    color: var(--nalltech-white) !important;
}

.btn-sign-in {
    background-color: var(--nalltech-white);
    color: var(--nalltech-blue) !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
    padding: 10px 20px;
    border-radius: 4px;
    text-transform: uppercase;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
    transition: all 0.3s ease;
}

.btn-sign-in:hover {
    background-color: #e2e8f0; /* slightly darker white/gray */
    color: var(--nalltech-blue) !important;
}

.cart-count-badge {
    position: absolute;
    top: -2px;
    right: -5px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.header-menu-container {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header-menu-login {
    display: flex;
    gap: 10px;
    padding-left: 0;
    flex-shrink: 0;
    margin-bottom: 0;
    align-items: center;
}

.header-menu-login .nav-cart-link {
    position: relative;
    font-size: 1.25rem !important;
    padding: 0 0.2rem !important;
    margin-right: 0.25rem;
    color: var(--nalltech-white);
    font-size: 14px;
    margin-right: 20px !important;
    text-decoration: none;
}

.header-menu-toggle {
    display: none;
}

.header-menu-login .account-dropdown {
    width: 200px !important;
}

.header-menu-login .account-dropdown .dropdown-item {
    font-size: 14px !important;
    padding: 7px 12px !important;
    font-weight: 500 !important;
}

.header-menu-login .account-dropdown .dropdown-item.active, 
.header-menu-login .account-dropdown .dropdown-item:active {
    background-color: var(--nalltech-brightpink) !important;
    color: #FFF;
}

.dropdown-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.account-body {
    background-color: #f9f9f9;
}

@media (max-width: 1199px) {
    .header-menu-container {
        width: 300px;
        height: 100vh;
        background-color: var(--nalltech-blue);
        position: fixed;
        top: 0;
        right: -300px;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 30px;
        transition: all 0.3s ease-in-out;
    }

    .header-menu-container .header-menu,
    .header-menu-container .header-menu-login {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .header-menu-container .header-menu {
        gap: 20px;
    }

    .header-menu-container .header-menu-login {
        gap: 10px;
    }

    .header-menu-container .header-menu-login {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 30px;
    }

    .header-menu-toggle {
        width: 30px;
        height: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
    }

    .header-menu-toggle span {
        width: 100%;
        height: 2px;
        background-color: var(--nalltech-white);
        transition: 0.3s ease-in-out;
        position: relative;
    }

    .header-menu-toggle span:nth-child(1) {
        transform-origin: left top;
        transform: rotate(0deg);
    }

    .header-menu-toggle span:nth-child(2) {
        width: 100%;
        left: 0;
        opacity: 1;
    }

    .header-menu-toggle span:nth-child(3) {
        width: 100%;
        transform-origin: left bottom;
        transform: rotate(0deg);
    }

    body {
        position: relative;
        right: 0;
        transition: all 0.3s ease-in-out;
    }

    .public-header {
        transition: all 0.3s ease-in-out;
    }

    body.show-menu,
    body.show-menu .public-header {
        right: 300px;
    }

    body.show-menu .header-menu-container {
        right: 0;
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    }

    body.show-menu .header-menu-toggle span:nth-child(1) {
        transform: rotate(45deg);
        top: -2px;
    }

    body.show-menu .header-menu-toggle span:nth-child(2) {
        opacity: 0;
        width: 0;
    }

    body.show-menu .header-menu-toggle span:nth-child(3) {
        transform: rotate(-45deg);
    }

    .header-menu-login .nav-cart-link {
        font-size: 14px !important;
        padding: 0 0 10px 0 !important;
    }

    .cart-count-badge {
        position: static;
        margin-left: 5px;
    }

    .btn-sign-in,
    .btn-book-appointment {
        display: block;
        width: 100%;
    }

    /* ── Account dropdown flattened into mobile menu ── */
    .header-menu-login .nav-item.dropdown {
        flex-direction: column;
        align-items: stretch;

    }

    .header-menu-login .nav-account-link.dropdown-toggle {
        display: none;
    }

    .header-menu-login .account-dropdown {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        width: 100%;
        --bs-dropdown-bg: transparent;
        --bs-dropdown-border-color: transparent;
        --bs-dropdown-box-shadow: none;
        --bs-dropdown-link-color: var(--nalltech-white);
        --bs-dropdown-link-hover-bg: transparent;
        --bs-dropdown-link-hover-color: var(--nalltech-lightblue);
    }

    .header-menu-login .account-dropdown .dropdown-item,
    .header-menu-login .account-dropdown button.dropdown-item {
        color: var(--nalltech-white) !important;
        font-size: 14px;
        font-weight: 400;
        text-transform: uppercase;
        text-decoration: none;
        padding: 0;
        background: transparent !important;
        border-radius: 0;
        border: none;
        width: 100%;
        text-align: left;
        display: block;
    }

    .header-menu-login .account-dropdown .dropdown-item:hover,
    .header-menu-login .account-dropdown button.dropdown-item:hover {
        color: var(--nalltech-lightblue) !important;
        background: transparent !important;
    }

    .header-menu-login .account-dropdown .dropdown-divider {
        display: none;
    }
}

