/* =============================================================================
   DIGITALNI MENU - javni meni lokala
   Mobile-first. Sve boje i fontovi dolaze iz CSS promenljivih koje
   app/views/layouts/public.php ubacuje prema podešavanjima lokala.
   ========================================================================== */

:root {
  /* Rezervne vrednosti - prava podešavanja stižu inline iz PHP-a. */
  --primary-color:    #d81f26;
  --secondary-color:  #f0d94f;
  --accent-color:     #f0d94f;
  --background-color: #0d0d0d;
  --surface-color:    #1b1917;
  --text-color:       #f2efe9;
  --muted-text-color: rgba(255, 255, 255, .62);
  --heading-font:     "Caveat", cursive;
  --body-font:        "Inter", system-ui, sans-serif;
  --border-radius:    18px;

  --line-color:   rgba(255, 255, 255, .13);
  --panel-color:  rgba(255, 255, 255, .05);
  --shadow-color: rgba(0, 0, 0, .55);

  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--background-color);
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }

/* -----------------------------------------------------------------------------
   POZADINA
   -------------------------------------------------------------------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--background-color);
}

.is-dark .bg {
  background-image:
    radial-gradient(120% 90% at 15% 0%,  color-mix(in srgb, var(--primary-color) 18%, transparent), transparent 55%),
    radial-gradient(110% 80% at 90% 12%, color-mix(in srgb, var(--secondary-color) 12%, transparent), transparent 55%),
    radial-gradient(140% 120% at 50% 105%, rgba(0, 0, 0, .8), transparent 60%);
}

.is-light .bg {
  background-image:
    radial-gradient(120% 90% at 10% 0%,  color-mix(in srgb, var(--primary-color) 10%, transparent), transparent 55%),
    radial-gradient(110% 80% at 95% 10%, color-mix(in srgb, var(--secondary-color) 12%, transparent), transparent 55%);
}

/* Diskretna tekstura - samo na tamnim temama. */
.is-dark .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .14;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='220' height='220' filter='url(%23n)' opacity='0.5'/></svg>");
}

/* -----------------------------------------------------------------------------
   DUGMAD
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--line-color);
  border-radius: 999px;
  background: var(--panel-color);
  color: var(--text-color);
  font-weight: 600;
  letter-spacing: .04em;
  font-size: .9rem;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--primary-color);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--primary-color) 38%, transparent);
}
.is-light .btn--primary { box-shadow: 0 12px 26px color-mix(in srgb, var(--primary-color) 30%, transparent); }

.btn--xl { min-height: 62px; padding: 18px 38px; font-size: 1.05rem; letter-spacing: .08em; }
.btn--sm { min-height: 38px; padding: 8px 15px; font-size: .78rem; }
.btn--ghost, .btn--outline { background: transparent; }
.btn--outline:hover, .btn--ghost:hover { background: var(--panel-color); }

.icon { width: 1.1em; height: 1.1em; flex: none; }

/* -----------------------------------------------------------------------------
   PREKIDAČ JEZIKA
   -------------------------------------------------------------------------- */
