/* Shopping navigation shares the header palette and typography. */
.ygen-shop-navigation-row .ygen-nav-row { position: relative; }
.ygen-shop-launch, .ygen-shop-dialog:not([open]) { display: none; }
#ygen-shop-navigation { min-width: 0; color: var(--yg-cacao); font: 400 15px/1.45 var(--ygen-fonts-body); }
#ygen-shop-navigation ul { margin: 0; padding: 0; list-style: none; }
.ygen-shop-entries { display: flex; align-items: center; gap: 2px; }
#ygen-shop-navigation a { color: inherit; text-decoration: none; }
#ygen-shop-navigation summary { list-style: none; cursor: pointer; }
#ygen-shop-navigation summary::-webkit-details-marker { display: none; }
#ygen-shop-navigation .ygen-shop-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    min-height: 44px;
    padding: 8px clamp(8px, 1vw, 16px);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    box-sizing: border-box;
}
#ygen-shop-navigation .ygen-shop-entry:hover,
#ygen-shop-navigation .ygen-shop-section[open] > summary { background: var(--yg-cream); }
.ygen-shop-arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: -3px 2px 0 1px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}
#ygen-shop-navigation details[open] > summary > .ygen-shop-arrow { margin-top: 3px; transform: rotate(225deg); }
.ygen-shop-panel {
    position: absolute;
    z-index: 3;
    inset: calc(100% - 6px) auto auto var(--ygen-shop-panel-left, 0px);
    box-sizing: border-box;
    width: max-content;
    max-width: 100%;
    max-height: calc(100dvh - var(--ygen-sticky-stack, 100px) - 115px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgb(65 39 24 / 10%);
}
#ygen-shop-navigation .ygen-shop-all {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: 8px;
    padding-inline: 12px;
    font-size: 14px;
    font-weight: 700;
}
#ygen-shop-navigation .ygen-shop-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.ygen-shop-all span { font-size: 19px; line-height: 1; }
.ygen-shop-note { max-width: 43ch; margin: 6px 0 0; line-height: 1.5; }
.ygen-shop-groups { display: flex; flex-wrap: wrap; gap: 18px 28px; }
#ygen-shop-navigation .ygen-shop-shortcuts {
    display: grid;
    gap: 4px;
}
@media (min-width: 1001px) {
    .ygen-shop-panel:has(.ygen-shop-group:nth-child(4)) { width: min(100%, 850px); }
    .ygen-shop-panel--columns { width: min(100%, 380px); }
    .ygen-shop-panel--shortcuts { width: min(100%, 264px); }
}
.ygen-shop-all + .ygen-shop-groups { margin-top: 12px; }
.ygen-shop-group { flex: 1 1 145px; min-width: 140px; }
.ygen-shop-group > strong { display: block; margin-bottom: 4px; padding-inline: 12px; font-weight: 750; font-size: 14px; }
#ygen-shop-navigation .ygen-shop-group ul { display: grid; gap: 4px; }
#ygen-shop-navigation .ygen-shop-link {
    display: flex;
    align-items: center;
    gap: 9px;
    box-sizing: border-box;
    min-height: 48px;
    padding: 8px 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--ygen-colors-line) 58%, transparent);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.3;
}
#ygen-shop-navigation .ygen-shop-link:is(:hover, :focus-visible) {
    background: var(--ygen-colors-tone-edf4e4);
}
.ygen-shop-link-arrow {
    display: grid;
    flex: 0 0 25px;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--ygen-colors-tone-edf4e4);
    font-size: 14px;
}
#ygen-shop-navigation :is(a,summary,button,select):focus-visible,
.ygen-shop-dialog button:focus-visible, .ygen-shop-launch:focus-visible { outline: 2px solid var(--yg-cacao); outline-offset: 2px; }
.ygen-shop-navigation-row .ygen-head-support-mobile { display: none; }
html.ygen-shop-modal-open { overflow: hidden; }

