/* Shared menu controls, cards and image viewers. Text inherits the local Speda font. */
.qm-public {
    --qm-ink:#292822; --qm-muted:#7c7970; --qm-accent:#d95b28; --qm-accent-dark:#ae4017;
    --qm-line:#e8e3da; --qm-paper:#fff; --qm-soft:#f6f2eb; --qm-warm:#fff0e4;
    margin:0; color:var(--qm-ink); background:#fcfaf6; font-size:14px; line-height:1.7;
}
.qm-public *, .qm-public *::before, .qm-public *::after { box-sizing:border-box; }
.qm-public [hidden] { display:none !important; }
.qm-public svg { display:block; width:22px; height:22px; flex-shrink:0; }
.qm-public a { color:inherit; }
.qm-public button, .qm-public input, .qm-public select { font:inherit; }
.qm-public button, .qm-public .qm-button {
    appearance:none; display:inline-flex; align-items:center; justify-content:center; gap:10px;
    min-height:44px; padding:10px 18px; border:1px solid var(--qm-line); border-radius:12px;
    background:var(--qm-paper); color:var(--qm-ink); line-height:1.5; text-decoration:none; cursor:pointer;
    transition:background .18s, border-color .18s, box-shadow .18s;
}
.qm-public button:hover, .qm-public .qm-button:hover { background:var(--qm-soft); border-color:#cbc3b7; }
.qm-public button:disabled { cursor:default; opacity:.4; }
.qm-public .qm-primary { background:var(--qm-accent); color:#fff; border-color:var(--qm-accent); }
.qm-public .qm-primary:hover { background:var(--qm-accent-dark); border-color:var(--qm-accent-dark); }
.qm-public :focus-visible { outline:3px solid #dd7b42; outline-offset:4px; }
.qm-public .qm-eyebrow { display:flex; align-items:center; gap:8px; margin:0 0 8px; color:var(--qm-accent-dark); font-size:12px; font-weight:700; }
.qm-browse { scroll-margin-top:22px; }
.qm-browse-heading { display:flex; align-items:center; justify-content:space-between; gap:28px; margin-bottom:26px; }
.qm-browse-heading h2 { margin:0; font-size:28px; line-height:1.5; }
.qm-search { display:flex; align-items:center; gap:6px; width:440px; max-width:100%; padding:6px; background:#fff; border:1px solid var(--qm-line); border-radius:15px; }
.qm-search:focus-within { border-color:var(--qm-accent); box-shadow:0 0 0 3px #d95b2812; }
.qm-search-icon { color:#a19a8d; padding-inline-start:10px; }
.qm-search input[type=search] { flex:1; min-width:0; width:100%; min-height:44px; padding:8px; border:0; outline:0; background:transparent; color:var(--qm-ink); font-size:13px; }
.qm-search input::placeholder { color:#908b80; }
.qm-search button { padding-inline:18px; }
.qm-breadcrumbs { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0 0 18px; color:var(--qm-muted); font-size:12px; }
.qm-breadcrumbs a { display:inline-flex; align-items:center; gap:7px; min-height:36px; text-decoration:none; }
.qm-breadcrumbs a:hover, .qm-breadcrumbs [aria-current] { color:var(--qm-accent-dark); }
.qm-breadcrumbs svg { width:17px; height:17px; }
.qm-kitchens { display:flex; flex-wrap:wrap; gap:12px; padding:3px 3px 8px; }
.qm-kitchen { display:flex; align-items:center; gap:14px; flex:0 1 270px; min-width:0; padding:18px; border:1px solid var(--qm-line); border-radius:18px; background:var(--qm-paper); text-decoration:none; transition:background .18s,border-color .18s,box-shadow .18s; }
.qm-kitchen:hover { border-color:var(--qm-accent); box-shadow:0 5px 18px #b54d1f0d; }
.qm-kitchen-icon { display:grid; place-items:center; flex-shrink:0; width:48px; height:48px; border-radius:15px; color:var(--qm-accent-dark); background:var(--qm-warm); }
.qm-kitchen-icon svg { width:27px; height:27px; }
.qm-kitchen-copy { display:flex; flex:1; min-width:0; flex-direction:column; gap:5px; }
.qm-kitchen-copy strong { font-size:15px; overflow-wrap:anywhere; }
.qm-kitchen-copy small { color:var(--qm-muted); font-size:10px; }
.qm-kitchen-arrow { color:var(--qm-muted); }
.qm-kitchen-arrow svg { width:18px; height:18px; }
[dir=rtl] .qm-kitchen-arrow svg { transform:scaleX(-1); }
.qm-kitchen.selected { background:var(--qm-accent); border-color:var(--qm-accent); color:#fff; box-shadow:0 6px 18px #b54d1f22; }
.qm-kitchen.selected .qm-kitchen-icon { background:#ffffff26; color:#fff; }
.qm-kitchen.selected :is(small,.qm-kitchen-arrow) { color:#fff; }
.qm-category-heading { display:flex; flex-wrap:wrap; align-items:center; gap:12px; border-top:1px solid var(--qm-line); margin:22px 3px 14px; padding-top:20px; font-size:12px; color:var(--qm-muted); }
.qm-category-heading strong { color:var(--qm-ink); }
.qm-browse-prompt { padding:28px 20px 36px; text-align:center; border:1px dashed var(--qm-line); border-radius:20px; background:var(--qm-soft); color:var(--qm-muted); }
.qm-browse-prompt .qm-empty-icon { margin-bottom:12px; }
.qm-browse-prompt p { margin:0; font-size:13px; }
.qm-categories { display:flex; gap:12px; overflow-x:auto; padding:3px 3px 18px; scrollbar-width:thin; scrollbar-color:#d8cec1 transparent; scroll-snap-type:x proximity; }
.qm-category { display:flex; align-items:center; flex-shrink:0; gap:12px; padding:10px 16px 10px 10px; border:1px solid var(--qm-line); border-radius:17px; background:#fff; text-decoration:none; scroll-snap-align:start; font-size:13px; font-weight:600; }
[dir=rtl] .qm-category { padding:10px 10px 10px 16px; }
.qm-category:hover { border-color:#d9a180; background:#fffaf5; }
.qm-category.selected { border-color:var(--qm-accent); background:var(--qm-warm); color:#a8431e; box-shadow:0 3px 12px #b54d1f08; }
.qm-category-image { width:44px; height:44px; border-radius:12px; object-fit:cover; flex-shrink:0; }
.qm-category-all, .qm-category-letter { display:grid; place-items:center; background:var(--qm-soft); color:#8e7d62; font-size:23px; }
.selected .qm-category-all, .selected .qm-category-letter { background:#fff; color:var(--qm-accent); }
.qm-category-count { display:grid; place-items:center; min-width:24px; height:24px; padding:0 5px; border-radius:8px; background:#f3f1ec; color:#8a8378; font-size:10px; font-weight:400; }
.selected .qm-category-count { background:#faddca; color:#a8431e; }
.qm-feedback { display:flex; align-items:center; gap:12px; min-height:32px; color:var(--qm-muted); font-size:12px; }
.qm-feedback.is-error { color:#a43420; }
.qm-feedback.is-announcement #qm-load-message { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.qm-feedback #qm-retry { min-height:32px; padding:4px 12px; font-size:12px; }
.qm-results { transition:opacity .15s; }
.qm-results[aria-busy=true] { opacity:.45; pointer-events:none; }
.qm-results-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:3px 0 22px; }
.qm-results-heading h3 { margin:0; font-size:21px; font-weight:600; }
.qm-results-heading>span { color:var(--qm-muted); font-size:12px; white-space:nowrap; }
.qm-dishes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.qm-public .qm-dish { display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:0; min-width:0; padding:0; overflow:hidden; text-align:start; border:1px solid var(--qm-line); border-radius:20px; background:#fff; transition:transform .2s, box-shadow .2s, border-color .2s; }
.qm-public .qm-dish:hover { transform:translateY(-4px); border-color:#dfc5ae; background:#fff; box-shadow:0 14px 35px #413a2910; }
.qm-dish-media { position:relative; width:100%; aspect-ratio:1.55; overflow:hidden; background:#f3eee4; }
.qm-dish-media>img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s; }
.qm-dish:hover .qm-dish-media>img { transform:scale(1.045); }
.qm-dish-placeholder { display:grid; place-items:center; width:100%; height:100%; min-height:140px; color:#bcac91; background:radial-gradient(circle at 30% 20%,#fff9ec,transparent 70%),#eee8dc; }
.qm-dish-placeholder svg { width:68px; height:68px; stroke-width:1; }
.qm-featured { position:absolute; top:14px; inset-inline-start:14px; padding:5px 11px; border-radius:7px; color:#614020; background:#fff6e7f5; font-size:10px; font-weight:600; box-shadow:0 2px 6px #00000008; }
.qm-image-hint { position:absolute; inset-inline-end:12px; bottom:12px; display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:#ffffffeb; color:#514b40; opacity:0; transition:opacity .2s; }
.qm-image-hint svg { width:16px; height:16px; }
.qm-dish:hover .qm-image-hint, .qm-dish:focus-visible .qm-image-hint { opacity:1; }
.qm-dish-body { display:flex; flex-direction:column; flex:1; padding:20px; }
.qm-dish h2 { margin:0 0 8px; font-size:18px; line-height:1.6; overflow-wrap:anywhere; }
.qm-dish p { margin:0 0 22px; color:var(--qm-muted); font-size:12px; line-height:1.9; min-height:44px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.qm-dish-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:auto; }
.qm-price { color:var(--qm-accent-dark); font-size:22px; font-weight:700; }
.qm-price small { color:#8f8374; font-size:10px; font-weight:400; }
.qm-dish-arrow { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:#faf2e9; color:#c57848; }
.qm-dish-arrow svg { width:18px; height:18px; }
[dir=rtl] .qm-dish-arrow svg, [dir=rtl] .qm-explore svg { transform:scaleX(-1); }
.qm-pagination { display:flex; justify-content:center; align-items:center; gap:24px; margin:38px 0 12px; font-size:13px; color:var(--qm-muted); }
.qm-empty { grid-column:1/-1; padding:60px 24px; text-align:center; border:1px dashed #ded4c4; border-radius:20px; background:#fffdf9; color:var(--qm-muted); }
.qm-empty-icon { display:grid; place-items:center; width:62px; height:62px; margin:0 auto 20px; color:#b08b62; background:#f5ecdf; border-radius:20px; }
.qm-empty-icon svg { width:28px; height:28px; }
.qm-empty p { margin:0 0 24px; }
.qm-unavailable { text-align:center; padding:90px 20px; }
.qm-unavailable p { color:var(--qm-muted); }
.qm-public dialog::backdrop { background:#211c17ba; backdrop-filter:blur(6px); }
.qm-public:has(dialog[open]) { overflow:hidden; }
.qm-dialog { border:0; padding:0; border-radius:24px; width:min(880px,calc(100vw - 32px)); max-height:90vh; max-height:90dvh; overflow:auto; background:#fffdf9; color:var(--qm-ink); box-shadow:0 28px 120px #21180955; }
.qm-detail-layout { display:grid; grid-template-columns:1.05fr 1fr; min-height:390px; }
.qm-dialog-close { position:absolute; z-index:2; top:14px; inset-inline-end:14px; margin:0; }
.qm-public .qm-dialog-close button { width:40px; min-height:40px; padding:0; border:1px solid #ffffff75; border-radius:50%; background:#fff; box-shadow:0 3px 14px #30211118; }
.qm-dialog-close svg { width:19px; height:19px; }
.qm-detail-media { min-width:0; background:#f1ebe1; display:flex; }
.qm-public #qm-photo-trigger { position:relative; display:block; width:100%; min-height:300px; padding:0; border:0; border-radius:0; background:transparent; }
#qm-detail-image { display:block; width:100%; height:100%; max-height:560px; object-fit:contain; }
.qm-zoom-hint { position:absolute; bottom:18px; inset-inline-start:50%; transform:translateX(-50%); display:flex; align-items:center; justify-content:center; gap:8px; white-space:nowrap; padding:7px 12px; border-radius:20px; background:#fffdf7ed; color:#695845; font-size:11px; box-shadow:0 2px 12px #30211112; }
[dir=rtl] .qm-zoom-hint { transform:translateX(50%); }
.qm-zoom-hint svg { width:16px; height:16px; }
.qm-detail-body { display:flex; flex-direction:column; padding:58px 30px 26px; min-width:0; }
.qm-detail-body h2 { margin:0 0 12px; line-height:1.5; font-size:27px; overflow-wrap:anywhere; }
#qm-detail-description { margin:0 0 24px; color:var(--qm-muted); font-size:14px; line-height:1.9; white-space:pre-wrap; overflow-wrap:anywhere; }
.qm-detail-body .qm-price { font-size:28px; }
.qm-detail-note { margin:22px 0 24px; padding-top:20px; border-top:1px solid var(--qm-line); color:var(--qm-muted); font-size:11px; }
.qm-detail-navigation { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; }
.qm-detail-navigation button { min-height:40px; padding:8px 13px; font-size:12px; }
#qm-detail-position { color:var(--qm-muted); font-size:11px; white-space:nowrap; }
.qm-photo-dialog { width:96vw; max-width:1280px; height:92vh; height:92dvh; max-height:92dvh; margin:auto; padding:52px 12px 12px; border:0; border-radius:18px; background:#191713; overflow:hidden; }
#qm-photo-image { display:block; width:100%; height:100%; object-fit:contain; }
@media(max-width:1000px) {
    .qm-dishes { gap:18px; }
    .qm-dish-body { padding:16px; }
    .qm-dish h2 { font-size:16px; }
    .qm-price { font-size:20px; }
}
@media(max-width:760px) {
    .qm-kitchens { flex-wrap:nowrap; overflow-x:auto; padding-bottom:14px; scroll-snap-type:x proximity; scrollbar-width:thin; scrollbar-color:var(--qm-line) transparent; }
    .qm-kitchen { flex:0 0 220px; padding:14px; scroll-snap-align:start; }
    .qm-browse-heading { flex-direction:column; align-items:stretch; gap:18px; margin-bottom:18px; }
    .qm-browse-heading h2 { font-size:25px; }
    .qm-search { width:100%; }
    .qm-dishes { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
    .qm-category { gap:9px; font-size:12px; padding:8px 12px 8px 8px; }
    [dir=rtl] .qm-category { padding:8px 8px 8px 12px; }
    .qm-category-image { width:36px; height:36px; border-radius:10px; }
    .qm-results-heading h3 { font-size:18px; }
    .qm-detail-layout { grid-template-columns:1fr; }
    .qm-detail-media { height:280px; }
    .qm-public #qm-photo-trigger { min-height:0; }
    .qm-detail-body { padding:26px 24px; }
    .qm-detail-body h2 { font-size:24px; }
    .qm-dialog { width:min(500px,calc(100vw - 24px)); border-radius:20px; }
}
@media(max-width:480px) {
    .qm-dishes { gap:12px; }
    .qm-dish-media { aspect-ratio:1.25; }
    .qm-public .qm-dish { border-radius:15px; }
    .qm-dish-body { padding:12px; }
    .qm-dish h2 { font-size:14px; }
    .qm-dish p { font-size:10px; min-height:38px; margin-bottom:16px; }
    .qm-price { font-size:17px; }
    .qm-price small { font-size:9px; }
    .qm-dish-arrow { width:25px; height:25px; }
    .qm-dish-arrow svg { width:15px; height:15px; }
    .qm-featured { top:8px; inset-inline-start:8px; padding:3px 7px; font-size:8px; }
    .qm-image-hint { display:none; }
    .qm-detail-media { height:230px; }
}
@media(prefers-reduced-motion:reduce) {
    .qm-public *, .qm-public *::before, .qm-public *::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
    .qm-public .qm-dish:hover, .qm-dish:hover .qm-dish-media>img { transform:none; }
}
