.bami-menu {
    --bm-ink: oklch(18% 0.035 262);
    --bm-muted: oklch(48% 0.035 262);
    --bm-faint: oklch(69% 0.025 262);
    --bm-paper: oklch(99% 0.006 82);
    --bm-surface: oklch(97.5% 0.016 82);
    --bm-wash: oklch(95% 0.035 215);
    --bm-blue: oklch(36% 0.125 262);
    --bm-blue-2: oklch(47% 0.14 238);
    --bm-green: oklch(58% 0.15 145);
    --bm-gold: oklch(74% 0.13 86);
    --bm-line: oklch(88% 0.018 262);
    --bm-shadow: 0 22px 70px oklch(22% 0.08 262 / 0.14);
    --bm-radius-xl: 30px;
    --bm-radius-lg: 22px;
    --bm-radius-md: 16px;
    --bm-grid-gap: clamp(20px, 2.2vw, 30px);
    color: var(--bm-ink);
    font-family: Helvetica, Arial, sans-serif;
}

.bami-menu * {
    box-sizing: border-box;
}

.bami-menu button {
    font-family: inherit;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.bami-menu__intro {
    position: relative;
    max-width: 780px;
    margin: 0 auto clamp(28px, 4vw, 24px);
    text-align: center;
}

.bami-menu__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--bm-blue-2);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.bami-menu__eyebrow::before,
.bami-menu__eyebrow::after {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--bm-gold);
}

.bami-menu__title {
    margin: 0;
    color: var(--bm-ink);
    font-size: clamp(44px, 7vw, 68px);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.055em;
}

.bami-menu__subtitle {
    max-width: 640px;
    margin: 22px auto 0;
    color: var(--bm-muted);
    font-size: 18px;
    line-height: 1.32;
}

.bami-menu__tabs {
    position: sticky;
    top: 0;
    z-index: 12;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.bami-menu__tab {
    appearance: none;
    min-height: 44px;
    padding: 11px 20px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--bm-ink);
    cursor: pointer;
    font-size: clamp(15px, 1.45vw, 18px);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition:
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.bami-menu__tab:hover {
    background: var(--bm-wash);
    transform: translateY(-1px);
}

.bami-menu__tab.is-active {
    background: var(--bm-blue);
    color: var(--bm-paper);
}

.bami-menu-detail[hidden] {
    display: none !important;
}
.bami-menu-detail.is-open {
    margin-top: 32px;
}

.bami-menu-detail {
    margin: 0 0 clamp(32px, 5vw, 64px);
}

.bami-menu-detail__shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.35fr);
    overflow: hidden;
    border-radius: var(--bm-radius-md);
    background: var(--bm-paper);
    box-shadow: var(--bm-shadow);
}

.bami-menu-detail__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border: 1px solid oklch(88% 0.018 262 / 0.8) !important;
    border-radius: 12px !important;
    background: var(--bm-blue) !important;
    color: var(--bm-paper) !important;
    box-shadow: 0 10px 26px oklch(22% 0.08 262 / 0.12);
    cursor: pointer;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px;
    overflow: hidden;
    transition:
        transform 180ms ease,
        background-color 180ms ease;
}

.bami-menu-detail__close::before,
.bami-menu-detail__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 17px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
}

.bami-menu-detail__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.bami-menu-detail__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.bami-menu-detail__close:hover {
    background: var(--bm-wash);
    transform: rotate(6deg) scale(1.04);
}

.bami-menu-detail__hero {
    position: relative;
    min-height: 560px;
    background: #008fd5;
}

.bami-menu-detail__hero img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: contain;
}

.bami-menu-detail__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 560px;
    place-items: center;
    color: var(--bm-paper);
    font-size: clamp(82px, 12vw, 150px);
}

.bami-menu-detail__body {
    padding: clamp(28px, 4vw, 58px);
}

.bami-menu-detail__eyebrow {
    margin: 0 0 10px;
    color: var(--bm-blue-2);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.bami-menu-detail__heading h3 {
    max-width: 12ch;
    margin: 0;
    color: var(--bm-ink);
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 850;
    line-height: 0.92;
    letter-spacing: -0.052em;
}

.bami-menu-detail__cultural {
    margin: 12px 0 0;
    color: var(--bm-muted);
    font-size: clamp(18px, 2vw, 24px);
    font-style: italic;
    line-height: 1.2;
}

.bami-menu-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.bami-menu-detail__tags span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--bm-wash);
    color: var(--bm-blue);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bami-menu-step,
.bami-menu-detail__nutrition {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--bm-line);
}

.bami-menu-detail__section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--bm-ink);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bami-menu-detail__section-title::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bm-gold);
}

