/*
 * MenuMaker - the public menu page (views/pages/menu.php). Loaded INSTEAD of theme.css on that page
 * only, so nothing here can reach the marketing pages, and nothing of theme.css reaches this one.
 *
 * Mobile first: most visits come from a phone that just scanned a QR code. One breakpoint widens
 * the page (>= 768px) and one adds columns (>= 1100px).
 *
 * The customer's look arrives as custom properties on .mmm (menu.php, from settings.menu_theme):
 *   --mmm-primary / --mmm-on-primary   buttons, active tab, the order bar
 *   --mmm-accent  / --mmm-on-accent    attribute tags
 *   --mmm-radius                       corners
 *   --mmm-bg                           page background (light tone only)
 * plus data-tone="light|dark" and data-font="serif|sans".
 *
 * THE TEMPLATE IS THE STRUCTURE (settings.web_template, class mmm--tpl-{tag} and data-template): each
 * one is its own markup (partials/menu/tpl_{tag}.php) and, where it has one, its own sheet loaded after
 * this one (css/menu/tpl-{tag}.css) - this file is what they share -
 *   classic    cover, sticky bar with the category tabs, the categories one after the other
 *   sidebar    slim top bar; a side column with the search and the category tree (>= 900px)
 *   magazine   full-screen cover, numbered index, each category a chapter opened by its picture
 *   showcase   the categories as picture tiles first, one open at a time
 *   brasa      an app: a side column, one category at a time (its own sheet draws the four views)
 * THE VIEW is each category's (data-view on its .mmm-section - the kinds of category.display_modes
 * the back-office allows, the first its default - switched in the category's own header):
 *   grid       cards with the picture on top - two columns on a phone, up to four on a desk
 *   carousel   the grid's cards in one row that scrolls sideways
 *   list       compact rows with a small thumbnail
 *   shelf      bottles standing on a shelf, the one in the middle full size (js/menu.js)
 * Each rule reads the view of the list's OWN section (> ul), so a subcategory can differ from its
 * parent. magazine has its own grid and list: large picture cards and a printed menu with dotted
 * leaders, with the first product of each chapter (.is-hero) as its feature in both.
 *
 * Everything is prefixed mmm- so the core's own markup (the preview bar, announcements) and this
 * sheet never style each other by accident.
 */

/* ------------------------------------------------------------------ fonts (self-hosted: font-src 'self') */

/*
 * The page's own face is Poppins - the product's, Brasa's, the marketing site's - from the theme's
 * assets/fonts (SIL OFL, the licence beside it). The pair this sheet used to name (Fraunces, Inter)
 * never shipped with the theme, so every template fell back to the system's face. A customer's own
 * font (scopes.web.appearance.font_face) still wins, below.
 */
@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins-latin-300-normal.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ------------------------------------------------------------------ base */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--mmm-bar-h, 112px) + 8px);
}

body {
    margin: 0;
    background: #fbf7f1;
}

body:has(.mmm[data-tone="dark"]) {
    background: #14110f;
}

/* The marketing chrome never belongs here; the menu item hides it, and this is the belt. */
.widget-classic,
.widget-columns {
    display: none !important;
}

[hidden] {
    display: none !important;
}

.mmm {
    --mmm-bg: #fbf7f1;
    --mmm-surface: #ffffff;
    --mmm-surface-2: #f3ece3;
    --mmm-ink: #1c1714;
    --mmm-ink-2: #5e554e;
    --mmm-ink-3: #8a8077;
    --mmm-line: rgba(28, 23, 20, .1);
    --mmm-shadow: 0 1px 2px rgba(28, 23, 20, .06), 0 10px 28px -14px rgba(28, 23, 20, .28);
    --mmm-shadow-lg: 0 -8px 40px -12px rgba(28, 23, 20, .35);
    --mmm-heading: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --mmm-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --mmm-price: var(--mmm-ink);
    --mmm-r: var(--mmm-radius, 16px);
    --mmm-r-sm: calc(var(--mmm-r) * .6);
    --mmm-gutter: 16px;

    min-height: 100vh;
    background: var(--mmm-bg);
    color: var(--mmm-ink);
    font-family: var(--mmm-sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

.mmm[data-tone="dark"] {
    --mmm-bg: #14110f;
    --mmm-surface: #1f1a17;
    --mmm-surface-2: #2a2420;
    --mmm-ink: #f6efe7;
    --mmm-ink-2: #c9bdb1;
    --mmm-ink-3: #9a8e83;
    --mmm-line: rgba(255, 255, 255, .1);
    --mmm-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6);
    --mmm-shadow-lg: 0 -8px 40px -12px rgba(0, 0, 0, .7);
    --mmm-price: var(--mmm-primary);
    color-scheme: dark;
}

.mmm[data-font="sans"] {
    --mmm-heading: var(--mmm-sans);
}

/* the customer's own font (scopes.web.appearance.font, --mmm-font): the headings in it, and the
   text too when it is a sans - loaded from Google Fonts by views/pages/menu.php */
.mmm[data-font-face] {
    --mmm-heading: var(--mmm-font), Georgia, "Times New Roman", serif;
}

.mmm[data-font-face][data-font="sans"] {
    --mmm-heading: var(--mmm-font), system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --mmm-sans: var(--mmm-font), system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.mmm img {
    max-width: 100%;
    display: block;
}

.mmm h1,
.mmm h2,
.mmm h3,
.mmm h4,
.mmm h5,
.mmm p,
.mmm ul,
.mmm fieldset {
    margin: 0;
}

.mmm ul {
    padding: 0;
    list-style: none;
}

.mmm a {
    color: inherit;
}

.mmm button,
.mmm input,
.mmm textarea {
    font: inherit;
    color: inherit;
}

.mmm button {
    cursor: pointer;
}

.mmm :focus-visible {
    outline: 3px solid var(--mmm-primary);
    outline-offset: 2px;
    border-radius: 6px;
}

.mmm-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.mmm-icon {
    flex: none;
    display: block;
}

.mmm-wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: var(--mmm-gutter);
    padding-right: var(--mmm-gutter);
}

/* ------------------------------------------------------------------ hero */

.mmm-hero {
    position: relative;
    overflow: hidden;
    padding: 40px 0 28px;
    text-align: center;
    background:
        radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--mmm-primary) 22%, transparent) 0%, transparent 70%),
        var(--mmm-bg);
}

