:root {
    --story-ink: #111827;
    --story-muted: #66758d;
    --story-line: #e7ebf0;
    --story-panel: #f8fafc;
}

html {
    scroll-behavior: smooth;
}

body.menu-theme-story {
    margin: 0;
    color: var(--story-ink);
    background: #151b24;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.menu-theme-story .story-menu-shell {
    position: relative;
    width: min(100%, 760px);
    min-height: 100vh;
    margin: 0 auto;
    background: #151b24;
    box-shadow: 0 0 60px rgba(0, 0, 0, .38);
}

.story-menu-hero {
    position: sticky;
    top: 0;
    z-index: 0;
    height: clamp(330px, 48vh, 520px);
    overflow: hidden;
    background: #293241;
}

.story-menu-hero__image,
.story-menu-hero__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.story-menu-hero__image {
    object-fit: cover;
    transform: scale(1.015);
}

.story-menu-hero__shade {
    background:
        linear-gradient(180deg, rgba(7, 11, 18, .48) 0%, rgba(7, 11, 18, .04) 45%, rgba(7, 11, 18, .7) 100%),
        linear-gradient(90deg, rgba(7, 11, 18, .18), transparent 45%);
}

.story-menu-hero__home,
.story-menu-hero__phone {
    position: absolute;
    top: max(20px, env(safe-area-inset-top));
    z-index: 1;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    color: #fff;
    background: rgba(11, 16, 24, .55);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform .2s ease, background .2s ease;
}

.story-menu-hero__home {
    left: 20px;
}

.story-menu-hero__phone {
    right: 20px;
}

.story-menu-hero__home:hover,
.story-menu-hero__phone:hover {
    color: #fff;
    text-decoration: none;
    background: rgba(11, 16, 24, .76);
    transform: translateY(-2px);
}

.story-menu-hero__identity {
    position: absolute;
    right: 24px;
    bottom: 46px;
    left: 24px;
    display: flex;
    flex-direction: column;
    color: #fff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, .35);
}

.story-menu-hero__identity span {
    margin-bottom: 4px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .18em;
}

.story-menu-hero__identity strong {
    max-width: 82%;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 7vw, 3.4rem);
    line-height: 1.02;
}

.story-menu-panel {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    margin-top: -28px;
    padding: 0 20px max(28px, env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0;
    background: var(--story-panel);
    box-shadow: 0 -14px 34px rgba(0, 0, 0, .12);
}

.story-menu-panel__handle {
    display: block;
    width: 46px;
    height: 5px;
    margin: 0 auto 5px;
    transform: translateY(12px);
    border-radius: 999px;
    background: #ccd3dc;
}

.story-menu-summary {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 36px 0 22px;
}

.story-menu-summary__eyebrow {
    margin: 0 0 3px;
    color: var(--mh-theme-color, #eb3b33);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.story-menu-summary h1 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.65rem, 5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.1;
}

.story-menu-summary__counts {
    display: flex;
    flex: 0 0 auto;
    gap: 14px;
    color: var(--story-muted);
    font-size: .72rem;
    text-align: center;
}

.story-menu-summary__counts span {
    display: flex;
    flex-direction: column;
}

.story-menu-summary__counts strong {
    color: var(--story-ink);
    font-size: 1rem;
}

.story-menu-business-info {
    display: grid;
    gap: 10px;
    margin: -4px 0 20px;
    padding: 14px 15px;
    border: 1px solid var(--story-line);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(20, 30, 48, .035);
}

.story-menu-business-info__item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--story-muted);
    font-size: .8rem;
    line-height: 1.45;
}

a.story-menu-business-info__item:hover {
    color: var(--story-ink);
    text-decoration: none;
}

.story-menu-business-info__item > i {
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--story-ink);
    font-size: .95rem;
}

.story-menu-business-info__hours strong {
    position: relative;
    padding-left: 10px;
    color: var(--story-ink);
}

.story-menu-business-info__hours strong::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9aa4b2;
    content: "";
    transform: translateY(-50%);
}

.story-menu-business-info__hours strong.is-open::before {
    background: #19b67a;
}

.story-menu-business-info__hours strong.is-closed::before {
    background: #e05252;
}

.story-menu-business-info__hours {
    align-items: center;
}