.bami-menu-step__options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bami-menu-pill {
    appearance: none;
    display: inline-grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 6px 14px;
    background: var(--bm-paper);
    color: var(--bm-ink);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600 !important;
    line-height: 1;
    box-shadow: 0 4px 14px oklch(22% 0.08 262 / 0.04);
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.bami-menu-pill:hover {
    border-color: oklch(72% 0.08 238);
    transform: translateY(-1px);
}

.bami-menu-pill em {
    display: inline-grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: oklch(92% 0.08 145);
    color: oklch(42% 0.14 145);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.bami-menu-pill small {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.bami-menu-pill.is-active {
    border-color: var(--bm-blue);
    background: var(--bm-blue);
    color: var(--bm-paper);
    box-shadow: 0 12px 28px oklch(36% 0.125 262 / 0.22);
}

.bami-menu-pill.is-active small {
    color: oklch(92% 0.018 262);
}

.bami-menu-nutrition {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.bami-menu-nutrition div {
    padding: 12px 10px;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--bm-surface), var(--bm-paper));
    text-align: center;
}

.bami-menu-nutrition strong,
.bami-menu-nutrition span {
    display: block;
}

.bami-menu-nutrition strong {
    color: var(--bm-blue);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 900;
    line-height: 1;
}

.bami-menu-nutrition span {
    margin-top: 6px;
    color: var(--bm-muted);
    font-size: 12px;
    font-weight: 700;
}

.bami-menu__content {
    margin-top: clamp(34px, 5vw, 64px);
}

.bami-menu__group {
    clear: both;
    margin: 0 0 clamp(76px, 8vw, 110px);
}

.bami-menu__group.is-hidden,
.bami-menu-card.is-hidden {
    display: none !important;
}

.bami-menu__group-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 22px;
    color: var(--bm-ink);
    font-size: clamp(18px, 1.8vw, 18px);
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.1;
    text-transform: uppercase;
}

.bami-menu__group-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--bm-line);
}

.bami-menu__grid {
    display: grid;
    grid-template-columns: repeat(var(--bami-menu-cols, 3), minmax(0, 1fr));
    column-gap: var(--bm-grid-gap);
    row-gap: clamp(24px, 5vw, 24px);
    align-items: start;
}

.bami-menu-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    cursor: pointer;
    border-radius: var(--bm-radius-lg);
}

.bami-menu-card:focus-visible {
    outline: 3px solid var(--bm-gold);
    outline-offset: 6px;
}

.bami-menu-card__media {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 1.72 / 1;
    overflow: hidden;
    border: 1px solid var(--bm-line);
    border-radius: 12px;
    background: var(--bm-paper);
    box-shadow: 0 10px 28px oklch(24% 0.07 262 / 0.08);
}

.bami-menu-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.001);
    transition:
        transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 420ms ease;
}

.bami-menu-card:hover .bami-menu-card__image,
.bami-menu-card.is-selected .bami-menu-card__image,
.bami-menu-card:focus-visible .bami-menu-card__image {
    filter: saturate(1.04) contrast(1.04);
    transform: scale(1.045);
}

.bami-menu-card:focus-visible {
    outline: 3px solid var(--bm-gold);
    outline-offset: 6px;
}

.bami-menu-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--bm-paper);
}

.bami-menu-card__placeholder-icon {
    display: none;
}

.bami-menu-card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 13px;
    border-radius: 6px;
    background: #008fd5;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.bami-menu-card__body {
    display: block;
    flex: 0 0 auto;
    min-height: 92px;
    padding: 0 4px;
}

.bami-menu-card__title,
.bami-menu-card__subtitle,
.bami-menu-card__meta {
    display: block;
}

.bami-menu-card__title {
    color: var(--bm-ink);
    font-size: clamp(18px, 2vw, 20px);
    font-weight: 600;
    line-height: 1.03;
    letter-spacing: 0;
    margin-bottom: 12px;
}

.bami-menu-card__subtitle {
    margin-top: 4px;
    color: var(--bm-muted);
    font-size: clamp(14px, 1.5vw, 16px);
    font-style: italic;
    line-height: 1.18;
}

.bami-menu-card__meta {
    margin-top: 10px;
    color: var(--bm-ink);
    font-size: clamp(15px, 1.35vw, 16px);
    font-weight: 500;
    line-height: 1.28;
}

.bami-menu-card.is-selected .bami-menu-card__media {
    outline: 4px solid var(--bm-gold);
    outline-offset: 4px;
}

.bami-menu-empty {
    padding: 24px;
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius-md);
    background: var(--bm-surface);
    color: var(--bm-muted);
    text-align: center;
}

@media (max-width: 849px) {
    .bami-menu__tabs {
        position: relative;
        top: auto;
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        padding: 7px;
    }

    .bami-menu__grid {
        grid-template-columns: repeat(
            var(--bami-menu-cols-md, 2),
            minmax(0, 1fr)
        );
    }

    .bami-menu-detail__shell {
        grid-template-columns: 1fr;
    }

    .bami-menu-detail__hero,
    .bami-menu-detail__hero img,
    .bami-menu-detail__placeholder {
        min-height: 330px;
    }

    .bami-menu-detail__heading h3 {
        max-width: 100%;
    }

    .bami-menu-nutrition {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 549px) {
    .bami-menu__intro {
        text-align: left;
    }

    .bami-menu__eyebrow::before,
    .bami-menu__eyebrow::after {
        display: none;
    }

    .bami-menu__subtitle {
        margin-left: 0;
    }

    .bami-menu__tab {
        min-height: 40px;
        padding: 10px 15px;
        font-size: 14px;
    }

    .bami-menu__grid {
        grid-template-columns: repeat(
            var(--bami-menu-cols-sm, 1),
            minmax(0, 1fr)
        );
    }

    .bami-menu__group-title {
        gap: 10px;
        letter-spacing: 0.12em;
    }

    .bami-menu-detail__shell {
        border-radius: 20px;
    }

    .bami-menu-card__media {
        border-radius: 12px;
    }

    .bami-menu-detail__body {
        padding: 24px 18px 28px;
    }

    .bami-menu-detail__hero,
    .bami-menu-detail__hero img,
    .bami-menu-detail__placeholder {
        min-height: 250px;
    }

    .bami-menu-step__options {
        display: grid;
        grid-template-columns: 1fr;
    }

    .bami-menu-pill {
        justify-content: start;
        width: 100%;
        border-radius: 15px;
    }

    .bami-menu-nutrition {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