.mmm-hero--cover {
    padding-top: 150px;
    color: #fff;
    background: #1c1714;
}

.mmm-hero__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mmm-hero--cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, .78) 100%);
}

.mmm-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mmm-hero__logo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--mmm-surface);
    box-shadow: 0 0 0 4px var(--mmm-bg), var(--mmm-shadow);
}

.mmm-hero--cover .mmm-hero__logo {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 12px 30px -10px rgba(0, 0, 0, .6);
}

.mmm-hero__name {
    font-family: var(--mmm-heading);
    font-weight: 600;
    font-size: clamp(30px, 8vw, 46px);
    line-height: 1.05;
    letter-spacing: -.01em;
    max-width: 18ch;
    text-wrap: balance;
}

.mmm-hero__meta {
    font-size: 14px;
    color: var(--mmm-ink-2);
}

.mmm-hero--cover .mmm-hero__meta {
    color: rgba(255, 255, 255, .85);
}

.mmm-hero__spot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    background: var(--mmm-primary);
    color: var(--mmm-on-primary);
}

.mmm-langs {
    position: absolute;
    top: -24px;
    right: var(--mmm-gutter);
}

.mmm-hero--cover .mmm-langs {
    top: -134px;
}

.mmm-langs ul {
    display: flex;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--mmm-surface) 80%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--mmm-ink);
}

.mmm-langs a,
.mmm-langs span {
    display: block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-decoration: none;
}

.mmm-langs span[aria-current] {
    background: var(--mmm-ink);
    color: var(--mmm-bg);
}

/* ------------------------------------------------------------------ sticky bar: search, filters, tabs */

.mmm-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--mmm-bg) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--mmm-line);
}

.mmm-bar__tools {
    display: flex;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 4px;
}

.mmm-search {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--mmm-surface);
    border: 1px solid var(--mmm-line);
    color: var(--mmm-ink-3);
}

.mmm-search:focus-within {
    border-color: var(--mmm-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mmm-primary) 22%, transparent);
}

.mmm-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--mmm-ink);
    font-size: 16px; /* 16px stops iOS from zooming into the field */
}

.mmm-search input::placeholder {
    color: var(--mmm-ink-3);
}

.mmm-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--mmm-line);
    background: var(--mmm-surface);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.mmm-pill[aria-expanded="true"] {
    border-color: var(--mmm-ink);
}

.mmm-badge {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 12px;
    background: var(--mmm-highlight, var(--mmm-primary));
    color: var(--mmm-on-highlight, var(--mmm-on-primary));
}

.mmm-filters {
    max-height: 60vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid var(--mmm-line);
}

.mmm-filters__inner {
    display: grid;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.mmm-filters__group {
    border: 0;
    padding: 0;
    min-width: 0;
}

.mmm-filters__group legend {
    padding: 0;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--mmm-ink-2);
}

.mmm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mmm-chip {
    min-height: 38px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--mmm-line);
    background: var(--mmm-surface);
    font-size: 14px;
}

.mmm-chip[aria-pressed="true"] {
    background: var(--mmm-ink);
    border-color: var(--mmm-ink);
    color: var(--mmm-bg);
}

