/* hide slideout widget if menu is present in header */
.col.span_9:has(.shuga-menu) .slide-out-widget-area-toggle {
    display: none !important;
}

/* ── trigger button ───────────────────────────────── */
.shuga-menu__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* ── top-level nav list ───────────────────────────── */
.shuga-nav__list {
    list-style: none;
    margin: 30px;
    padding: 0;
    display: flex;
    flex-direction: column; /* stacks items vertically so submenus push down */
    gap: 0;
}

.shuga-nav__list li {
    line-height: 1;
}

/* ── nav links ────────────────────────────────────── */
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 25px;
    font-weight:bold;
    line-height: 1.2;
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    width: 100%;
    text-align: left;
    transition: background 0.15s, color 0.15s;
}
.nav-link:hover,
.nav-link:focus-visible {
    background: rgba(0 0 0 / 0.05);
}

/* caret rotates when open */
.nav-caret {
    width: 12px;
    height: 12px;
    opacity: 0.5;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.nav-link[aria-expanded="true"] .nav-caret {
    transform: rotate(180deg);
    opacity: 1;
}

/* ── submenu — pushes siblings down ──────────────── */
.shuga-nav__sub {
    list-style: none;
    margin: 0 0 0 15px;
    padding: 0;

    /* collapsed state */
    display: none;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.28s ease;
}

/* the direct child needs min-height:0 for grid animation trick */
.shuga-nav__sub > * {
    min-height: 0;
    overflow: hidden;
}

/* open state — triggered by .is-open on the parent <li> */
.menu-item-has-children.is-open > .shuga-nav__sub {
    grid-template-rows: 1fr;
    display: grid;
}

/* nested submenus */
.shuga-nav__sub--deep {
    margin-left: 12px;
    border-left: 2px solid rgba(0 0 0 / 0.1);
    padding-left: 8px;
}

/* ── submenu items ────────────────────────────────── */
.pop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 20px;
    font-family: Ciron Text, sans-serif;
    font-weight: 900;
    color: #444;
    text-decoration: none;
    transition: background 0.12s;
    white-space: nowrap;
}
.pop-item:hover {
    background: rgba(0 0 0 / 0.05);
}

/* ── mobile ───────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-link {
        font-size: 18px;
        padding: 10px 14px;
    }
    .pop-item {
        font-size: 16px;
    }
}

/* ── outer menu panel popover ─────────────────────── */
/*
 * This is the full-panel popover opened by the hamburger icon.
 * It uses anchor positioning to appear below the trigger.
 * The submenus INSIDE it are inline — they push nav items down.
 */
[popover].shuga-menu-popover {
    position: fixed !important;
    inset: unset !important;
    margin: 0 !important;
    min-width: 260px;
    max-width: 360px;
    padding: 0 0 12px;
    background-color: #EDFF00;
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 28px rgba(0 0 0 / 0.14);
    overflow: hidden;

    /* entry / exit animation */
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    transition:
        opacity   0.22s ease,
        transform 0.22s ease,
        display   0.22s allow-discrete,
        overlay   0.22s allow-discrete;
}
[popover].shuga-menu-popover:popover-open {
    opacity: 1;
    transform: translateY(0) scale(1);
}
@starting-style {
    [popover].shuga-menu-popover:popover-open {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
}

/* Anchor positioning — positions below the trigger icon */
@supports (anchor-name: --x) {
    [popover].shuga-menu-popover {
        top:  calc(anchor(bottom) + 4px) !important;
        left: anchor(left) !important;
        position-try-fallbacks: flip-block, flip-inline;
    }
}

/* JS fallback for browsers without anchor API */
[popover].shuga-menu-popover:not(:popover-open) {
    display: none;
}

/* ── panel header (close button) ──────────────────── */
.shuga-menu-popover__header {
    display: flex;
    justify-content: flex-end;
    padding: 10px 10px 0;
}
.shuga-menu-popover__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(0 0 0 / 0.15);
    background: transparent;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}
.shuga-menu-popover__close:hover {
    background: rgba(0 0 0 / 0.08);
}
.shuga-menu-popover__close svg {
    width: 12px;
    height: 12px;
    display: block;
}

/* ── mobile: full-width panel ─────────────────────── */
@media (max-width: 768px) {
    [popover].shuga-menu-popover {
        left: 0 !important;
        right: 0 !important;
        max-width: 100% !important;
        border-radius: 0 0 16px 16px !important;
        top: 0 !important;
    }
}