/* ============================================================
   PROMO STRIP — slim ink bar above the nav (scrolls off; not sticky)
============================================================ */
.promo {
    background: var(--ink);
    color: var(--cream);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 9px var(--pad-x);
    text-align: center;
    position: relative;
    /* Below the mobile drawer (z-index 35) so that when the burger menu opens
       at scroll 0 — where .nav.nav--open jumps to position:fixed; top:0 and
       overlaps this strip's band — the full-height drawer covers the promo and
       the nav's logo + close (X) paint on top, instead of this ink bar sitting
       over them. The promo never overlaps page content otherwise (it's a block
       at the very top that scrolls away), so a low z-index is safe. */
    z-index: 30;
}
.promo strong {
    color: var(--pink);
    font-weight: 700;
    letter-spacing: 0.16em;
}
.promo__rotator {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.promo__messages {
    position: relative;
    display: inline-block;
    min-width: 24ch;
    min-height: 1.2em;
    text-align: left;
}
.promo__message {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}
.promo__message.is-active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}
.promo__sep {
    display: inline-block;
    opacity: 0.55;
}
.promo__pulse {
    width: 7px;
    height: 7px;
    background: var(--pink);
    border-radius: 50%;
    box-shadow: 0 0 0 3px oklch(67.4% 0.243 6 / 0.25);
    animation: promo-pulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes promo-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

@media (max-width: 639px) {
    .promo__tagline,
    .promo__sep { display: none; }
}

/* ============================================================
   NAV — Axil-style: sticky below promo, centred logo, mega menu
============================================================ */
.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.25s;
}
.nav--scrolled { box-shadow: 0 6px 20px -16px oklch(16.5% 0.007 50 / 0.4); }

.nav__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--pad-x);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    position: relative;
    /* Keep the bar (and the burger, which becomes an X when open) above the
       full-screen drawer so it stays clickable to close. */
    z-index: 36;
}

.nav__burger {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 6px;
}
.nav__burger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--ink);
    border-radius: 1px;
    transition: transform 0.25s, opacity 0.2s;
    transform-origin: center;
}
.nav--open .nav__burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav--open .nav__burger span:nth-child(2) { opacity: 0; }
.nav--open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__logo {
    justify-self: center;
    display: block;
}
.nav__logo img {
    height: 42px;
    display: block;
}

.nav__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    align-items: center;
}
.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
    position: relative;
    cursor: pointer;
}
.nav__link::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 100%;
    height: 2px;
    background: var(--pink);
    transition: right 0.25s;
}
.nav__link:hover::after { right: 4px; }
.nav__chev { transition: transform 0.2s; }
.nav__item.is-open .nav__chev { transform: rotate(-180deg); }

.nav__actions {
    display: flex;
    gap: 2px;
    justify-self: end;
    align-items: center;
}
.nav__icon,
.nav__cart {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--ink);
    transition: background 0.2s;
    position: relative;
    cursor: pointer;
}
.nav__icon:hover,
.nav__cart:hover { background: var(--cream-2); }
.nav__icon--hide-mobile { display: none; }

.nav__cart-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--pink);
    color: var(--cream);
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    font-family: var(--font-mono);
}
.nav__cart-badge--hidden { display: none; }

/* ============================================================
   MOBILE DRAWER — full-height, slides down from top
============================================================ */
.nav__drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: var(--cream);
    padding: 80px var(--pad-x) 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 35;
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(.2, .8, .2, 1);
    overflow-y: auto;
}
.nav--open .nav__drawer { transform: translateY(0); }

/* While the drawer is open we lock body scroll (overflow: hidden), which turns
   the body into a scroll container and detaches the sticky nav — sending the
   bar (and its close X) off-screen on any scrolled page (e.g. /#shop). Pin the
   nav to the viewport so the X stays visible and clickable. */
.nav.nav--open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}
.nav__drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}
.nav__drawer-link svg { color: var(--ink-soft); }
.nav__drawer-footer {
    margin-top: 24px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ============================================================
   MEGA MENU — desktop-only Shop dropdown
============================================================ */
/* Make the Shop trigger the positioning context for its hover bridge. */
.nav__item[data-nav-shop] { position: relative; }

/* Invisible bridge that fills the gap between the centred trigger and the
   mega menu, so moving the pointer straight down never enters a dead zone.
   Only present while open; ~28px comfortably overlaps the menu's 36px top
   padding, so it never covers any menu links. */
.nav__item[data-nav-shop].is-open::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 28px;
}

.megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px oklch(16.5% 0.007 50 / 0.35);
    padding: 36px 0;
    display: none;
    z-index: 30;
}
.megamenu.is-open { display: block; }
.megamenu__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--pad-x);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}
.megamenu__col h6 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    font-weight: 600;
    color: var(--pink-deep);
    margin: 0 0 14px;
    text-transform: uppercase;
}
.megamenu__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.megamenu__col li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    font-family: var(--font-display);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: -0.005em;
    transition: color 0.2s;
}
.megamenu__col li a:hover { color: var(--pink-deep); }
.megamenu__chev {
    color: var(--ink-soft);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s, transform 0.2s;
}
.megamenu__col li a:hover .megamenu__chev {
    opacity: 1;
    transform: translateX(0);
}
.megamenu__featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.megamenu__pick {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: var(--cream-2);
    border-radius: 12px;
    transition: transform 0.2s, background 0.2s;
}
.megamenu__pick:hover {
    background: oklch(88% 0.034 88);
    transform: translateY(-2px);
}
.megamenu__pick img {
    height: 110px;
    width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.megamenu__pick-name {
    font-family: var(--font-display);
    font-size: 13px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
}
.megamenu__pick-price {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--pink-deep);
    font-weight: 700;
}
.megamenu__pick-was {
    color: var(--ink-soft);
    font-weight: 400;
    margin-right: 4px;
    text-decoration-thickness: 1.5px;
}

/* ============================================================
   TABLET + DESKTOP
============================================================ */
@media (min-width: 640px) {
    .nav__icon--hide-mobile { display: grid; }
}

@media (min-width: 960px) {
    .nav__inner {
        grid-template-columns: 1fr auto 1fr;
        gap: 32px;
        min-height: 76px;
    }
    .nav__burger { display: none; }
    .nav__logo img { height: 50px; }
    .nav__links {
        display: flex;
        gap: 28px;
        justify-self: start;
    }
    .nav__drawer { display: none !important; }
}