.mmm-chip--exclude[aria-pressed="true"] {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.mmm-filters__foot {
    display: flex;
    justify-content: flex-end;
}

.mmm-link {
    border: 0;
    background: none;
    padding: 8px 4px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mmm-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.mmm-tabs::-webkit-scrollbar {
    display: none;
}

/*
  The list scrolls sideways inside the full-width bar, and its first tab lines up with the content
  below it: the side padding is the gutter of .mmm-wrap's centred 1100px column, computed against
  the bar's width. (It used to be max-width 1100 + min-width 100%, and min-width always wins over
  max-width - the list took the whole screen and the first tab sat at its very edge.)
*/
.mmm-tabs ul {
    display: flex;
    gap: 6px;
    padding-top: 8px;
    padding-bottom: 10px;
    width: max-content;
    min-width: 100%;
    max-width: none;
    margin: 0;
    padding-left: max(var(--mmm-gutter), calc((100% - 1100px) / 2 + var(--mmm-gutter)));
    padding-right: max(var(--mmm-gutter), calc((100% - 1100px) / 2 + var(--mmm-gutter)));
}

.mmm-tabs a {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    color: var(--mmm-ink-2);
    transition: background-color .2s, color .2s;
}

.mmm-tabs a:hover {
    color: var(--mmm-ink);
}

.mmm-tabs a[aria-current="true"] {
    background: var(--mmm-primary);
    color: var(--mmm-on-primary);
}

/* ------------------------------------------------------------------ sections and cards */

.mmm-content {
    padding-top: 8px;
}

.mmm-empty {
    padding: 48px 0;
    text-align: center;
    color: var(--mmm-ink-2);
}

.mmm-section {
    scroll-margin-top: calc(var(--mmm-bar-h, 112px) + 8px);
}

.mmm-section--d0 {
    padding-top: 28px;
}

.mmm-section--d1,
.mmm-section--d2 {
    padding-top: 22px;
}

.mmm-section__head {
    margin-bottom: 12px;
}

.mmm-section__title {
    font-family: var(--mmm-heading);
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.15;
}

.mmm-section--d0 > .mmm-section__head .mmm-section__title {
    font-size: 26px;
}

.mmm-section--d1 > .mmm-section__head .mmm-section__title,
.mmm-section--d2 > .mmm-section__head .mmm-section__title {
    font-size: 19px;
}

.mmm-section__desc {
    margin-top: 4px;
    color: var(--mmm-ink-2);
    font-size: 15px;
}

.mmm-list {
    display: grid;
    gap: 12px;
}

.mmm-card {
    position: relative;
    height: 100%;
    border-radius: var(--mmm-r);
    background: var(--mmm-surface);
    box-shadow: var(--mmm-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}

.mmm-card:hover {
    transform: translateY(-1px);
}

.mmm-card__link {
    display: flex;
    gap: 14px;
    height: 100%;
    padding: 14px;
    text-decoration: none;
    border-radius: inherit;
}

.mmm-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mmm-card__name {
    font-size: 17px;
    font-weight: 650;
    line-height: 1.25;
}

.mmm-card__desc {
    font-size: 14px;
    color: var(--mmm-ink-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mmm-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.mmm-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    background: color-mix(in srgb, var(--mmm-accent) 22%, var(--mmm-surface));
    color: var(--mmm-ink);
}

.mmm-tag--allergen {
    background: transparent;
    border: 1px solid var(--mmm-line);
    color: var(--mmm-ink-2);
    font-weight: 500;
}

.mmm-price {
    margin-top: auto;
    padding-top: 2px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 16px;
}

.mmm-price strong {
    font-weight: 700;
    color: var(--mmm-ink);
}

.mmm-price del {
    color: var(--mmm-ink-3);
    font-size: 14px;
}

.mmm-card__media {
    flex: none;
    width: 104px;
    height: 104px;
    border-radius: var(--mmm-r-sm);
    overflow: hidden;
    background: var(--mmm-surface-2);
}

.mmm-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mmm-card__add {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--mmm-primary);
    color: var(--mmm-on-primary);
    box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--mmm-primary) 80%, black);
    transition: transform .15s ease;
}

.mmm-card__add:active {
    transform: scale(.92);
}

/* The quick-add button sits over the picture; without one it needs room beside the price. */
.mmm-card--noimg .mmm-card__link {
    padding-right: 60px;
}

/* grid view: pictures on top, two columns already on a phone */

.mmm:not(.mmm--tpl-magazine) [data-view="grid"] > .mmm-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mmm:not(.mmm--tpl-magazine) [data-view="grid"] > ul .mmm-card__link,
.mmm:not(.mmm--tpl-magazine) [data-view="carousel"] > ul .mmm-card__link {
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 0 14px;
}

.mmm:not(.mmm--tpl-magazine) [data-view="grid"] > ul .mmm-card__body,
.mmm:not(.mmm--tpl-magazine) [data-view="carousel"] > ul .mmm-card__body {
    padding: 0 12px;
}

.mmm:not(.mmm--tpl-magazine) [data-view="grid"] > ul .mmm-card__media,
.mmm:not(.mmm--tpl-magazine) [data-view="carousel"] > ul .mmm-card__media {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: var(--mmm-r) var(--mmm-r) 0 0;
}

.mmm:not(.mmm--tpl-magazine) [data-view="grid"] > ul .mmm-card--noimg .mmm-card__link,
.mmm:not(.mmm--tpl-magazine) [data-view="carousel"] > ul .mmm-card--noimg .mmm-card__link {
    padding: 14px 0 14px;
}

.mmm:not(.mmm--tpl-magazine) [data-view="grid"] > ul .mmm-card__name,
.mmm:not(.mmm--tpl-magazine) [data-view="carousel"] > ul .mmm-card__name {
    font-size: 15px;
}

.mmm:not(.mmm--tpl-magazine) [data-view="grid"] > ul .mmm-card__add,
.mmm:not(.mmm--tpl-magazine) [data-view="carousel"] > ul .mmm-card__add {
    width: 36px;
    height: 36px;
}

/* room under the price for the quick-add button, which sits in the bottom corner */
.mmm:not(.mmm--tpl-magazine) [data-view="grid"] > ul .mmm-card:has(.mmm-card__add) .mmm-card__link,
.mmm:not(.mmm--tpl-magazine) [data-view="carousel"] > ul .mmm-card:has(.mmm-card__add) .mmm-card__link {
    padding-bottom: 54px;
}

/* list view: compact rows - a small thumbnail on the left, the price on the right */

.mmm:not(.mmm--tpl-magazine) [data-view="list"] > .mmm-list {
    gap: 0;
}

.mmm:not(.mmm--tpl-magazine) [data-view="list"] > ul .mmm-item {
    border-bottom: 1px solid var(--mmm-line);
}

.mmm:not(.mmm--tpl-magazine) [data-view="list"] > ul .mmm-card {
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.mmm:not(.mmm--tpl-magazine) [data-view="list"] > ul .mmm-card:hover {
    transform: none;
}

.mmm:not(.mmm--tpl-magazine) [data-view="list"] > ul .mmm-card__link,
.mmm:not(.mmm--tpl-magazine) [data-view="list"] > ul .mmm-card--noimg .mmm-card__link {
    flex-direction: row-reverse;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
}

.mmm:not(.mmm--tpl-magazine) [data-view="list"] > ul .mmm-card:has(.mmm-card__add) .mmm-card__link {
    padding-right: 56px;
}

.mmm:not(.mmm--tpl-magazine) [data-view="list"] > ul .mmm-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: 12px;
    row-gap: 2px;
}

.mmm:not(.mmm--tpl-magazine) [data-view="list"] > ul .mmm-card__body > * {
    grid-column: 1;
}

.mmm:not(.mmm--tpl-magazine) [data-view="list"] > ul .mmm-card__name {
    font-size: 16px;
}

.mmm:not(.mmm--tpl-magazine) [data-view="list"] > ul .mmm-card__desc {
    font-size: 13px;
    -webkit-line-clamp: 1;
}

.mmm:not(.mmm--tpl-magazine) [data-view="list"] > ul .mmm-card__body > .mmm-price {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    white-space: nowrap;
    font-size: 15px;
}

.mmm:not(.mmm--tpl-magazine) [data-view="list"] > ul .mmm-price del {
    font-size: 12px;
}

.mmm:not(.mmm--tpl-magazine) [data-view="list"] > ul .mmm-card__media {
    width: 56px;
    height: 56px;
}

.mmm:not(.mmm--tpl-magazine) [data-view="list"] > ul .mmm-card__add {
    top: 50%;
    bottom: auto;
    right: 4px;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
}

.mmm:not(.mmm--tpl-magazine) [data-view="list"] > ul .mmm-card__add:active {
    transform: translateY(-50%) scale(.92);
}

/* carousel view (every template): the grid's cards in one row that scrolls sideways, snapping */

.mmm [data-view="carousel"] > .mmm-list {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 16px;
    scrollbar-width: thin;
}

.mmm [data-view="carousel"] > .mmm-list > .mmm-item {
    flex: 0 0 min(72%, 280px);
    scroll-snap-align: start;
}

.mmm--tpl-magazine [data-view="carousel"] > .mmm-list > .mmm-item {
    flex-basis: min(86%, 380px);
}

/* shelf view (every template): bottles standing on a shelf, the one in the middle full size
   (js/menu.js scales the others down as they move away from it) */

.mmm [data-view="shelf"] > .mmm-list {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 8px calc(50% - 80px) 4px;
    scrollbar-width: none;
}

.mmm [data-view="shelf"] > .mmm-list::-webkit-scrollbar {
    display: none;
}

.mmm [data-view="shelf"] > .mmm-list > .mmm-item {
    flex: 0 0 160px;
    scroll-snap-align: center;
    transform-origin: 50% 100%;
}

.mmm [data-view="shelf"] > ul .mmm-card {
    height: auto;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.mmm [data-view="shelf"] > ul .mmm-card:hover {
    transform: none;
}

.mmm [data-view="shelf"] > ul .mmm-card__link,
.mmm [data-view="shelf"] > ul .mmm-card--noimg .mmm-card__link {
    flex-direction: column-reverse;
    align-items: center;
    gap: 0;
    padding: 0;
    text-align: center;
}

.mmm [data-view="shelf"] > ul .mmm-card__media {
    position: relative;
    width: 100%;
    height: 230px;
    border-radius: 0;
    background: transparent;
}

/* the board they stand on */
.mmm [data-view="shelf"] > ul .mmm-card__media::after {
    content: "";
    position: absolute;
    left: -4px;
    right: -4px;
    bottom: 0;
    height: 6px;
    background: color-mix(in srgb, var(--mmm-ink) 14%, transparent);
}

.mmm [data-view="shelf"] > ul .mmm-card__media img {
    padding-bottom: 6px;
    object-fit: contain;
    object-position: 50% 100%;
}

.mmm [data-view="shelf"] > ul .mmm-card__body {
    width: 100%;
    align-items: center;
    gap: 2px;
    padding: 10px 4px 4px;
}

.mmm [data-view="shelf"] > ul .mmm-card__name {
    font-size: 15px;
}

.mmm [data-view="shelf"] > ul .mmm-card__desc,
.mmm [data-view="shelf"] > ul .mmm-card__tags {
    display: none;
}

.mmm [data-view="shelf"] > ul .mmm-price {
    justify-content: center;
    margin-top: 0;
    font-size: 15px;
}

.mmm [data-view="shelf"] > ul .mmm-card__add {
    position: static;
    margin: 6px auto 0;
    width: 36px;
    height: 36px;
}

@media (prefers-reduced-motion: no-preference) {

    .mmm [data-view="shelf"] > .mmm-list > .mmm-item {
        transition: transform .2s ease, opacity .2s ease;
    }
}

/* ------------------------------------------------------------------ a page of the customer's (every template) */

/*
 * catalog/pages: a section of its own where it sits in the menu, its image and its rich text.
 * .mmm-page--{layout} is the layout the website draws it with (data-layout the one chosen); only
 * 'default' so far - a new layout of dt_page_layout gets its modifier here.
 */

.mmm-page {
    display: grid;
    gap: 18px;
    max-width: 760px;
}

.mmm-page__media {
    margin: 0;
    border-radius: var(--mmm-r);
    overflow: hidden;
    background: var(--mmm-surface-2);
}

.mmm-page__media img {
    display: block;
    width: 100%;
    height: auto;
}

.mmm-page__content {
    font-size: 16px;
    line-height: 1.65;
    color: var(--mmm-ink);
    overflow-wrap: anywhere;
}

.mmm-page__content > * + * {
    margin-top: .9em;
}

.mmm-page__content h2,
.mmm-page__content h3,
.mmm-page__content h4 {
    font-family: var(--mmm-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.01em;
}

.mmm-page__content h2 {
    font-size: 22px;
}

.mmm-page__content h3 {
    font-size: 19px;
}

.mmm-page__content h4 {
    font-size: 17px;
}

.mmm-page__content ul,
.mmm-page__content ol {
    padding-left: 1.3em;
}

.mmm-page__content ul {
    list-style: disc;
}

.mmm-page__content ol {
    list-style: decimal;
}

.mmm-page__content li + li {
    margin-top: .3em;
}

.mmm-page__content blockquote {
    padding-left: 14px;
    border-left: 3px solid var(--mmm-primary);
    color: var(--mmm-ink-2);
    font-style: italic;
}

.mmm-page__content a {
    color: var(--mmm-primary);
    text-decoration: underline;
}

.mmm-page__content hr {
    border: 0;
    border-top: 1px solid var(--mmm-line);
}

/* ------------------------------------------------------------------ footer */

.mmm-foot {
    margin-top: 48px;
    padding: 32px 0;
    border-top: 1px solid var(--mmm-line);
    color: var(--mmm-ink-2);
    font-size: 14px;
}

.mmm-foot__inner {
    display: grid;
    gap: 10px;
}

.mmm-foot__name {
    font-family: var(--mmm-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--mmm-ink);
}

.mmm-foot__contacts {
    display: grid;
    gap: 6px;
}

.mmm-foot__contacts li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mmm-foot__credit {
    margin-top: 12px;
    font-size: 12px;
    color: var(--mmm-ink-3);
}

.mmm-foot__credit a {
    text-decoration: none;
}

/* ------------------------------------------------------------------ the order bar */

.mmm-cartbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
    animation: mmm-rise .3s ease both;
}

.mmm-cartbar__btn {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 560px;
    min-height: 58px;
    margin: 0 auto;
    padding: 8px 20px 8px 10px;
    border: 0;
    border-radius: 999px;
    background: var(--mmm-primary);
    color: var(--mmm-on-primary);
    font-size: 16px;
    font-weight: 650;
    box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--mmm-primary) 70%, black);
}

