/* =========================================================
   Fast Food Stars - stilovi
   Koncept: noćna terasa. Neutralni ugljeni ton, zlato iz loga
   i žar narandžasta za akcije. Uski kondenzovani naslovi kao
   na tabli s cijenama, cijene u mono fontu kao na računu.
   Mobile-first: osnovni stilovi su za telefon, @media dodaje veće ekrane.
   ========================================================= */

:root {
  /* boje */
  --coal: #1b1d1f;        /* pozadina */
  --coal-2: #212427;      /* površine */
  --coal-3: #2b2f33;      /* uzdignute površine */
  --line: #3a3e42;        /* linije, okviri */
  --cream: #f4efe6;       /* tekst */
  --muted: #b9b3a8;       /* sporedni tekst */
  --gold: #e9b64c;        /* brand zlato (logo) */
  --gold-soft: rgba(233, 182, 76, 0.14);
  --ember: #d23c17;       /* CTA */
  --ember-hot: #e84d23;
  --gold-light: #f2cf78;  /* zlatni tekst (telefon, outline dugme) */
  --ember-ink: #fff6ec;   /* tekst na ember dugmetu */
  --ok: #6fd28a;
  --closed: #ff8a7a;

  /* tipografija */
  --f-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* skala */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  --fs-2xl: clamp(2.6rem, 1.8rem + 3.5vw, 4.4rem);
  --fs-hero: clamp(2.9rem, 0.6rem + 9.4vw, 6.3rem);

  --radius: 14px;
  --radius-sm: 9px;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }

body {
  margin: 0;
  background: var(--coal);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: var(--fs-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* traka iznad sticky headera (notch na telefonu) */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--coal);
}
body.no-scroll { overflow: hidden; }

[hidden] { display: none !important; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--gold);
  color: var(--coal);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: var(--fs-2xl);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.section-lead { color: var(--muted); max-width: 52ch; }

/* ---------- dugmad ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: var(--fs-md); }

.btn-ember {
  background: var(--ember);
  color: var(--ember-ink);
  box-shadow: 0 6px 24px -8px rgba(210, 60, 23, 0.7);
}
.btn-ember:hover { background: var(--ember-hot); transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(210, 60, 23, 0.85); }

.btn-ghost { border-color: var(--line); color: var(--cream); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.btn-gold-outline { border-color: rgba(233, 182, 76, 0.7); color: var(--gold-light); background: transparent; }
.btn-gold-outline:hover { border-color: var(--gold-light); background: var(--gold-soft); transform: translateY(-2px); }

.btn-text {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px;
}
.btn-text:hover { color: var(--closed); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(27, 29, 31, 0.86);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -18px #000; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}
.brand img { height: 46px; width: auto; }
.brand { flex-shrink: 0; border-radius: 6px; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.btn-order { position: relative; padding-inline: 18px; }
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ember-ink);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
}
.is-bumped { animation: bump 0.45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.12); } }

.nav-toggle {
  display: grid;
  gap: 5px;
  place-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--coal-2);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobilna navigacija: padajući panel */
.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  padding: 8px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px));
  background: var(--coal);
  border-bottom: 1px solid var(--line);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}
.main-nav.is-open { opacity: 1; transform: none; visibility: visible; }
.main-nav a {
  padding: 14px 4px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.6rem;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.main-nav a:hover { color: var(--gold); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; overflow: hidden; background: var(--coal); }
.hero-inner {
  display: grid;
  gap: 28px;
  padding-block: 44px 48px;
}
.hero-copy { display: grid; gap: 24px; align-content: start; min-width: 0; }

.hero-title {
  display: grid;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(3.6rem, 1.4rem + 9.5vw, 8.4rem);
  line-height: 0.9;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--cream);
}
.hero-title span { display: block; }
.hero-sub { font-size: var(--fs-lg); color: var(--muted); max-width: 40ch; line-height: 1.6; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual {
  justify-self: center;
  width: min(100%, 560px);
}
.hero-visual svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-stars use {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transform: scale(0) rotate(-90deg);
  /* pop-in: brz rast s blagim "odskokom", zatim smiri */
  animation: star-pop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.hero-stars use:nth-child(1) { animation-delay: 0.35s; }
.hero-stars use:nth-child(2) { animation-delay: 0.5s; }
.hero-stars use:nth-child(3) { animation-delay: 0.65s; }
.hero-stars use:nth-child(4) { animation-delay: 0.8s; }
@keyframes star-pop {
  0%   { opacity: 0; transform: scale(0) rotate(-90deg); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stars use { opacity: 1; transform: none; animation: none; }
}

/* traka s jelima */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--coal-2);
  overflow: hidden;
}
.ticker-track {
  display: flex;
  width: max-content;
  /* dvije iste grupe jedna do druge: pomak za tačno jednu grupu daje beskonačnu petlju bez praznine.
     JS (initTicker) puni grupu dok ne bude šira od ekrana i podešava trajanje za stalnu brzinu. */
  animation: ticker var(--ticker-duration, 40s) linear infinite;
  will-change: transform;
}
.ticker-group { display: flex; flex-shrink: 0; }
.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 12px 11px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}
.ticker span::after { content: "★"; color: var(--gold); font-size: 0.9rem; }
@keyframes ticker { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* =========================================================
   MENI
   ========================================================= */
.menu { padding-block: 64px 32px; }
.section-head { display: grid; gap: 12px; margin-bottom: 24px; }

.tabs-bar {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + var(--header-h));
  z-index: 40;
  background: rgba(27, 29, 31, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
}
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-block: 10px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--coal-2);
  font-weight: 600;
  font-size: var(--fs-sm);
  scroll-snap-align: start;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.tab:hover { border-color: var(--gold); }