.langbar {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-color);
  border-radius: 999px;
  background: var(--panel-color);
  flex: none;
}
.langbar__btn {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted-text-color);
}
.langbar__btn.is-active { background: var(--primary-color); color: #fff; }

.hero > .langbar { position: absolute; top: 16px; right: 18px; z-index: 5; }

/* -----------------------------------------------------------------------------
   NASLOVNI EKRAN
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 0 40px;
}

.hero__inner { position: relative; z-index: 2; }

.hero__logo {
  width: 132px; height: auto;
  margin: 0 auto 20px;
  border-radius: 20px;
  filter: drop-shadow(0 10px 26px var(--shadow-color));
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .7rem;
  font-weight: 600;
  color: var(--accent-color);
  margin: 0 0 12px;
}

.hero__title {
  font-family: var(--heading-font);
  font-size: clamp(2.6rem, 12vw, 5.4rem);
  line-height: 1.02;
  margin: 0;
  color: var(--text-color);
}

.hero__rule {
  width: min(260px, 62vw);
  height: 20px;
  margin: 12px auto 14px;
  color: var(--primary-color);
}

.hero__sub {
  max-width: 46ch;
  margin: 0 auto 30px;
  color: var(--muted-text-color);
  font-size: 1rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__note { margin-top: 22px; color: var(--muted-text-color); font-size: .9rem; }

.hero__decor {
  position: absolute;
  opacity: .28;
  pointer-events: none;
  z-index: 1;
}
.hero__decor--1 { width: 120px; left: -24px;  top: 12%;   transform: rotate(-16deg); }
.hero__decor--2 { width: 96px;  right: -18px; top: 9%;    transform: rotate(14deg); }
.hero__decor--3 { width: 86px;  right: 6%;    bottom: 15%; transform: rotate(-8deg); }
.hero__decor--4 { width: 78px;  left: 5%;     bottom: 18%; transform: rotate(10deg); }
.is-light .hero__decor { opacity: .34; }

@media (min-width: 760px) {
  .hero__decor--1 { width: 200px; left: -26px; }
  .hero__decor--2 { width: 165px; right: -12px; }
  .hero__decor--3 { width: 145px; }
  .hero__decor--4 { width: 132px; }
}

/* -----------------------------------------------------------------------------
   LEPLJIVO ZAGLAVLJE MENIJA
   -------------------------------------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--background-color);
  border-bottom: 1px solid var(--line-color);
  box-shadow: 0 10px 24px var(--shadow-color);
}

.head-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  min-width: 0;
}
.head-row__btn { flex: none; padding-inline: 12px; }

/* Naziv lokala uzima sredinu reda i skraćuje se ako je predugačak -
   traka sa kategorijama više nije u ovom redu, pa ima mesta. */
.head-brand {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--heading-font);
  font-size: 1.2rem;
  line-height: 1.1;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) { .head-brand { font-size: 1.35rem; } }

/* -----------------------------------------------------------------------------
   TRAKA SA KATEGORIJAMA
   Svoj red ispod zaglavlja, na celoj širini. Ostaje na ekranu dok se strana
   skroluje, jer stoji unutar lepljivog .site-head.
   -------------------------------------------------------------------------- */
.catbar {
  border-top: 1px solid var(--line-color);
  background: color-mix(in srgb, var(--surface-color) 70%, var(--background-color));
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  min-width: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }

.catbar .chips { padding: 10px 18px; }

.chip {
  flex: none;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-color);
  background: var(--panel-color);
  color: var(--muted-text-color);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.chip:hover { color: var(--text-color); border-color: var(--accent-color); }
.chip.is-active { background: var(--primary-color); border-color: transparent; color: #fff; }

/* -----------------------------------------------------------------------------
   SEKCIJE I ARTIKLI
   -------------------------------------------------------------------------- */
.menu-main { padding-bottom: 40px; }

.section {
  padding: 30px 0 6px;
  scroll-margin-top: calc(var(--head-h, 74px) + 14px);
}

.section__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.section__icon { width: 40px; height: 40px; flex: none; }

.section__title {
  font-family: var(--heading-font);
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  line-height: 1.05;
  margin: 0;
  color: var(--text-color);
}

.section__line {
  flex: 1 1 auto;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
}

.item-list { list-style: none; margin: 0; padding: 0; }

.item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 2px;
  border-bottom: 1px dashed var(--line-color);
}
.item:last-child { border-bottom: 0; }

.item__thumb {
  width: 60px; height: 60px;
  flex: none;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line-color);
  background: var(--panel-color);
}

.item__body { flex: 1 1 auto; min-width: 0; }
.item__top  { display: flex; align-items: baseline; gap: 10px; }

.item__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.25;
  color: var(--secondary-color);
}

.item__dots {
  flex: 1 1 auto;
  min-width: 12px;
  height: 1px;
  margin-bottom: .3em;
  border-bottom: 1px dotted var(--line-color);
}

.item__price {
  flex: none;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  color: var(--text-color);
}
.item__price--ask { font-size: .78rem; font-weight: 500; color: var(--muted-text-color); }

.item__desc {
  margin: 3px 0 0;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--text-color);
  opacity: .82;
}
.item__allergens { margin: 4px 0 0; font-size: .76rem; color: var(--muted-text-color); }
.item__allergens span { font-weight: 600; }