.mmm-cartbar__count {
    display: grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--mmm-on-primary) 20%, transparent);
}

.mmm-cartbar__label {
    flex: 1;
    text-align: left;
}

/* ------------------------------------------------------------------ sheets (product, order) */

.mmm-sheet {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 94vh;
    max-height: 94dvh;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 24px 24px 0 0;
    background: var(--mmm-surface);
    color: var(--mmm-ink);
    box-shadow: var(--mmm-shadow-lg);
    overflow: hidden;
    font-family: var(--mmm-sans);
}

.mmm-sheet[open] {
    display: flex;
    flex-direction: column;
    animation: mmm-up .28s cubic-bezier(.2, .8, .2, 1) both;
}

.mmm-sheet::backdrop {
    background: rgba(12, 9, 7, .55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.mmm-sheet__scroll {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mmm-sheet__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--mmm-surface) 88%, transparent);
    color: var(--mmm-ink);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.mmm-sheet__body {
    display: grid;
    gap: 18px;
    padding: 20px var(--mmm-gutter) 24px;
}

.mmm-sheet__head {
    padding-right: 48px;
}

.mmm-sheet__title {
    font-family: var(--mmm-heading);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.01em;
}

.mmm-sheet__title:focus {
    outline: none;
}

.mmm-sheet__price {
    margin-top: 6px;
}

.mmm-sheet__desc {
    color: var(--mmm-ink-2);
    white-space: pre-line;
}

.mmm-sheet__foot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px var(--mmm-gutter) calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--mmm-line);
    background: var(--mmm-surface);
}