.tab-count {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--muted);
}
.tab[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--coal); }
.tab[aria-selected="true"] .tab-count { color: rgba(27, 29, 31, 0.65); }

.menu-body { display: grid; gap: 56px; padding-top: 32px; }
.noscript { color: var(--muted); padding-top: 24px; }

/* kategorija */
.cat { display: grid; gap: 20px; animation: fade-up 0.45s var(--ease); }
@keyframes fade-up { from { transform: translateY(10px); opacity: 0.4; } }

.cat-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  column-gap: 14px;
  padding-bottom: 14px;
  border-bottom: 2px dashed var(--line);
}
.cat-index {
  grid-row: span 2;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 3.4rem;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
}
.cat-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: var(--fs-xl);
  line-height: 1;
  text-transform: uppercase;
}
.cat-tagline { color: var(--muted); font-size: var(--fs-sm); }

/* velike kartice s fotografijom */
.spotlight { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }

.dish {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--coal-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.dish:hover { transform: translateY(-4px); border-color: rgba(233, 182, 76, 0.5); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.9); }

.dish-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--coal-3); }
.dish-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.dish:hover .dish-media img { transform: scale(1.06); }
.dish-media .badge { position: absolute; left: 12px; top: 12px; z-index: 1; }

.dish-body { display: grid; gap: 8px; align-content: start; padding: 16px 16px 18px; }
.dish-name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  text-transform: uppercase;
}
.dish-desc { color: var(--muted); font-size: var(--fs-sm); }
.dish-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }

.price {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price small { margin-left: 4px; font-size: 0.68em; color: var(--muted); }
.dish .price { font-size: 1.45rem; }

.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 0;
  background: var(--ember);
  color: var(--ember-ink);
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
.add-btn span { font-size: 1.2em; line-height: 1; }
.add-btn:hover { background: var(--ember-hot); transform: translateY(-2px); }
.add-btn:active { transform: scale(0.95); }

/* bedževi */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; fill: currentColor; }
.badge--best { background: var(--ember); color: var(--ember-ink); }
.badge--house { background: var(--coal); color: var(--gold); border: 1px solid var(--gold); }

/* lista jela, stil računa */
.rows { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 40px; }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.row-main { display: grid; gap: 4px; min-width: 0; }
.row-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.row-title h4 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  min-width: 0;
}
.leader {
  flex: 1;
  min-width: 16px;
  border-bottom: 2px dotted var(--line);
  transform: translateY(-4px);
}
.row-desc { color: var(--muted); font-size: var(--fs-sm); }
.row-unit {
  display: inline-block;
  margin-right: 8px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--coal-3);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--cream);
}
.row-badge { margin-top: 4px; }

.add-round {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ember);
  background: transparent;
  color: var(--ember);
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.add-round svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; fill: none; }
.add-round:hover { background: var(--ember); color: var(--ember-ink); transform: rotate(90deg); }
.add-round:active { transform: scale(0.9); }

/* =========================================================
   O NAMA
   ========================================================= */
.about { padding-block: 72px; }
.about-inner { display: grid; gap: 40px; }
.about-copy { display: grid; gap: 18px; align-content: start; }
.about-copy p:last-child { color: var(--muted); font-size: var(--fs-lg); max-width: 52ch; }

.features { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.feature {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--coal-2);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.feature:hover { border-color: var(--gold); transform: translateY(-3px); }
.feature-icon { width: 40px; height: 40px; color: var(--ember); }
.feature h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; line-height: 1; }
.feature p { color: var(--muted); font-size: var(--fs-sm); }

/* =========================================================
   LOKACIJA
   ========================================================= */
.location { background: var(--coal-2); padding-block: 64px 72px; }
.location-inner { display: grid; gap: 36px; }
.location-info { display: grid; gap: 20px; align-content: start; min-width: 0; }