.badges { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  line-height: 1.5;
}
.badge--new    { color: #4fbf85; }
.badge--pick   { color: var(--accent-color); }
.badge--hot    { color: #ff6f5e; }
.badge--veg    { color: #7fc25a; }
.badge--vegan  { color: #56b06a; }
.badge--gf     { color: #d1a24a; }
.badge--custom { color: var(--primary-color); }
.is-light .badge--pick { color: #b58a00; }

.empty-note {
  padding: 20px;
  border: 1px dashed var(--line-color);
  border-radius: var(--border-radius);
  color: var(--muted-text-color);
  text-align: center;
}
.empty-note--big { margin: 40px 0; padding: 40px 20px; }

/* -----------------------------------------------------------------------------
   POZIV NA KOMPLETAN MENI
   -------------------------------------------------------------------------- */
.book-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 4px;
  padding: 16px 18px;
  border: 1px solid var(--line-color);
  border-radius: var(--border-radius);
  background: var(--surface-color);
  box-shadow: 0 14px 30px var(--shadow-color);
}
.book-cta img { width: 48px; height: 48px; flex: none; }
.book-cta span { display: flex; flex-direction: column; min-width: 0; }
.book-cta strong { font-size: 1.05rem; color: var(--secondary-color); }
.book-cta small  { color: var(--muted-text-color); font-size: .82rem; }
.book-cta .icon  { margin-left: auto; color: var(--muted-text-color); width: 22px; height: 22px; }

/* -----------------------------------------------------------------------------
   PORUČIVANJE
   -------------------------------------------------------------------------- */
.ordering {
  margin: 28px 0 10px;
  padding: 18px;
  border: 1px solid var(--line-color);
  border-radius: var(--border-radius);
  background: var(--surface-color);
  text-align: center;
}
.ordering__buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ordering__meta  { margin: 12px 0 0; color: var(--muted-text-color); font-size: .84rem; }
.ordering__notes { margin: 6px 0 0; color: var(--muted-text-color); font-size: .82rem; }

/* -----------------------------------------------------------------------------
   FIKSNO DUGME
   -------------------------------------------------------------------------- */
.fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-color);
  background: var(--surface-color);
  box-shadow: 0 12px 30px var(--shadow-color);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-color);
}
.is-light .fab { color: var(--primary-color); }

/* -----------------------------------------------------------------------------
   PODNOŽJE
   -------------------------------------------------------------------------- */
.menu-footer {
  margin-top: 40px;
  padding: 36px 0 calc(90px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line-color);
  text-align: center;
}
.menu-footer__thanks {
  font-family: var(--heading-font);
  font-size: 1.9rem;
  color: var(--accent-color);
  margin: 0 0 10px;
}
.menu-footer__meta  { color: var(--muted-text-color); font-size: .86rem; line-height: 1.7; margin: 0; }
.menu-footer__links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }

.platform-badge {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-color);
  font-size: .74rem;
  color: var(--muted-text-color);
}
.platform-badge span { display: block; letter-spacing: .1em; text-transform: uppercase; }
.platform-badge a {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: underline;
}

/* -----------------------------------------------------------------------------
   KNJIGA (kompletan meni)
   -------------------------------------------------------------------------- */
body.is-book { overflow: hidden; overscroll-behavior: none; height: 100vh; height: 100dvh; }

.book-screen {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}