/* gallery */

.mmm-gallery {
    position: relative;
    background: var(--mmm-surface-2);
}

.mmm-gallery__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.mmm-gallery__track::-webkit-scrollbar {
    display: none;
}

.mmm-gallery__track img {
    flex: none;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    scroll-snap-align: center;
}

.mmm-gallery__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.mmm-gallery__dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
    transition: width .2s;
}

.mmm-gallery__dots button[aria-current="true"] {
    width: 22px;
    background: #fff;
}

/* media */

.mmm-media {
    display: grid;
    gap: 10px;
}

.mmm-media video,
.mmm-media iframe,
.mmm-media model-viewer {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: var(--mmm-r-sm);
    background: #000;
}

.mmm-media model-viewer {
    aspect-ratio: 1 / 1;
    background: var(--mmm-surface-2);
}

.mmm-media__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* blocks inside a sheet */

.mmm-block {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.mmm-block__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 0;
    margin-bottom: 8px;
}

.mmm-block__title {
    font-size: 16px;
    font-weight: 700;
}

.mmm-block__hint {
    font-size: 13px;
    color: var(--mmm-ink-3);
}

.mmm-block__hint--req {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--mmm-surface-2);
    color: var(--mmm-ink-2);
    font-weight: 600;
}

.mmm-block[aria-invalid="true"] .mmm-block__hint--req {
    background: #c62828;
    color: #fff;
}