.location-address {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-style: normal;
  font-size: var(--fs-lg);
  color: var(--muted);
}
.location-address svg { color: var(--gold); flex-shrink: 0; }

.location-phone {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(3rem, 2rem + 4vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--gold-light);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  justify-self: start;
  transition: color 0.2s;
}
.location-phone:hover { color: var(--gold); }

.hours-list { max-width: 420px; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(233, 182, 76, 0.35);
  color: var(--muted);
}
.hours-time {
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hours-list li.is-today { color: var(--cream); }
.hours-list li.is-today .hours-time { color: var(--gold-light); }

.location-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

.map-frame {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--coal-3);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  /* Google embed nema tamni stil, ovaj filter ga pretvara u tamnu mapu */
  filter: invert(0.92) hue-rotate(180deg) saturate(0.75) contrast(0.95);
}

/* zamjena za mapu gdje iframe nije dozvoljen (npr. pregled) */
.map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background:
    radial-gradient(circle at 50% 45%, rgba(233, 182, 76, 0.12), transparent 45%),
    repeating-linear-gradient(28deg, transparent 0 46px, rgba(255, 255, 255, 0.05) 46px 48px),
    repeating-linear-gradient(-62deg, transparent 0 70px, rgba(255, 255, 255, 0.04) 70px 72px),
    var(--coal-3);
}
.map-fallback svg { width: 44px; height: 44px; color: var(--ember); }
.map-fallback strong { color: var(--cream); font-size: var(--fs-lg); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #151719;
  border-top: 1px solid var(--line);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); /* mjesto za cart-bar */
}
.footer-inner { display: grid; gap: 32px; padding-block: 48px 32px; }
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-brand img { width: 150px; }
.footer-brand p,
.footer-col p,
.footer-hours { color: var(--muted); font-size: var(--fs-sm); }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col h3 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--gold); }
.footer-hours { display: grid; gap: 4px; }

.socials { display: flex; gap: 10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.socials a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-xs);
}

/* =========================================================
   NARUDŽBA - plutajuća traka i bočni panel
   ========================================================= */
