/* Live menu (Menu page) — the page builder's "Live menu" block designs.
   .mn sits on .menu-catalog: mn--idx-* (category bar), mn--cat-* (category headings), mn--sub-* (subcategory
   headings), mn--subnav-* (subcategory shortcuts). Product cards use search_results.css (.sr …).
   Base rules repeat the menu page's own look so the builder preview matches the live page. */

.mn { --mn-accent: var(--brand, var(--bl-accent, #1a5f4a)); width: 100%; padding: .35rem 0 2rem; }

/* ── Category bar ── */
.mn .menu-cat-index { display: grid; grid-template-columns: 1fr; gap: .5rem; padding: .15rem 0 1.15rem; margin-bottom: .35rem; }
.mn .menu-cat-index__chip { display: flex; align-items: center; justify-content: space-between; gap: .4rem; width: 100%; min-width: 0; padding: .7rem .9rem; border-radius: .875rem; border: 1px solid #e8edf5; background: #fff; color: #334155; font-size: .8rem; font-weight: 800; text-decoration: none; box-shadow: 0 1px 3px rgba(15, 23, 42, .04); transition: border-color .15s, background .15s, color .15s; }
.mn .menu-cat-index__chip:hover, .mn .menu-cat-index__chip.is-active { border-color: color-mix(in srgb, var(--mn-accent) 35%, #e8edf5); background: color-mix(in srgb, var(--mn-accent) 8%, #fff); color: var(--mn-accent); }
.mn .menu-cat-index__count { font-size: .68rem; font-weight: 800; color: #94a3b8; }
.mn--no-counts .menu-cat-index__count, .mn--no-counts .cat-sub-count { display: none; }
@media (min-width: 641px) { .mn--idx-grid .menu-cat-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; } }
.mn--idx-sticky .menu-cat-index { position: sticky; top: 0; z-index: 20; padding-top: .6rem; background: color-mix(in srgb, var(--bl-bg, #f8fafc) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
/* one swipeable row (chips, tabs, pills, photo tiles) */
.mn:is(.mn--idx-chips, .mn--idx-tabs, .mn--idx-pills, .mn--idx-images) .menu-cat-index { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: .5rem; }
.mn:is(.mn--idx-chips, .mn--idx-tabs, .mn--idx-pills, .mn--idx-images) .menu-cat-index::-webkit-scrollbar { display: none; }
.mn:is(.mn--idx-chips, .mn--idx-tabs, .mn--idx-pills, .mn--idx-images) .menu-cat-index__chip { flex: none; width: auto; white-space: nowrap; }
.mn--idx-a-center .menu-cat-index { justify-content: safe center; }
.mn--idx-chips .menu-cat-index__chip { padding: .55rem 1rem; border-radius: 999px; gap: .5rem; }
.mn--idx-tabs .menu-cat-index { gap: 0; border-bottom: 2px solid #eef2f6; padding-bottom: 0; margin-bottom: 1.4rem; }
.mn--idx-tabs .menu-cat-index__chip { padding: .8rem 1.1rem; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; box-shadow: none; margin-bottom: -2px; gap: .45rem; font-size: .88rem; }
.mn--idx-tabs .menu-cat-index__chip:hover, .mn--idx-tabs .menu-cat-index__chip.is-active { background: transparent; border-bottom-color: var(--mn-accent); }
.mn--idx-pills .menu-cat-index__chip { padding: .6rem 1.1rem; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--mn-accent) 10%, #fff); color: var(--mn-accent); gap: .5rem; }
.mn--idx-pills .menu-cat-index__chip:hover, .mn--idx-pills .menu-cat-index__chip.is-active { background: var(--mn-accent); color: #fff; }
.mn--idx-pills .menu-cat-index__chip:hover .menu-cat-index__count, .mn--idx-pills .menu-cat-index__chip.is-active .menu-cat-index__count { color: rgba(255, 255, 255, .8); }
.mn--idx-images .menu-cat-index { gap: .75rem; padding-bottom: 1.4rem; }
.mn--idx-images .menu-cat-index__chip { flex-direction: column; justify-content: flex-start; width: 7.5rem !important; padding: .5rem .5rem .7rem; gap: .45rem; border-radius: 1rem; text-align: center; white-space: normal !important; }
.mn--idx-images .menu-cat-index__chip > span:not(.menu-cat-index__count):not(.menu-cat-index__img) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
.mn .menu-cat-index__img { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: .75rem; object-fit: cover; background: color-mix(in srgb, var(--mn-accent) 10%, #fff); color: var(--mn-accent); }
.mn--idx-list .menu-cat-index { gap: 0; border-top: 1px solid #eef2f6; }
.mn--idx-list .menu-cat-index__chip { padding: .8rem .25rem; border: 0; border-bottom: 1px solid #eef2f6; border-radius: 0; background: transparent; box-shadow: none; font-size: .92rem; }
@media (min-width: 641px) { .mn--idx-list .menu-cat-index { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } }

/* ── Category sections and headings ── */
.mn .menu-cat-section { padding: 0 0 2rem; margin: 0 0 1.25rem; border-bottom: 1px solid #eef2f7; }
.mn .menu-cat-section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.mn .cat-heading { position: relative; display: flex; align-items: center; gap: 1rem; margin: 0 0 1.6rem; padding: 1.25rem 1.375rem; overflow: hidden; border: 1.5px solid color-mix(in srgb, var(--mn-accent) 20%, #e2e8f0); border-radius: 1.375rem; background: #fff; box-shadow: 0 2px 16px rgba(0, 0, 0, .055); }
.mn .cat-heading-img { position: relative; z-index: 1; flex-shrink: 0; width: 5.5rem; height: 5.5rem; overflow: hidden; border-radius: 1rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.mn .cat-heading-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mn .cat-heading-text { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; }
.mn .cat-heading-name { margin: 0; color: #0a1628; font-size: 1.45rem; font-weight: 900; letter-spacing: -.028em; line-height: 1.18; }
.mn .cat-heading-desc { margin: .35rem 0 0; color: #64748b; font-size: .92rem; line-height: 1.55; }
/* Photo banner */
.mn--cat-banner .cat-heading { flex-direction: column; align-items: stretch; padding: 0; gap: 0; }
.mn--cat-banner .cat-heading::before, .mn--cat-banner .cat-heading::after { display: none; }
.mn--cat-banner .cat-heading-img { width: 100%; height: clamp(8rem, 22vw, 13rem); border-radius: 0; box-shadow: none; border: 0; align-self: stretch; }
.mn--cat-banner .cat-heading-text { padding: 1rem 1.3rem 1.2rem; }
/* Name on the photo */
.mn--cat-overlay .cat-heading { min-height: clamp(9rem, 24vw, 14rem); align-items: flex-end; border: 0; background: linear-gradient(135deg, var(--mn-accent), color-mix(in srgb, var(--mn-accent) 55%, #000)); }
.mn--cat-overlay .cat-heading::before { display: none; }
.mn--cat-overlay .cat-heading::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(2, 6, 23, .05) 20%, rgba(2, 6, 23, .72)); pointer-events: none; }
.mn--cat-overlay .cat-heading-img { position: absolute; inset: 0; z-index: 0; width: auto; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.mn--cat-overlay .cat-heading-text { z-index: 2; }
.mn--cat-overlay .cat-heading-name { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
.mn--cat-overlay .cat-heading-desc { color: rgba(255, 255, 255, .88); }
/* Name with a line */
.mn--cat-line .cat-heading, .mn--cat-minimal .cat-heading, .mn--cat-centered .cat-heading { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.mn--cat-line .cat-heading::before, .mn--cat-line .cat-heading::after, .mn--cat-minimal .cat-heading::before, .mn--cat-minimal .cat-heading::after, .mn--cat-centered .cat-heading::before, .mn--cat-centered .cat-heading::after { display: none; }
.mn--cat-line .cat-heading-img { width: 3.4rem; height: 3.4rem; border-radius: 999px; }
.mn--cat-line .cat-heading-name { display: flex; align-items: center; gap: 1rem; }
.mn--cat-line .cat-heading-name::after { content: ''; flex: 1; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--mn-accent), transparent); }
[dir="rtl"] .mn--cat-line .cat-heading-name::after { background: linear-gradient(270deg, var(--mn-accent), transparent); }
/* Centered */
.mn--cat-centered .cat-heading { flex-direction: column; text-align: center; }
.mn--cat-centered .cat-heading-img { width: 6rem; height: 6rem; border-radius: 999px; border: 4px solid #fff; box-shadow: 0 10px 26px -12px rgba(15, 23, 42, .45); }
.mn--cat-centered .cat-heading-name::after { content: ''; display: block; width: 3rem; height: 3px; margin: .6rem auto 0; border-radius: 3px; background: var(--mn-accent); }
/* Just the name */
.mn--cat-minimal .cat-heading-img { display: none; }
.mn--cat-minimal .cat-heading-name { font-size: 1.3rem; }

/* ── Subcategory shortcuts ── */
.mn .cat-sub-nav { display: grid; grid-template-columns: 1fr; gap: .5rem; margin: 0 0 1.15rem; }
@media (min-width: 641px) { .mn--subnav-grid .cat-sub-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; } }
.mn .cat-sub-pill { display: flex; align-items: center; justify-content: space-between; gap: .45rem; padding: .7rem .9rem; border: 1px solid #e8eef4; border-radius: .875rem; background: #fff; color: #1e293b; font-size: .8rem; font-weight: 700; text-decoration: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); transition: all .2s; }
.mn .cat-sub-pill:hover { background: var(--mn-accent); border-color: var(--mn-accent); color: #fff; }
.mn .cat-sub-count { flex-shrink: 0; min-width: 1.65rem; padding: .18rem .55rem; border-radius: 999px; background: #f1f5f9; color: #94a3b8; font-size: .7rem; font-weight: 800; text-align: center; }
.mn:is(.mn--subnav-chips, .mn--subnav-tabs) .cat-sub-nav { display: flex; overflow-x: auto; scrollbar-width: none; }
.mn:is(.mn--subnav-chips, .mn--subnav-tabs) .cat-sub-pill { flex: none; white-space: nowrap; }
.mn--subnav-chips .cat-sub-pill { border-radius: 999px; padding: .5rem .95rem; }
.mn--subnav-tabs .cat-sub-nav { gap: 0; border-bottom: 2px solid #eef2f6; }
.mn--subnav-tabs .cat-sub-pill { margin-bottom: -2px; padding: .65rem 1rem; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; box-shadow: none; }
.mn--subnav-tabs .cat-sub-pill:hover { background: transparent; color: var(--mn-accent); border-bottom-color: var(--mn-accent); }

/* ── Subcategory headings ── */
.mn .sub-section { margin-top: 1.65rem; }
.mn .sub-section + .sub-section { padding-top: 1.65rem; border-top: 1px solid #eef2f7; }
.mn .sub-heading { display: flex; flex-direction: column; gap: .5rem; margin: 0 0 1.2rem; }
.mn .sub-heading-img-wrap { width: 4.5rem; height: 4.5rem; overflow: hidden; border-radius: 1rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .16); }
.mn .sub-heading-img { width: 100%; height: 100%; object-fit: cover; }
.mn .sub-title { margin: 0; color: #0a1628; font-size: 1.12rem; font-weight: 800; letter-spacing: -.022em; line-height: 1.2; }
.mn .sub-desc { margin: .3rem 0 0; color: #64748b; font-size: .88rem; line-height: 1.55; }
.mn--sub-line .sub-heading { flex-direction: row; align-items: center; }
.mn--sub-line .sub-heading-img-wrap { width: 2.6rem; height: 2.6rem; border-radius: 999px; }
.mn--sub-line .sub-heading-text { flex: 1; }
.mn--sub-line .sub-title { display: flex; align-items: center; gap: .8rem; }
.mn--sub-line .sub-title::after { content: ''; flex: 1; height: 2px; background: #e8edf3; }
.mn--sub-pill .sub-title { display: inline-block; padding: .35rem .95rem; border-radius: 999px; background: color-mix(in srgb, var(--mn-accent) 12%, #fff); color: var(--mn-accent); font-size: .95rem; }
.mn--sub-centered .sub-heading { align-items: center; text-align: center; }
.mn--sub-centered .sub-heading-img-wrap { border-radius: 999px; }

@media (max-width: 640px) {
    .mn .cat-heading-name { font-size: 1.2rem; }
    .mn .cat-heading-img { width: 4rem; height: 4rem; }
    .mn--cat-banner .cat-heading-img, .mn--cat-overlay .cat-heading-img { width: auto; height: auto; }
    .mn--cat-banner .cat-heading-img { width: 100%; height: 9rem; }
}

/* ── With a page-builder header ── menu.php's own rules (loaded later) stretch every shortcut and sub-heading to
   full width; the chips / tabs / pill designs size to their text instead. */
.mn:is(.mn--subnav-chips, .mn--subnav-tabs) .cat-sub-nav { display: flex !important; flex-wrap: wrap; gap: .5rem; overflow: visible; }
.mn:is(.mn--subnav-chips, .mn--subnav-tabs) .cat-sub-pill { width: auto; min-height: 0; }
.mn--subnav-chips .cat-sub-pill { gap: .55rem; }
.mn--subnav-chips .cat-sub-pill:hover .cat-sub-count { background: rgba(255, 255, 255, .25); color: #fff; }
@media (max-width: 640px) { .mn:is(.mn--subnav-chips, .mn--subnav-tabs) .cat-sub-nav { flex-wrap: nowrap; overflow-x: auto; } }
.mn--sub-pill .sub-title { width: auto; align-self: flex-start; }
.mn--sub-pill.mn--sub-centered .sub-title, .mn--sub-centered .sub-title { align-self: center; }
/* A sticky category bar sits right under a sticky page-builder header (blog.js sets --bl-stick-top). */
.mn--idx-sticky .menu-cat-index { top: var(--bl-stick-top, 0px); }
/* Category chips as a slider: snap to chips, arrows on the sides while there are more to see (blog.js adds them). */
.mn:is(.mn--idx-chips, .mn--idx-tabs, .mn--idx-pills, .mn--idx-images) .menu-cat-index { scroll-snap-type: x proximity; scroll-padding-inline: 2.6rem; scroll-behavior: smooth; }
.mn:is(.mn--idx-chips, .mn--idx-tabs, .mn--idx-pills, .mn--idx-images) .menu-cat-index__chip { scroll-snap-align: start; }
.menu-cat-index__nav { position: sticky; z-index: 2; flex: none; align-self: center; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 1px solid #e8edf5; border-radius: 50%; background: #fff; color: var(--mn-accent, #334155); font-size: .8rem; box-shadow: 0 4px 14px rgba(15, 23, 42, .16); cursor: pointer; transition: transform .15s; }
.menu-cat-index__nav:hover { transform: scale(1.08); }
.menu-cat-index__nav[hidden] { display: none; }
.menu-cat-index__nav--prev { inset-inline-start: 0; margin-inline-end: -2.25rem; }
.menu-cat-index__nav--next { inset-inline-end: 0; margin-inline-start: -2.25rem; }
.menu-cat-index.is-scrollable { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1.5rem, #000 calc(100% - 1.5rem), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 1.5rem, #000 calc(100% - 1.5rem), transparent); }
.menu-cat-index.is-scrollable .menu-cat-index__nav { -webkit-mask-image: none; }
