/* ScanTap — meni za goste (demo). Isti šablon će koristiti pravi meniji lokala. */
:root {
  --bg: #F7F0E6; --paper: #FFFBF5; --sand: #F3EADE; --line: #E0CDB6;
  --ink: #2B1D14; --muted: #7A6656; --caramel: #8A5A34; --caramel-2: #C8894B; --accent: #E2A86A;
  --serif: "Fraunces", "Lora", Georgia, serif;
  --sans: "DM Sans", "Manrope", system-ui, -apple-system, "Segoe 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: 76px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #E9DCCB; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--caramel-2); outline-offset: 2px; border-radius: 6px; }

.demo-banner {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 16px; background: var(--ink); color: #EBDDCB; font-size: 13px; text-align: center;
}
.demo-banner a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 700; text-decoration: none; }
.demo-banner a:hover { text-decoration: underline; }

.gm { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; padding-bottom: 110px; box-shadow: 0 0 60px -20px rgba(43, 29, 20, .35); }

/* naslovna */
.gm-cover {
  position: relative; overflow: hidden; min-height: 232px; padding: 18px 18px 40px; color: #FBF6EE;
  background: linear-gradient(160deg, var(--brand, #6B4226), var(--ink));
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.gm-ring { position: absolute; right: -70px; top: -50px; width: 240px; height: 240px; border-radius: 50%; border: 34px solid rgba(226, 168, 106, .16); animation: spin 30s linear infinite; }
.gm-top { position: relative; display: flex; justify-content: space-between; align-items: center; }
.gm-logo { width: 46px; height: 46px; border-radius: 14px; background: rgba(251, 246, 238, .14); border: 1px solid rgba(251, 246, 238, .25); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 18px; }
.gm-langs { display: flex; gap: 3px; background: rgba(0, 0, 0, .25); padding: 4px; border-radius: 999px; }
.gm-langs a { min-width: 44px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 12px; font-weight: 700; color: #FBF6EE; text-decoration: none; transition: background-color .2s; }
.gm-langs a[aria-current="true"] { background: #FBF6EE; color: var(--ink); }
.gm-venue { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.gm-meta { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.gm-venue h1 { font-family: var(--serif); font-weight: 600; font-size: 32px; letter-spacing: -0.02em; margin: 4px 0; }
.gm-open { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; opacity: .92; }
.gm-open i { width: 8px; height: 8px; border-radius: 50%; background: #9BD18F; box-shadow: 0 0 0 0 rgba(155, 209, 143, .7); animation: pulse 2s infinite; }
.gm-cup { position: relative; width: 54px; height: 62px; flex: none; }
.gm-cup .steam { position: absolute; left: 10px; top: 0; display: flex; gap: 6px; }
.gm-cup svg { position: absolute; bottom: 0; left: 0; }
.steam i { width: 4px; height: 16px; border-radius: 4px; background: rgba(251, 246, 238, .75); animation: steam 3s ease-out infinite; }
.steam i:nth-child(2) { animation-delay: .9s; }
.steam i:nth-child(3) { animation-delay: 1.8s; }

/* pretraga */
.gm-search { padding: 0 16px; margin-top: -24px; position: relative; z-index: 2; }
.gm-search label { display: flex; align-items: center; gap: 10px; height: 50px; background: var(--paper); border-radius: 16px; padding: 0 16px; box-shadow: 0 14px 28px -18px rgba(43, 29, 20, .55); color: var(--caramel); }
.gm-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; font-weight: 500; color: var(--ink); outline: none; }
.gm-search label:focus-within { box-shadow: 0 0 0 3px rgba(200, 137, 75, .35), 0 14px 28px -18px rgba(43, 29, 20, .55); }

.gm-pad { padding: 16px 16px 0; }
.gm-promo { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--accent), var(--caramel-2)); border-radius: 22px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; animation: up .6s var(--ease) both; }
.gm-shine { position: absolute; top: 0; bottom: 0; width: 60px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: shine 4.5s ease-in-out infinite; }
.gm-promo-ic { width: 50px; height: 50px; border-radius: 16px; background: rgba(43, 29, 20, .12); display: flex; align-items: center; justify-content: center; flex: none; }
.gm-promo-txt { position: relative; flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.gm-promo-txt small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gm-promo-txt b { font-family: var(--serif); font-weight: 600; font-size: 19px; }
.gm-promo-price { position: relative; font-family: var(--serif); font-weight: 700; font-size: 22px; }

/* preporuke */
.gm-featured { padding-top: 22px; }
.gm-row-head { padding: 0 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gm-row-head h2 { font-family: var(--serif); font-weight: 600; font-size: 20px; }
.gm-row-head span { font-size: 13px; color: var(--caramel); font-weight: 600; }
.gm-carousel { display: flex; gap: 12px; overflow-x: auto; padding: 12px 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gm-carousel::-webkit-scrollbar { display: none; }
.gm-card { flex: none; width: 150px; scroll-snap-align: start; text-align: left; border: 0; cursor: pointer; background: var(--paper); border-radius: 20px; padding: 10px; display: flex; flex-direction: column; gap: 8px; transition: transform .25s var(--ease), box-shadow .25s; }
.gm-card:hover { transform: translateY(-3px); box-shadow: 0 16px 24px -18px rgba(43, 29, 20, .6); }
.gm-card .thumb { width: 100%; height: 110px; border-radius: 14px; }
.gm-card > b { font-size: 15px; }
.gm-card-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.gm-card-meta b { color: var(--ink); }

/* kategorije */
.gm-chips { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 16px 16px 12px; background: var(--bg); scrollbar-width: none; transition: box-shadow .25s; }
.gm-chips::-webkit-scrollbar { display: none; }
.gm-chips.is-stuck { box-shadow: 0 10px 20px -16px rgba(43, 29, 20, .5); }
.gm-chips a { flex: none; height: 44px; padding: 0 8px 0 16px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; transition: background-color .25s, color .25s, border-color .25s; }
.gm-chips a span { min-width: 24px; height: 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--sand); }
.gm-chips a.on { background: var(--ink); border-color: var(--ink); color: #FBF6EE; }
.gm-chips a.on span { background: var(--accent); color: var(--ink); }

/* lista */
.gm-list { padding: 4px 16px 0; }
.gm-cat { padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.gm-cat h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; margin: 4px 0 2px; }
.gm-cat[hidden] { display: none; }
.gm-item { background: var(--paper); border-radius: 22px; padding: 10px; display: flex; gap: 6px; align-items: center; transition: transform .2s var(--ease), box-shadow .2s; animation: up .6s var(--ease) both; }
.gm-item:hover { transform: translateY(-2px); box-shadow: 0 14px 24px -18px rgba(43, 29, 20, .55); }
.gm-item[hidden] { display: none; }
.gm-item-main { flex: 1; min-width: 0; display: flex; gap: 14px; align-items: center; text-align: left; border: 0; background: none; padding: 0; cursor: pointer; }
.gm-item .thumb { width: 76px; height: 76px; border-radius: 16px; }
.gm-item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gm-item-name { font-weight: 700; font-size: 16px; }
.gm-new { display: inline-block; vertical-align: 2px; background: #F3E1CC; color: var(--caramel); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; }
.gm-item-desc { font-size: 13px; color: var(--muted); line-height: 1.35; }
.gm-item-price { font-weight: 700; font-size: 15px; margin-top: 2px; }
.gm-item-price small, .gm-sheet-price small { font-size: 11px; font-weight: 600; color: var(--muted); }
.gm-fav { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--sand); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--caramel); }
.gm-fav .ic { fill: none; transition: fill .2s; }
.gm-fav[aria-pressed="true"] .ic { fill: var(--caramel-2); animation: pop .35s ease; }
.gm-empty { padding: 32px 8px; text-align: center; color: var(--muted); }

/* donja traka */
.gm-bar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 10; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(247, 240, 230, 0), var(--bg) 35%); display: flex; gap: 10px; }
.gm-favs-btn { position: relative; width: 56px; height: 56px; flex: none; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gm-favs-btn .ic { fill: none; }
.gm-badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--brand, #6B4226); color: #FBF6EE; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.gm-badge[hidden] { display: none; }
.gm-call { flex: 1; height: 56px; border: 0; border-radius: 18px; background: var(--ink); color: #FBF6EE; font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 16px 28px -16px rgba(43, 29, 20, .8); }
.gm-soon { background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }

/* detalj (bottom sheet) */
.gm-sheet {
  width: 100%; max-width: 480px; max-height: 92vh; margin: auto auto 0; padding: 0; border: 0;
  border-radius: 28px 28px 0 0; background: var(--paper); color: var(--ink); overflow: auto;
}
.gm-sheet::backdrop { background: rgba(43, 29, 20, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.gm-sheet[open] { animation: sheetUp .4s var(--ease); }
.gm-sheet-art { position: relative; height: 260px; background: radial-gradient(circle at 50% 60%, #EAD3B4 0%, #D9BC97 60%, #C9A47A 100%); display: flex; align-items: center; justify-content: center; }
.gm-sheet-thumb { width: 170px; height: 170px; border-radius: 50%; box-shadow: 0 30px 40px -20px rgba(43, 29, 20, .6); animation: float 5s ease-in-out infinite; }
.gm-sheet-close, .gm-sheet-fav { position: absolute; top: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 18px -8px rgba(43, 29, 20, .5); }
.gm-sheet-close { left: 14px; }
.gm-sheet-fav { right: 14px; }
.gm-sheet-close--inline { position: static; box-shadow: none; background: var(--sand); }
.gm-sheet-body { padding: 22px 20px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; }
.gm-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.gm-sheet-head h2 { font-family: var(--serif); font-weight: 600; font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; }
.gm-sheet-price { font-family: var(--serif); font-weight: 700; font-size: 26px; white-space: nowrap; }
.gm-sheet-desc { font-size: 15px; line-height: 1.6; color: #5E4B3D; }
.gm-sheet-size { align-self: flex-start; background: var(--sand); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.gm-allergen { display: flex; gap: 12px; align-items: flex-start; background: #F7EEE2; border: 1px solid #EBDCC8; border-radius: 18px; padding: 14px 16px; color: var(--caramel); }
.gm-allergen > span { display: flex; flex-direction: column; gap: 2px; color: var(--ink); font-size: 14px; }
.gm-pairs h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; margin-bottom: 10px; }
.gm-pairs[hidden] { display: none; }
.gm-pairs-list, .gm-favs-list { display: flex; flex-direction: column; gap: 8px; }
.gm-mini { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 0; cursor: pointer; background: var(--sand); border-radius: 18px; padding: 8px; }
.gm-mini .thumb { width: 52px; height: 52px; border-radius: 12px; }
.gm-mini span { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.gm-mini b { color: var(--ink); font-size: 15px; }
.gm-favs-empty { color: var(--muted); font-size: 15px; padding: 8px 0 16px; }

/* ilustracije */
.thumb { display: block; flex: none; }
.t-espresso { background: radial-gradient(circle at 50% 46%, #C8894B 0 28%, #5A3520 29% 46%, #EAD9C3 47%); }
.t-capp { background: radial-gradient(circle at 50% 46%, #F5E9D8 0 22%, #C8894B 23% 40%, #EAD9C3 41%); }
.t-flat { background: radial-gradient(circle at 50% 46%, #EBD6BB 0 18%, #B47D47 19% 40%, #EAD9C3 41%); }
.t-iced { background: linear-gradient(180deg, #F0E2CC 0 28%, #B47D47 28% 68%, #6B4226 68%); }
.t-green { background: radial-gradient(circle at 50% 48%, #B9C98A 0 34%, #EEE6D2 35%); }
.t-mint { background: radial-gradient(circle at 50% 48%, #8DBA7E 0 20%, #D9C78F 21% 36%, #EEE6D2 37%); }
.t-cake { background: radial-gradient(circle at 50% 50%, #8B5A3C 0 30%, #E6CDA8 31% 44%, #F3E6D3 45%); }
.t-cro { background: radial-gradient(ellipse 60% 40% at 50% 52%, #D9A35F 0 60%, #F3E6D3 61%); }
.t-spritz { background: linear-gradient(180deg, #F3E6D3 0 22%, #F08A45 22% 80%, #F3E6D3 80%); }
.t-mojito { background: linear-gradient(180deg, #F3E6D3 0 22%, #CFE3B6 22% 80%, #F3E6D3 80%); }

@keyframes up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: .75; } 100% { opacity: 0; transform: translateY(-26px) scaleX(1.5); } }
@keyframes shine { 0% { transform: translateX(-120%) skewX(-20deg); } 60%, 100% { transform: translateX(700%) skewX(-20deg); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(155, 209, 143, .7); } 70% { box-shadow: 0 0 0 8px rgba(155, 209, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(155, 209, 143, 0); } }

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