/*
 * Scantick menu themes: shared structure.
 * Each theme file (fresh.css, snap.css, ...) sets the --mt-* tokens on :root and adds its own touches.
 * Brand colors (--mt-primary, --mt-accent, ...) are printed inline by menu-themes/show.blade.php.
 */
:root {
    --mt-bg: #ffffff;
    --mt-surface: #ffffff;
    --mt-text: #16181d;
    --mt-muted: #6b7079;
    --mt-line: rgba(0, 0, 0, .08);
    --mt-line-strong: rgba(0, 0, 0, .25);
    --mt-chip-bg: rgba(0, 0, 0, .05);
    --mt-font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mt-font-head: var(--mt-font);
    --mt-radius: 14px;
    --mt-nav-bg: rgba(255, 255, 255, .94);
    --mt-max: 760px;
}

/* Page chrome from layouts.front that menus don't use */
#navbar-main, .header-global, .navbar-main, .wrapper > .footer { display: none !important; }
html body.site-text-override {
    background: var(--mt-bg) !important;
    color: var(--mt-text) !important;
    font-family: var(--mt-font);
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.wrapper { background: var(--mt-bg); }

.mt {
    color: var(--mt-text);
    font-family: var(--mt-font);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 110px;
}
/* Beat the site-wide gray text override (byadmin/global-text-override.css) inside menus */
html body .mt p, html body .mt li, html body .mt small, html body .mt label, html body .mt .description { color: inherit !important; }
.mt h1, .mt h2, .mt h3 { color: inherit; font-family: var(--mt-font-head); margin: 0; }
.mt p { margin: 0; }
.mt a, .mt a:hover { color: inherit; text-decoration: none; }
.mt svg { fill: currentColor; }
.mt-wrap, .mt-flash { max-width: var(--mt-max); margin: 0 auto; padding: 0 16px; }

/* ---------- Hero (shared bits) ---------- */
.mt-hero__name { font-size: clamp(1.6rem, 6.4vw, 2.5rem); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
html body .mt .mt-hero__desc { margin-top: 6px; color: var(--mt-muted) !important; font-size: .95rem; line-height: 1.45; }

.mt-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mt-chip {
    display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
    border: 0; border-radius: 999px; background: var(--mt-chip-bg); color: var(--mt-text);
    font: inherit; font-size: .8rem; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.mt-chip:hover, .mt-chip:focus { color: var(--mt-text); outline: none; }
.mt-chip svg { width: 15px; height: 15px; }
.mt-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #22a565; box-shadow: 0 0 0 3px rgba(34, 165, 101, .2); }
.mt-chip--closed .mt-dot { background: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, .2); }

.mt-social .row, .mt-social .col-md-12 { display: block; margin: 0; padding: 0; width: auto; max-width: none; flex: none; }
.mt-social ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; }
.mt-social li { margin: 0 !important; }
.mt-social a { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--mt-chip-bg); color: var(--mt-text) !important; }
.mt-social i, .mt-social svg { font-size: 16px !important; width: 16px; height: 16px; text-align: center; }

.mt-langs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mt-langs a { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--mt-line); font-size: .78rem; font-weight: 700; }
.mt-langs a.is-active { background: var(--mt-primary); color: var(--mt-on-primary); border-color: transparent; }

