/* ------------------------------------------------------------------
   Design tokens: one set of variables per template (data-tpl on <body>)
   ------------------------------------------------------------------ */
body[data-tpl="noir-michelin"] {
  /* deep obsidian, chiaroscuro contrast, old-gold accents */
  --bg: #09090B; --surface: #111113; --sheet: #121214; --text: #EEE9DF; --muted: #9B958A;
  --line: rgba(212,175,55,.28); --soft: rgba(255,255,255,.045);
  --accent: #D4AF37; --on-accent: #09090B; --hl: #D4AF37; --danger: #E26D5C;
  --display: 'Cormorant Garamond', Georgia, serif; --body: 'Manrope', system-ui, sans-serif;
  --radius: 3px; --radius-lg: 6px; --story-radius: 999px; --display-weight: 500; --display-case: none; --display-track: .02em;
}
body[data-tpl="aura-glass"] {
  --bg: #0C0B24; --surface: rgba(255,255,255,.09); --sheet: rgba(24,22,60,.86); --text: #FFFFFF; --muted: rgba(255,255,255,.7);
  --line: rgba(255,255,255,.22); --soft: rgba(255,255,255,.08);
  --accent: #7DF9E1; --on-accent: #06121A; --hl: #7DF9E1; --danger: #FF8BA7;
  --display: 'Manrope', system-ui, sans-serif; --body: 'Manrope', system-ui, sans-serif;
  --radius: 22px; --radius-lg: 30px; --story-radius: 999px; --display-weight: 700; --display-case: none; --display-track: -.02em;
}
body[data-tpl="nordic-atelier"] {
  /* Kinfolk daylight: warm stone & linen, terracotta and olive, clean sans-serif */
  /* WCAG AA: every text colour >= 4.5:1 on the linen background (terracotta / olive deepened a shade) */
  --bg: #F6F4F0; --surface: #FFFFFF; --sheet: #FBFAF7; --text: #2A2926; --muted: #6B655C;
  --line: #E3DDD2; --soft: rgba(42,41,38,.045);
  --accent: #9A4F36; --on-accent: #FFFFFF; --sage: #5E6E4F; --hl: #9A4F36; --danger: #A53A2A;
  --display: 'Manrope', system-ui, sans-serif; --body: 'Manrope', system-ui, sans-serif;
  --radius: 6px; --radius-lg: 10px; --story-radius: 999px 999px 8px 8px; --display-weight: 300; --display-case: none; --display-track: -.025em;
}
/* Burgers, pizza & gastro pub: snow-white tiles on slate, fire-orange action colour */
body[data-tpl="kinetic-grid"] {
  --bg: #F8FAFC; --surface: #FFFFFF; --sheet: #FFFFFF; --text: #0F172A; --muted: #64748B;
  --line: #E2E8F0; --soft: #F1F5F9;
  /* WCAG AA: text and white-on-accent use the deeper #C2410C (4.95 / 5.18:1); the signature fire orange
     #EA580C stays on the big "+" buttons, where an icon needs 3:1 */
  --accent: #C2410C; --on-accent: #FFFFFF; --hl: #C2410C; --fire: #EA580C; --danger: #DC2626;
  --display: 'Plus Jakarta Sans', system-ui, sans-serif; --body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius: 16px; --radius-lg: 22px; --story-radius: 18px; --display-weight: 800; --display-case: none; --display-track: -.025em;
}
/* Scanio house structure "Raya": light (Classic) and evening dark & gold (Prestige) */
body[data-tpl="scanio-classic"] {
  --bg: #F4F4F2; --surface: #FFFFFF; --sheet: #FFFFFF; --text: #111111; --muted: #6B6B6B;
  --line: #E4E4E0; --soft: rgba(0,0,0,.045); --accent: #111111; --on-accent: #FFFFFF; --hl: #F5C518; --hl-text: #92400E; --danger: #D7263D;
  --head-bg: #111111; --head-fg: #FFFFFF; --drawer-bg: #151515; --foot-bg: #111111;
  --display: 'Manrope', system-ui, sans-serif; --body: 'Manrope', system-ui, sans-serif;
  --radius: 14px; --radius-lg: 18px; --story-radius: 999px; --display-weight: 800; --display-case: none; --display-track: -.01em;
}
body[data-tpl="scanio-prestige"] {
  --bg: #0F0F12; --surface: #18181C; --sheet: #18181C; --text: #F3EFE6; --muted: #A39E93;
  --line: rgba(212,175,55,.24); --soft: rgba(255,255,255,.05); --accent: #D4AF37; --on-accent: #0F0F12; --hl: #D4AF37; --danger: #E57373;
  --head-bg: #08080A; --head-fg: #F3EFE6; --drawer-bg: #0B0B0E; --foot-bg: #08080A;
  --display: 'Cormorant Garamond', Georgia, serif; --body: 'Manrope', system-ui, sans-serif;
  --radius: 12px; --radius-lg: 16px; --story-radius: 999px; --display-weight: 600; --display-case: none; --display-track: .01em;
}
/* Toast / Wolt-style compact list for long menus */
/* Toast Tab / Wolt storefront for 100+ dishes: white, slate section bands, ink accent */
body[data-tpl="toast-bistro"] {
  --bg: #FFFFFF; --surface: #FFFFFF; --sheet: #FFFFFF; --text: #0F172A; --muted: #556275;
  --line: #E2E8F0; --soft: #F1F5F9; --accent: #0F172A; --on-accent: #FFFFFF; --hl: #0F172A; --danger: #DC2626;
  --display: 'Plus Jakarta Sans', system-ui, sans-serif; --body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius: 12px; --radius-lg: 16px; --story-radius: 16px; --display-weight: 800; --display-case: none; --display-track: -.02em;
}
/* Craft steakhouse, barbecue, Bulgarian tavern & wine cellar: dark oak, charcoal, forged copper and amber */
body[data-tpl="rustic-tavern"] {
  --bg: #16120E; --surface: #221C16; --sheet: #1E1813; --text: #F3E6D3; --muted: #B9A28A;
  --line: rgba(217,119,54,.28); --soft: rgba(243,230,211,.06); --accent: #D97736; --on-accent: #16120E; --hl: #F59E0B; --danger: #EF7B5F;
  --display: 'Alegreya', Georgia, serif; --body: 'Manrope', system-ui, sans-serif;
  --radius: 10px; --radius-lg: 14px; --story-radius: 999px; --display-weight: 700; --display-case: none; --display-track: 0;
}
/* Nobu / omakase: rice paper, ink black and a fine red seal */
body[data-tpl="zen-minimal"] {
  --bg: #FAF9F6; --surface: #FFFFFF; --sheet: #FAF9F6; --text: #141413; --muted: #78716C;
  --line: #E7E5E4; --soft: rgba(20,20,19,.035); --accent: #141413; --on-accent: #FAF9F6; --hl: #991B1B; --danger: #991B1B;
  --display: 'Noto Serif', Georgia, serif; --body: 'Manrope', system-ui, sans-serif;
  --radius: 0px; --radius-lg: 2px; --story-radius: 999px; --display-weight: 300; --display-case: none; --display-track: .04em;
}
/* Ibiza nightlife: true OLED black, smoked glass, violet -> magenta -> cyan neon */
body[data-tpl="neon-nightclub"] {
  --bg: #05050A; --surface: rgba(18,18,30,.85); --sheet: #0B0B14; --text: #F5F3FF; --muted: #A1A1C2;
  --line: rgba(139,92,246,.32); --soft: rgba(255,255,255,.05); --accent: #EC4899; --on-accent: #05050A; --hl: #06B6D4; --danger: #FB7185;
  --neon: linear-gradient(135deg, #8B5CF6 0%, #EC4899 50%, #06B6D4 100%);
  --display: 'Unbounded', 'Manrope', system-ui, sans-serif; --body: 'Manrope', system-ui, sans-serif;
  --radius: 16px; --radius-lg: 22px; --story-radius: 999px; --display-weight: 700; --display-case: uppercase; --display-track: .01em;
}
/* VIP cinema & reels: velvet black, champagne gold */
body[data-tpl="immersive-reels"] {
  --bg: #0D0D11; --surface: #15151B; --sheet: #121217; --text: #F5EFE3; --muted: #A8A196;
  --line: rgba(212,175,55,.22); --soft: rgba(255,255,255,.05); --accent: #D4AF37; --on-accent: #0D0D11; --hl: #E9C96B; --danger: #F08A7E;
  --display: 'Cormorant Garamond', Georgia, serif; --body: 'Manrope', system-ui, sans-serif;
  --radius: 14px; --radius-lg: 20px; --story-radius: 999px; --display-weight: 600; --display-case: none; --display-track: .01em;
}
body[data-tpl="rustic-tavern"] { background-image:
    radial-gradient(90% 45% at 50% 0%, rgba(217,119,54,.16), transparent 70%),
    repeating-linear-gradient(92deg, rgba(255,255,255,.014) 0 1px, transparent 1px 7px, rgba(0,0,0,.08) 7px 9px, transparent 9px 17px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 2px, transparent 2px 140px); }
body[data-tpl="neon-nightclub"] { background-image: radial-gradient(60% 40% at 10% 0%, rgba(139,92,246,.14), transparent 70%), radial-gradient(50% 40% at 100% 35%, rgba(236,72,153,.08), transparent 70%); }
body[data-tpl="immersive-reels"] { background-image: radial-gradient(80% 40% at 50% 0%, rgba(212,175,55,.09), transparent 70%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.012) 0 1px, transparent 1px 3px); }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased;
       transition: background-color .5s var(--ease-out), color .4s; padding-top: calc(var(--bar-h) + var(--head-h)); overflow-x: clip; }  /* clip: no extra scroll container, the window keeps scrolling */
body.locked { overflow: hidden; }
[x-cloak] { display: none !important; }
.display { font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); }
.muted { color: var(--muted); } .accent { color: var(--accent); }
.hairline { border-color: var(--line); }
button { font-family: inherit; }
.skip-link { position: fixed; z-index: 100; left: .75rem; top: -4rem; padding: .7rem 1rem; border-radius: 999px; background: var(--accent);
             color: var(--on-accent); font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: calc(var(--bar-h) + .75rem); }
#menu-main:focus { outline: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible,
[tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Aura: living gradient backdrop */
.aura-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity .6s; }
body[data-tpl="aura-glass"] .aura-bg { opacity: 1; }
.aura-bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.aura-bg i:nth-child(1) { width: 60vmax; height: 60vmax; left: -20vmax; top: -15vmax; background: #6C3BFF; }
.aura-bg i:nth-child(2) { width: 50vmax; height: 50vmax; right: -18vmax; top: 20vh; background: #FF4FA3; animation-delay: -6s; }
.aura-bg i:nth-child(3) { width: 45vmax; height: 45vmax; left: 10vw; bottom: -20vmax; background: #17C3B2; animation-delay: -11s; }
@keyframes drift { to { transform: translate3d(6vw, 5vh, 0) scale(1.12); } }
/* Noir: soft vignette of light from above */
.noir-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .6s;
           background: radial-gradient(70% 38% at 50% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%); }
body[data-tpl="noir-michelin"] .noir-bg { opacity: 1; }
.page { position: relative; z-index: 1; }

/* Surfaces */
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
body[data-tpl="aura-glass"] .surface, body[data-tpl="aura-glass"] .glass {
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 40px rgba(0,0,0,.25); }
body[data-tpl="nordic-atelier"] .surface { border-color: transparent; box-shadow: 0 1px 0 var(--line); }

/* Buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; padding: .7rem 1.15rem; font-size: .875rem; font-weight: 600;
       border: 1px solid var(--line); color: var(--text); background: transparent; transition: transform .2s var(--ease-spring), background .2s, border-color .2s, opacity .2s; cursor: pointer; }
.btn:active { transform: scale(.96); }
.btn-accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn[disabled] { opacity: .5; cursor: default; }
body[data-tpl="noir-michelin"] .btn, body[data-tpl="nordic-atelier"] .btn { border-radius: var(--radius-lg); letter-spacing: .06em; text-transform: uppercase; font-size: .72rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; border-radius: 999px; padding: .5rem .95rem; font-size: .8rem; font-weight: 500;
        border: 1px solid var(--line); color: var(--muted); background: transparent; transition: all .25s var(--ease-out); cursor: pointer; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
body[data-tpl="noir-michelin"] .chip { border-radius: 0; border-width: 0 0 1px; border-color: transparent; padding: .55rem .2rem; margin-right: .9rem; letter-spacing: .14em; text-transform: uppercase; font-size: .68rem; }
body[data-tpl="noir-michelin"] .chip.on { background: transparent; color: var(--accent); border-color: var(--accent); }
body[data-tpl="nordic-atelier"] .chip { border-radius: var(--radius-lg); }
body[data-tpl="nordic-atelier"] .chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
body[data-tpl="kinetic-grid"] .chip { font-weight: 700; text-transform: uppercase; font-size: .72rem; letter-spacing: .02em; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1px solid var(--line);
            color: var(--text); background: var(--soft); transition: transform .2s var(--ease-spring), background .2s; cursor: pointer; position: relative; flex-shrink: 0; }
.icon-btn:active { transform: scale(.9); }
.badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .22rem .5rem; border-radius: 999px;
         background: var(--soft); color: var(--muted); }
.badge-accent { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
body[data-tpl="aura-glass"] .badge-accent { box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 26%, transparent); }
body[data-tpl="kinetic-grid"] .badge-accent { background: var(--accent); color: var(--on-accent); }
body[data-tpl="nordic-atelier"] .badge-accent { color: #7A3D29; }  /* small caps on the terracotta tint: 5.2:1 */
body[data-tpl="noir-michelin"] .badge { border-radius: 0; background: transparent; padding-left: 0; }
.dot { position: absolute; top: -3px; right: -3px; min-width: 1.05rem; height: 1.05rem; padding: 0 .25rem; border-radius: 999px; background: var(--accent); color: var(--on-accent);
       font-size: .62rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ico { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }

/* Sticky navigation */
.nav { position: sticky; top: calc(var(--bar-h) + var(--head-h)); z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent);
       -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
body[data-tpl="aura-glass"] .nav { background: rgba(14,12,40,.45); }
.scroll-x { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; min-width: 0; overscroll-behavior-x: contain; }
.scroll-x::-webkit-scrollbar { display: none; }
.input { width: 100%; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .7rem .9rem; color: var(--text); font-size: 1rem; font-family: inherit; }
.input::placeholder { color: var(--muted); } .input:focus { outline: none; border-color: var(--accent); }

/* Media placeholders */
.ph { display: flex; align-items: center; justify-content: center; background: var(--soft); color: var(--accent); }
.ph svg { width: 42%; height: 42%; max-width: 4.5rem; opacity: .85; }
.media { overflow: hidden; background: var(--soft); border-radius: var(--radius); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease-out); }
.card { cursor: pointer; transition: transform .35s var(--ease-spring), box-shadow .3s, opacity .3s; }
.card:active { transform: scale(.985); }
@media (hover: hover) { .card:hover .media img { transform: scale(1.05); } }
.card.sold { opacity: .5; }
/* not offered the way the guest orders now (e.g. "Не се доставя"): readable, but clearly out of reach */
.card.offmode { opacity: .62; }
.card.offmode img, .card.offmode .ph { filter: grayscale(.85); }
.badge-off { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); }
body[data-tpl="noir-michelin"] .badge-off { color: var(--muted); }

/* Order type: pill above the menu, its own sheet, summary row in the cart */
.mode-pill { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 3.5rem; padding: .6rem .7rem .6rem .6rem; text-align: left;
             border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); cursor: pointer; font: inherit;
             transition: transform .2s var(--ease-spring), border-color .2s; }
