/* ScanTap — javni meni lokala. Boje i slova dolaze iz teme lokala (CSS promenljive u <style>). */
[hidden] { display: none !important; }
:root { --bg: #F7F0E6; --surface: #FFFBF5; --soft: #F3EADE; --ink: #2B1D14; --muted: #7A6656; --line: #E6D6C2; --brand: #6B4226; --on-brand: #fff; --accent: #E2A86A; --on-accent: #2B1D14; --r: 16px; --r-sm: 11px; --f-head: "Fraunces", Georgia, serif; --f-body: "DM Sans", system-ui, sans-serif; --ease: cubic-bezier(.2, .7, .2, 1); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; font-family: var(--f-body); color: var(--ink); background: color-mix(in srgb, var(--bg) 82%, var(--ink) 6%); -webkit-font-smoothing: antialiased; }
@supports not (background: color-mix(in srgb, red, blue)) { body { background: var(--bg); } }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.gm { max-width: 560px; margin: 0 auto; min-height: 100vh; background: var(--bg); padding-bottom: calc(96px + env(safe-area-inset-bottom)); box-shadow: 0 0 60px -24px rgba(0, 0, 0, .3); }
.in-frame .gm { box-shadow: none; }

/* naslovna */
.cover { position: relative; overflow: hidden; min-height: 236px; padding: 16px 16px 44px; color: var(--on-brand); background: linear-gradient(160deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000)); display: flex; flex-direction: column; justify-content: space-between; gap: 26px; }
.cover::after { content: ""; position: absolute; right: -80px; top: -70px; width: 250px; height: 250px; border-radius: 50%; border: 36px solid color-mix(in srgb, var(--accent) 24%, transparent); animation: spin 36s linear infinite; pointer-events: none; }
.cover.has-photo { background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .15) 40%, rgba(0, 0, 0, .7) 100%), var(--cover) center / cover no-repeat; color: #fff; min-height: 280px; }
.cover.has-photo::after { display: none; }
.cover-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cover-logo { width: 52px; height: 52px; border-radius: var(--r-sm); object-fit: contain; background: #fff; padding: 4px; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45); }
.cover-logo--txt { display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); color: inherit; font: 700 18px var(--f-head); padding: 0; }
.cover-tools { display: flex; gap: 8px; align-items: center; }
.langs { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.langs a { min-width: 40px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; text-decoration: none; }
.langs a[aria-current] { background: #fff; color: #1A1410; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .28); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); flex: none; }
.cover-main { position: relative; z-index: 1; }
.cover-meta { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .9; margin-bottom: 4px; }
.cover h1 { font: 600 clamp(28px, 8vw, 36px)/1.05 var(--f-head); letter-spacing: -.02em; text-wrap: balance; }
.cover-sub { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; opacity: .95; }
.open { display: inline-flex; align-items: center; gap: 6px; }
.open i { width: 8px; height: 8px; border-radius: 50%; background: #8FD67F; animation: pulse 2s infinite; }
.open.closed i { background: #E9867A; animation: none; }

.search { padding: 0 16px; margin-top: -24px; position: relative; z-index: 3; }
.search label { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: var(--r); background: var(--surface); color: var(--muted); box-shadow: 0 14px 28px -18px rgba(0, 0, 0, .45); }
.search label:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 50%, transparent), 0 14px 28px -18px rgba(0, 0, 0, .45); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; font-weight: 500; color: var(--ink); outline: none; }

/* promocije */
.promos { display: flex; gap: 10px; overflow-x: auto; padding: 16px 16px 0; scroll-snap-type: x mandatory; scrollbar-width: none; }
.promos::-webkit-scrollbar { display: none; }
.promo { position: relative; overflow: hidden; flex: 0 0 auto; width: min(100%, 420px); scroll-snap-align: start; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 0; border-radius: var(--r); background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--brand))); color: var(--on-accent); text-align: left; cursor: default; animation: up .6s var(--ease) both; }
.promos .promo:only-child { width: 100%; }
button.promo { cursor: pointer; }
.promo img { width: 60px; height: 60px; border-radius: var(--r-sm); object-fit: cover; flex: none; }
.promo-ic { width: 50px; height: 50px; border-radius: var(--r-sm); background: rgba(0, 0, 0, .1); display: flex; align-items: center; justify-content: center; flex: none; }
.promo-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 13px; position: relative; }
.promo-txt small { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.promo-txt b { font: 600 18px/1.2 var(--f-head); }
.promo-price { font: 700 20px var(--f-head); position: relative; white-space: nowrap; }
.shine { position: absolute; top: 0; bottom: 0; left: 0; width: 60px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: shine 5s ease-in-out infinite; pointer-events: none; }

/* preporuke */
.featured { padding-top: 22px; }
.featured h2 { padding: 0 16px; font: 600 20px var(--f-head); }
.carousel { display: flex; gap: 12px; overflow-x: auto; padding: 12px 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.card { flex: none; width: 152px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; padding: 9px; border: 0; border-radius: var(--r); background: var(--surface); text-align: left; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 24px -18px rgba(0, 0, 0, .5); }
.card img, .card-ph { width: 100%; height: 112px; border-radius: var(--r-sm); object-fit: cover; }
.card-ph { display: flex; align-items: center; justify-content: center; background: var(--soft); color: var(--muted); font: 600 34px var(--f-head); }
.card b { font-size: 15px; line-height: 1.25; }
.card span { font-size: 13px; color: var(--muted); font-weight: 600; }

/* meniji i kategorije */
.menus { display: flex; gap: 8px; overflow-x: auto; padding: 20px 16px 0; scrollbar-width: none; }
.menus::-webkit-scrollbar { display: none; }
.menu-tab { flex: none; min-height: 44px; padding: 8px 18px; border-radius: var(--r); border: 2px solid var(--line); background: var(--surface); font-weight: 700; font-size: 15px; cursor: pointer; }
.menu-tab small { font-weight: 500; color: var(--muted); font-size: 12px; }
.menu-tab.on { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.menu-tab.on small { color: inherit; opacity: .75; }
.chips { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 12px; background: var(--bg); scrollbar-width: none; transition: box-shadow .25s; }
.chips::-webkit-scrollbar { display: none; }
.chips.is-stuck { box-shadow: 0 10px 20px -16px rgba(0, 0, 0, .55); }
.chips a { flex: none; display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.chips a.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.list { padding: 0 16px; }
.cat { padding-top: 14px; }
.cat[hidden], .it[hidden] { display: none; }
.cat-h { font: 600 24px var(--f-head); letter-spacing: -.02em; margin: 4px 0 4px; }
.cat-d { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.items { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }

/* artikal — lista */
.it { position: relative; display: flex; align-items: center; gap: 4px; background: var(--surface); border-radius: var(--r); padding: 10px; transition: transform .2s var(--ease), box-shadow .2s; animation: up .5s var(--ease) both; }
.it:hover { box-shadow: 0 14px 24px -20px rgba(0, 0, 0, .55); }
.it-btn { flex: 1; min-width: 0; display: flex; gap: 14px; align-items: center; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.it-img { width: 82px; height: 82px; border-radius: var(--r-sm); object-fit: cover; flex: none; background: var(--soft); }
.it-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.it-name { font-weight: 700; font-size: 16px; line-height: 1.25; }
.it-desc { font-size: 13px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.it-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--brand); }
.tag--novo { background: var(--accent); color: var(--on-accent); }
.tag--ljuto { color: #B2361F; }
.tag--off { background: color-mix(in srgb, #B2361F 14%, transparent); color: #B2361F; }
.it-foot { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.it-price { font-weight: 700; font-size: 15px; white-space: nowrap; }
.it-price small { font-size: 11px; color: var(--muted); font-weight: 600; }
.it-old { font-size: 13px; color: var(--muted); }
.it-qty { font-size: 12px; color: var(--muted); }
.it.is-off { opacity: .62; }
.it.is-off .it-name { text-decoration: line-through; text-decoration-thickness: 1px; }
.fav { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--brand); }
.fav svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.fav[aria-pressed="true"] svg { fill: var(--accent); stroke: var(--brand); animation: pop .35s ease; }

/* artikal — kartice (2 kolone) */
.lay-kartice .items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lay-kartice .it { flex-direction: column; align-items: stretch; padding: 8px; }
.lay-kartice .it-btn { flex-direction: column; align-items: stretch; gap: 8px; }
.lay-kartice .it-img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.lay-kartice .it.no-img .it-btn { padding-top: 4px; }
.lay-kartice .fav { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lay-kartice .it.no-img .fav { position: static; align-self: flex-end; margin-top: -40px; }
.lay-kartice .it-name { font-size: 15px; }

/* artikal — klasičan (tekst) */
.lay-tekst .items { gap: 0; background: var(--surface); border-radius: var(--r); padding: 6px 14px; }
.lay-tekst .it { background: none; border-radius: 0; padding: 12px 0; border-bottom: 1px dashed var(--line); animation: none; }
.lay-tekst .it:last-child { border-bottom: 0; }
.lay-tekst .it:hover { box-shadow: none; }
.lay-tekst .it-btn { flex-direction: column; align-items: stretch; gap: 3px; }
.it-row { display: flex; align-items: baseline; gap: 8px; }
.lay-tekst .it-name { font-family: var(--f-head); font-weight: 600; font-size: 17px; }
.it-dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); min-width: 20px; }
.lay-tekst .it-price { font-family: var(--f-head); font-size: 17px; }
.lay-tekst .fav { width: 36px; height: 36px; background: none; align-self: flex-start; }

.empty { padding: 32px 16px; text-align: center; color: var(--muted); }
.foot { padding: 28px 20px 10px; text-align: center; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.powered { font-size: 12px; opacity: .85; }
.powered a { font-weight: 700; color: var(--brand); text-decoration: none; }

/* donja traka */
.bar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 560px; z-index: 10; display: flex; gap: 10px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 38%); pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar-btn { position: relative; min-width: 56px; height: 56px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-decoration: none; box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .5); }
.bar-btn--wide { flex: 1; justify-content: flex-start; text-align: left; min-width: 0; }
.bar-btn--wide span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.bar-btn--wide b, .bar-btn--wide small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-btn--wide small { color: var(--muted); font-size: 12px; }
.bar [data-top] { margin-left: auto; opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.bar [data-top].show { opacity: 1; visibility: visible; transition: opacity .25s; }
.bar-btn--wide ~ [data-top] { margin-left: 0; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.badge[hidden] { display: none; }
.toast { position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; animation: up .3s var(--ease); }

/* listovi (bottom sheet) */
.sheet { width: 100%; max-width: 560px; max-height: 92vh; margin: auto auto 0; padding: 0; border: 0; border-radius: 26px 26px 0 0; background: var(--surface); color: var(--ink); overflow: auto; }
.sheet::backdrop { background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheetUp .38s var(--ease); }
.sheet-art { position: relative; min-height: 64px; background: var(--soft); }
.sheet-art img { width: 100%; max-height: 320px; object-fit: cover; }
.sheet-x { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, .45); }
.sheet-body { padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.sheet-head h2 { font: 600 26px/1.15 var(--f-head); letter-spacing: -.02em; }
.sheet-head .round { background: var(--soft); color: var(--ink); }
.sheet-price { font: 700 22px var(--f-head); white-space: nowrap; }
.sheet-price s { font-size: 15px; color: var(--muted); font-weight: 500; margin-right: 6px; }
.sheet-desc { font-size: 15px; line-height: 1.6; color: var(--muted); }
.sheet-var { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-radius: var(--r-sm); background: var(--soft); }
.sheet-var:empty { display: none; }
.sheet-var li { display: flex; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid var(--line); font-weight: 600; }
.sheet-var li:last-child { border-bottom: 0; }
.sheet-tags:empty, .sheet-al:empty { display: none; }
.sheet-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sheet-al { padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); font-size: 14px; }
.sheet-al b { display: block; margin-bottom: 2px; }
.fav--wide { width: 100%; border-radius: var(--r); gap: 10px; font-weight: 700; height: 50px; }
.mini { display: flex; gap: 12px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: var(--r); background: var(--soft); text-align: left; cursor: pointer; margin-bottom: 8px; }
.mini img, .mini .ph { width: 52px; height: 52px; border-radius: var(--r-sm); object-fit: cover; background: var(--line); flex: none; }
.mini span { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.mini b { color: var(--ink); font-size: 15px; }
.info-row { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.info-row > b { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.info-row a, .link { color: var(--brand); font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.info-row code { font: 600 14px ui-monospace, monospace; background: var(--soft); padding: 2px 6px; border-radius: 6px; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; padding: 3px 0; }
.hours li.today { font-weight: 700; }
.info-links { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.info-links a { padding: 10px 16px; border-radius: 999px; background: var(--brand); color: var(--on-brand); text-decoration: none; font-weight: 700; font-size: 14px; }

/* obaveštenja: istekao / ne postoji */
.notice { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px 16px; background: var(--bg); }
.notice-card { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 32px 24px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .5); }
.notice-card .cover-logo { width: 64px; height: 64px; }
.notice-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.notice-venue { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.notice h1 { font: 600 26px/1.2 var(--f-head); }
.notice p { color: var(--muted); line-height: 1.6; }
.notice-btn { margin-top: 6px; display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-weight: 700; text-decoration: none; }
.notice-small { font-size: 13px; }

@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shine { 0% { transform: translateX(-120%) skewX(-20deg); } 60%, 100% { transform: translateX(800%) skewX(-20deg); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(143, 214, 127, .7); } 70% { box-shadow: 0 0 0 8px rgba(143, 214, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(143, 214, 127, 0); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } }

/* ---------- utisci gostiju / knjiga gostiju ---------- */
.stars { display: inline-block; font-size: 18px; line-height: 1; letter-spacing: 2px; background: linear-gradient(90deg, var(--accent) calc(var(--v) / 5 * 100%), color-mix(in srgb, var(--muted) 35%, transparent) 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars::before { content: "★★★★★"; }
.stars--sm { font-size: 14px; letter-spacing: 1px; }
.gbook { margin: 28px 16px 0; padding: 18px; border-radius: var(--r); background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.gbook--empty { background: none; padding: 0; align-items: center; }
.gb-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.gb-head h2 { font: 600 22px var(--f-head); letter-spacing: -.01em; }
.gb-score { display: flex; align-items: center; gap: 8px; }
.gb-score b { font: 700 26px var(--f-head); }
.gb-score small { color: var(--muted); font-size: 13px; }
.gb-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.gb-cats li { display: grid; grid-template-columns: minmax(0, 1fr) 90px 28px; align-items: center; gap: 10px; }
.gb-bar { height: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.gb-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.gb-cats b { text-align: right; }
.gb-list { display: flex; flex-direction: column; }
.gb-item { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.gb-item[hidden] { display: none; }
.gb-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.gb-top time { margin-left: auto; color: var(--muted); font-size: 12px; }
.gb-item p { font-size: 14px; line-height: 1.55; }
.gb-reply { margin-left: 12px; padding: 10px 12px; border-left: 3px solid var(--brand); background: var(--soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 13px; }
.gb-reply b { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.gb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gb-more, .gb-rate { min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.gb-rate { background: var(--brand); border-color: var(--brand); color: var(--on-brand); flex: 1; justify-content: center; }
.gbook--empty .gb-rate { flex: none; }
.foot-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 6px; }
.foot-social a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 13px; }
.bar-btn--rate { color: var(--brand); }
.bar-btn--rate.done svg path { fill: var(--accent); stroke: var(--accent); }

/* forma ocene */
.rate-form { display: flex; flex-direction: column; gap: 14px; }
.rate-main { border: 0; margin: 0; padding: 0; text-align: center; }
.rate-main legend { font-weight: 700; margin: 0 auto 6px; font-size: 15px; }
.star-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { cursor: pointer; padding: 3px; border-radius: 8px; display: flex; }
.star-pick svg { width: 26px; height: 26px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linejoin: round; transition: transform .15s, fill .15s, stroke .15s; }
.star-pick--big { justify-content: center; }
.star-pick--big svg { width: 46px; height: 46px; }
.star-pick label:hover svg, .star-pick label:hover ~ label svg, .star-pick input:checked ~ label svg { fill: var(--accent); stroke: color-mix(in srgb, var(--accent) 70%, #000); }
.star-pick input:checked + label svg { transform: scale(1.12); }
.star-pick input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 1px; }
.star-word { min-height: 22px; font-weight: 700; color: var(--brand); margin-top: 4px; }
.rate-more { border-radius: var(--r-sm); background: var(--soft); padding: 10px 14px; }
.rate-more summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.cat-rates { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.cat-rate { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.rate-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.rate-field small { font-weight: 400; color: var(--muted); font-size: 12px; }
.rate-field input, .rate-field select, .rate-field textarea { width: 100%; min-height: 46px; padding: 11px 13px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: 400 16px var(--f-body); }
.rate-field textarea { resize: vertical; min-height: 90px; }
.rate-field :focus { outline: none; border-color: var(--brand); }
.rate-check { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.rate-check input { width: 20px; height: 20px; accent-color: var(--brand); }
.rate-err { color: #B2361F; font-weight: 600; font-size: 14px; }
.rate-submit { min-height: 54px; border: 0; border-radius: var(--r); background: var(--brand); color: var(--on-brand); font: 700 16px var(--f-body); cursor: pointer; }
.rate-submit:disabled { opacity: .6; }
.rate-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 20px 0 10px; }
.rate-done[hidden] { display: none; }
.rate-ok { width: 70px; height: 70px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; animation: pop .5s ease; }
.rate-done h3 { font: 600 24px var(--f-head); }
.rate-done p { color: var(--muted); }
.rate-google { margin-top: 6px; min-height: 50px; padding: 0 22px; border-radius: 999px; background: #fff; color: #1A1410; border: 1.5px solid var(--line); display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; }
.hp { position: absolute; left: -9999px; }

/* ---------- pozovi konobara ---------- */
.bar-btn--call { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.bar-btn--call small { color: inherit; opacity: .75; }
.bar-btn--call svg { flex: none; color: var(--accent); }
.bar-btn--call.is-waiting svg { animation: ring 1.2s ease-in-out infinite; transform-origin: 50% 10%; }
.bar-btn--call.is-coming { background: #2F6B3A; border-color: #2F6B3A; color: #fff; }
.bar-btn--call.is-coming svg { color: #CDEBC9; }
@keyframes ring { 0%, 55%, 100% { transform: rotate(0); } 10% { transform: rotate(14deg); } 20% { transform: rotate(-12deg); } 30% { transform: rotate(9deg); } 40% { transform: rotate(-6deg); } }
.call-form { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.call-table { display: flex; align-items: baseline; gap: 8px; background: var(--soft); border-radius: var(--r-sm); padding: 12px 14px; margin: 0; }
.call-table span { color: var(--muted); font-size: 14px; }
.call-table b { font: 700 22px var(--f-head); }
.call-table small { margin-left: auto; color: var(--muted); font-size: 13px; }
.call-reasons { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.call-reasons legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.call-reason { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; min-height: 104px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.call-reason input { position: absolute; opacity: 0; pointer-events: none; }
.call-reason b { font-size: 15px; line-height: 1.25; }
.call-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--brand); }
.call-reason:has(input:checked) { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); transform: translateY(-1px); }
.call-reason:has(input:checked) .call-ic { background: var(--brand); color: var(--on-brand); }
.call-reason:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.call-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.call-status { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 0 6px; }
.call-status[hidden], .call-form[hidden] { display: none; }
.call-pulse { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--brand); position: relative; }
.call-pulse::before, .call-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: pulse 2s ease-out infinite; }
.call-pulse::after { animation-delay: 1s; }
.call-pulse svg { animation: ring 1.2s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.call-status.is-coming .call-pulse { background: #E3F0DF; color: #2F6B3A; }
.call-status.is-coming .call-pulse::before, .call-status.is-coming .call-pulse::after { display: none; }
.call-status.is-coming .call-pulse svg { animation: none; }
.call-status h3 { font: 600 24px/1.2 var(--f-head); margin-top: 6px; }
.call-st-sub { color: var(--muted); }
.call-st-time { font: 600 15px var(--f-body); font-variant-numeric: tabular-nums; color: var(--muted); }
.call-status.is-coming .call-st-time { display: none; }
.call-cancel { margin-top: 10px; border: 0; background: none; color: var(--muted); text-decoration: underline; font: 500 14px var(--f-body); padding: 10px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .bar-btn--call.is-waiting svg, .call-pulse svg, .call-pulse::before, .call-pulse::after { animation: none; } }
/* kad postoji „Pozovi konobara”, dugme „na vrh” lebdi iznad trake da ne krade mesto */
.bar:has(.bar-btn--call) [data-top] { position: absolute; right: 16px; bottom: calc(100% - 4px); min-width: 46px; width: 46px; height: 46px; padding: 0; border-radius: 50%; }
@media (max-width: 350px) {
  .bar { gap: 8px; padding-inline: 12px; }
  .bar > .bar-btn:not(.bar-btn--wide):not([data-top]) { min-width: 50px; width: 50px; padding: 0; }
  .bar-btn--call { padding: 0 12px; gap: 8px; }
  .bar-btn--call b { font-size: 14px; }
}

/* ---------- lista za poručivanje ---------- */
.add { position: relative; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 16px -10px rgba(0, 0, 0, .6); transition: transform .15s var(--ease); }
.add:active { transform: scale(.92); }
.add.has { background: var(--accent); color: var(--on-accent); }
.add-n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.lay-kartice .add { position: absolute; right: 60px; top: 14px; z-index: 2; }
.lay-tekst .add { width: 36px; height: 36px; }
.bar-btn--list .badge, .badge--list { position: absolute; top: -6px; right: -6px; }
.sheet-order { display: grid; gap: 8px; margin: 4px 0 14px; }
.order-add { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 10px 16px; border: 2px solid var(--brand); border-radius: var(--r); background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; text-align: left; }
.order-add b { color: var(--brand); white-space: nowrap; }
.order-add--one { justify-content: center; background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.order-add:active { transform: scale(.98); }
.order-list { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 8px; }
.order-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface); border-radius: var(--r-sm); }
.order-list .ol-empty { display: block; color: var(--muted); text-align: center; padding: 18px; }
.ol-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ol-name small { color: var(--muted); font-size: 12.5px; }
.ol-qty { display: inline-flex; align-items: center; gap: 4px; background: var(--soft); border-radius: 999px; padding: 3px; }
.ol-qty button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 18px; font-weight: 700; cursor: pointer; }
.ol-qty b { min-width: 22px; text-align: center; }
.ol-price { font-weight: 700; white-space: nowrap; min-width: 70px; text-align: right; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 4px; border-top: 2px solid var(--line); font-size: 16px; }
.order-total b { font-size: 20px; }
.order-hint { font-size: 13px; }
.order-actions { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.order-actions .order-send { flex: 1; }
.order-actions .order-send:disabled { opacity: .5; }
.order-clear { border: 0; background: none; color: var(--muted); font-weight: 600; text-decoration: underline; cursor: pointer; padding: 10px; }
.call-order { background: var(--soft); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 12px; }
.call-order b { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.call-order ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; font-size: 15px; }
.call-order small { color: var(--muted); }
.call-order .co-total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; }
.call-form.has-order .call-reasons { display: none; }