.story-menu-business-info__hours-summary {
    min-width: 0;
    flex: 1;
}

.story-menu-hours-toggle {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    padding: 0;
    place-items: center;
    border: 1px solid var(--story-line);
    border-radius: 50%;
    color: var(--story-ink);
    background: #f7f9fb;
    cursor: pointer;
}

.story-menu-hours-toggle:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--mh-theme-color, #eb3b33) 18%, transparent);
    outline-offset: 2px;
}

.story-menu-hours-toggle i {
    transition: transform .2s ease;
}

.story-menu-hours-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.story-menu-weekly-hours {
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid var(--story-line);
}

.story-menu-weekly-hours__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 2px;
    color: var(--story-muted);
    font-size: .78rem;
}

.story-menu-weekly-hours__row strong {
    color: var(--story-ink);
    font-weight: 700;
}

.story-menu-weekly-hours__row strong.is-closed {
    color: #a1a9b5;
}

.story-menu-nav-wrap {
    position: sticky;
    top: 0;
    z-index: 10;
    margin: 0 -20px;
    padding: 13px 20px 14px;
    background: rgba(248, 250, 252, .96);
    box-shadow: 0 8px 20px rgba(20, 30, 48, .04);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.story-menu-categories {
    display: flex;
    gap: 15px;
    margin: 0 -20px 13px;
    padding: 2px 20px 4px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-padding-inline: 20px;
}

.story-menu-categories::-webkit-scrollbar {
    display: none;
}

.story-menu-category {
    display: flex;
    flex: 0 0 72px;
    flex-direction: column;
    align-items: center;
    color: var(--story-muted);
    text-align: center;
}

.story-menu-category:hover {
    color: var(--story-ink);
    text-decoration: none;
}

.story-menu-category:focus {
    outline: none;
}

.story-menu-category:focus-visible .story-menu-category__ring {
    outline: 3px solid color-mix(in srgb, var(--mh-theme-color, #eb3b33) 25%, transparent);
    outline-offset: 2px;
}

.story-menu-category__ring {
    display: grid;
    width: 64px;
    height: 64px;
    margin-bottom: 7px;
    padding: 3px;
    place-items: center;
    border: 2px solid #d7dde5;
    border-radius: 50%;
    background: #fff;
    transition: border-color .2s ease, transform .2s ease;
}

.story-menu-category__ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.story-menu-category__name {
    width: 100%;
    overflow: hidden;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-menu-category.is-active {
    color: var(--story-ink);
}

.story-menu-category.is-active .story-menu-category__ring {
    border-color: var(--mh-theme-color, #eb3b33);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mh-theme-color, #eb3b33) 16%, transparent);
    transform: translateY(-2px);
}

.story-menu-search {
    display: flex;
    height: 48px;
    margin: 0;
    padding: 0 15px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--story-line);
    border-radius: 16px;
    color: var(--story-muted);
    background: #fff;
    box-shadow: 0 5px 16px rgba(20, 30, 48, .04);
}

.story-menu-search:focus-within {
    border-color: var(--mh-theme-color, #eb3b33);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mh-theme-color, #eb3b33) 12%, transparent);
}

.story-menu-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--story-ink);
    background: transparent;
    font-size: .9rem;
}

.story-menu-search__clear {
    padding: 4px;
    border: 0;
    color: #a0a9b6;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .15s ease;
}

.story-menu-search:focus-within .story-menu-search__clear,
.story-menu-search__clear.has-value {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.story-menu-results {
    padding: 16px 0 0;
    color: var(--story-muted);
    font-size: .82rem;
    font-weight: 600;
}

.story-menu-section {
    padding-top: 26px;
    scroll-margin-top: 176px;
}

.story-menu-section:last-child {
    min-height: calc(100vh - 176px);
}

.story-menu-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.story-menu-section__header span:first-child {
    color: var(--mh-theme-color, #eb3b33);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.story-menu-section__header h2 {
    margin: 1px 0 0;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -.025em;
}

.story-menu-section__count {
    flex: 0 0 auto;
    padding-bottom: 3px;
    color: var(--story-muted) !important;
    font-size: .75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.story-menu-products {
    overflow: hidden;
    border: 1px solid var(--story-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(20, 30, 48, .045);
}

.story-menu-product {
    position: relative;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 14px;
    min-height: 132px;
    gap: 14px;
    padding: 14px;
    border-bottom: 1px solid var(--story-line);
    cursor: pointer;
    transition: background .18s ease;
}

.story-menu-product:last-child {
    border-bottom: 0;
}

.story-menu-product:hover,
.story-menu-product:focus-visible {
    outline: none;
    background: #fbfcfe;
}

.story-menu-product__image {
    width: 112px;
    height: 104px;
    align-self: center;
    border-radius: 15px;
    object-fit: cover;
    background: #eef1f5;
}

.story-menu-product__body {
    min-width: 0;
}

.story-menu-product__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.story-menu-product h3 {
    margin: 2px 0 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.22;
}

.story-menu-product__price {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    font-size: .95rem;
    white-space: nowrap;
}

.story-menu-product__price strong {
    color: var(--mh-theme-color, #eb3b33);
}

.story-menu-product__price del {
    color: #9aa4b2;
    font-size: .7rem;
}

.story-menu-product p {
    display: -webkit-box;
    margin: 8px 0 0;
    overflow: hidden;
    color: var(--story-muted);
    font-size: .8rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.story-menu-product__allergen {
    display: inline-flex;
    margin-top: 9px;
    align-items: center;
    gap: 5px;
    color: #9b6515;
    font-size: .68rem;
    font-weight: 700;
}

.story-menu-product__arrow {
    align-self: center;
    color: #b6bec9;
    font-size: .75rem;
}

.story-menu-empty,
.story-menu-no-results {
    padding: 56px 20px;
    color: var(--story-muted);
    text-align: center;
}

.story-menu-empty i,
.story-menu-no-results i {
    display: block;
    margin-bottom: 12px;
    color: var(--mh-theme-color, #eb3b33);
    font-size: 2rem;
}

.story-menu-empty h2,
.story-menu-no-results h2 {
    margin: 0 0 5px;
    color: var(--story-ink);
    font-size: 1.15rem;
}

.story-menu-empty p,
.story-menu-no-results p {
    margin: 0;
}

.story-menu-footer {
    padding: 40px 0 10px;
    color: #9aa4b2;
    font-size: .72rem;
    text-align: center;
}

.menu-theme-story .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 22px;
}

.menu-theme-story .modal-header {
    border-bottom-color: var(--story-line);
}

.menu-theme-story #product-image img {
    width: 100%;
    max-height: 320px;
    border-radius: 15px !important;
    object-fit: cover;
}

.menu-theme-story #product-name,
.menu-theme-story #product-price b {
    color: var(--mh-theme-color, #eb3b33) !important;
}

@media (max-width: 575.98px) {
    .story-menu-hero {
        height: min(48vh, 430px);
        min-height: 310px;
    }

    .story-menu-panel {
        padding-right: 14px;
        padding-left: 14px;
    }

    .story-menu-nav-wrap {
        margin-right: -14px;
        margin-left: -14px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .story-menu-categories {
        margin-right: -14px;
        margin-left: -14px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .story-menu-summary {
        align-items: center;
    }

    .story-menu-summary__counts {
        gap: 9px;
    }

    .story-menu-product {
        grid-template-columns: 96px minmax(0, 1fr);
        min-height: 120px;
        gap: 12px;
        padding: 12px;
    }

    .story-menu-product__image {
        width: 96px;
        height: 96px;
    }

    .story-menu-product__topline {
        display: block;
    }

    .story-menu-product__price {
        margin-top: 5px;
        flex-direction: row;
        align-items: center;
        gap: 7px;
    }

    .story-menu-product p {
        margin-top: 6px;
        -webkit-line-clamp: 2;
    }

    .story-menu-product__allergen {
        display: none;
    }

    .story-menu-product__arrow {
        display: none;
    }
}

@media (max-width: 370px) {
    .story-menu-summary__counts {
        display: none;
    }

    .story-menu-product {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .story-menu-product__image {
        width: 82px;
        height: 88px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .story-menu-category__ring,
    .story-menu-hero__home,
    .story-menu-hero__phone,
    .story-menu-hours-toggle i {
        transition: none;
    }
}