.mmm-block__error {
    margin-top: 6px;
    font-size: 14px;
    color: #c62828;
}

.mmm[data-tone="dark"] .mmm-block__error {
    color: #ff8a80;
}

.mmm-allergens {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mmm-allergens li {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--mmm-surface-2);
    font-size: 14px;
}

.mmm-allergens--trace li {
    background: transparent;
    border: 1px dashed var(--mmm-line);
    color: var(--mmm-ink-2);
}

/* The platform's picture of an allergen, before its name (card tag, filter chip, product sheet).
   Scoped under .mmm so it beats ".mmm img { display: block }", which put every icon on a line of
   its own and turned a one-line tag into a tall bubble. */
.mmm .mmm-al-icon {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    margin-right: .35em;
    vertical-align: -.25em;
    object-fit: contain;
}

.mmm-tag--allergen .mmm-al-icon {
    width: 1.15em;
    height: 1.15em;
    margin-right: .25em;
}

.mmm-note {
    margin-top: 8px;
    font-size: 14px;
    color: var(--mmm-ink-2);
}

/* choice rows: options (sizes included), service, payment */

.mmm-choices {
    display: grid;
    border: 1px solid var(--mmm-line);
    border-radius: var(--mmm-r-sm);
    overflow: hidden;
}

.mmm-choice {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 10px 14px;
    cursor: pointer;
}

.mmm-choice + .mmm-choice {
    border-top: 1px solid var(--mmm-line);
}

.mmm-choice input {
    flex: none;
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: var(--mmm-primary);
}

.mmm-choice__name {
    flex: 1;
    min-width: 0;
}

.mmm-choice__price {
    color: var(--mmm-ink-2);
    font-size: 15px;
    white-space: nowrap;
}

/* a row only to read (a catalogue): nothing to pick */
.mmm-choice--static {
    min-height: 44px;
    cursor: default;
}

.mmm-choice.is-off {
    opacity: .45;
    cursor: not-allowed;
}

.mmm-choice:has(input:checked) {
    background: color-mix(in srgb, var(--mmm-primary) 8%, transparent);
}

/* steppers */

.mmm-stepper {
    display: inline-flex;
    align-items: center;
    flex: none;
    border-radius: 999px;
    background: var(--mmm-surface-2);
}

.mmm-stepper button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 22px;
    line-height: 1;
}

.mmm-stepper button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.mmm-stepper output {
    min-width: 26px;
    text-align: center;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.mmm-stepper--sm button {
    width: 32px;
    height: 32px;
    font-size: 18px;
}

/* fields */

.mmm-field {
    display: grid;
    gap: 6px;
}

.mmm-field label,
.mmm-field__label {
    font-size: 14px;
    font-weight: 600;
}

.mmm-field small {
    font-weight: 400;
    color: var(--mmm-ink-3);
}

.mmm-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--mmm-line);
    border-radius: var(--mmm-r-sm);
    background: var(--mmm-bg);
    color: var(--mmm-ink);
    font-size: 16px;
}

textarea.mmm-input {
    min-height: 84px;
    resize: vertical;
}

.mmm-input:focus {
    outline: 0;
    border-color: var(--mmm-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mmm-primary) 22%, transparent);
}

/* buttons */

.mmm-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--mmm-primary);
    color: var(--mmm-on-primary);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.mmm-btn:disabled {
    opacity: .6;
    cursor: progress;
}

.mmm-btn--ghost {
    background: var(--mmm-surface-2);
    color: var(--mmm-ink);
}

.mmm-btn.is-busy::after {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: mmm-spin .7s linear infinite;
}

/* the order */

.mmm-lines {
    display: grid;
}

.mmm-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--mmm-line);
}

.mmm-line__name {
    font-weight: 650;
}

.mmm-line__meta {
    grid-column: 1 / -1;
    font-size: 14px;
    color: var(--mmm-ink-2);
}

.mmm-line__total {
    font-weight: 650;
    white-space: nowrap;
}

.mmm-line__ctrl {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mmm-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 18px;
    font-weight: 700;
}

/* the bill's smaller rows: the VAT, the service charge, what was paid */
.mmm-total.mmm-total--minor {
    font-size: 14px;
    font-weight: 500;
    color: var(--mmm-ink-2);
}

/* ------------------------------------------------------------------ a spot's QR: call the staff, the bill (every template) */

.mmm-spotbar {
    position: fixed;
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    z-index: 31;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mmm-spotbar[hidden] {
    display: none;
}

.mmm-spotbar__btn {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--mmm-line);
    border-radius: 50%;
    background: var(--mmm-surface);
    color: var(--mmm-ink);
    box-shadow: var(--mmm-shadow);
}