.cart-bar {
  position: fixed;
  z-index: 45;
  left: max(12px, env(safe-area-inset-left, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ember);
  color: var(--ember-ink);
  font-weight: 700;
  text-align: left;
  box-shadow: 0 16px 40px -12px rgba(210, 60, 23, 0.75);
  transition: background-color 0.2s;
}
.cart-bar:hover { background: var(--ember-hot); }
.cart-bar-count { font-family: var(--f-mono); font-size: var(--fs-sm); padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.2); }
.cart-bar-total { font-family: var(--f-mono); }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(8, 6, 4, 0.6);
  backdrop-filter: blur(3px);
}
.drawer {
  position: fixed;
  z-index: 80;
  inset: auto 0 0 0;
  max-height: 88vh;
  max-height: 88dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--coal-2);
  border-top: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0.35s;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer:focus { outline: none; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px max(20px, env(safe-area-inset-right, 0px)) 14px max(20px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-family: var(--f-display); font-weight: 900; font-size: 1.9rem; text-transform: uppercase; line-height: 1; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }

.drawer-body { overflow-y: auto; padding: 8px max(20px, env(safe-area-inset-right, 0px)) 8px max(20px, env(safe-area-inset-left, 0px)); overscroll-behavior: contain; }
.cart-empty { display: grid; gap: 10px; justify-items: start; padding-block: 24px; color: var(--muted); }
.cart-empty-title { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; color: var(--cream); text-transform: uppercase; }

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "info sum" "step step";
  gap: 10px 12px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.cart-item-info { grid-area: info; display: grid; min-width: 0; }
.cart-item-name { font-weight: 700; }
.cart-item-price { color: var(--muted); font-size: var(--fs-xs); font-family: var(--f-mono); }
.cart-item-sum { grid-area: sum; font-family: var(--f-mono); color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stepper {
  grid-area: step;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.stepper button { width: 40px; height: 36px; border: 0; background: transparent; font-size: 1.2rem; }
.stepper button:hover { background: var(--coal-3); color: var(--gold); }
.stepper output { min-width: 56px; text-align: center; font-family: var(--f-mono); font-size: var(--fs-sm); }

.drawer-foot {
  display: grid;
  gap: 12px;
  padding: 16px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--line);
  background: var(--coal);
}
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.cart-total-row strong { font-family: var(--f-mono); font-size: 1.5rem; color: var(--gold); }
.cart-hint { color: var(--muted); font-size: var(--fs-sm); }
.phone-text { color: var(--cream); font-weight: 700; user-select: all; }
.drawer-actions { display: grid; gap: 10px; }
.copy-fallback {
  width: 100%;
  min-height: 120px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--coal-2);
  color: var(--cream);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
}

/* ---------- forma za narudžbu ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.order-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.form-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
  line-height: 1;
}
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--coal);
}
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  color: var(--muted);
  transition: background-color 0.2s, color 0.2s;
}
.seg input:checked + span { background: var(--gold); color: var(--coal); }
.seg input:focus-visible + span { outline: 3px solid var(--gold-light); outline-offset: 2px; }

.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field label em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--coal);
  color: var(--cream);
  font: inherit;
  font-size: 16px; /* sprječava zumiranje na iPhoneu */
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 70px; }
.field input::placeholder,
.field textarea::placeholder { color: #7f7a72; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field.has-error input { border-color: var(--closed); }
.field-error { color: var(--closed); font-size: var(--fs-xs); }

/* ---------- korak "pošalji u Viber" ---------- */
.btn-viber { background: #7360f2; color: #fff; box-shadow: 0 6px 24px -8px rgba(115, 96, 242, 0.7); }
.btn-viber:hover { background: #8473f5; transform: translateY(-2px); }

.order-sent { display: grid; gap: 16px; padding-block: 22px 24px; }
.sent-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--coal);
  animation: sent-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.sent-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes sent-pop { from { transform: scale(0); } }
.sent-title { font-family: var(--f-display); font-weight: 900; font-size: 2rem; text-transform: uppercase; line-height: 1; }
.sent-title:focus { outline: none; }
.sent-steps { display: grid; gap: 10px; margin: 0; padding-left: 1.3em; color: var(--muted); }
.sent-steps b { color: var(--cream); }
.sent-preview {
  margin: 0;
  max-height: 180px;
  overflow: auto;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(233, 182, 76, 0.4);
  background: var(--coal);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.sent-actions { display: grid; gap: 10px; }
.sent-preview + .sent-actions { margin-top: -4px; }
.sent-alt { color: var(--muted); font-size: var(--fs-sm); text-align: center; }
.sent-alt a { color: var(--gold-light); font-weight: 700; }
.sent-foot { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; }

/* toast */
.toast {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 84px);
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border-radius: 14px;
  text-align: center;
  width: max-content;
  background: var(--cream);
  color: var(--coal);
  font-weight: 600;
  font-size: var(--fs-sm);
  box-shadow: 0 12px 30px -10px #000;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   VEĆI EKRANI
   ========================================================= */
@media (min-width: 600px) {
  .spotlight--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-bar { left: auto; width: 380px; right: max(24px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); }
}

@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .brand img { height: 56px; }

  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    display: flex;
    gap: 6px;
    padding: 0;
    margin-left: 24px;
    background: none;
    border: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .main-nav a {
    position: relative;
    padding: 8px 12px;
    font-family: var(--f-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: none;
    border: 0;
  }
  .main-nav a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
  }
  .main-nav a:hover::after { transform: scaleX(1); }

  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; padding-block: 80px 96px; }
  .hero-visual { justify-self: end; }

  .spotlight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spotlight--1 { grid-template-columns: minmax(0, 1fr); }
  .spotlight--1 .dish { grid-template-columns: 1.1fr 1fr; grid-template-rows: none; }
  .spotlight--1 .dish-media { aspect-ratio: auto; min-height: 300px; }
  .spotlight--1 .dish-body { align-content: center; padding: 32px; }

  .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .cat { grid-template-columns: 260px minmax(0, 1fr); column-gap: 40px; row-gap: 20px; }
  .cat-head {
    grid-row: span 2;
    align-self: start;
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 84px);
    grid-template-columns: 1fr;
    row-gap: 8px;
    border-bottom: 0;
    padding: 0;
  }
  .cat-index { grid-row: auto; font-size: 5rem; }
  .cat-title { font-size: 2.6rem; }
  .cat .rows { grid-template-columns: minmax(0, 1fr); }

  .about-inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
  .location { padding-block: 72px 88px; }
  .location-inner { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: 72px; }
  .map-frame { aspect-ratio: auto; height: 100%; min-height: 540px; }

  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .site-footer { padding-bottom: env(safe-area-inset-bottom, 0px); }

  .drawer {
    inset: 0 0 0 auto;
    width: 420px;
    max-height: none;
    border-radius: 0;
    border-top: 0;
    border-left: 1px solid var(--line);
    padding-top: env(safe-area-inset-top, 0px);
    transform: translateX(105%);
  }
}

@media (min-width: 1100px) {
  .cat .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* manje pokreta za one koji to traže */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* dok je narudžba otvorena, poruke idu na vrh da ne prekrivaju dugme "Naruči" */
body.no-scroll .toast { bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 16px); transform: translate(-50%, -20px); }
body.no-scroll .toast.is-visible { transform: translate(-50%, 0); }

/* traka s jelima se uvijek vrti, i kad je u sistemu uključeno "manje animacija" */
@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation-duration: var(--ticker-duration, 40s) !important;
    animation-iteration-count: infinite !important;
  }
}