@media (max-width: 1000px) {
    .ygen-shop-menu-ready .ygen-shop-navigation-row { display: none; }
    .ygen-shop-menu-ready .ygen-header.ygen-shop-header .ygen-head-main {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "menu logo actions" "search search search";
        align-items: center;
        gap: 6px clamp(5px, 2vw, 14px);
        min-height: 0;
        padding-block: 7px;
    }
    .ygen-shop-menu-ready .ygen-header.ygen-shop-header .ygen-logo { grid-area: logo; width: min(100%, 145px); margin: 0; }
    .ygen-shop-menu-ready .ygen-header.ygen-shop-header .ygen-logo img { max-width: 100%; }
    .ygen-shop-menu-ready .ygen-header.ygen-shop-header .ygen-head-actions { grid-area: actions; justify-self: end; }
    .ygen-shop-menu-ready .ygen-header.ygen-shop-header form.ygen-search { grid-area: search; width: 100%; }
    .ygen-shop-header .ygen-shop-launch:not([hidden]) {
        grid-area: menu;
        display: grid;
        place-content: center;
        justify-items: center;
        gap: 1px;
        min-width: 44px;
        min-height: 44px;
        padding: 0 4px;
        background: transparent;
        border: 0;
        border-radius: 8px;
        color: var(--yg-cacao);
        font: 650 11px/1.1 var(--ygen-fonts-body);
        cursor: pointer;
    }
    .ygen-shop-dialog[open] {
        position: fixed;
        inset: 0 auto 0 0;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        width: min(100%, 410px);
        height: 100dvh;
        max-width: none;
        max-height: none;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: #fff;
        color: var(--yg-cacao);
        overflow: hidden;
    }
    .ygen-shop-dialog::backdrop { background: rgb(47 28 19 / 38%); }
    .ygen-shop-dialog-bar { flex: none; display: flex; align-items: center; gap: 6px; min-height: 56px; padding: max(6px,env(safe-area-inset-top)) 12px 6px; border-bottom: 1px solid var(--ygen-colors-line); }
    .ygen-shop-dialog-bar strong { margin-left: 5px; font: 500 21px/1.2 var(--ygen-fonts-heading); }
    .ygen-shop-dialog-bar button { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 0; border-radius: 8px; padding: 0; background: transparent; color: inherit; font: 400 28px/1 var(--ygen-fonts-body); cursor: pointer; }
    .ygen-shop-dialog-bar button[hidden] { display: none; }
    .ygen-shop-dialog-bar [data-shop-close] { margin-left: auto; }
    .ygen-shop-dialog-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px max(20px,env(safe-area-inset-bottom)); }
    .ygen-shop-entries { display: block; }
    #ygen-shop-navigation .ygen-shop-entry { min-height: 52px; padding: 8px 4px; font-size: 16px; }
    .ygen-shop-entry .ygen-shop-arrow { transform: rotate(-45deg); margin: 0 5px; }
    .ygen-shop-panel { position: static; width: auto; max-height: none; padding: 6px 4px; overflow: visible; border: 0; box-shadow: none; }
    .ygen-shop-groups { display: grid; gap: 18px; }
    .ygen-shop-group { min-width: 0; }
    .ygen-shop-dialog .ygen-head-support-mobile { display: grid; margin-top: 16px; padding: 18px 4px; gap: 16px; }
    .ygen-shop-dialog .is-drilling .ygen-shop-entries > li:not(.is-current),
    #ygen-shop-navigation.is-drilling .is-current > details > summary,
    .ygen-shop-dialog .is-drilling .ygen-head-support-mobile { display: none; }
}
@media (min-width: 360px) {
    .ygen-shop-panel--columns .ygen-shop-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ygen-shop-panel--columns .ygen-shop-group { min-width: 0; }
}
@media (prefers-reduced-motion: no-preference) {
    .ygen-shop-dialog[open] { animation: ygen-shop-slide-in .16s ease-out; }
    @keyframes ygen-shop-slide-in { from { transform: translateX(-24px); opacity: .6; } to { transform: translateX(0); opacity: 1; } }
}