.mode-pill:active { transform: scale(.985); }
.mode-pill:focus-visible, .mode-card:focus-visible, .mode-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mode-pill-icon, .mode-note-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 999px;
                                   background: var(--soft); font-size: 1.15rem; flex-shrink: 0; }
.mode-pill-label { display: block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mode-pill-value { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mode-pill-change { color: var(--accent); font-weight: 700; font-size: .85rem; padding: .55rem .5rem; flex-shrink: 0; }
.mode-row { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 3.25rem; padding: .55rem .7rem; border: 1px solid var(--line);
            border-radius: var(--radius-lg); background: var(--soft); color: var(--text); cursor: pointer; font: inherit; }
.mode-note { display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border-radius: var(--radius-lg);
             background: color-mix(in srgb, var(--accent) 10%, var(--soft)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.mode-card { position: relative; display: flex; align-items: flex-start; gap: .9rem; width: 100%; padding: 1rem; border-radius: var(--radius-lg); text-align: left;
             border: 1.5px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font: inherit;
             transition: border-color .2s, transform .2s var(--ease-spring), box-shadow .2s; }
.mode-card:active { transform: scale(.985); }
.mode-card.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.mode-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 1rem; background: var(--soft); font-size: 1.5rem; flex-shrink: 0; }
.mode-card-title { display: block; font-weight: 800; font-size: 1.05rem; }
.mode-card-info { display: block; color: var(--muted); font-size: .84rem; margin-top: .15rem; line-height: 1.35; }
.mode-card-count { display: inline-block; margin-top: .45rem; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.mode-card-warn { display: block; margin-top: .45rem; font-size: .78rem; color: var(--danger); line-height: 1.35; }
.mode-card-check { width: 1.4rem; height: 1.4rem; color: var(--accent); opacity: 0; transition: opacity .2s; margin-top: .2rem; }
.mode-card.on .mode-card-check { opacity: 1; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pre { white-space: pre-line; }

/* Reveal on scroll / load */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .7s var(--ease-out) both; }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.pop { animation: pop .45s var(--ease-spring); }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
.ring-pulse { animation: pulse-ring 2.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.thinking { background: linear-gradient(90deg, var(--soft) 25%, color-mix(in srgb, var(--accent) 22%, transparent) 50%, var(--soft) 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }

/* Stories */
.story-ring { padding: 2.5px; border-radius: var(--story-radius); background: conic-gradient(from 140deg, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent), var(--accent)); }
.story-ring > div { border-radius: var(--story-radius); border: 2.5px solid var(--bg); overflow: hidden; background: var(--bg); }
body[data-tpl="nordic-atelier"] .story-ring { background: var(--sage); padding: 1.5px; }

/* Bottom sheets (spring physics) */
.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.fade-enter, .fade-leave { transition: opacity .3s ease; } .fade-from { opacity: 0; } .fade-to { opacity: 1; }
.sheet { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 34rem; max-height: 90vh; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain;
         background: var(--sheet); color: var(--text); border: 1px solid var(--line); border-bottom: 0; border-radius: 28px 28px 0 0;
         box-shadow: 0 -20px 60px rgba(0,0,0,.45); padding-bottom: env(safe-area-inset-bottom); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
body[data-tpl="noir-michelin"] .sheet, body[data-tpl="nordic-atelier"] .sheet { border-radius: 14px 14px 0 0; }
body[data-tpl="aura-glass"] .sheet { -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%); }
.sheet::-webkit-scrollbar { width: 5px; } .sheet::-webkit-scrollbar-thumb { background: var(--line); border-radius: 9px; }
.sheet-enter { transition: transform .55s var(--ease-spring), opacity .25s ease; }
.sheet-leave { transition: transform .3s cubic-bezier(.4, 0, 1, 1), opacity .25s ease; }
.sheet-from { transform: translateY(105%); opacity: .6; } .sheet-to { transform: translateY(0); opacity: 1; }
.grabber { width: 2.6rem; height: 4px; border-radius: 9px; background: var(--line); margin: .6rem auto .2rem; }
@media (min-width: 640px) { .sheet { bottom: 4vh; border-bottom: 1px solid var(--line); border-radius: 28px; max-height: 88vh; max-height: 88dvh; }
  body[data-tpl="noir-michelin"] .sheet, body[data-tpl="nordic-atelier"] .sheet { border-radius: 10px; } }

/* Floating dock */
.dock { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(.9rem + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .35rem;
        padding: .4rem; border-radius: 999px; background: color-mix(in srgb, var(--sheet) 92%, transparent); border: 1px solid var(--line);
        -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 12px 40px rgba(0,0,0,.4); max-width: calc(100vw - 1.5rem); }
body[data-tpl="noir-michelin"] .dock, body[data-tpl="nordic-atelier"] .dock { border-radius: var(--radius-lg); }
body[data-tpl="nordic-atelier"] .dock { box-shadow: 0 10px 30px rgba(42,41,38,.16); }
.dock-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .62rem .9rem; border-radius: inherit; font-size: .78rem; font-weight: 600; color: var(--text); background: transparent;
            border: 0; cursor: pointer; position: relative; white-space: nowrap; transition: transform .2s var(--ease-spring), background .2s; }
.dock-btn:active { transform: scale(.93); } .dock-btn.primary { background: var(--accent); color: var(--on-accent); }

/* Live demo bar */
.demo-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 40px; display: flex; align-items: center; gap: .5rem; padding: 0 .6rem;
            background: rgba(8,8,10,.92); color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
            font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: .7rem; }
.demo-bar button { border: 1px solid transparent; background: transparent; color: rgba(255,255,255,.62); padding: .3rem .6rem; border-radius: 999px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: all .2s; }
.demo-bar button.on { background: #fff; color: #000; }
.demo-lang { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .25rem .5rem; font: inherit; font-weight: 700; }
.demo-lang option { color: #000; }
.demo-bar button:hover:not(.on) { color: #fff; border-color: rgba(255,255,255,.3); }

/* Toast */
.toast { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); bottom: calc(5.2rem + env(safe-area-inset-bottom)); background: var(--text); color: var(--bg);
         padding: .65rem 1rem; border-radius: 999px; font-size: .8rem; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.35); max-width: calc(100vw - 2rem); text-align: center; }

/* Star rating */
.star { color: var(--line); transition: color .2s, transform .25s var(--ease-spring); cursor: pointer; background: none; border: 0; padding: .15rem; }
.star svg { width: 2.6rem; height: 2.6rem; fill: currentColor; } .star.on { color: #F5B93B; transform: scale(1.12); }

body { --hl: var(--accent); }

/* ==================================================================
   Mobile first: 280 px (Galaxy Fold), 320 px, phones, foldables, tablets
   ================================================================== */
button, a, [role="button"], .card, .chip, .opt { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
img, video { max-width: 100%; }
/* category and dish titles never break inside a word ("Предястия" stays whole) */
.cat-title, .chip, .raya-cat-name, .raya-h2, .raya-h1, .raya-hero-title, h2.display, h3.display {
  hyphens: manual; -webkit-hyphens: manual; word-break: normal; overflow-wrap: normal; }
.cat-title { font-size: clamp(1.45rem, 6.4vw, 2.3rem); text-wrap: balance; }
.menu-grid h3 { overflow-wrap: break-word; hyphens: manual; word-break: normal; }
.menu-grid > *, .menu-grid .flex-1 { min-width: 0; }  /* long names never push a card past the screen edge */
.demo-lang { flex-shrink: 0; }
.wrap { width: 100%; }
.dock { padding-bottom: .4rem; max-width: calc(100% - 1rem); overflow: hidden; }
.dock-btn { min-width: 0; } .dock-btn > span:not(.dot) { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 359px) {
  .wrap.px-5 { padding-left: .85rem !important; padding-right: .85rem !important; }
  .dock-btn { padding: .58rem .7rem; font-size: .74rem; }
  .dock-btn:not(.primary) > span:not(.dot) { display: none; }  /* icons only next to the cart on narrow phones */
  .chip { padding: .45rem .75rem; font-size: .74rem; }
  .sheet .px-5 { padding-left: 1rem; padding-right: 1rem; }
  .menu-grid.grid-cols-2 { gap: .5rem; }
}
@media (max-width: 299px) {  /* folded Galaxy Fold */
  .menu-grid.grid-cols-2 { grid-template-columns: minmax(0, 1fr) !important; }
  .flag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .raya-rec span.text-\[\.78rem\] { font-size: .7rem; }
}

/* ==================================================================
   "Raya" structure: black header, drawer, hero, photo categories, footer
   ================================================================== */
body[data-layout="raya"] { --head-h: calc(56px + env(safe-area-inset-top)); }
.raya-head { position: fixed; z-index: 35; left: 0; right: 0; top: var(--bar-h); height: var(--head-h); padding: env(safe-area-inset-top) max(.5rem, env(safe-area-inset-right)) 0 max(.5rem, env(safe-area-inset-left));
             display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: var(--head-bg); color: var(--head-fg); box-shadow: 0 2px 14px rgba(0,0,0,.25); }
.raya-head-btn { width: 2.75rem; height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 0; background: transparent; color: inherit; cursor: pointer; position: relative; flex-shrink: 0; font-size: 1.05rem; }
.raya-head-btn:active { background: rgba(255,255,255,.12); }
.raya-brand { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: .5rem; background: none; border: 0; color: inherit; cursor: pointer;
              font-family: var(--display); font-weight: 800; font-size: clamp(.95rem, 4.4vw, 1.15rem); letter-spacing: .04em; text-transform: uppercase; }
body[data-tpl="scanio-prestige"] .raya-brand { color: var(--hl); font-weight: 600; letter-spacing: .12em; }
.raya-scrim { position: fixed; inset: 0; z-index: 44; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.raya-drawer { position: fixed; z-index: 45; top: var(--bar-h); bottom: 0; left: 0; width: min(20rem, 86vw); overflow-y: auto; overscroll-behavior: contain; background: var(--drawer-bg); color: #F5F5F5;
               transform: translateX(-102%); visibility: hidden; transition: transform .38s var(--ease-out), visibility 0s linear .38s; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); box-shadow: 10px 0 40px rgba(0,0,0,.4); }
.raya-drawer.open { transform: none; visibility: visible; transition: transform .38s var(--ease-out); }
.raya-link { width: 100%; display: flex; align-items: center; gap: .85rem; padding: .85rem 1.25rem; background: none; border: 0; color: inherit; font-size: .95rem; font-weight: 600; text-align: left; cursor: pointer; }
.raya-link .ico { opacity: .7; }
.raya-link:active, .raya-link.on { background: rgba(255,255,255,.07); }
.raya-link.on { box-shadow: inset 3px 0 0 var(--hl); }
.raya-badge-new { margin-left: auto; background: #E11D2E; color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .18rem .5rem; border-radius: 999px; }
.raya-count { margin-left: auto; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 999px; background: var(--hl); color: #111; font-size: .7rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.flag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.flag-btn { display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .55rem .4rem; border-radius: 10px; border: 1px solid rgba(127,127,127,.3); background: transparent; color: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.flag-btn.on { border-color: var(--hl); box-shadow: 0 0 0 1px var(--hl) inset; }
.flag { width: 1.6rem; height: 1.07rem; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); flex-shrink: 0; }
.raya-hero { min-height: clamp(15rem, 58vw, 26rem); display: flex; align-items: flex-end; background: linear-gradient(135deg, #2a2a2a, #0d0d0d); background-size: cover; background-position: center; color: #fff; }
body[data-tpl="scanio-prestige"] .raya-hero { background-color: #0F0F12; background-image: radial-gradient(70% 60% at 50% 0%, rgba(212,175,55,.28), transparent 70%); }
.raya-hero-title { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(1.9rem, 9vw, 3.4rem); line-height: 1.02; text-wrap: balance; }
.raya-btn-light, .raya-btn-ghost { border-radius: 999px; padding: .72rem 1.25rem; font-weight: 700; font-size: .85rem; cursor: pointer; }
.raya-btn-light { background: #fff; color: #111; border: 0; }
body[data-tpl="scanio-prestige"] .raya-btn-light { background: var(--hl); color: #0F0F12; }
.raya-btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.raya-h1 { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(1.7rem, 7.5vw, 2.6rem); line-height: 1.08; }
.raya-h2 { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(1.2rem, 5.2vw, 1.6rem); display: flex; align-items: center; gap: .6rem; }
.raya-h2::after { content: ""; flex: 1; height: 2px; background: var(--hl); max-width: 3rem; border-radius: 2px; }
.raya-rec { text-align: left; background: none; border: 0; color: inherit; padding: 0; cursor: pointer; min-width: 0; }
.raya-rec .ph svg { width: 45%; }
.raya-lunch { margin-top: 1.5rem; width: 100%; display: flex; align-items: center; gap: .85rem; padding: 1rem 1.15rem; border-radius: var(--radius-lg); border: 0; cursor: pointer;
              background: #111111; color: #FFFFFF; text-align: left; box-shadow: 0 10px 26px rgba(0,0,0,.18); }
body[data-tpl="scanio-prestige"] .raya-lunch { background: var(--hl); color: #0F0F12; }
.raya-cat { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); border: 0; padding: 0; cursor: pointer; background: var(--soft); }
.raya-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
@media (hover: hover) { .raya-cat:hover img { transform: scale(1.06); } }
.raya-cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0) 62%); }
.raya-cat-name { position: absolute; z-index: 1; left: .7rem; right: .7rem; bottom: .6rem; color: #fff; font-weight: 800; font-size: clamp(.82rem, 3.9vw, 1.05rem); line-height: 1.15; text-align: left; text-wrap: balance;
                  text-shadow: 0 1px 3px rgba(0,0,0,.65); /* readable on the restaurant's own bright photos too */ }
.raya-about-cover { aspect-ratio: 16 / 9; max-height: 45vh; overflow: hidden; } .raya-about-cover img { width: 100%; height: 100%; object-fit: cover; }
.raya-foot { background: var(--foot-bg); color: #F2F2F2; padding: 2.2rem 0 calc(7rem + env(safe-area-inset-bottom)); }
.raya-foot button { background: none; border: 0; color: inherit; opacity: .85; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.raya-card { border-radius: var(--radius-lg); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
body[data-tpl="scanio-classic"] .raya-card { border-color: transparent; }
.raya-thumb { width: 5.5rem; height: 5.5rem; } @media (min-width: 400px) { .raya-thumb { width: 6rem; height: 6rem; } }
.raya-thumb .media { border-radius: calc(var(--radius) - 4px); }
.plus-btn { width: 2.15rem; height: 2.15rem; border-radius: 999px; border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
            background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 12px rgba(0,0,0,.18); transition: transform .2s var(--ease-spring); }
.plus-btn:active { transform: scale(.88); }
body[data-layout="raya"] .nav .chip.on { background: var(--accent); }
body[data-layout="raya"] .dock { border-radius: 18px; }
/* centred product modal with yellow allergen icons */
@media (min-width: 0px) {
  body[data-layout="raya"] .product-sheet { top: 0; bottom: 0; left: 0; right: 0; margin: auto; height: fit-content; max-height: 90vh; max-height: 90dvh; width: calc(100% - 1.5rem); max-width: 30rem;
                                            border-radius: 22px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
}
body[data-layout="raya"] .product-sheet .hero-img { border-radius: 22px 22px 0 0; }
body[data-layout="raya"] .allergen-chip .a-ico, body[data-tpl="scanio-classic"] .addon-row .a-ico { display: inline-flex; align-items: center; justify-content: center; width: 1.45rem; height: 1.45rem; border-radius: 999px;
                                                   background: var(--hl); color: #111; font-size: .78rem; }
body[data-tpl="scanio-classic"] .allergen-chip { background: #FFF8DC; border-color: #F5C518 !important; color: #3A3200; }

/* ==================================================================
   Category add-ons
   ================================================================== */
.addons-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.2rem; border-radius: 999px; border: 1.5px dashed var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent);
              color: var(--text); font-weight: 700; font-size: .85rem; cursor: pointer; transition: transform .2s var(--ease-spring), background .2s; }
.addons-btn:active { transform: scale(.95); }
.addons-count { min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .68rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.addon-row { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.addon-add { border: 1px solid var(--accent); background: transparent; color: var(--accent); border-radius: 999px; padding: .32rem .75rem; font-size: .74rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.addon-add:active { background: var(--accent); color: var(--on-accent); }

/* ==================================================================
   Card details of the new designs
   ================================================================== */
/* Mini icon inside a category capsule (Kinetic) */
.chip-ico { width: 1.7rem; height: 1.7rem; margin-left: -.45rem; border-radius: 999px; overflow: hidden; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
            background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); }
.chip-ico img { width: 100%; height: 100%; object-fit: cover; }
.chip-ico svg { width: 1.05rem; height: 1.05rem; }
.chip.on .chip-ico { background: rgba(255,255,255,.22); color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.55); }

/* ---------- 6. KINETIC GRID: snow-white tiles, fire-orange quick add ---------- */
body[data-tpl="kinetic-grid"] .nav { background: rgba(248,250,252,.9); border-bottom-color: transparent; box-shadow: 0 1px 0 #E2E8F0, 0 10px 24px -18px rgba(15,23,42,.35); }
body[data-tpl="kinetic-grid"] .chip { background: #fff; border-color: #E2E8F0; color: #0F172A; text-transform: none; font-weight: 700; font-size: .8rem; letter-spacing: -.01em;
                                      box-shadow: 0 1px 2px rgba(15,23,42,.06); transition: background .15s, color .15s, box-shadow .2s, transform .2s var(--ease-spring); }
body[data-tpl="kinetic-grid"] .chip:active { transform: scale(.94); }
body[data-tpl="kinetic-grid"] .chip.on { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 18px -6px rgba(234,88,12,.6); }
body[data-tpl="kinetic-grid"] .cat-title { font-size: clamp(1.6rem, 7vw, 2.6rem); letter-spacing: -.04em; }
body[data-tpl="kinetic-grid"] .cat-head::after { content: ""; display: block; width: 2.6rem; height: 4px; margin-top: .55rem; border-radius: 4px; background: var(--accent); }
body[data-tpl="kinetic-grid"] .hero-title { font-size: clamp(1.9rem, 10vw, 4.4rem); letter-spacing: -.045em; line-height: .95; }
body[data-tpl="kinetic-grid"] .eyebrow { background: #FFF7ED; color: var(--accent); }
body[data-tpl="kinetic-grid"] .dock { box-shadow: 0 18px 40px -12px rgba(15,23,42,.35); }
.kg-card { display: flex; flex-direction: column; height: 100%; padding: .5rem; border-radius: 1.25rem; background: #fff;
           box-shadow: 0 4px 6px -1px rgba(15,23,42,.08), 0 2px 4px -2px rgba(15,23,42,.06); transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out); }
.kg-photo { position: relative; aspect-ratio: 1 / 1; border-radius: 1rem; overflow: hidden; background: #FFF7ED; }
.kg-photo > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease-out); }
.kg-photo > .ph { width: 100%; height: 100%; background: linear-gradient(145deg, #FFF7ED, #FFEDD5); }
.card:active .kg-photo > img { transform: scale(1.09); }
@media (hover: hover) { .kg-card:hover { transform: translateY(-4px); box-shadow: 0 18px 32px -14px rgba(15,23,42,.28); } .kg-card:hover .kg-photo > img { transform: scale(1.06); } }
.kg-tags { position: absolute; z-index: 1; left: .45rem; top: .45rem; right: 3.4rem; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.kg-weight { background: rgba(15,23,42,.88); color: #fff; font-weight: 800; font-size: .68rem; padding: .26rem .55rem; border-radius: 999px; letter-spacing: .01em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.kg-hot { background: var(--accent); color: #fff; font-weight: 800; font-size: .6rem; padding: .24rem .55rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .07em; box-shadow: 0 4px 10px -2px rgba(234,88,12,.55); }
.kg-hot.soft { background: #fff; color: #0F172A; box-shadow: 0 2px 6px rgba(15,23,42,.15); }
.kg-hot.danger { background: #DC2626; }
.kg-plus { position: absolute; z-index: 2; right: .45rem; bottom: .45rem; width: 2.75rem; height: 2.75rem; border-radius: 999px; display: flex; align-items: center; justify-content: center;
           background: var(--fire, var(--accent)); color: #fff; border: 3px solid #fff; cursor: pointer; box-shadow: 0 10px 20px -6px rgba(234,88,12,.7); transition: transform .3s var(--ease-spring); }
.kg-plus:active { transform: scale(.84) rotate(90deg); }
.kg-name { font-weight: 800; font-size: clamp(.9rem, 3.9vw, 1.04rem); line-height: 1.2; letter-spacing: -.02em; margin-top: .6rem; padding: 0 .2rem; min-height: 2.4em;
           display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; hyphens: manual; overflow-wrap: break-word; }
.kg-ingr { color: var(--muted); font-size: .72rem; line-height: 1.38; margin-top: .25rem; padding: 0 .2rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kg-price { margin-top: auto; padding: .5rem .2rem .15rem; font-weight: 800; font-size: clamp(1.1rem, 4.9vw, 1.32rem); letter-spacing: -.03em; color: #0F172A; }

/* ---------- 7. TOAST BISTRO: slate section bands, 70 / 30 rows, 96 px thumbs ---------- */
body[data-tpl="toast-bistro"] .nav { background: rgba(255,255,255,.96); border-bottom-color: #E2E8F0; box-shadow: 0 10px 22px -20px rgba(15,23,42,.5); }
body[data-tpl="toast-bistro"] .chip { border-color: transparent; background: #F1F5F9; color: #334155; font-weight: 700; font-size: .8rem; }
body[data-tpl="toast-bistro"] .chip.on { background: #0F172A; border-color: #0F172A; color: #fff; }
body[data-tpl="toast-bistro"] .cat-head { background: #F1F5F9; margin-left: -1.25rem; margin-right: -1.25rem; padding: .95rem 1.25rem; margin-bottom: .25rem !important; }
@media (min-width: 768px) { body[data-tpl="toast-bistro"] .cat-head { margin-left: 0; margin-right: 0; border-radius: 14px; } }
body[data-tpl="toast-bistro"] .cat-title { font-size: clamp(1.15rem, 5vw, 1.45rem); letter-spacing: -.02em; }
body[data-tpl="toast-bistro"] section[data-cat] { margin-bottom: 2.25rem; }
body[data-tpl="toast-bistro"] .addons-btn { margin-top: .75rem; }
.tb-row { display: flex; align-items: stretch; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid #E2E8F0; transition: background .2s; }
.card:active .tb-row { background: #F8FAFC; }
.tb-text { flex: 1 1 70%; min-width: 0; display: flex; flex-direction: column; }
.tb-name { font-weight: 800; font-size: 1rem; line-height: 1.28; letter-spacing: -.015em; color: #0F172A; overflow-wrap: break-word; }
.tb-portion { color: var(--muted); font-weight: 600; font-size: .84rem; white-space: nowrap; }
.tb-desc { color: var(--muted); font-size: .82rem; line-height: 1.45; margin-top: .2rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tb-allergens { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .45rem; }
.al-mini { --h: 30; width: 1.4rem; height: 1.4rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; line-height: 1;
           background: hsl(var(--h) 90% 95%); border: 1px solid hsl(var(--h) 70% 84%); }
.al-mini.hit { border-color: var(--danger); box-shadow: 0 0 0 2px color-mix(in srgb, var(--danger) 25%, transparent); }
.tb-price { margin-top: auto; padding-top: .5rem; font-weight: 800; font-size: 1.02rem; color: #0F172A; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.tb-media { position: relative; flex: 0 0 96px; width: 96px; align-self: flex-start; }
.tb-thumb { width: 96px; height: 96px; border-radius: .75rem; overflow: hidden; background: #F1F5F9; }
.tb-thumb > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-thumb > .ph { width: 100%; height: 100%; background: linear-gradient(160deg, #F8FAFC, #E2E8F0); color: #334155; }
.tb-thumb > .ph svg { width: 54%; height: 54%; }
.tb-plus { position: absolute; right: -.4rem; bottom: -.4rem; width: 2.75rem; height: 2.75rem; border-radius: 999px; display: flex; align-items: center; justify-content: center;
           background: #fff; color: #0F172A; border: 1px solid #E2E8F0; cursor: pointer; box-shadow: 0 6px 16px -4px rgba(15,23,42,.3); transition: transform .25s var(--ease-spring), background .2s, color .2s; }
.tb-plus:active { transform: scale(.86); background: #0F172A; color: #fff; }

/* ---------- 8. RUSTIC TAVERN: oak & charcoal, espresso boards, forged-copper weight labels ---------- */
body[data-tpl="rustic-tavern"] .cat-title { color: var(--text); }
body[data-tpl="rustic-tavern"] .cat-head::after { content: ""; display: block; width: 5rem; height: 2px; margin-top: .65rem; background: linear-gradient(90deg, #F59E0B, #D97736 40%, transparent); }
body[data-tpl="rustic-tavern"] .chip.on { background: linear-gradient(135deg, #F59E0B, #D97736 55%, #A9541F); border-color: transparent; color: #16120E; font-weight: 700; }
body[data-tpl="rustic-tavern"] .nav { background: rgba(22,18,14,.9); }
.rt-card { position: relative; display: flex; gap: .9rem; height: 100%; padding: .85rem; border-radius: 14px; background: linear-gradient(160deg, #2A221B, #221C16 55%, #1C1712);
           border: 1px solid rgba(217,119,54,.24); box-shadow: inset 0 1px 0 rgba(243,230,211,.05), 0 14px 30px -14px rgba(0,0,0,.7); transition: transform .35s var(--ease-spring), border-color .3s; }
.card:active .rt-card { transform: scale(.98); border-color: rgba(245,158,11,.5); }
.rt-thumb { position: relative; flex: 0 0 7rem; width: 7rem; align-self: flex-start; }
.rt-thumb .media { border-radius: 10px; box-shadow: 0 0 0 1px rgba(217,119,54,.4), 0 0 0 4px #1A1510, 0 0 0 5px rgba(217,119,54,.22); }
@media (max-width: 359px) { .rt-thumb { flex-basis: 5rem; width: 5rem; } }
.rt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rt-weight { align-self: flex-start; display: inline-flex; align-items: center; gap: .3rem; margin-bottom: .45rem; padding: .28rem .7rem .28rem .55rem; font-weight: 800; font-size: .74rem; letter-spacing: .03em; color: #1A120B;
             background: linear-gradient(135deg, #F7B267 0%, #D97736 45%, #9A4A1C 100%); border-radius: 3px 999px 999px 3px; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 12px -4px rgba(217,119,54,.7); white-space: nowrap; }
.rt-weight::before { content: ""; width: .32rem; height: .32rem; border-radius: 999px; background: #1A120B; opacity: .75; }
.rt-name { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 5vw, 1.35rem); line-height: 1.15; overflow-wrap: break-word; }
.rt-desc { color: var(--muted); font-size: .8rem; line-height: 1.45; margin-top: .3rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rt-wine { display: flex; align-items: flex-start; gap: .4rem; margin-top: .55rem; padding: .45rem .6rem; border-radius: 8px; font-size: .76rem; line-height: 1.35;
           background: rgba(127,29,29,.22); border: 1px solid rgba(245,158,11,.18); color: #F3E6D3; }
.rt-wine b { color: #F59E0B; font-weight: 700; }
.rt-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .6rem; }
.rt-price { font-family: var(--display); font-weight: 700; font-size: 1.45rem; color: #F59E0B; text-shadow: 0 0 18px rgba(245,158,11,.25); }
body[data-tpl="rustic-tavern"] .plus-btn { background: linear-gradient(135deg, #F59E0B, #D97736); color: #16120E; }
.grill-banner { position: relative; display: block; width: 100%; min-height: 15rem; overflow: hidden; border-radius: 18px; padding: 0; border: 0; cursor: pointer; text-align: left; color: #F3E6D3; background: #120E0B;
                box-shadow: 0 0 0 1px rgba(217,119,54,.45), 0 0 0 6px #16120E, 0 0 0 7px rgba(217,119,54,.22), 0 24px 50px -20px rgba(0,0,0,.8); font: inherit; }
.grill-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.05); transition: transform 1.6s var(--ease-out); }
.grill-banner:active > img { transform: scale(1.06); }
.grill-banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(18,14,11,.96) 8%, rgba(18,14,11,.55) 55%, rgba(18,14,11,.15)),
                        radial-gradient(60% 50% at 50% 110%, rgba(245,158,11,.35), transparent 70%); }
.grill-embers { position: absolute; inset: auto 0 0 0; height: 60%; z-index: 1; pointer-events: none; background-image: radial-gradient(2px 2px at 20% 80%, #F59E0B, transparent),
                radial-gradient(1.5px 1.5px at 60% 70%, #FDBA74, transparent), radial-gradient(2px 2px at 85% 90%, #F59E0B, transparent), radial-gradient(1.5px 1.5px at 40% 95%, #FB923C, transparent);
                animation: embers 5s ease-in infinite; opacity: .8; }
@keyframes embers { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-70%); opacity: 0; } }
.grill-body { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 15rem; padding: 1.3rem 1.2rem; }
.grill-kicker { display: inline-flex; align-items: center; gap: .45rem; font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: #F59E0B; font-weight: 700; }
.grill-kicker::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; }
.grill-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.45rem, 6.6vw, 2.3rem); line-height: 1.08; margin-top: .45rem; text-wrap: balance; }
.grill-sub { font-size: .86rem; color: #D9C6AE; margin-top: .4rem; max-width: 28rem; }
.grill-cta { align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; margin-top: .9rem; padding: .6rem 1.1rem; border-radius: 999px; font-weight: 800; font-size: .85rem;
             color: #16120E; background: linear-gradient(135deg, #F7B267, #D97736 55%, #A9541F); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 22px -8px rgba(217,119,54,.8); }

/* ---------- 9. ZEN MINIMAL: rice paper, 1px ink outlines, red seal ---------- */
body[data-tpl="zen-minimal"] .chip { border-radius: 0; border-width: 0 0 1px; border-color: transparent; letter-spacing: .18em; text-transform: uppercase; font-size: .66rem; padding: .55rem .25rem; margin-right: .9rem; color: #78716C; }
body[data-tpl="zen-minimal"] .chip.on { background: transparent; color: var(--text); border-color: var(--hl); }
body[data-tpl="zen-minimal"] .cat-title { font-weight: 300; letter-spacing: .1em; }
body[data-tpl="zen-minimal"] .cat-head { text-align: center; }
body[data-tpl="zen-minimal"] .cat-head::after { content: ""; display: block; width: .6rem; height: .6rem; margin: .8rem auto 0; border-radius: 999px; background: var(--hl); }
body[data-tpl="zen-minimal"] .btn, body[data-tpl="zen-minimal"] .dock, body[data-tpl="zen-minimal"] .dock-btn { border-radius: 0; }
body[data-tpl="zen-minimal"] .nav { background: rgba(250,249,246,.94); }
body[data-tpl="zen-minimal"] section[data-cat] { margin-bottom: 4.5rem; }
.zen-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.1rem; height: 100%; padding: 1.5rem 1.25rem; background: rgba(255,255,255,.55); border: 1px solid #E7E5E4; transition: border-color .3s, background .3s; }
.card:active .zen-card { border-color: #141413; background: #fff; }
@media (hover: hover) { .zen-card:hover { border-color: #A8A29E; } }
.zen-top { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-bottom: .8rem; }
.zen-no { font-family: var(--display); font-size: .74rem; color: var(--hl); letter-spacing: .14em; }
.zen-pcs { display: inline-flex; align-items: center; min-height: 1.5rem; padding: .1rem .55rem; border: 1px solid #141413; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: #141413; }
.zen-seal { display: inline-flex; align-items: center; min-height: 1.5rem; padding: .1rem .5rem; background: var(--hl); color: #FAF9F6; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; }
.zen-name { font-family: var(--display); font-weight: 400; font-size: clamp(1.15rem, 5vw, 1.35rem); line-height: 1.3; letter-spacing: .02em; overflow-wrap: break-word; }
.zen-desc { color: #78716C; font-size: .8rem; line-height: 1.7; margin-top: .45rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.zen-als { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .85rem; }
.zen-al { width: 1.45rem; height: 1.45rem; border-radius: 999px; border: 1px solid #A8A29E; color: #57534E; font-size: .6rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.zen-al.hit { border-color: var(--hl); color: var(--hl); }
.zen-price { font-family: var(--display); font-size: 1.15rem; letter-spacing: .04em; margin-top: 1rem; display: flex; align-items: center; gap: .9rem; }
.zen-price::before { content: ""; width: 1.4rem; height: 1px; background: #141413; }
.zen-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: .8rem; }
.zen-thumb { width: 5.5rem; height: 5.5rem; padding: 3px; border: 1px solid #E7E5E4; background: #fff; }
.zen-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.92); }
@media (max-width: 359px) { .zen-thumb { width: 4.25rem; height: 4.25rem; } .zen-card { padding: 1.2rem 1rem; } }
body[data-tpl="zen-minimal"] .plus-btn { border-radius: 0; background: #141413; color: #FAF9F6; }

/* ---------- 10. NEON NIGHTCLUB: OLED black, smoked glass, violet -> magenta -> cyan edge ---------- */
body[data-tpl="neon-nightclub"] .nav { background: rgba(5,5,10,.82); border-bottom-color: rgba(139,92,246,.25); }
body[data-tpl="neon-nightclub"] .chip { color: #C4B5FD; border-color: rgba(139,92,246,.35); }
body[data-tpl="neon-nightclub"] .chip.on { background: var(--neon); border-color: transparent; color: #fff; box-shadow: 0 0 18px rgba(236,72,153,.55); }
body[data-tpl="neon-nightclub"] .cat-title { background: var(--neon); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(1.15rem, 5.6vw, 1.9rem);
                                             filter: drop-shadow(0 0 14px rgba(236,72,153,.35)); }
body[data-tpl="neon-nightclub"] .hero-title { background: var(--neon); -webkit-background-clip: text; background-clip: text; color: transparent; }
body[data-tpl="neon-nightclub"] .btn-accent, body[data-tpl="neon-nightclub"] .dock-btn.primary { background: var(--neon); border-color: transparent; color: #fff; box-shadow: 0 0 22px rgba(236,72,153,.5); }
body[data-tpl="neon-nightclub"] .plus-btn { background: var(--neon); color: #fff; box-shadow: 0 0 16px rgba(236,72,153,.7); }
body[data-tpl="neon-nightclub"] .dock { background: rgba(11,11,20,.88); border-color: rgba(139,92,246,.35); }
.neon-card { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius); border: 1px solid transparent;
             background: linear-gradient(rgba(18,18,30,.85), rgba(18,18,30,.85)) padding-box, var(--neon) border-box;
             -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 26px -6px rgba(139,92,246,.45), 0 0 46px -18px rgba(6,182,212,.4); transition: transform .35s var(--ease-spring), box-shadow .35s; }
.card:active .neon-card { transform: scale(.97); box-shadow: 0 0 34px -4px rgba(236,72,153,.7); }
.neon-card .media { border-radius: 0; }
.neon-card .media img { filter: saturate(1.15) contrast(1.05); }
.neon-name { font-family: var(--display); font-weight: 700; font-size: .84rem; line-height: 1.22; text-transform: uppercase; letter-spacing: .01em; overflow-wrap: break-word;
             display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.neon-price { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: #fff; letter-spacing: .01em;
              text-shadow: 0 0 6px rgba(236,72,153,.95), 0 0 16px rgba(236,72,153,.7), 0 0 34px rgba(139,92,246,.55); }
.neon-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
@media (min-width: 640px) { .neon-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.neon-tab { position: relative; display: flex; align-items: center; gap: .6rem; min-height: 3.6rem; padding: .6rem .75rem; border-radius: 14px; border: 1px solid transparent; cursor: pointer; text-align: left; color: #F5F3FF;
            background: linear-gradient(rgba(14,14,24,.92), rgba(14,14,24,.92)) padding-box, var(--neon) border-box; font: inherit; font-weight: 700; font-size: .78rem; line-height: 1.2;
            transition: transform .25s var(--ease-spring), box-shadow .3s; }
.neon-tab:active { transform: scale(.95); box-shadow: 0 0 24px rgba(236,72,153,.6); }
.neon-tab .nt-ico { font-size: 1.3rem; line-height: 1; filter: drop-shadow(0 0 8px rgba(236,72,153,.7)); }
.neon-cta { position: relative; display: flex; align-items: center; justify-content: center; gap: .7rem; width: 100%; min-height: 3.6rem; margin-top: .8rem; padding: .7rem 1rem; border: 0; border-radius: 999px; cursor: pointer;
            background: var(--neon); color: #fff; font: inherit; font-weight: 800; font-size: .92rem; letter-spacing: .01em; box-shadow: 0 0 28px rgba(236,72,153,.55); animation: neon-pulse 2.2s ease-in-out infinite; }
.neon-cta small { display: block; font-weight: 600; font-size: .7rem; opacity: .85; }
.neon-cta::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; border: 2px solid rgba(236,72,153,.55); animation: neon-ring 2.2s ease-out infinite; pointer-events: none; }
@keyframes neon-pulse { 50% { box-shadow: 0 0 44px rgba(236,72,153,.8), 0 0 70px rgba(139,92,246,.45); } }
@keyframes neon-ring { 0% { transform: scale(.96); opacity: .9; } 100% { transform: scale(1.08, 1.35); opacity: 0; } }

/* ---------- 11. IMMERSIVE REELS: velvet grid + full-screen vertical reels ---------- */
body[data-tpl="immersive-reels"] .cat-title { font-style: italic; font-weight: 500; }
body[data-tpl="immersive-reels"] .cat-head::after { content: ""; display: block; width: 3.5rem; height: 1px; margin-top: .6rem; background: linear-gradient(90deg, #D4AF37, transparent); }
body[data-tpl="immersive-reels"] .chip.on { background: linear-gradient(135deg, #F3D98B, #D4AF37 55%, #A8842A); border-color: transparent; color: #0D0D11; font-weight: 700; }
body[data-tpl="immersive-reels"] .nav { background: rgba(13,13,17,.86); }
body[data-tpl="immersive-reels"] main { padding-bottom: 12rem !important; }
body[data-tpl="immersive-reels"] .status-pill { bottom: calc(9rem + env(safe-area-inset-bottom)); }
body[data-tpl="immersive-reels"] .toast { bottom: calc(9.4rem + env(safe-area-inset-bottom)); }
.rv-card { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 16px; background: radial-gradient(120% 90% at 30% 10%, #23232C, #121217 70%);
           box-shadow: inset 0 0 0 1px rgba(212,175,55,.22), 0 18px 36px -18px rgba(0,0,0,.9); transition: transform .4s var(--ease-spring); }
.card:active .rv-card { transform: scale(.97); }
.rv-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { .rv-card:hover > img { transform: scale(1.06); } }
.rv-card > .ph { position: absolute; inset: 0 0 42% 0; background: transparent; color: #D4AF37; }
.rv-card > .ph svg { opacity: .55; }
body[data-tpl="zen-minimal"] .addons-btn { border-radius: 0; background: transparent; border-style: solid; border-color: #141413; }
.rv-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,11,.95) 6%, rgba(8,8,11,.35) 50%, rgba(8,8,11,0) 75%); }
.rv-tags { position: absolute; z-index: 1; left: .55rem; top: .55rem; right: .55rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.rv-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: .75rem .7rem .7rem; }
.rv-name { font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 4.6vw, 1.3rem); line-height: 1.1; color: #F5EFE3; overflow-wrap: break-word;
           display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-meta { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(245,239,227,.6); margin-top: .2rem; }
.rv-foot { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-top: .45rem; }
.rv-price { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: #E9C96B; }
body[data-tpl="immersive-reels"] .plus-btn { background: linear-gradient(135deg, #F3D98B, #D4AF37); color: #0D0D11; }
.reels-fab { position: fixed; z-index: 31; left: 50%; transform: translateX(-50%); bottom: calc(5.1rem + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: .7rem;
             min-height: 3.1rem; padding: .45rem 1.2rem .45rem .5rem; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap; font: inherit; color: #0D0D11;
             background: linear-gradient(135deg, #F7E3A3 0%, #D4AF37 45%, #A8842A 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 14px 34px -10px rgba(212,175,55,.75); animation: fab-float 3.2s ease-in-out infinite; }
.reels-fab .play { width: 2.2rem; height: 2.2rem; border-radius: 999px; background: #0D0D11; color: #E9C96B; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; padding-left: 2px;
                   box-shadow: 0 0 0 3px rgba(13,13,17,.15); }
.reels-fab b { display: block; font-weight: 800; font-size: .88rem; line-height: 1.1; }
.reels-fab small { display: block; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; opacity: .7; }
@keyframes fab-float { 50% { transform: translateX(-50%) translateY(-3px); } }
.reels { position: fixed; inset: var(--bar-h) 0 0 0; z-index: 66; height: calc(100dvh - var(--bar-h)); overflow-y: scroll; scroll-snap-type: y mandatory; overscroll-behavior: contain; background: #000; color: #fff;
         scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.reels::-webkit-scrollbar { display: none; }
.reel { position: relative; height: calc(100dvh - var(--bar-h)); scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: radial-gradient(120% 80% at 50% 20%, #1E1E26, #07070A 70%); }
.reel > img, .reel > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel.on > img { animation: reel-zoom 9s ease-out forwards; }
@keyframes reel-zoom { from { transform: scale(1.12); } to { transform: scale(1.0); } }
.reel > .ph { position: absolute; inset: 0 0 48% 0; background: transparent; color: #D4AF37; }
.reel > .ph svg { max-width: 8rem; opacity: .6; }
.reel-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 32%, rgba(0,0,0,0) 58%), linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0) 18%); }
.reel-body { position: absolute; left: 0; right: 4.2rem; bottom: 0; padding: 0 1.15rem calc(1.4rem + env(safe-area-inset-bottom)); }
.reel-body > * { opacity: 0; transform: translateY(16px); }
.reel.on .reel-body > * { animation: slide-text .8s var(--ease-out) forwards; }
.reel.on .reel-body > *:nth-child(2) { animation-delay: .08s; } .reel.on .reel-body > *:nth-child(3) { animation-delay: .16s; }
.reel.on .reel-body > *:nth-child(4) { animation-delay: .24s; } .reel.on .reel-body > *:nth-child(5) { animation-delay: .32s; }
.reel-badge { display: inline-flex; align-items: center; gap: .35rem; min-height: 1.8rem; padding: .25rem .7rem; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .04em;
              color: #0D0D11; background: linear-gradient(135deg, #F7E3A3, #D4AF37); }
.reel-badge.ghost { color: #fff; background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.25); }
.reel-name { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: clamp(2rem, 9vw, 3.2rem); line-height: 1.02; margin-top: .55rem; text-wrap: balance; text-shadow: 0 2px 18px rgba(0,0,0,.5); overflow-wrap: break-word; }
.reel-meta { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-top: .45rem; }
.reel-desc { font-size: .9rem; line-height: 1.5; color: rgba(255,255,255,.86); margin-top: .5rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.reel-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .9rem; }
.reel-price { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: 2rem; color: #E9C96B; line-height: 1; margin-right: .3rem; }
.reel-old { font-size: .95rem; color: rgba(255,255,255,.55); text-decoration: line-through; }
.reel-add { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 3rem; padding: .6rem 1.2rem; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 800; font-size: .9rem;
            color: #0D0D11; background: linear-gradient(135deg, #F7E3A3, #D4AF37 55%, #A8842A); box-shadow: 0 12px 26px -10px rgba(212,175,55,.8); transition: transform .2s var(--ease-spring); }
.reel-add.ghost { color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); box-shadow: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.reel-add:active { transform: scale(.94); }
.reel-rail { position: absolute; right: .7rem; bottom: calc(1.6rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.reel-rail button { width: 2.9rem; height: 2.9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.35); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
                    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.reels-top { position: fixed; z-index: 67; left: 0; right: 0; top: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: calc(.7rem + env(safe-area-inset-top)) .9rem .7rem; pointer-events: none; }
.reels-top > * { pointer-events: auto; }
.reels-title { display: inline-flex; align-items: center; gap: .45rem; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: #E9C96B; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.reels-title i { width: .45rem; height: .45rem; border-radius: 999px; background: #EF4444; box-shadow: 0 0 0 0 rgba(239,68,68,.6); animation: live-dot 1.6s infinite; }
@keyframes live-dot { 70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
.reels-close { width: 2.9rem; height: 2.9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.4); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
               -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.reels-progress { position: fixed; z-index: 67; right: .45rem; top: calc(50% + var(--bar-h) / 2); transform: translateY(-50%); display: flex; flex-direction: column; gap: .3rem; pointer-events: none; }
.reels-progress span { width: 3px; height: .9rem; border-radius: 3px; background: rgba(255,255,255,.3); transition: height .3s var(--ease-out), background .3s; }
.reels-progress span.on { height: 1.8rem; background: #E9C96B; }
.reels-hint { position: fixed; z-index: 67; left: 50%; top: calc(var(--bar-h) + 38%); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .2rem;
              font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; padding: .55rem .9rem; border-radius: 999px; background: rgba(0,0,0,.4);
              -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; animation: hint-bob 1.6s ease-in-out infinite; }
@keyframes hint-bob { 50% { transform: translateX(-50%) translateY(-8px); } }
/* ==================================================================
   Carousels (hero slider + quick-access banners): native swipe with scroll-snap
   ================================================================== */
.carousel { position: relative; }
.carousel-track { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
                  overscroll-behavior-x: contain; scrollbar-width: none; touch-action: pan-x pan-y; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; position: relative; overflow: hidden; }
.carousel-dots { display: flex; justify-content: center; gap: .4rem; padding: .7rem 0 .2rem; }
.carousel-dot { width: .5rem; height: .5rem; border-radius: 999px; border: 0; padding: 0; background: color-mix(in srgb, var(--text) 25%, transparent); cursor: pointer; transition: width .3s var(--ease-out), background .3s; }
.carousel-dot.on { width: 1.4rem; background: var(--hl); }
.hero-carousel .carousel-dots { position: absolute; left: 0; right: 0; bottom: .55rem; z-index: 2; }
.hero-carousel .carousel-dot { background: rgba(255,255,255,.45); }
.hero-carousel .carousel-dot.on { background: #fff; }
.hero-slide { height: clamp(15rem, 62vw, 27rem); background: #111; color: #fff; }
.hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide.is-link { cursor: pointer; }
.hero-slide-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.1) 100%); }
.hero-slide-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 1.25rem 2.4rem; display: flex; flex-direction: column; align-items: flex-start; }
.hero-slide-logo { max-height: 3.4rem; max-width: 11rem; object-fit: contain; margin-bottom: .8rem; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.hero-slide-name { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(1.3rem, 6vw, 2rem); letter-spacing: .04em; margin-bottom: .4rem; }
.hero-slide-title { font-family: var(--display); font-size: clamp(1.3rem, 6.2vw, 2.4rem); line-height: 1.12; max-width: 32rem; text-wrap: balance; text-shadow: 0 2px 14px rgba(0,0,0,.45);
                    hyphens: manual; word-break: normal; overflow-wrap: break-word; }
.hero-slide-title.is-italic { font-style: italic; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; }
body:not([data-layout="raya"]) .hero-carousel { max-width: 46rem; margin: 0 auto; }
@media (min-width: 640px) { body:not([data-layout="raya"]) .hero-carousel .carousel-track { border-radius: 0 0 var(--radius-lg) var(--radius-lg); } }
.spot-carousel .carousel-slide { flex-basis: 86%; scroll-snap-align: center; margin-right: .75rem; }
@media (min-width: 640px) { .spot-carousel .carousel-slide { flex-basis: 62%; } }
.spot-card { display: block; aspect-ratio: 16 / 10; border: 0; padding: 0; border-radius: var(--radius-lg); background: #111; color: #fff; cursor: pointer; text-align: left; font: inherit; }
.spot-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
@media (hover: hover) { .spot-card:hover > img { transform: scale(1.05); } }
.spot-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.62), rgba(0,0,0,.05) 55%, rgba(0,0,0,.55)); }
.spot-headline { position: absolute; left: 1rem; right: 1rem; top: .9rem; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(1.1rem, 5.2vw, 1.6rem); line-height: 1.15; text-wrap: balance;
                 hyphens: manual; word-break: normal; }
.spot-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .65rem 1rem;
            background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: .88rem; letter-spacing: .02em; }
body[data-tpl="scanio-classic"] .spot-bar { background: #111; color: #fff; }
body[data-tpl="neon-nightclub"] .spot-card { box-shadow: 0 0 22px rgba(255,43,214,.3); }
body[data-tpl="zen-minimal"] .spot-bar { background: #fff; color: #111; border-top: 1px solid var(--line); }
/* "About the restaurant" card + about page */
.about-card { position: relative; display: flex; width: 100%; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--text);
              text-align: left; cursor: pointer; overflow: hidden; }
.about-card > img { width: 6.5rem; height: 6.5rem; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
@media (max-width: 359px) { .about-card > img { width: 4.5rem; height: 4.5rem; } }
.about-card-body { min-width: 0; flex: 1; }
.about-quote { margin: 1.5rem 0 0; padding: .9rem 1.1rem; border-left: 3px solid var(--hl); font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: clamp(1.15rem, 4.8vw, 1.45rem); line-height: 1.35; }
.about-quote::before { content: "\201E"; } .about-quote::after { content: "\201C"; }
.about-team { margin-left: 0; margin-right: 0; }
.about-team img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 18px 40px -22px rgba(0,0,0,.55); }
.about-team figcaption { margin-top: .6rem; font-size: .8rem; color: var(--muted); font-style: italic; text-align: center; }
.contact-row { display: flex; align-items: flex-start; gap: .7rem; padding: .55rem 0; color: inherit; text-decoration: none; font-size: .95rem; border-bottom: 1px solid var(--line); }
.contact-row .ico { margin-top: .15rem; color: var(--hl); }
a.contact-row { font-weight: 600; }
.social-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.social-btn { width: 2.6rem; height: 2.6rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--text); background: var(--soft); }
.social-btn svg { width: 1.2rem; height: 1.2rem; }
.raya-foot .social-btn { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.06); }
.raya-foot-social .social-row { justify-content: flex-start; }
/* ==================================================================
   Touch targets: every tappable control is at least 44 x 44 px
   ================================================================== */
.chip, .dock-btn, .flag-btn, .btn { min-height: 2.75rem; }
.plus-btn:not(.absolute), .addon-add, .carousel-dot, .story-close { position: relative; }
.plus-btn::after, .addon-add::after, .carousel-dot::after { content: ""; position: absolute; inset: -6px; }
.carousel-dot::after { inset: -18px -18px; }
.carousel-dots { gap: 1.5rem !important; }
footer button, footer a, .raya-foot button, .raya-foot a { min-height: 2.75rem; min-width: 2.75rem; display: inline-flex; align-items: center; justify-content: center; }
.chip { min-width: 2.75rem; justify-content: center; flex-shrink: 0; } .addons-btn { min-height: 2.75rem; }
.social-btn { width: 2.75rem !important; height: 2.75rem !important; }
.raya-brand { min-height: 2.75rem; }
.raya-btn-light, .raya-btn-ghost { min-height: 2.75rem; }
.addon-add { min-height: 2.1rem; }
.addon-add::after { inset: -6px -2px; }

/* ==================================================================
   Micro-animations: reveal on scroll (x-reveal), press feedback
   ================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.raya-rec, .raya-cat, .spot-card, .about-card, .raya-lunch, .addons-btn, .lux-card { transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out); }
.raya-rec:active, .raya-cat:active, .spot-card:active, .about-card:active, .raya-lunch:active, .lux-card:active { transform: scale(.97); }
@media (hover: hover) { .raya-rec:hover, .about-card:hover, .lux-card:hover { transform: translateY(-3px); } }
.raya-drawer .raya-link { opacity: 0; transform: translateX(-14px); transition: opacity .4s var(--ease-out), transform .5s var(--ease-out), background .2s; }
.raya-drawer.open .raya-link { opacity: 1; transform: none; }
.raya-drawer.open .raya-link:nth-child(1) { transition-delay: .06s; } .raya-drawer.open .raya-link:nth-child(2) { transition-delay: .1s; }
.raya-drawer.open .raya-link:nth-child(3) { transition-delay: .14s; } .raya-drawer.open .raya-link:nth-child(4) { transition-delay: .18s; }
.raya-drawer.open .raya-link:nth-child(5) { transition-delay: .22s; } .raya-drawer.open .raya-link:nth-child(6) { transition-delay: .26s; }
.raya-drawer.open .raya-link:nth-child(n+7) { transition-delay: .3s; }
.raya-badge-new { animation: badge-glow 2.4s ease-in-out infinite; }
@keyframes badge-glow { 50% { box-shadow: 0 0 0 4px rgba(225,29,46,.22); } }

/* ==================================================================
   "Raya" (Classic + Prestige): cross-fading hero, centred recommendations
   ================================================================== */
.fader { position: relative; height: clamp(16rem, 66vw, 30rem); overflow: hidden; background: #0d0d0d; color: #fff; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.fade-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease-out), visibility 0s linear 1.2s; }
.fade-slide.on { opacity: 1; visibility: visible; transition: opacity 1.2s var(--ease-out), visibility 0s; z-index: 1; }
.fade-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.fade-slide.on > img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate3d(0, 0, 0); } to { transform: scale(1.02) translate3d(-1%, -1%, 0); } }
.fade-slide .hero-slide-body > * { opacity: 0; transform: translateY(14px); }
.fade-slide.on .hero-slide-body > * { animation: slide-text .9s var(--ease-out) forwards; }
.fade-slide.on .hero-slide-body > *:nth-child(2) { animation-delay: .15s; } .fade-slide.on .hero-slide-body > *:nth-child(3) { animation-delay: .3s; }
.fade-slide.on .hero-slide-body > *:nth-child(4) { animation-delay: .45s; }
@keyframes slide-text { to { opacity: 1; transform: none; } }
.fader .carousel-dots { position: absolute; left: 0; right: 0; bottom: .55rem; z-index: 3; }
.fader .carousel-dot { background: rgba(255,255,255,.45); }
.fader .carousel-dot.on { background: #fff; }
.fader-progress { position: absolute; left: 0; bottom: 0; z-index: 3; height: 2px; background: var(--hl); width: 0; }
.fader-progress.run { animation: fader-progress linear forwards; }
@keyframes fader-progress { to { width: 100%; } }
.raya-rec { display: flex; flex-direction: column; align-items: center; text-align: center; padding: .45rem .45rem .7rem; border-radius: var(--radius-lg); background: var(--surface);
            border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.raya-rec > span:first-child { width: 100%; }
body[data-tpl="scanio-classic"] .raya-rec { border-color: transparent; }
.raya-rec .rec-name { font-weight: 700; font-size: clamp(.72rem, 3.3vw, .9rem); line-height: 1.2; margin-top: .55rem; hyphens: manual; word-break: normal; overflow-wrap: break-word; }
.raya-rec .rec-price { font-weight: 800; font-size: clamp(.74rem, 3.4vw, .92rem); margin-top: .25rem; color: var(--text); }
body[data-tpl="scanio-prestige"] .raya-rec .rec-price, body[data-tpl="scanio-prestige"] .raya-card .price { color: var(--hl); }
/* Prestige: onyx cards with a fine gold edge */
body[data-tpl="scanio-prestige"] .raya-card, body[data-tpl="scanio-prestige"] .raya-rec, body[data-tpl="scanio-prestige"] .about-card,
body[data-tpl="scanio-prestige"] .addon-row { background: #18181C; border: 1px solid rgba(212,175,55,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 10px 28px rgba(0,0,0,.35); }
body[data-tpl="scanio-prestige"] .raya-cat { box-shadow: inset 0 0 0 1px rgba(212,175,55,.28); }
body[data-tpl="scanio-prestige"] .raya-cat::after { background: linear-gradient(to top, rgba(8,8,10,.86), rgba(8,8,10,0) 62%); }
body[data-tpl="scanio-prestige"] .raya-cat-name { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: clamp(1rem, 4.6vw, 1.3rem); letter-spacing: .02em; }
body[data-tpl="scanio-prestige"] .raya-h2::after { background: linear-gradient(90deg, var(--hl), transparent); max-width: 5rem; height: 1px; }
body[data-tpl="scanio-prestige"] .product-sheet { background: #18181C; border-color: rgba(212,175,55,.3); }
body[data-tpl="scanio-prestige"] .product-sheet .display.accent { color: var(--hl); }
/* "Raya" product modal: big photo, portion pill, large EUR price */
body[data-layout="raya"] .product-sheet .hero-img { aspect-ratio: 1 / 1; max-height: 52dvh; }
body[data-tpl="scanio-classic"] .product-sheet .hero-img::after { background: linear-gradient(to top, #fff 0%, rgba(255,255,255,0) 40%); }
body[data-layout="raya"] .product-sheet .allergen-chip { border-radius: 999px; padding: .3rem .7rem .3rem .3rem; }

/* ==================================================================
   Noir Michelin: cinematic cards, double gold hairlines, sommelier corner
   ================================================================== */
body[data-tpl="noir-michelin"] .cat-title { font-weight: 500; letter-spacing: .03em; }
.noir-cine { position: relative; display: block; aspect-ratio: 21 / 10; overflow: hidden; margin: 1.6rem 0 .6rem; outline: 1px solid rgba(212,175,55,.35); outline-offset: 5px; }
.noir-cine > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.06); transition: transform 1.4s var(--ease-out); }
@media (hover: hover) { .noir-cine:hover > img { transform: scale(1.05); } }
.noir-cine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,9,11,.92) 0%, rgba(9,9,11,.55) 45%, rgba(9,9,11,.1) 100%); }
.noir-cine-body { position: absolute; z-index: 1; left: 1.1rem; right: 35%; top: 50%; transform: translateY(-50%); }
@media (max-width: 420px) { .noir-cine { aspect-ratio: 4 / 3; } .noir-cine-body { right: 1.1rem; top: auto; bottom: 1rem; transform: none; } .noir-cine::after { background: linear-gradient(to top, rgba(9,9,11,.95), rgba(9,9,11,.2) 70%); } }
.noir-meta { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.noir-frame { position: relative; border: 1px solid rgba(212,175,55,.38); padding: 1.4rem 1.2rem; }
.noir-frame::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(212,175,55,.14); pointer-events: none; }
.noir-rule { display: flex; align-items: center; gap: .8rem; color: var(--hl); font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; }
.noir-rule::before, .noir-rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,175,55,.5), transparent); }
.noir-link { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 2.75rem; padding: .7rem 0; border-bottom: 1px solid rgba(212,175,55,.16);
             background: none; border-left: 0; border-right: 0; border-top: 0; color: inherit; width: 100%; cursor: pointer; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.2rem; text-align: left; }
.noir-link:last-child { border-bottom: 0; }
.noir-link .ico { color: var(--hl); transition: transform .3s var(--ease-out); }
.noir-link:hover .ico { transform: translateX(4px); }
body[data-tpl="noir-michelin"] .noir-bg { background: radial-gradient(70% 40% at 50% 0%, rgba(212,175,55,.14), transparent 70%), radial-gradient(40% 30% at 100% 100%, rgba(212,175,55,.06), transparent 70%); }

/* ==================================================================
   Aura Glass: liquid glass bento + floating category capsule
   ================================================================== */
body[data-tpl="aura-glass"] .surface, body[data-tpl="aura-glass"] .glass {
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(255,255,255,.06), 0 18px 44px rgba(6,4,30,.35); }
.bento { grid-auto-flow: dense; }
.bento-wide { grid-column: span 2; }
.bento-tall .media { aspect-ratio: 3 / 4 !important; }
body[data-tpl="aura-glass"] .card .surface { transition: transform .45s var(--ease-spring), box-shadow .4s; }
body[data-tpl="aura-glass"] .card:active .surface { transform: scale(.97); }
body[data-tpl="aura-glass"] .story-ring { background: conic-gradient(from 120deg, #7DF9E1, #FF8BD1, #6C3BFF, #7DF9E1); padding: 3px; }
body[data-tpl="aura-glass"] .nav .nav-chips { display: none; }   /* categories live in the floating capsule */
body[data-tpl="aura-glass"] .nav { background: transparent; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none; }
body[data-tpl="aura-glass"] .nav > * { pointer-events: auto; }
.aura-capsule { position: fixed; z-index: 29; left: 50%; transform: translateX(-50%); bottom: calc(4.85rem + env(safe-area-inset-bottom)); width: min(34rem, calc(100% - 1.5rem));
                padding: .3rem; border-radius: 999px; background: rgba(20,18,52,.55); border: 1px solid rgba(255,255,255,.22);
                -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 14px 40px rgba(0,0,0,.35); }
.aura-capsule .chip { border-color: transparent; color: rgba(255,255,255,.75); }
.aura-capsule .chip.on { background: rgba(255,255,255,.92); color: #0C0B24; border-color: transparent; box-shadow: 0 6px 18px rgba(125,249,225,.35); }
body[data-tpl="aura-glass"] .status-pill { bottom: calc(8.9rem + env(safe-area-inset-bottom)); }
body[data-tpl="aura-glass"] .toast { bottom: calc(9.2rem + env(safe-area-inset-bottom)); }
body[data-tpl="aura-glass"] main { padding-bottom: 12rem !important; }

/* ==================================================================
   Nordic Atelier: tall editorial frames, soft shadows, linen tones
   ================================================================== */
body[data-tpl="nordic-atelier"] .cat-title { font-weight: 300; letter-spacing: -.03em; }
body[data-tpl="nordic-atelier"] .eyebrow, .nordic-label { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--sage); font-weight: 600; }
.nordic-frame { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: #ECE7DE; box-shadow: 0 18px 40px -18px rgba(70,55,40,.35), 0 2px 6px rgba(70,55,40,.06); }
.nordic-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { .lux-card:hover .nordic-frame img { transform: scale(1.04); } }
.nordic-price { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--accent); }
.nordic-dot { width: .35rem; height: .35rem; border-radius: 999px; background: var(--sage); display: inline-block; }
body[data-tpl="nordic-atelier"] .dock { box-shadow: 0 18px 40px -12px rgba(70,55,40,.3); }
body[data-tpl="nordic-atelier"] .chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- per-template hero / title tweaks (was the page's style block) ---------- */
.wrap { max-width: 46rem; margin: 0 auto; }
section[data-cat] { scroll-margin-top: calc(var(--bar-h) + 7.5rem); }
.hero-title { font-size: clamp(1.9rem, 9vw, 4rem); line-height: 1; overflow-wrap: break-word; hyphens: manual; text-wrap: balance; }
.eyebrow { font-size: .68rem; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); }
body[data-tpl="noir-michelin"] .hero { text-align: center; padding-top: 3rem; padding-bottom: 2rem; }
body[data-tpl="noir-michelin"] .hero .services { justify-content: center; }
body[data-tpl="aura-glass"] .hero-title { background: linear-gradient(100deg, #fff 20%, #7DF9E1 60%, #FF8BD1); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .1em; }
body[data-tpl="nordic-atelier"] .hero { padding-top: 3.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
body[data-tpl="nordic-atelier"] .hero-title { font-size: clamp(2.2rem, 10vw, 4.2rem); font-weight: 300; letter-spacing: -.035em; }
body[data-tpl="nordic-atelier"] .eyebrow { color: var(--sage); }
body[data-tpl="kinetic-grid"] .hero-title { font-size: clamp(1.9rem, 10vw, 4.4rem); line-height: .95; letter-spacing: -.045em; }
body[data-tpl="neon-nightclub"] .hero-title { font-size: clamp(1.45rem, 8vw, 3.4rem); line-height: 1.08; padding-bottom: .08em; filter: drop-shadow(0 0 18px rgba(236,72,153,.45)); }
body[data-tpl="rustic-tavern"] .hero-title { color: #F59E0B; }
body[data-tpl="zen-minimal"] .hero { text-align: center; padding-top: 3.5rem; padding-bottom: 2.5rem; }
body[data-tpl="zen-minimal"] .hero .services { justify-content: center; }
body[data-tpl="zen-minimal"] .hero-title { font-weight: 300; letter-spacing: .12em; }
body[data-tpl="immersive-reels"] .hero { text-align: center; }
body[data-tpl="immersive-reels"] .hero .services { justify-content: center; }
body[data-tpl="immersive-reels"] .hero-title { font-style: italic; font-weight: 500; background: linear-gradient(100deg, #F7E3A3, #D4AF37 50%, #F5EFE3); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
body[data-tpl="kinetic-grid"] .eyebrow { background: #FFF7ED; color: var(--accent); display: inline-block; padding: .3rem .7rem; border-radius: 999px; letter-spacing: .14em; font-weight: 800; }
.cat-title { font-size: clamp(1.7rem, 6vw, 2.300rem); line-height: 1.05; }
body[data-tpl="noir-michelin"] .cat-head { text-align: center; }
body[data-tpl="noir-michelin"] .cat-head::after { content: ""; display: block; width: 3rem; height: 1px; background: var(--accent); margin: .9rem auto 0; }
body[data-tpl="nordic-atelier"] .cat-title { font-size: clamp(1.7rem, 7vw, 2.6rem); }
body[data-tpl="kinetic-grid"] .cat-title { font-size: clamp(1.6rem, 7vw, 2.6rem); letter-spacing: -.04em; }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem .95rem; border: 1px solid var(--line); border-radius: var(--radius-lg); cursor: pointer; transition: border-color .2s, background .2s; }
.opt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.radio { width: 1.1rem; height: 1.1rem; border-radius: 999px; border: 1.5px solid var(--muted); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.opt.on .radio { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.hero-img { position: relative; aspect-ratio: 4 / 3; max-height: 46dvh; width: 100%; overflow: hidden; border-radius: 28px 28px 0 0; background: var(--soft); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--sheet) 2%, transparent 55%); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 2rem; cursor: pointer;
               background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
               background-position: calc(100% - 1.05rem) 50%, calc(100% - .75rem) 50%; background-size: .3rem .3rem; background-repeat: no-repeat; }
select.input option { color: #111; background: #fff; }
select.input.picked { border-color: var(--accent); }
.input.bad { border-color: var(--danger); }
textarea.input { resize: vertical; min-height: 3.4rem; }
.progress { height: .5rem; border-radius: 999px; background: var(--soft); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .6s var(--ease-spring); }
.progress > span.done { background: #34D399; }
.tstep { display: flex; align-items: center; gap: .85rem; padding: .7rem 0; position: relative; opacity: .45; transition: opacity .4s; }
.tstep.done, .tstep.now { opacity: 1; }
.tstep:not(:last-child)::after { content: ""; position: absolute; left: .84rem; top: 2.55rem; bottom: -.7rem; width: 2px; background: var(--line); }
.tstep.done:not(:last-child)::after { background: var(--accent); }
.tdot { width: 1.75rem; height: 1.75rem; border-radius: 999px; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--sheet); position: relative; z-index: 1; }
.tstep.done .tdot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tstep.now .tdot { border-color: var(--accent); color: var(--accent); }
button.opt { background: transparent; color: inherit; font: inherit; text-align: left; width: 100%; }
.call-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; min-height: 6.2rem; padding: .9rem .6rem; text-align: center; cursor: pointer;
            background: var(--soft); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-lg); font-family: inherit; transition: transform .2s var(--ease-spring), border-color .2s, background .2s; }
.call-btn:active { transform: scale(.95); }
.call-btn.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.call-btn[disabled]:not(.on) { opacity: .5; }
.pulse-dot { width: .7rem; height: .7rem; border-radius: 999px; background: #F5B93B; flex-shrink: 0; animation: pulse-ring 1.6s infinite; --accent-pulse: #F5B93B; }
.pulse-dot.ok { background: #34D399; animation: none; }
.status-pill { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(4.9rem + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: .6rem;
               max-width: calc(100vw - 1.5rem); padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--sheet); color: var(--text);
               font-family: inherit; font-size: .78rem; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.35); cursor: pointer; text-align: left; }
/* Smart promo: 5-second story pop-up */
.story { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(0,0,0,.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.story-card { position: relative; width: 100%; max-width: 24rem; max-height: 94dvh; overflow: hidden auto; overscroll-behavior: contain; border-radius: 1.5rem; background: var(--sheet); color: var(--text); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: story-in .5s var(--ease-spring) both; }
@keyframes story-in { from { transform: translateY(24px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.story-media { position: relative; aspect-ratio: 9 / 14; max-height: 76dvh; width: 100%; background: #0b0a08; overflow: hidden; cursor: pointer; transition: aspect-ratio .35s ease; }
.story-card.expanded .story-media { aspect-ratio: 16 / 11; cursor: default; }
.story-media > img, .story-media > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-card.expanded .story-media > img { object-fit: contain; }
.story-fallback { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 1.5rem; text-align: center; color: #F4EFE6;
                  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 45%, #0b0a08), #0b0a08 70%); }
.story-top { position: absolute; z-index: 3; left: 0; right: 0; top: 0; padding: .7rem .8rem 1.6rem; background: linear-gradient(to bottom, rgba(0,0,0,.65), transparent); pointer-events: none; }
.story-top > * { pointer-events: auto; }
.story-progress { height: 3px; border-radius: 999px; background: rgba(255,255,255,.3); overflow: hidden; }
.story-progress > span { display: block; height: 100%; width: 0; background: #fff; border-radius: 999px; }
.story-close { width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 0; background: rgba(0,0,0,.45); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.story-caption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 3.5rem 1.1rem 1.1rem; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.88) 35%, transparent); }
.story-hint { display: inline-flex; align-items: center; gap: .35rem; margin-top: .6rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255,255,255,.16); font-size: .72rem; font-weight: 600; animation: pulse-soft 1.4s ease-in-out infinite; }
@keyframes pulse-soft { 50% { background: rgba(255,255,255,.3); } }
.promo-btn { position: relative; }
.promo-btn::after { content: ""; position: absolute; top: .1rem; right: .1rem; width: .55rem; height: .55rem; border-radius: 999px; background: #F5B93B; box-shadow: 0 0 0 0 rgba(245,185,59,.7); animation: promo-ping 1.8s infinite; }
@keyframes promo-ping { 70% { box-shadow: 0 0 0 .5rem rgba(245,185,59,0); } 100% { box-shadow: 0 0 0 0 rgba(245,185,59,0); } }
@media (prefers-reduced-motion: reduce) { .story-card, .story-hint, .promo-btn::after { animation: none; } }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 2.75rem; height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--text); cursor: pointer; }

/* ---------- Two-screen menu: category tiles on the home screen, "← Categories" bar on the category screen ---------- */
.cat-tile .cat-tile-count { display: block; font-weight: 500; font-size: .68rem; opacity: .82; letter-spacing: .02em; margin-top: .15rem; text-transform: none; font-family: var(--body); }
.cat-tile-badge { position: absolute; z-index: 1; top: .55rem; left: .55rem; max-width: calc(100% - 1.1rem); padding: .2rem .5rem; border-radius: 999px; background: rgba(0,0,0,.62); color: #fff;
                  font-size: .62rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-back { flex-shrink: 0; font-weight: 700; gap: .2rem; padding-left: .6rem; background: var(--soft); border-color: var(--line); color: var(--text); }
body[data-tpl="noir-michelin"] .nav-back, body[data-tpl="zen-minimal"] .nav-back { margin-right: .4rem; padding-left: .2rem; background: transparent; }
body[data-tpl="aura-glass"] .nav-back { background: rgba(20,18,52,.62); border-color: rgba(255,255,255,.25); color: #fff; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
body[data-tpl="aura-glass"] .nav .icon-btn { background: rgba(20,18,52,.62); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
body[data-tpl="aura-glass"] .nav > .wrap:first-child { justify-content: space-between; }
#home-view .cat-title { text-align: left; }
/* Dock on phones: icon above its full label ("Сервитьор", "Сомелиер"), like a tab bar - nothing is cut off */
@media (max-width: 520px) {
  .dock { gap: .15rem; padding: .3rem; width: max-content; }
  .dock-btn { flex-direction: column; gap: .12rem; padding: .42rem .7rem .36rem; font-size: .66rem; line-height: 1.1; min-width: 4.2rem; min-height: 3rem; justify-content: center; }
  .dock-btn .ico { width: 1.3rem; height: 1.3rem; }
  .dock-btn > span:not(.dot) { overflow: visible; text-overflow: clip; }
  .dock-btn .dot { position: absolute; top: .2rem; right: .55rem; }
  .dock-btn:not(.primary) > span:not(.dot):not(.hidden) { display: inline; }
}

/* "Powered by Scanio" (the platform's mark, a link to www.scaniobg.com) */
.powered-by { display: inline-flex; align-items: center; gap: .45rem; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
              color: inherit; opacity: .75; text-decoration: none; min-height: 2.75rem; }
.powered-by img { width: 18px; height: 18px; border-radius: 5px; }
.powered-by:hover { opacity: 1; }

/* ==================================================================
   Package 1 / D: a different STRUCTURE for every design
   ================================================================== */
/* 2. Scanio Prestige: 21:9 panoramic category banners + photo on the right with a dotted leader */
.raya-pano { aspect-ratio: 21 / 9; }
.raya-pano .raya-cat-name { font-family: var(--display); font-size: clamp(1.35rem, 6vw, 1.9rem); font-weight: 600; letter-spacing: .02em; }
.pr-card { align-items: stretch; }
.pr-name { font-size: clamp(1.15rem, 5vw, 1.35rem); line-height: 1.15; }
.pr-thumb { width: 6.5rem; height: 6.5rem; border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(212,175,55,.3); }
.pr-plus { position: absolute; right: .35rem; bottom: .35rem; }
.pr-leader { display: flex; align-items: baseline; gap: .4rem; }
.pr-portion { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.pr-dots { flex: 1; min-width: 1rem; border-bottom: 2px dotted rgba(212,175,55,.55); transform: translateY(-.25rem); }
.pr-price { font-weight: 800; color: var(--accent); white-space: nowrap; }

/* 3. Noir Michelin: Roman-numeral table of contents + one big 16:10 card per row */
.noir-toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.noir-toc li button { display: flex; align-items: baseline; gap: .7rem; width: 100%; min-height: 3.5rem; padding: .9rem 0; background: none; border: 0; border-bottom: 1px solid var(--line); color: inherit; cursor: pointer; text-align: left; }
.toc-no { width: 2.6rem; flex: none; font-family: var(--display); font-size: 1.05rem; color: var(--accent); letter-spacing: .06em; }
.toc-name { font-family: var(--display); font-size: clamp(1.35rem, 6vw, 1.75rem); line-height: 1.1; }
.toc-dots { flex: 1; min-width: 1rem; border-bottom: 1px dotted rgba(212,175,55,.45); transform: translateY(-.3rem); }
.toc-count { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.noir-big { padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.noir-big-frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; outline: 1px solid rgba(212,175,55,.35); outline-offset: 5px; margin-top: .4rem; }
.noir-big-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.06); transition: transform 1.4s var(--ease-out); }
@media (hover: hover) { .noir-big:hover .noir-big-frame img { transform: scale(1.04); } }

/* 4. Aura Glass: round stories + bento with 3D photos popping out of the glass */
.aura-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem .6rem; }
.aura-stories button { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; text-align: center; }
.aura-bubble { display: block; width: min(6.4rem, 26vw); aspect-ratio: 1; margin: 0 auto; border-radius: 999px; padding: 3px; overflow: hidden;
  background: conic-gradient(from 210deg, #7DF9E1, #FF8BD1, #8B7BFF, #7DF9E1); box-shadow: 0 10px 30px -10px rgba(125,249,225,.55); }
.aura-bubble img, .aura-bubble .ph { width: 100%; height: 100%; border-radius: 999px; object-fit: cover; display: block; border: 3px solid #0C0B24; }
.aura-bubble-name { display: block; margin-top: .45rem; font-size: .8rem; font-weight: 700; line-height: 1.15; }
.aura-pop { z-index: 1; filter: drop-shadow(0 16px 18px rgba(0,0,0,.45)); transition: transform .5s var(--ease-spring); }
.aura-pop .media { border-radius: 18px; }
.card:active .aura-pop, .card:hover .aura-pop { transform: translateY(-4px) rotate(-1.5deg) scale(1.02); }

/* 5. Nordic Atelier: frameless 3:4 portraits numbered 01 / 02 */
.nordic-cat { display: block; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: left; }
.nordic-cat-photo { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; background: #ECE7DE; }
.nordic-cat-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nordic-cat-no, .nordic-no { display: block; margin-top: .6rem; font-size: 1.6rem; font-weight: 200; letter-spacing: -.04em; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.nordic-cat-name { display: block; margin-top: .2rem; font-weight: 500; font-size: 1rem; line-height: 1.2; }
.nordic-card .nordic-frame { aspect-ratio: 3 / 4; border-radius: 4px; box-shadow: none; }
.nordic-name { font-size: 1.05rem; line-height: 1.2; font-weight: 400; }
body[data-tpl="nordic-atelier"] .nordic-no { margin-top: 0; margin-bottom: .2rem; font-size: 1.3rem; }

/* 6. Kinetic Grid: 3 columns of round categories + a price sticker on the square photo */
.kg-cat { display: flex; flex-direction: column; align-items: center; gap: .3rem; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: center; }
.kg-cat-circle { width: 100%; aspect-ratio: 1; border-radius: 999px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent), 0 10px 20px -12px rgba(15,23,42,.45); background: #FFF7ED; }
.kg-cat-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kg-cat-name { font-weight: 800; font-size: .82rem; line-height: 1.15; }
.kg-cat-count { font-size: .66rem; color: var(--muted); }
.kg-sticker { position: absolute; right: .45rem; top: .45rem; z-index: 2; display: grid; place-items: center; min-width: 3.4rem; height: 3.4rem; padding: 0 .35rem; border-radius: 999px;
  background: #FACC15; color: #0F172A; font-weight: 900; font-size: .8rem; letter-spacing: -.02em; transform: rotate(-12deg); box-shadow: 0 6px 14px -6px rgba(15,23,42,.5); border: 2px dashed rgba(15,23,42,.25); }

/* 7. Toast Bistro: a fixed left category bar (24 %) and the dishes (76 %) on one screen */
.tb-cat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #E2E8F0; }
.tb-cat-list button { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 4rem; padding: .6rem 0; background: none; border: 0; border-bottom: 1px solid #E2E8F0; color: inherit; cursor: pointer; }
.tb-cat-thumb { width: 3rem; height: 3rem; border-radius: 10px; overflow: hidden; flex: none; background: #F1F5F9; }
.tb-cat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
#menu-main.tb-split { display: grid; grid-template-columns: 24% minmax(0, 76%); gap: 0; padding-left: 0; padding-right: .75rem; }
.tb-side { position: sticky; top: calc(var(--bar-h) + var(--head-h) + 3.7rem); align-self: start; max-height: calc(100vh - var(--bar-h) - var(--head-h) - 4.5rem); overflow-y: auto;
  scrollbar-width: none; border-right: 1px solid #E2E8F0; background: #F8FAFC; }
.tb-side::-webkit-scrollbar { display: none; }
.tb-side-btn { display: flex; flex-direction: column; align-items: center; gap: .3rem; width: 100%; min-height: 4.6rem; padding: .6rem .25rem; background: none; border: 0; border-left: 3px solid transparent;
  color: #475569; cursor: pointer; font-size: .68rem; font-weight: 700; line-height: 1.15; text-align: center; }
.tb-side-btn.on { background: #fff; color: #0F172A; border-left-color: #0F172A; }
.tb-side-ico { width: 2.3rem; height: 2.3rem; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: #E2E8F0; }
.tb-side-ico img { width: 100%; height: 100%; object-fit: cover; }
.tb-side-ico svg { width: 1.3rem; height: 1.3rem; }
.tb-side-name { overflow-wrap: anywhere; hyphens: auto; }
#menu-main.tb-split .menu-body { padding-left: .75rem; }
#menu-main.tb-split .cat-head { margin-left: -.75rem !important; margin-right: -.75rem !important; }
#menu-main.tb-split .tb-thumb { width: 4.5rem; height: 4.5rem; }
#menu-main.tb-split .mode-pill { margin-left: .75rem; }
body[data-tpl="toast-bistro"] .nav-chips { visibility: hidden; }

/* 8. Rustic Tavern: wooden signboards, the big "Специалитет", a copper seal for the weight */
.rt-sign { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .8rem; width: 100%; min-height: 4.4rem; padding: .9rem 1.6rem; border: 0; cursor: pointer; color: #FDE7C7; text-align: left;
  border-radius: 6px; background:
  repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 2px, transparent 2px 9px),
  repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 7px),
  linear-gradient(180deg, #7A4A26, #5C3519 55%, #4A2A13);
  box-shadow: inset 0 2px 0 rgba(255,214,160,.25), inset 0 -3px 0 rgba(0,0,0,.35), 0 10px 20px -12px rgba(0,0,0,.8); }
.rt-sign:nth-child(even) { transform: rotate(-.6deg); }
.rt-sign:nth-child(odd) { transform: rotate(.5deg); }
.rt-sign-name { font-family: 'Alegreya', Georgia, serif; font-weight: 700; font-size: clamp(1.2rem, 5.4vw, 1.5rem); text-shadow: 0 1px 0 rgba(0,0,0,.6), 0 0 12px rgba(245,158,11,.25); }
.rt-sign-count { font-size: .72rem; color: #F5C27A; white-space: nowrap; }
.rt-nail { position: absolute; left: .6rem; top: 50%; width: .5rem; height: .5rem; margin-top: -.25rem; border-radius: 999px; background: radial-gradient(circle at 35% 35%, #E5E7EB, #6B7280 60%, #374151); }
.rt-nail.right { left: auto; right: .6rem; }
.card.rt-special { grid-column: 1 / -1; }
.rt-special .rt-card { flex-direction: column; padding: .9rem; border-color: rgba(245,158,11,.55); box-shadow: 0 0 0 1px rgba(245,158,11,.25), 0 22px 40px -22px rgba(245,158,11,.5); }
.rt-special .rt-thumb { width: 100%; }
.rt-special .rt-thumb .media { aspect-ratio: 16 / 9; }
.rt-special .rt-name { font-size: clamp(1.4rem, 6vw, 1.8rem); }
.rt-special-label { position: absolute; z-index: 2; left: 1.3rem; top: 1.3rem; padding: .3rem .8rem; border-radius: 4px; background: linear-gradient(135deg, #F59E0B, #B45309); color: #1A120B;
  font-weight: 900; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 6px 14px -6px rgba(0,0,0,.7); }
.rt-card .rt-weight { position: absolute; right: .55rem; top: .55rem; z-index: 2; width: 3.5rem; height: 3.5rem; margin: 0; padding: .2rem; border-radius: 999px; display: grid; place-items: center; text-align: center;
  font-size: .64rem; line-height: 1.05; background: radial-gradient(circle at 35% 30%, #F8C77E, #D97736 55%, #8A4513); color: #2A1608; transform: rotate(-10deg);
  box-shadow: inset 0 0 0 2px rgba(42,22,8,.35), inset 0 0 0 4px rgba(248,199,126,.6), 0 6px 12px -6px rgba(0,0,0,.8); }
.rt-card .rt-weight::before { display: none; }
.rt-card .rt-name { padding-right: 3.4rem; }
.rt-special .rt-name { padding-right: 0; }

/* 9. Zen Minimal: Japanese bands with a red seal, rows split by a 1px line, round plates */
.zen-bands { border-top: 1px solid #141413; }
.zen-band { display: flex; align-items: center; gap: .9rem; width: 100%; min-height: 4rem; padding: .8rem .2rem; background: none; border: 0; border-bottom: 1px solid #141413; color: inherit; cursor: pointer; text-align: left; }
.zen-band-seal { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; background: #991B1B; color: #FAF9F6; font-size: 1.05rem; font-weight: 700; border-radius: 3px; }
.zen-band-name { font-size: 1.15rem; letter-spacing: .08em; }
.zen-band-line { flex: 1; height: 1px; background: #D6D3D1; }
.zen-band-count { font-size: .78rem; color: #78716C; font-variant-numeric: tabular-nums; }
body[data-tpl="zen-minimal"] .zen-card { border: 0; border-bottom: 1px solid #D6D3D1; background: transparent; padding: 1.3rem .2rem; }
body[data-tpl="zen-minimal"] .card:active .zen-card { background: rgba(255,255,255,.6); }
.zen-plate { border-radius: 999px; padding: 4px; border: 1px solid #D6D3D1; box-shadow: 0 0 0 4px #FAF9F6, 0 0 0 5px #E7E5E4; }
.zen-plate img { border-radius: 999px; }

/* 10. Neon Nightclub: OLED tiles with a neon edge */
.neon-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 1; padding: .9rem; overflow: hidden; border-radius: 14px; background: #000; cursor: pointer; text-align: left; color: #fff;
  border: 1.5px solid var(--nc); box-shadow: 0 0 14px -2px var(--nc), inset 0 0 18px -6px var(--nc); }
.neon-tile.n0 { --nc: #8B5CF6; } .neon-tile.n1 { --nc: #EC4899; } .neon-tile.n2 { --nc: #22D3EE; }
.neon-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(1.3); }
.neon-tile-name { position: relative; font-weight: 800; font-size: 1.05rem; line-height: 1.1; text-shadow: 0 0 8px var(--nc), 0 0 18px var(--nc); }
.neon-tile-count { position: relative; margin-top: .2rem; font-size: .68rem; color: #A1A1C2; }

/* 11. Immersive Reels: 9:16 posters, every one starts the vertical feed */
.rv-watch { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; min-height: 3.4rem; border-radius: 999px; border: 1px solid rgba(212,175,55,.5); cursor: pointer;
  background: linear-gradient(90deg, rgba(212,175,55,.18), rgba(212,175,55,.06)); color: #F5E6C8; font-weight: 800; letter-spacing: .02em; }
.rv-watch-sm { min-height: 2.9rem; font-size: .88rem; }
.rv-watch-play { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; background: #D4AF37; color: #0D0D11; font-size: .8rem; }
.rv-poster { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 16px; border: 0; padding: 0; cursor: pointer; background: #17171D; }
.rv-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,13,17,.92), rgba(13,13,17,0) 55%); }
.rv-poster-play { position: absolute; z-index: 1; top: .7rem; right: .7rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); color: #fff; font-size: .75rem; }
.rv-poster-name { position: absolute; z-index: 1; left: .8rem; right: .8rem; bottom: .8rem; color: #F5E6C8; font-weight: 800; font-size: 1.05rem; line-height: 1.15; text-align: left; }
.rv-card.rv-tall { aspect-ratio: 9 / 16; }

/* The table of the scanned QR code: an information badge, never a button */
.table-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 800; white-space: nowrap;
  background: var(--hl, var(--accent)); color: var(--on-accent, #111); pointer-events: none; user-select: none; }
.raya-head .table-badge { background: var(--hl); color: #111; }
/* "Препоръчваме Ви": a compact swipe carousel with a peek of the third card */
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.rec-carousel [x-ref="track"] { scroll-padding-left: 1rem; }
.rec-card { background: var(--surface); border-radius: 14px; padding: .45rem .45rem .5rem; box-shadow: 0 6px 16px -12px rgba(0,0,0,.45); }
.rec-arrow { width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 1.35rem; line-height: 1; cursor: pointer; }
.rec-plus { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: -.4rem -.35rem -.4rem 0; border-radius: 999px; border: 0; cursor: pointer; background: var(--accent); color: var(--on-accent); }
.rec-dot { width: .4rem; height: .4rem; border-radius: 999px; background: var(--line); transition: width .3s, background .3s; }
.rec-dot.on { width: 1.1rem; background: var(--accent); }

/* Portions ("разфасовки") on the cards and the sub-category capsules */
.vchips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .55rem; }
.vchip { min-height: 2.75rem; padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: inherit;
  font-size: .72rem; font-weight: 700; line-height: 1.1; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.vchip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sub-chips .sub-chip { min-height: 2.5rem; }

/* Immersive Reels: "▶" on a category poster is its own button; "▶ Видео" on a dish */
.rv-poster { cursor: pointer; }
button.rv-poster-play { border: 0; cursor: pointer; width: 2.75rem; height: 2.75rem; font-size: .85rem; }
button.rv-poster-play:focus-visible, .rv-video:focus-visible { outline: 2px solid #D4AF37; outline-offset: 2px; }
.rv-video { position: absolute; z-index: 2; right: .55rem; top: .55rem; display: inline-flex; align-items: center; gap: .3rem; min-height: 2.75rem; padding: 0 .8rem;
  border: 1px solid rgba(212,175,55,.6); border-radius: 999px; background: rgba(13,13,17,.62); backdrop-filter: blur(6px); color: #F5E6C8;
  font-size: .72rem; font-weight: 800; cursor: pointer; }
.rv-card.rv-tall .rv-tags { right: 6.2rem; }

/* Step E: tip chips, the Н-18 note, Happy Hour, loyalty stamps, Room Service */
.tip-chip { min-height: 2.75rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; }
.tip-chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.legal-note { font-size: .72rem; line-height: 1.35; padding: .55rem .75rem; border-radius: 10px; border: 1px dashed var(--line); color: var(--muted); }
.hh-banner { display: flex; align-items: center; gap: .6rem; padding: .7rem .95rem; border-radius: var(--radius-lg, 14px); font-weight: 800; font-size: .9rem;
  background: linear-gradient(90deg, #F97316, #EC4899); color: #fff; box-shadow: 0 10px 22px -14px rgba(236,72,153,.8); }
.badge-hh { background: linear-gradient(90deg, #F97316, #EC4899); color: #fff; border-color: transparent; }
.stamp { aspect-ratio: 1; display: grid; place-items: center; border-radius: 999px; border: 1.5px dashed var(--line); font-weight: 800; font-size: .85rem; color: var(--muted); }
.stamp.on { border-style: solid; border-color: var(--accent); background: var(--accent); color: var(--on-accent); font-size: 1.05rem; }
.room-note { font-size: .82rem; font-weight: 700; padding: .6rem .8rem; border-radius: 12px; background: var(--soft); }
.input.uppercase::placeholder { text-transform: none; letter-spacing: normal; font-family: var(--body, inherit); }


/* ===== Responsive: tablet + computer (Package 5) ===== */
/* Sheets: a safe gap from the top of the screen, the title + ✕ stay visible while the content scrolls */
.sheet { max-height: calc(100vh - 3rem); max-height: calc(100dvh - 3rem); }
.sheet-head { position: sticky; top: 0; z-index: 20; background: var(--sheet); border-bottom: 1px solid var(--line); }
body[data-tpl="aura-glass"] .sheet-head { background: rgba(20,20,26,.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.sheet-x { width: 2.75rem; height: 2.75rem; min-width: 2.75rem; border-radius: 999px; font-weight: 700; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.sheet-x-float { position: sticky; top: 0; z-index: 30; height: 0; display: flex; justify-content: flex-end; }
.sheet-x-float .sheet-x { margin: .9rem .9rem 0 0; background: rgba(0,0,0,.55); color: #fff; border-color: rgba(255,255,255,.3); }
.sheet-x:hover { color: #dc2626; }
@media (min-width: 640px) { .sheet { max-height: calc(100vh - 8vh); max-height: calc(100dvh - 8vh); } }

/* Tablet and computer: a wide page instead of a phone-width strip in the middle */
@media (min-width: 768px) {
  .wrap { max-width: 56rem; }
  .wrap.px-5, .wrap.px-4 { padding-left: 2rem; padding-right: 2rem; }
  body:not([data-layout="raya"]) .hero-carousel { max-width: 56rem; padding: 1rem 2rem 0; }
  body:not([data-layout="raya"]) .hero-carousel .carousel-track { border-radius: 1.5rem; }
  .hero-slide { height: 20rem; }
  .hero-slide-body { padding: 0 2rem 2.6rem; }
  .sheet { max-width: 40rem; }
  .dock { max-width: 28rem; }
  .noir-toc { columns: 2; column-gap: 3rem; }
  .noir-toc li { break-inside: avoid; }
}
@media (min-width: 1024px) {
  .wrap { max-width: 72rem; }
  .wrap.px-5, .wrap.px-4 { padding-left: 2rem; padding-right: 2rem; }
  body:not([data-layout="raya"]) .hero-carousel { max-width: 72rem; }
  .hero-slide { height: 24rem; }
  .sheet { max-width: 44rem; }
  .product-sheet .hero-img { max-height: 24rem; }
}
@media (min-width: 1280px) {
  .wrap { max-width: 80rem; }
  body:not([data-layout="raya"]) .hero-carousel { max-width: 80rem; }
}