.topbar { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.topbar__brand {
  flex: 1 1 auto;
  text-align: center;
  font-family: var(--heading-font);
  font-size: 1.2rem;
  color: var(--muted-text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-stage {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  min-height: 0;
}

.book {
  position: relative;
  width: min(100%, 1040px);
  align-self: stretch;

  /* Perspektiva je OVDE, a .book NIJE preserve-3d: listovi tako ostaju
     obični 2D slojevi koje browser slaže po z-index-u. Bez toga svi listovi
     dele isti 3D prostor na dubini 0 i slika treperi na telefonima. */
  perspective: 2000px;
  -webkit-perspective: 2000px;
  perspective-origin: 50% 45%;

  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .5s cubic-bezier(.3, .7, .3, 1);
}

@media (min-width: 900px) {
  .book.is-spread { align-self: center; aspect-ratio: 3 / 2; max-height: 100%; }
}
.book.is-single { width: min(100%, 560px); align-self: stretch; }

.book.is-spread.at-start { transform: translateX(-25%); }
.book.is-spread.at-end   { transform: translateX(25%); }

.book__shadow {
  position: absolute;
  left: 6%; right: 6%; bottom: -16px;
  height: 24px;
  background: radial-gradient(50% 100% at 50% 0%, var(--shadow-color), transparent 72%);
  pointer-events: none;
}

.sheet {
  position: absolute;
  top: 0;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transform-origin: left center;
  -webkit-transform-origin: left center;
  will-change: transform;
  transition: transform .78s cubic-bezier(.28, .72, .26, 1);
}
.book.is-building .sheet,
.sheet.is-dragging { transition: none; }

.book.is-spread .sheet { left: 50%; width: 50%; }
.book.is-single .sheet { left: 0;   width: 100%; }
.sheet.is-flipped { transform: rotateY(-180deg); }

.sheet__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  border-radius: 4px 12px 12px 4px;
  box-shadow: 0 14px 28px -12px var(--shadow-color);
  /* translateZ razdvaja prednju i zadnju stranu lista - bez toga su u istoj
     ravni i na mobilnim GPU-ovima nastaje treperenje (z-fighting). */
  transform: translateZ(1px);
  -webkit-transform: translateZ(1px);
}
.sheet__face--back {
  transform: rotateY(180deg) translateZ(1px);
  -webkit-transform: rotateY(180deg) translateZ(1px);
  border-radius: 12px 4px 4px 12px;
}
.book.is-single .sheet__face { border-radius: 12px; }

.bookpage {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 22px 20px 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: var(--surface-color);
  color: var(--text-color);
  font-size: 16px;
}
.bookpage--blank { background-color: color-mix(in srgb, var(--surface-color) 92%, #000); }

/* Hrbat je samo nagovešten - bez tamne trake preko teksta. */
.sheet__face--front .bookpage::before,
.sheet__face--back  .bookpage::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 18px;
  pointer-events: none;
  z-index: 2;
}
.sheet__face--front .bookpage::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.06), transparent 3px),
              linear-gradient(90deg, rgba(0,0,0,.18), transparent);
}
.sheet__face--back .bookpage::before {
  right: 0;
  background: linear-gradient(270deg, rgba(255,255,255,.06), transparent 3px),
              linear-gradient(270deg, rgba(0,0,0,.18), transparent);
}
.book.is-single .bookpage::before { display: none; }

.bookpage__inner { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }

.bookpage__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 2px solid color-mix(in srgb, var(--primary-color) 60%, transparent);
}
.bookpage__head .section__icon { width: 34px; height: 34px; }

.bookpage__eyebrow {
  margin: 0 0 2px;
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--primary-color);
}
.bookpage__title {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(1.6rem, 4.2vw, 2.3rem);
  line-height: 1.05;
}

.bookpage__num {
  position: absolute;
  bottom: 12px; left: 0; right: 0;
  text-align: center;
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-text-color);
  z-index: 3;
}

.bookpage .item-list { flex: 1 1 auto; overflow: hidden; }
.bookpage .item      { padding: .42em .12em; gap: .5em; }
.bookpage .item__name  { font-size: .92em; }
.bookpage .item__desc  { font-size: .78em; margin-top: .06em; }
.bookpage .item__price { font-size: .9em; }
.bookpage .item__allergens { font-size: .7em; }
.bookpage .item__thumb { width: 2.5em; height: 2.5em; }
.bookpage .badges { margin-top: .2em; gap: .35em; }
.bookpage .badge  { font-size: .58em; padding: .15em .6em; }

.bookpage--cover, .bookpage--end {
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--primary-color) 26%, transparent), transparent 60%),
    radial-gradient(90% 70% at 50% 110%, color-mix(in srgb, var(--secondary-color) 14%, transparent), transparent 60%);
}
.bookpage--cover .bookpage__inner,
.bookpage--end   .bookpage__inner { align-items: center; justify-content: center; }

.bookcover__logo  { width: 92px; margin: 0 auto 14px; border-radius: 16px; }
.bookcover__title { font-family: var(--heading-font); font-size: clamp(2rem, 7vw, 3.2rem); margin: 0; line-height: 1; }
.bookcover__sub   { margin: 12px 0 0; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--accent-color); }
.bookcover__hint  { margin: 22px 0 0; font-size: .78rem; color: var(--muted-text-color); }

.book-bar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 18px 6px; }

