.np-motion-header .np-products {
    height: 100%;
    --np-panel-paper: #f5eee8;
    --np-menu-line: #3d282532;
    --np-menu-ease: cubic-bezier(.2,.72,.26,1);
}

.np-motion-header .np-products-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    height: 100%;
    min-width: 132px;
    padding-inline: 16px;
    border-radius: 3px;
    background: var(--ink);
    color: var(--cream);
    font-size: 16px;
    text-transform: uppercase;
    list-style: none;
    cursor: pointer;
}

.np-products-trigger::-webkit-details-marker { display: none; }
.np-products[open] .np-products-trigger { background: var(--wine, #8b231a); }

.np-products-chevron {
    width: 7px;
    height: 7px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.np-products[open] .np-products-chevron { transform: translateY(2px) rotate(225deg); }

.np-motion-header .np-products-panel {
    position: absolute;
    z-index: 2;
    inset-inline: -3px;
    top: 100%;
    padding-top: 3px;
}

.np-motion-header .np-products-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: clamp(11px, 1.7vw, 24px);
    max-height: calc(100svh - 96px - var(--wp-admin--admin-bar--height, 0px));
    overflow: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: clamp(14px, 1.8vw, 26px);
    background: var(--np-panel-paper);
    color: var(--ink);
    border-top: 1px solid var(--np-menu-line);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 18px 40px #3d282530;
    list-style: none;
}

.np-motion-header .np-products-list li {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.np-motion-header .np-products-link {
    display: grid;
    gap: 14px;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.np-products-link:focus-visible {
    outline: 2px solid var(--wine, #8b231a);
    outline-offset: 4px;
}

.np-products-art {
    display: grid;
    place-items: center;
    min-width: 0;
    height: clamp(146px, 17.2vw, 230px);
    overflow: hidden;
    background: var(--np-panel-paper);
    background:
        radial-gradient(ellipse at 46% 28%, #fff9efaa, transparent 74%),
        color-mix(in srgb, var(--np-product-colour) 54%, var(--np-panel-paper));
}

.np-products-art img {
    display: block;
    width: min(100%, clamp(134px, 18vw, 230px));
    height: 100%;
    min-height: 0;
    object-fit: contain;
    filter: drop-shadow(0 9px 14px #36211b28);
}

.np-products-copy {
    display: grid;
    justify-items: start;
    gap: 5px;
    min-width: 0;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--np-menu-line);
}

.np-products-name {
    font: clamp(22px, 2.45vw, 36px)/1.08 var(--display);
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-color: var(--np-product-colour);
    text-decoration-thickness: 1px;
    text-underline-offset: .19em;
    text-decoration-skip-ink: auto;
}

.np-products-notes {
    color: #624b44;
    font: 500 clamp(14px, 1.25vw, 17px)/1.35 var(--body);
}

.np-products-link:is(:hover, :focus-visible) .np-products-name {
    color: var(--wine, #8b231a);
    text-decoration-color: currentColor;
}

@keyframes np-products-reveal {
    from { clip-path: inset(0 -24px 100%); }
    to { clip-path: inset(0 -24px -48px); }
}

@keyframes np-products-card-in {
    from { opacity: 0; transform: translateY(-22px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
    html:not(.motion-off) .np-products[open] .np-products-panel {
        animation: np-products-reveal 500ms var(--np-menu-ease);
    }

    html:not(.motion-off) .np-products[open] .np-products-link {
        animation: np-products-card-in 400ms var(--np-menu-ease) calc(100ms + 75ms * var(--np-menu-index, 0)) backwards;
    }

    html:not(.motion-off) .np-products-chevron {
        transition: transform 280ms var(--np-menu-ease);
    }

    html:not(.motion-off) .np-products-art img {
        transition: transform 460ms var(--np-menu-ease);
    }

    html:not(.motion-off) .np-products-link:is(:hover, :focus-visible) img {
        transform: translateY(-5px) rotate(-4deg) scale(1.055);
    }
}

@media (max-width: 900px) {
    .np-motion-header .np-products-trigger { min-width: 109px; gap: 9px; padding-inline: 11px; }
}

@media (max-width: 600px) {
    .np-motion-header .header-actions { display: contents; }
    .np-motion-header .header-actions #motion-toggle { position: absolute; inset: 0 auto 0 9px; }
    .np-motion-header .np-products {
        grid-area: 1 / 1;
        width: 0;
        height: 0;
    }

    .np-motion-header .np-products-trigger {
        position: absolute;
        inset: 4px 51px 4px auto;
        width: 50px;
        height: auto;
        min-width: 0;
        padding-inline: 4px;
        text-align: center;
        font-size: 12px;
        line-height: 1.08;
    }

    .np-products-chevron { display: none; }

    .np-motion-header .np-products-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .np-motion-header .np-products-link {
        grid-template-columns: 98px minmax(0, 1fr);
        gap: 13px;
        min-height: 86px;
        border-bottom: 1px solid var(--np-menu-line);
        padding-bottom: 10px;
    }

    .np-products-art { height: 84px; }
    .np-products-copy { gap: 7px; padding: 0; border: 0; }
    .np-products-name { font-size: clamp(19px, 5.8vw, 28px); }
    .np-motion-header .np-products-list li:last-child .np-products-link { border: 0; padding-bottom: 0; }
}

@media (max-width: 360px) {
    .np-motion-header .brand { font-size: 18px; }
    .np-motion-header .np-products-trigger { inset-inline-end: 40px; width: 44px; font-size: 11px; }
    .np-motion-header .mobile-nav summary { width: 29px; }
    .np-motion-header .np-products-link { grid-template-columns: 78px minmax(0, 1fr); }
}