.mmm-spotbar__btn:disabled {
    opacity: .6;
}

.mmm-spotline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--mmm-r-sm);
    background: var(--mmm-surface-2);
    font-weight: 600;
}

.mmm-pay {
    min-height: 140px;
}

.mmm-done {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 12px 0 4px;
    text-align: center;
}

.mmm-done__check {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--mmm-primary);
    color: var(--mmm-on-primary);
    animation: mmm-pop .4s cubic-bezier(.2, 1.4, .4, 1) both;
}

.mmm-done__number {
    font-family: var(--mmm-heading);
    font-size: 54px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--mmm-primary);
}

.mmm[data-tone="dark"] .mmm-done__number {
    color: var(--mmm-ink);
}

.mmm-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--mmm-surface-2);
    font-weight: 650;
}

.mmm-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mmm-primary);
    animation: mmm-pulse 1.6s ease-in-out infinite;
}

/* ------------------------------------------------------------------ toast */

.mmm-toast {
    position: fixed;
    left: 50%;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    max-width: calc(100% - 32px);
    transform: translateX(-50%);
    pointer-events: none;
}

.mmm-toast__msg {
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--mmm-ink);
    color: var(--mmm-bg);
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
    animation: mmm-rise .25s ease both;
}

.mmm-toast__msg--error {
    background: #b3261e;
    color: #fff;
}

/* ------------------------------------------------------------------ inactivity: "still there?" */

.mmm-idle {
    position: fixed;
    inset: 0;
    z-index: 100;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 16px;
    border: 0;
    background: transparent;
    color: var(--mmm-ink);
    font-family: var(--mmm-sans);
}

.mmm-idle[open] {
    display: grid;
    place-items: center;
}