.book-nav {
  width: 48px; height: 48px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-color);
  background: var(--panel-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.book-nav:active { transform: scale(.93); }
.book-nav[disabled] { opacity: .3; cursor: default; }

.book-counter {
  min-width: 148px;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted-text-color);
}

.book-progress { height: 3px; border-radius: 3px; background: var(--panel-color); margin: 0 18px 8px; overflow: hidden; }
.book-progress__bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width .3s ease;
}
.book-jump { display: flex; justify-content: center; }

/* -----------------------------------------------------------------------------
   ANIMACIJE
   -------------------------------------------------------------------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .55s cubic-bezier(.2, .7, .3, 1) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; }
.d3 { animation-delay: .24s; } .d4 { animation-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .sheet { transition-duration: .3s !important; }
  .book  { transition-duration: .25s !important; }
  .book.is-building .sheet, .sheet.is-dragging { transition-duration: 0s !important; }
}

/* =============================================================================
   TEME - sitne razlike koje se ne mogu izraziti samo promenljivama
   ========================================================================== */

/* --- MARTINI NOIR: crveni potez četkicom iza naslova --------------------- */
.theme-martini-noir .section__title,
.theme-martini-noir .hero__title { text-shadow: 0 3px 14px rgba(0, 0, 0, .55); }
.theme-martini-noir .item__name  { text-transform: uppercase; letter-spacing: .045em; font-weight: 600; }

/* --- COFFEE & BAR: elegantniji razmaci, tanke linije -------------------- */
.theme-coffee-bar .item__name { letter-spacing: .02em; }
.theme-coffee-bar .section__head { border-bottom: 1px solid var(--line-color); padding-bottom: 10px; }
.theme-coffee-bar .section__line { display: none; }
.theme-coffee-bar .item { border-bottom-style: solid; }

/* --- MINIMAL FRESH: kartice umesto lista, maksimalna čitljivost --------- */
.theme-minimal-fresh .item {
  border-bottom: 0;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid var(--line-color);
  border-radius: var(--border-radius);
  background: var(--surface-color);
}
.theme-minimal-fresh .item__name  { color: var(--text-color); font-weight: 700; }
.theme-minimal-fresh .item__price { color: var(--primary-color); }
.theme-minimal-fresh .item__dots  { display: none; }
.theme-minimal-fresh .section__title { font-weight: 700; }
.theme-minimal-fresh .site-head { box-shadow: 0 6px 18px rgba(31, 45, 40, .08); }
.theme-minimal-fresh .menu-footer__thanks { color: var(--primary-color); }

@media (min-width: 720px) {
  .theme-minimal-fresh .item-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .theme-minimal-fresh .item { margin-bottom: 0; }
}

/* =============================================================================
   ILUSTRACIJE
   Crtane u boji, pa ne nasledjuju boju teksta - samo velicinu.
   ========================================================================== */
.ic { width: 1em; height: 1em; flex: none; display: block; }

/* =============================================================================
   EKRAN IZBORA - velike kartice
   ========================================================================== */
.choose { padding-bottom: 30px; }

.choose__head { padding: 26px 0 14px; }

.choose__title {
  font-family: var(--heading-font);
  font-size: clamp(2.3rem, 11vw, 3.6rem);
  line-height: 1;
  margin: 0;
  color: var(--secondary-color);
}

.choose__sub {
  margin: 8px 0 0;
  color: var(--muted-text-color);
  font-size: .95rem;
  max-width: 46ch;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 520px) { .tiles { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.tiles--extra { margin-top: 14px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .tiles--extra { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .tiles--extra { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 94px;
  padding: 16px 16px 16px 20px;
  border: 1px solid var(--line-color);
  border-radius: var(--border-radius);
  background: var(--surface-color);
  box-shadow: 0 16px 30px -24px var(--shadow-color);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.tile::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
}

.tile:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent-color) 45%, transparent);
  box-shadow: 0 22px 38px -26px var(--shadow-color);
}
.tile:active { transform: scale(.99); }

.tile__art {
  flex: none;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: calc(var(--border-radius) * .7);
  background: color-mix(in srgb, var(--text-color) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--text-color) 12%, transparent);
}

.tile__icon {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35));
}

.tile__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tile__title {
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--text-color);
}