/* Cover hero */
.mt-hero--cover .mt-hero__cover { position: relative; height: 190px; overflow: hidden; background: linear-gradient(135deg, var(--mt-primary), var(--mt-secondary)); }
.mt-hero--cover .mt-hero__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-hero--cover .mt-hero__body { position: relative; max-width: var(--mt-max); margin: 0 auto; padding: 0 16px; }
.mt-hero--cover .mt-hero__logo {
    position: relative; display: block; width: 84px; height: 84px; margin-top: -42px;
    border-radius: 22px; border: 4px solid var(--mt-bg); background: #fff; object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.mt-hero--cover.is-plain .mt-hero__cover { height: 120px; }
.mt-hero--cover .mt-hero__text { margin-top: 12px; }
@media (min-width: 768px) {
    .mt-hero--cover .mt-hero__cover { height: 280px; }
}

/* ---------- Sticky category bar + search ---------- */
.mt-nav {
    position: sticky; top: 0; z-index: 60; margin-top: 20px;
    background: var(--mt-nav-bg); border-bottom: 1px solid var(--mt-line);
    -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.mt-nav__inner { max-width: var(--mt-max); margin: 0 auto; display: flex; align-items: center; gap: 4px; padding: 0 6px 0 16px; }
.mt-nav__tabs { flex: 1; min-width: 0; display: flex; gap: 6px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.mt-nav__tabs::-webkit-scrollbar { display: none; }
.mt-tab {
    flex: none; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
    font-size: .88rem; font-weight: 600; color: var(--mt-muted); transition: background .2s, color .2s;
}
.mt .mt-tab:hover { color: var(--mt-text); }
.mt .mt-tab.is-active { background: var(--mt-primary); color: var(--mt-on-primary); }
.mt-nav__search { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: var(--mt-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mt-nav__search svg { width: 20px; height: 20px; }
.mt-search { max-width: var(--mt-max); margin: 0 auto; padding: 0 16px 10px; display: flex; gap: 8px; }
.mt-search[hidden] { display: none; }
.mt-search input {
    flex: 1; height: 44px; padding: 0 14px; border-radius: 12px; outline: none;
    border: 1px solid var(--mt-line); background: var(--mt-surface); color: var(--mt-text);
    font: inherit; font-size: 16px;
}
.mt-search input:focus { border-color: var(--mt-primary); }
.mt-search button { width: 44px; border: 0; border-radius: 12px; background: var(--mt-chip-bg); color: var(--mt-text); font-size: 24px; line-height: 1; cursor: pointer; }

/* ---------- Sections ---------- */
.mt-section { padding-top: 28px; scroll-margin-top: 64px; }
.mt-section[hidden] { display: none; }
.mt-section__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.mt-section__title { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.mt-section__count { font-size: .8rem; font-weight: 600; color: var(--mt-muted); }

/* ---------- Items (shared) ---------- */
.mt-item { position: relative; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.mt-item[hidden] { display: none !important; }
.mt-item:focus-visible { box-shadow: 0 0 0 3px rgba(var(--mt-primary-rgb), .35); border-radius: var(--mt-radius); }
.mt-item.is-out { cursor: default; opacity: .5; }
.mt-item__name { font-size: 1rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
html body .mt .mt-item__desc {
    margin-top: 4px; color: var(--mt-muted) !important; font-size: .86rem; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mt-price { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-weight: 700; color: var(--mt-accent); white-space: nowrap; }
.mt-price__old { color: var(--mt-muted); font-weight: 500; font-size: .85em; }
.mt-allergens { display: inline-flex; gap: 4px; }
.mt-allergens img { width: 20px; height: 20px; border-radius: 6px; background: #fff; padding: 2px; }
.mt-flag { font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #e5484d; }
.mt-add {
    width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--mt-primary); color: var(--mt-on-primary); font-size: 22px; font-weight: 500; line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
.mt-item__media picture, .mt-tile__media picture, .mt-card__media picture { display: block; width: 100%; height: 100%; }
.mt-item__media img, .mt-tile__media img, .mt-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Row: text left, photo right */
.mt-items--row { display: flex; flex-direction: column; }
.mt-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--mt-line); }
.mt-row .mt-item__body { flex: 1; min-width: 0; }
.mt-row .mt-item__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.mt-row .mt-item__media { position: relative; flex: none; width: 112px; height: 112px; }
.mt-row .mt-item__media picture { border-radius: var(--mt-radius); overflow: hidden; background: var(--mt-chip-bg); }
.mt-row .mt-add { position: absolute; right: -6px; bottom: -6px; }
.mt-row .mt-add--inline { position: static; flex: none; align-self: center; }

/* Tile: photo grid */
.mt-items--tile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 640px) { .mt-items--tile { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .mt-items--tile { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mt-tile__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--mt-radius); background: rgba(var(--mt-primary-rgb), .1); }
.mt-tile__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 800; color: rgba(var(--mt-primary-rgb), .45); }
.mt-tile .mt-add { position: absolute; right: 8px; bottom: 8px; }
.mt-tile__badge { position: absolute; left: 8px; top: 8px; padding: 4px 8px; border-radius: 999px; background: var(--mt-secondary); color: var(--mt-on-secondary); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.mt-tile .mt-flag { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: #fff; }
.mt-tile .mt-item__name { margin-top: 8px; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html body .mt .mt-tile .mt-item__desc { -webkit-line-clamp: 1; font-size: .8rem; }
.mt-tile .mt-price { margin-top: 4px; }

/* Card: big photo cards */
.mt-items--card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 640px) { .mt-items--card { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .mt-items--card { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mt-card { display: flex; flex-direction: column; overflow: hidden; background: var(--mt-surface); border-radius: var(--mt-radius); }
.mt-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.mt-card__sticker { position: absolute; right: 10px; top: 10px; }
.mt-card__body { flex: 1; display: flex; flex-direction: column; padding: 14px; }
.mt-card__foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; }
.mt-card__add { margin-left: auto; }

/* Classic: printed menu lines */
.mt-items--classic { display: flex; flex-direction: column; }
.mt-classic { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; }
.mt-classic .mt-item__media { flex: none; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: var(--mt-chip-bg); }
.mt-classic .mt-item__body { flex: 1; min-width: 0; }
.mt-classic__line { display: flex; align-items: baseline; gap: 8px; }
.mt-classic__line .mt-item__name { flex: 0 1 auto; min-width: 0; }
.mt-classic__dots { flex: 1 1 auto; min-width: 18px; border-bottom: 2px dotted var(--mt-line-strong); transform: translateY(-4px); }
.mt-classic .mt-price { flex: none; }
html body .mt .mt-classic .mt-item__desc { -webkit-line-clamp: 3; }
.mt-classic .mt-allergens { margin-top: 6px; }

/* ---------- Footer bits ---------- */
html body .mt .mt-empty { padding: 40px 0; text-align: center; color: var(--mt-muted) !important; }
.mt-impressum { margin-top: 32px; font-size: .85rem; }
html body .mt .mt-powered { margin-top: 44px; text-align: center; font-size: .78rem; color: var(--mt-muted) !important; }

/* ---------- Floating WhatsApp + cart ---------- */
.mt-fab { position: fixed; right: 16px; bottom: 18px; z-index: 120; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.mt-fab__btn {
    position: relative; height: 56px; min-width: 56px; padding: 0 20px; gap: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 700;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22); transition: transform .15s ease;
}
.mt-fab__btn:hover { transform: translateY(-2px); }
.mt-fab__btn svg { width: 24px; height: 24px; fill: currentColor; }
.mt-fab__btn--wa { width: 56px; padding: 0; background: #25d366; color: #fff; }
.mt-fab__btn--wa:hover { color: #fff; }
.mt-fab__btn--cart { background: var(--mt-primary); color: var(--mt-on-primary); }
.mt-fab__badge {
    position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px;
    border-radius: 999px; background: #fff; color: #111; font-size: 12px; font-weight: 800;
    align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}

/* ---------- Product modal ---------- */
#productModal .modal-content { border: 0; border-radius: 22px; overflow: hidden; background: var(--mt-surface); color: var(--mt-text); font-family: var(--mt-font); }
#productModal .modal-header { border: 0; padding: 16px 20px 8px; background: transparent; }
#productModal .modal-title { color: var(--mt-text); font-family: var(--mt-font-head); font-weight: 800; font-size: 1.25rem; }
#productModal .modal-header .close { color: var(--mt-text); opacity: .7; text-shadow: none; }
#productModal .modal-body .card, #productModal .card-body { background: transparent; border: 0; box-shadow: none; }
#productModal #modalImgPart { padding: 0 16px; }
#productModal #modalImg { width: 100%; max-width: none; height: auto; max-height: 300px; object-fit: cover; border-radius: 16px; }
#productModal label, #productModal p, #productModal small, #productModal .form-control-label, #productModal .text-muted { color: var(--mt-text) !important; }
#productModal #modalDescription { color: var(--mt-muted) !important; }
#productModal #modalPrice, #productModal .new-price { display: inline-block; margin-bottom: 8px; color: var(--mt-accent) !important; font-size: 1.5rem; font-weight: 800; }
#productModal .form-control { background: var(--mt-bg); border: 1px solid var(--mt-line); border-radius: 12px; color: var(--mt-text); box-shadow: none; }
#productModal .form-control:focus { border-color: var(--mt-primary); }
#productModal .btn-primary, #productModal #addToCart1 .btn, #productModal .quantity-btn .btn {
    background: var(--mt-primary) !important; border-color: var(--mt-primary) !important; color: var(--mt-on-primary) !important;
    border-radius: 12px; box-shadow: none;
}
#productModal .custom-control-input:checked ~ .custom-control-label::before { background-color: var(--mt-primary); border-color: var(--mt-primary); }
#modal-restaurant-info .modal-content { border-radius: 22px; overflow: hidden; }

/* ---------- Cart drawer ---------- */
#cartSideNav { background: var(--mt-surface) !important; color: var(--mt-text); font-family: var(--mt-font); }
#cartSideNav .offcanvas-menu-inner, #cartSideNav .minicart-content, #cartSideNav .searchable-container { background: transparent; }
#cartSideNav .closebtn, #cartSideNav h4, #cartSideNav h6, #cartSideNav p, #cartSideNav span, #cartSideNav strong, #cartSideNav small { color: var(--mt-text) !important; }
#cartSideNav .text-muted, #cartSideNav .text-muted * { color: var(--mt-muted) !important; }
#cartSideNav .info-block { padding: 12px 0; border-bottom: 1px solid var(--mt-line); }
#cartSideNav .square-box { border-radius: 14px; overflow: hidden; }
#cartSideNav .productImage { border-radius: 14px; object-fit: cover; }
#cartSideNav .btn-cart-radius { width: 38px; height: 38px; border-radius: 50% !important; border: 1px solid var(--mt-line) !important; background: transparent !important; color: var(--mt-text) !important; }
#cartSideNav #totalPrices .card { background: var(--mt-bg); border: 1px solid var(--mt-line); border-radius: 16px; box-shadow: none; }
#cartSideNav #totalPrices .card-body { background: transparent; }
#cartSideNav .btn-primary, #cartSideNav .btn-primary * { color: var(--mt-on-primary) !important; }
#cartSideNav .btn-primary { width: 100%; background: var(--mt-primary) !important; border-color: var(--mt-primary) !important; border-radius: 14px; font-weight: 700; box-shadow: none; }