.mmm-idle::backdrop {
    background: rgba(12, 9, 7, .6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mmm-idle__box {
    display: grid;
    justify-items: center;
    gap: 12px;
    width: min(360px, 100%);
    padding: 28px 24px 24px;
    border-radius: 24px;
    background: var(--mmm-surface);
    box-shadow: var(--mmm-shadow-lg);
    text-align: center;
    animation: mmm-pop .3s cubic-bezier(.2, 1.2, .4, 1) both;
}

.mmm-idle__count {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--mmm-primary);
    color: var(--mmm-on-primary);
    font-size: 32px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.mmm-idle__title {
    font-family: var(--mmm-heading);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.15;
}

.mmm-idle__text {
    color: var(--mmm-ink-2);
}

.mmm-idle .mmm-btn {
    width: 100%;
    margin-top: 4px;
}

/* ------------------------------------------------------------------ motion */

@keyframes mmm-up {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

@keyframes mmm-rise {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

.mmm-toast .mmm-toast__msg {
    animation-name: mmm-rise;
}

@keyframes mmm-pop {
    from { transform: scale(.4); opacity: 0; }
    to { transform: none; opacity: 1; }
}

@keyframes mmm-spin {
    to { transform: rotate(360deg); }
}

@keyframes mmm-pulse {
    50% { opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
    .mmm *,
    .mmm *::before,
    .mmm *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ------------------------------------------------------------------ wider screens */

@media (min-width: 768px) {

    .mmm {
        --mmm-gutter: 28px;
    }

    .mmm-hero {
        padding: 56px 0 36px;
    }

    .mmm-hero--cover {
        padding-top: 220px;
    }

    .mmm-hero--cover .mmm-langs {
        top: -204px;
    }

    .mmm-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .mmm:not(.mmm--tpl-magazine) [data-view="grid"] > .mmm-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mmm-card__media {
        width: 120px;
        height: 120px;
    }

    .mmm:not(.mmm--tpl-magazine) [data-view="list"] > .mmm-list {
        column-gap: 32px;
    }

    .mmm:not(.mmm--tpl-magazine) [data-view="list"] > ul .mmm-card__media {
        width: 64px;
        height: 64px;
    }

    .mmm-section--d0 > .mmm-section__head .mmm-section__title {
        font-size: 32px;
    }

    .mmm-sheet {
        inset: 0;
        margin: auto;
        width: min(580px, calc(100% - 48px));
        max-height: min(860px, calc(100vh - 48px));
        border-radius: 24px;
    }

    .mmm-sheet[open] {
        animation-name: mmm-rise;
    }

    .mmm-filters__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mmm-filters__foot {
        grid-column: 1 / -1;
    }

    .mmm-toast {
        bottom: 100px;
    }
}

@media (min-width: 1100px) {

    .mmm:not(.mmm--tpl-magazine) [data-view="grid"] > .mmm-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ================================================================== the templates */

/* ------------------------------------------------------------------ the view switch (each category's, every template) */

/* in the category's header, under its title: only where it allows more than one view */
.mmm-views.mmm-section__views {
    margin-top: 10px;
    height: 38px;
}

.mmm-views.mmm-section__views[hidden] {
    display: none;
}

.mmm-section__views .mmm-views__btn {
    width: 32px;
}

.mmm-views {
    flex: none;
    display: inline-flex;
    gap: 2px;
    height: 44px;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid var(--mmm-line);
    background: var(--mmm-surface);
}

.mmm-views__btn {
    display: grid;
    place-items: center;
    width: 36px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--mmm-ink-2);
    transition: background-color .15s, color .15s;
}

.mmm-views__btn[aria-pressed="true"] {
    background: var(--mmm-ink);
    color: var(--mmm-bg);
}

@media (max-width: 420px) {
    /* a phone keeps the search wide: the filters button is its icon and its count */
    .mmm-filterbtn > span:not(.mmm-badge) {
        display: none;
    }

    .mmm-filterbtn {
        padding: 0 12px;
    }
}

/* a category's picture, under its title in every template; a subcategory's, a lower strip */
.mmm-section__media {
    margin: 12px 0 20px;
    border-radius: var(--mmm-r);
    overflow: hidden;
    aspect-ratio: 16 / 7;
    background: var(--mmm-surface-2);
}

.mmm-section--d1 > .mmm-section__media,
.mmm-section--d2 > .mmm-section__media {
    margin: 8px 0 14px;
    aspect-ratio: 16 / 4;
}

.mmm-section__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* a category's background set to be shown whole (category.background_fit contain): every place it
   is drawn - the section's picture, a showcase tile, a Brasa panel's header - the rest of its place
   in the place's own colour */
.mmm .mmm-fit--contain img {
    object-fit: contain;
}

/* ------------------------------------------------------------------ the light / dark switch (every template) */

.mmm-tone {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--mmm-line);
    border-radius: 999px;
    background: var(--mmm-surface);
    color: var(--mmm-ink);
}

.mmm-tone[hidden] {
    display: none;
}

/* the icon of the tone it switches TO */
.mmm[data-tone="light"] .mmm-tone__sun,
.mmm[data-tone="dark"] .mmm-tone__moon {
    display: none;
}

/* ------------------------------------------------------------------ in the cards and the sheet: discount, unit, attributes */

/* the discount the price carries: the customer's third colour */
.mmm-tag.mmm-tag--deal {
    background: var(--mmm-highlight);
    color: var(--mmm-on-highlight);
}

.mmm-price__unit {
    font-size: .8em;
    color: var(--mmm-ink-3);
}

.mmm-tag__key {
    font-weight: 500;
    color: var(--mmm-ink-2);
}

.mmm-lead {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* the booking button in a header that had none (sidebar's top bar, magazine's cover) */
.mmm-top__book,
.mmm-cover__book .mmm-book {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--mmm-primary);
    color: var(--mmm-on-primary);
    font-weight: 700;
    text-decoration: none;
}

/* a wide (horizontal) logo in a top bar keeps its shape */
.mmm-top__logo.mmm-top__logo--wide {
    width: auto;
    max-width: 160px;
    border-radius: 0;
    object-fit: contain;
    background: transparent;
}

/* ------------------------------------------------------------------ the sheet: related products */

.mmm-related__list {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 2px 0 6px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
}

.mmm-related__list > li {
    flex: 0 0 132px;
    scroll-snap-align: start;
}

.mmm-related__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.mmm-related__item img,
.mmm-related__noimg {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--mmm-r-sm);
    object-fit: cover;
    background: var(--mmm-surface-2);
}

.mmm-related__noimg {
    display: grid;
    place-items: center;
    color: var(--mmm-ink-3);
}

.mmm-related__name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mmm-related__price {
    font-size: 13px;
    color: var(--mmm-ink-2);
}

/* ------------------------------------------------------------------ the way to the booking page (views/pages/booking.php) */

.mmm-hero__book {
    margin: 14px 0 0;
}

.mmm-hero__book .mmm-book {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--mmm-primary);
    color: var(--mmm-on-primary);
    font-weight: 700;
    text-decoration: none;
}

.mmm-foot .mmm-book {
    display: inline-flex;
    flex: none;
    min-height: 44px;
}


/* ------------------------------------------------------------------ finish: classic, sidebar, magazine, showcase */

/*
 * The four templates beside Brasa, brought up to it: the customer's wordmark whole at the head of the
 * page (views/pages/menu.php $pmWide), quieter cards with a hairline edge, the price in the brand's
 * colour on a dark page (as Brasa sets it), tighter headings.
 */
.mmm-hero__logo.mmm-hero__logo--wide {
    width: auto;
    height: auto;
    max-width: min(300px, 76%);
    max-height: 72px;
    border-radius: 0;
    object-fit: contain;
    background: none;
    box-shadow: none;
}

.mmm-hero--cover .mmm-hero__logo.mmm-hero__logo--wide {
    box-shadow: none;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45));
}

.mmm-hero {
    padding-top: 52px;
}

/* the language switch sits in the hero's top corner: a wordmark starts below it */
.mmm-hero__logo.mmm-hero__logo--wide {
    margin-top: 22px;
}

.mmm-section__title {
    letter-spacing: -.02em;
}

.mmm-section--d0 > .mmm-section__head .mmm-section__title {
    font-size: 28px;
}

.mmm-card {
    box-shadow: var(--mmm-shadow), inset 0 0 0 1px var(--mmm-line);
}

.mmm-card__name {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.005em;
}

.mmm-card__desc {
    font-size: 13.5px;
    line-height: 1.45;
}

.mmm-price strong {
    font-weight: 600;
    color: var(--mmm-price);
}

.mmm-tag {
    font-weight: 500;
}

.mmm-card__add {
    width: 38px;
    height: 38px;
}