.tile__sub {
  color: var(--muted-text-color);
  font-size: .84rem;
  line-height: 1.35;
}

.tile__count {
  margin-top: 3px;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted-text-color) 80%, transparent);
}

.tile__arrow {
  margin-left: auto;
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--muted-text-color);
}

.tile--wide { min-height: 86px; }
.tile--wide .tile__art { width: 52px; height: 52px; }
.tile--wide .tile__icon { width: 34px; height: 34px; }
.tile--wide .tile__title { font-size: .98rem; }

/* =============================================================================
   ZAGLAVLJE JEDNE SEKCIJE
   ========================================================================== */
.sec-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 0 6px;
}

.sec-head__art {
  flex: none;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: calc(var(--border-radius) * .7);
  background: color-mix(in srgb, var(--text-color) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--text-color) 12%, transparent);
}

.sec-head__icon {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35));
}

.sec-head__title {
  font-family: var(--heading-font);
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.05;
  margin: 0;
  color: var(--secondary-color);
}

.sec-head__sub {
  margin: 2px 0 0;
  color: var(--muted-text-color);
  font-size: .88rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 26px 0 8px;
  padding: 10px 16px;
  border: 1px solid var(--line-color);
  border-radius: 999px;
  color: var(--muted-text-color);
  font-size: .86rem;
}
.back-link:hover { color: var(--text-color); border-color: var(--accent-color); }
.back-link .icon { width: 16px; height: 16px; }

/* Ukrasi na naslovnoj su sada inline SVG. */
.hero__decor-ic { width: 100%; height: auto; }

/* -----------------------------------------------------------------------------
   IZBOR: HRANA / PIĆE
   Stoji u lepljivom zaglavlju, iznad trake sa kategorijama. Kada lokal ima
   samo jedan deo menija, ova traka se uopšte ne ispisuje.
   -------------------------------------------------------------------------- */
.groupbar {
  display: flex;
  gap: 8px;
  padding: 8px 18px 0;
}

.grouptab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 10px;
  border-radius: 14px 14px 0 0;
  border: 1px solid var(--line-color);
  border-bottom: none;
  background: var(--panel-color);
  color: var(--muted-text-color);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}

.grouptab__ic { width: 22px; height: 22px; flex: none; }

.grouptab:hover { color: var(--text-color); }

.grouptab.is-active {
  background: var(--primary-color);
  border-color: transparent;
  color: #fff;
}

/* Na uskim ekranima ikonica nosi značenje, pa tekst sme da se stisne. */
@media (max-width: 380px) {
  .grouptab { font-size: .82rem; padding-inline: 6px; }
}

/* Prelaz na drugi deo menija, na dnu liste. */
.group-jump {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 34px 0 6px;
  padding: 16px 18px;
  border: 1px solid var(--line-color);
  border-radius: var(--radius, 18px);
  background: var(--panel-color);
  color: var(--text-color);
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.group-jump:hover { border-color: var(--accent-color); }
.group-jump__ic { width: 30px; height: 30px; flex: none; }
.group-jump span { flex: 1 1 auto; }

/* -----------------------------------------------------------------------------
   POKAZIVAČ SKROLA ISPOD TRAKE SA KATEGORIJAMA

   Kada kategorije ne stanu na ekran, gost ne vidi da traka ima još desno.
   Ova linijica pokazuje i da skrol postoji i dokle je stigao: šina je cela
   traka, a debeli deo je ono što se trenutno vidi.

   Ispisuje se samo kada ima šta da se skroluje - klasu `is-scrollable`
   postavlja assets/js/menu.js, pa lokal sa dve kategorije ne dobija ništa.
   -------------------------------------------------------------------------- */
.scrollhint {
  display: none;
  position: relative;
  height: 3px;
  margin: 0 18px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-color) 12%, transparent);
}

.catbar.is-scrollable .scrollhint { display: block; }

/* Linijica preuzima deo visine, pa zaglavlje ostaje otprilike iste visine. */
.catbar.is-scrollable .chips { padding-bottom: 7px; }

.scrollhint__thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30%;
  border-radius: inherit;
  background: var(--primary-color);
  transition: left .12s linear, width .12s linear;
}

@media (prefers-reduced-motion: reduce) {
  .scrollhint__thumb { transition: none; }
}
