/* ---- self-contained design tokens ----
   Colors + the embedded MzPokeRx logo are baked in here so this file styles
   the header/footer correctly even when dropped onto a page on its own
   (no dependency on styles.css). Defining :root twice is harmless — CSS
   merges them and the values are identical. */
:root {
    --navy: #0E0E1A;
    --navy-mid: #141428;
    --navy-light: #1C1C35;
    --purple: #7B5EA7;
    --purple-bright: #9B6FD4;
    --teal: #4EC9C0;
    --teal-dim: rgba(78,201,192,0.15);
    --purple-dim: rgba(123,94,167,0.15);
    --white: #F0EEFF;
    --muted: #8880AA;
    --border: rgba(123,94,167,0.25);
    --card: rgba(28,28,53,0.8);
    --grad: linear-gradient(135deg, var(--purple), var(--teal));
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
    color: var(--white);
    text-decoration: none;
    white-space: nowrap;
}

/* MzPokeRx Ã¢â‚¬â€ header.css (top utility bar + main navigation)
 *
 * Split out of the single-page Magic-Patterns export so the header can be
 * dropped onto ANY page (Razor inner pages included) without disturbing it.
 *
 *   - The CSS reset here is SCOPED to `.site-header`, so it only zeroes the
 *     margins/padding/box-sizing of elements INSIDE the header. It will never
 *     touch a host page's own body, headings, lists, etc.
 *   - Shared design tokens (colors, fonts, the embedded logo) live in
 *     styles.css. Every page loads styles.css alongside this file, so the
 *     header renders correctly on its own Ã¢â‚¬â€ no homepage.css required.
 */

/* ---- scoped reset: only elements inside the header are affected ---- */
.site-header,
.site-header * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

    .site-header a {
        color: inherit;
        text-decoration: none;
    }

/* ===== HEADER SHELL (fixed to top of the viewport) ===== */
.site-header {
    /* sticky (not fixed) so the header takes up real space in the page flow:
     the host page's content begins BELOW it instead of underneath it, and it
     still pins to the top on scroll. No spacer element required. */
    position: sticky;
    top: 0;
    z-index: 100;
    font-family: 'DM Sans', sans-serif;
}

/* ---- top utility bar (social / refill / login / register) ---- */
.topbar {
    background: var(--navy-mid);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}

.topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 28px;
}

.topbar-social {
    display: flex;
    gap: 16px;
}

    .topbar-social a {
        color: var(--muted);
        font-size: 14px;
        transition: color 0.2s;
    }

        .topbar-social a:hover {
            color: var(--teal);
        }

.topbar-links {
    display: flex;
    gap: 22px;
}

    .topbar-links a {
        color: var(--muted);
        letter-spacing: 0.4px;
        transition: color 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

        .topbar-links a:hover {
            color: var(--white);
        }

/* ---- main nav (logo / menu / actions) ---- */
.mainnav {
    background: rgba(14,14,26,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.mainnav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 28px;
    gap: 24px;
}

.nav-logo {
    font-size: 23px;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    gap: 26px;
    list-style: none;
    align-items: center;
    flex: 1;
    justify-content: center;
}

    .nav-menu > li {
        position: relative;
    }

        .nav-menu > li > a {
            font-size: 13.5px;
            color: var(--white);
            font-weight: 500;
            letter-spacing: 0.3px;
            padding: 8px 0;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: color 0.2s;
        }

            .nav-menu > li > a:hover {
                color: var(--teal);
            }

.caret {
    font-size: 9px;
    color: var(--muted);
}

/* dropdown sub-menus */
.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    min-width: 220px;
    list-style: none;
    display: none;
    z-index: 60;
    box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}

.nav-menu > li:hover .submenu,
.nav-menu > li:focus-within .submenu {
    display: block;
}

.submenu li a {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--muted);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

    .submenu li a:hover {
        background: var(--purple-dim);
        color: var(--white);
    }

/* right-hand actions: cart, CTA, mobile hamburger */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.nav-icon {
    color: var(--muted);
    font-size: 18px;
    transition: color 0.2s;
    position: relative;
}

    .nav-icon:hover {
        color: var(--white);
    }

.nav-cta {
    background: var(--grad);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 13px;
}
/* "Get Started" entry that only appears inside the open mobile dropdown
   (hidden on desktop, where the standalone .nav-cta button is used instead). */
.nav-cta-mobile {
    display: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 26px;
    cursor: pointer;
}

/* (No spacer needed Ã¢â‚¬â€ a sticky header already occupies layout space. The
   legacy .header-spacer is collapsed to 0 in case any page still includes it.) */
.header-spacer {
    height: 0;
}

/* ===== RESPONSIVE (header only) ===== */
@media (max-width: 980px) {
    .topbar-social {
        display: none;
    }

    .nav-menu {
        display: none;
    }
    /* desktop links hide; hamburger takes over */
    .nav-toggle {
        display: block;
    }
    /* Hide the standalone CTA button so the hamburger always has room to show;
     the CTA reappears as the last item inside the open dropdown menu. */
    .nav-actions .nav-cta {
        display: none;
    }

    .nav-menu .nav-cta-mobile {
        display: block;
        margin-top: 6px;
    }

    .nav-actions {
        gap: 14px;
    }

    .mainnav-inner {
        padding: 10px 18px;
    }
}

@media (max-width: 560px) {
    .topbar-links {
        gap: 14px;
    }
}

.top-cart-product-count {
    position: relative;
    bottom: -5px;
    right: 5px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 100%;
    font-size: 10px;
    font-weight: 700;
    display: inline-block;
    text-align: center;
    color: #fff;
}

.top-cart-count-color {
    background-color: #1C1C35;
    border: solid 1px #dedede;
}