/* ==========================================================================
   Pizzeria Slavonija — online naručivanje
   Vlastiti stil: topla "papirnata" podloga, terakota akcent, Plus Jakarta Sans.
   ========================================================================== */

@import url('../fonts/fonts.css');

:root {
  --ink: #1f1a17;
  --ink-2: #4a423d;
  --muted: #8a7f78;
  --line: #e6dccf;
  --paper: #f5efe4;
  --paper-2: #ede4d4;
  --card: #fffdf9;
  --terra: #c2451f;
  --terra-dark: #9d3416;
  --terra-soft: #fbe9e1;
  --olive: #3f5a3a;
  --olive-soft: #e6eee2;
  --gold: #d9a441;
  --ok: #2f8f4e;
  --warn: #c98a12;
  --bad: #c62828;

  --font-display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --wrap: 1400px;
  --topbar-h: 64px;
  --shadow: 0 10px 30px rgba(31, 26, 23, 0.10);
  --shadow-sm: 0 2px 8px rgba(31, 26, 23, 0.06);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 64px); }
html, body { overflow-x: hidden; }
body {
  font-family: var(--font-body); font-size: 1rem; line-height: 1.55; color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(rgba(31,26,23,0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  min-height: 100dvh; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

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

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }

/* ---------- gumbi i forme ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem; border-radius: var(--r-sm); font-weight: 800; font-size: 0.95rem;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s; white-space: nowrap;
}
.btn--terra { background: var(--terra); color: #fff; }
.btn--terra:hover { background: var(--terra-dark); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; }
.btn--line { border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--ghost { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; padding: 0.5rem 0.75rem; }
.btn--block { width: 100%; }
.btn--lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn:disabled { opacity: 0.55; cursor: wait; }

.field { margin-bottom: 1.1rem; }
.label {
  display: block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 0.4rem;
}
.input {
  width: 100%; padding: 0.8rem 0.95rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--card); transition: border-color 0.15s, box-shadow 0.15s; min-height: 48px;
}
.input:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(194,69,31,0.15); }
.input--upper { text-transform: uppercase; }
select.input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a423d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; padding-right: 2.4rem; }
textarea.input { resize: vertical; min-height: 84px; }
.hint { display: block; margin-top: 0.4rem; font-size: 0.82rem; color: var(--muted); }
.hint--warn { color: var(--terra); }
.error { display: block; background: #fdecea; color: var(--bad); border: 1px solid #f5c2bd; padding: 0.75rem 0.9rem; border-radius: var(--r-sm); font-weight: 700; margin-bottom: 1rem; }

/* segmentirani izbornik (dostava/preuzimanje, plaćanje, termin) */
.seg { display: flex; background: var(--paper-2); border-radius: var(--r-sm); padding: 4px; gap: 4px; }
.seg__opt { flex: 1; position: relative; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg__opt span, .seg__btn {
  display: flex; align-items: center; justify-content: center; padding: 0.65rem 0.75rem; border-radius: 4px;
  font-weight: 800; font-size: 0.92rem; color: var(--ink-2); transition: all 0.15s; min-height: 42px; width: 100%;
}
.seg__opt input:checked + span, .seg__btn.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg__opt--off { opacity: 0.45; }
.seg__opt--off input { cursor: not-allowed; }

/* ---------- gornja traka ---------- */
.topbar {
  position: sticky; top: 0; z-index: 900; height: var(--topbar-h);
  background: rgba(31,26,23,0.96); color: #fff; backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar__in { display: flex; align-items: center; gap: 1rem; height: 100%; }
.topbar__logo img { height: 36px; width: auto; }
.topbar__spacer { flex: 1; }
.topbar__phone { display: none; align-items: center; gap: 0.45rem; font-weight: 700; color: rgba(255,255,255,0.85); }
.topbar__phone:hover { color: #fff; }
.status {
  display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; font-weight: 800;
  padding: 0.35rem 0.7rem; border-radius: 4px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9);
}
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(47,143,78,0.25); }
.status--closed::before { background: var(--bad); box-shadow: 0 0 0 3px rgba(198,40,40,0.25); }
.status--pickup::before { background: var(--gold); box-shadow: 0 0 0 3px rgba(217,164,65,0.25); }
.status small { font-weight: 600; opacity: 0.8; }
.basketbtn {
  display: none; align-items: center; gap: 0.55rem; padding: 0.55rem 0.9rem; border-radius: var(--r-sm);
  background: var(--terra); color: #fff; font-weight: 800; transition: background 0.15s;
}
.basketbtn:hover { background: var(--terra-dark); }
.basketbtn__n { background: rgba(255,255,255,0.22); border-radius: 4px; padding: 0 0.45rem; font-size: 0.85rem; }
.basketbtn svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; min-height: 380px; display: flex; align-items: flex-end;
  background: #2b221d url('../img/hero.jpg') center/cover no-repeat;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,26,23,0.25) 0%, rgba(31,26,23,0.72) 70%, rgba(31,26,23,0.92) 100%);
}
.hero__in { position: relative; z-index: 1; padding: 3.5rem 1.25rem 2.5rem; }
.hero__eyebrow { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.hero__title { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; max-width: 14ch; }
.hero__title em { font-style: italic; font-weight: 500; color: #f1d9b5; }
.hero__lead { margin-top: 0.9rem; max-width: 52ch; color: rgba(255,255,255,0.82); font-size: 1.05rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.5rem; font-size: 0.88rem; color: rgba(255,255,255,0.75); }
.hero__meta b { color: #fff; }

/* ---------- obavijest (zatvoreno) ---------- */
.notice {
  background: var(--terra-soft); border-left: 4px solid var(--terra); padding: 0.9rem 1.1rem; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-bottom: 1.5rem; line-height: 1.5;
}
.notice a { color: var(--terra); font-weight: 800; }

/* ---------- jelovnik: navigacija + jela ---------- */
.shop { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 0 5rem; }
.catnav, .dishes { min-width: 0; }
.catnav {
  position: sticky; top: var(--topbar-h); z-index: 800; background: var(--paper); border-bottom: 1px solid var(--line);
}
.catnav__list { display: flex; overflow-x: auto; scrollbar-width: none; gap: 0.25rem; padding: 0 1.25rem; -webkit-overflow-scrolling: touch; }
.catnav__list::-webkit-scrollbar { display: none; }
.catnav__link {
  display: inline-block; white-space: nowrap; padding: 0.9rem 0.6rem 0.75rem; font-weight: 800; font-size: 0.92rem; color: var(--muted);
  border-bottom: 3px solid transparent; transition: color 0.15s, border-color 0.15s;
}
.catnav__link:hover { color: var(--ink); }
.catnav__link.active { color: var(--terra); border-bottom-color: var(--terra); }
.catnav__title { display: none; }

.dishes { padding-top: 1.5rem; }
.group { margin-bottom: 2.5rem; }
.group__head { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.9rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--ink); }
.group__title { font-size: 1.7rem; font-weight: 800; }
.group__count { font-size: 0.82rem; color: var(--muted); font-weight: 700; }
.group__list { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }

.dish {
  display: grid; grid-template-columns: 112px 1fr; gap: 1rem; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.85rem;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; cursor: pointer;
}
.dish:hover { border-color: #d5c7b3; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.dish--noimg { grid-template-columns: 1fr; }
.dish__img { width: 112px; height: 112px; border-radius: var(--r-sm); overflow: hidden; background: var(--paper-2); }
.dish__img img { width: 100%; height: 100%; object-fit: cover; }
.dish__body { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.dish__name { font-size: 1.12rem; font-weight: 700; }
.dish__desc { font-size: 0.88rem; color: var(--ink-2); line-height: 1.45; }
.dish__sizes { display: flex; flex-wrap: wrap; gap: 0.3rem 0.7rem; font-size: 0.78rem; color: var(--muted); font-weight: 700; }
.dish__sizes b { color: var(--ink); }
.dish__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.35rem; }
.dish__price { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.dish__price small { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; color: var(--muted); margin-right: 0.2rem; }
.dish__add {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.85rem; border-radius: var(--r-sm);
  border: 1.5px solid var(--ink); font-weight: 800; font-size: 0.85rem; transition: all 0.15s;
}
.dish__add svg { width: 16px; height: 16px; }
.dish:hover .dish__add, .dish__add:hover { background: var(--ink); color: #fff; }
.dish--off { cursor: default; opacity: 0.6; }
.dish--off:hover { transform: none; box-shadow: none; border-color: var(--line); }
.dish__off { font-size: 0.8rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- donja traka košarice (mobitel) ---------- */
.basketbar {
  position: fixed; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; z-index: 850;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--ink); color: #fff; padding: 0.9rem 1.1rem; border-radius: var(--r-md); box-shadow: var(--shadow);
  font-weight: 800;
}
.basketbar__n { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 0.4rem; border-radius: 4px; background: var(--terra); font-size: 0.85rem; margin-right: 0.6rem; }
.basketbar__total { font-family: var(--font-display); font-size: 1.1rem; }

/* ---------- košarica (panel) ---------- */
.basket { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.basket__bg { position: absolute; inset: 0; background: rgba(31,26,23,0.5); opacity: 0; transition: opacity 0.25s; }
.basket__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%);
  background: var(--paper); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}
.basket.open { pointer-events: auto; }
.basket.open .basket__bg { opacity: 1; }
.basket.open .basket__panel { transform: none; }
.basket__head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.basket__head h2 { font-size: 1.4rem; }
.iconbtn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--paper-2); font-size: 1.3rem; line-height: 1; }
.iconbtn:hover { background: var(--line); }
.basket__items { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.basket__empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.basket__foot { padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.basket__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.85rem; font-weight: 700; }
.basket__total strong { font-family: var(--font-display); font-size: 1.5rem; }

.line { padding: 0.85rem 0; border-bottom: 1px dashed var(--line); }
.line__top { display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; }
.line__name { font-weight: 800; }
.line__price { font-weight: 700; white-space: nowrap; }
.line__tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.35rem; }
.line__tag { font-size: 0.75rem; padding: 0.15rem 0.5rem; border-radius: 4px; background: var(--paper-2); color: var(--ink-2); }
.line__tag--note { background: var(--terra-soft); color: var(--terra); font-weight: 700; }
.line__ctl { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.6rem; }
.qty { width: 32px; height: 32px; border-radius: 4px; border: 1.5px solid var(--line); background: var(--card); font-weight: 800; display: grid; place-items: center; }
.qty:hover { border-color: var(--ink); }
.line__n { min-width: 28px; text-align: center; font-weight: 800; }
.line__rm { margin-left: auto; color: var(--muted); font-size: 1.2rem; padding: 0 0.4rem; }
.line__rm:hover { color: var(--bad); }

/* ---------- modal proizvoda ("sheet") ---------- */
.sheet { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: flex-end; justify-content: center; }
.sheet__bg { position: absolute; inset: 0; background: rgba(31,26,23,0.55); }
.sheet__panel {
  position: relative; width: 100%; max-height: 92dvh; background: var(--paper); border-radius: var(--r-lg) var(--r-lg) 0 0;
  display: flex; flex-direction: column; overflow: hidden; animation: sheetUp 0.28s cubic-bezier(.2,.8,.2,1);
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet__close { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2; background: rgba(255,255,255,0.9); }
.sheet__scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet__img { height: 240px; background: var(--paper-2); }
.sheet__img img { width: 100%; height: 100%; object-fit: cover; }
.sheet__body { padding: 1.25rem 1.25rem 1rem; }
.sheet__name { font-size: 1.7rem; font-weight: 800; }
.sheet__price { font-family: var(--font-display); font-size: 1.15rem; color: var(--terra); font-weight: 700; margin-top: 0.15rem; }
.sheet__desc { color: var(--ink-2); margin-top: 0.5rem; font-size: 0.95rem; }
.opt { margin-top: 1.4rem; }
.opt__title { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.6rem; }
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.size { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.1rem; padding: 0.7rem 0.4rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--card); cursor: pointer; transition: all 0.15s; }
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size__name { font-weight: 800; text-transform: capitalize; }
.size__price { font-size: 0.85rem; color: var(--muted); }
.size--on { border-color: var(--terra); background: var(--terra-soft); }
.size--on .size__price { color: var(--terra); font-weight: 800; }
.extra { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--line); }
.extra__lab { display: flex; align-items: center; gap: 0.6rem; flex: 1; cursor: pointer; }
.extra__lab input { width: 20px; height: 20px; accent-color: var(--terra); }
.extra__price { font-weight: 700; font-size: 0.9rem; color: var(--ink-2); white-space: nowrap; }
.extra__step { display: none; align-items: center; gap: 0.25rem; }
.extra__step.shown { display: flex; }
.extra__step .qty { width: 28px; height: 28px; }
.check { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; font-weight: 700; }
.check input { width: 20px; height: 20px; accent-color: var(--terra); }
.sheet__foot { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1.25rem calc(0.9rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.stepper button { width: 42px; height: 46px; font-size: 1.3rem; font-weight: 700; }
.stepper button:hover { background: var(--paper-2); }
.stepper span { min-width: 32px; text-align: center; font-weight: 800; }
.sheet__foot .btn { flex: 1; }

/* ---------- toast ---------- */
.toasts { position: fixed; top: calc(var(--topbar-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 950; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; width: min(92%, 420px); }
.toast { background: var(--olive); color: #fff; padding: 0.7rem 1rem; border-radius: var(--r-sm); font-weight: 700; font-size: 0.92rem; box-shadow: var(--shadow); opacity: 0; transform: translateY(-8px); transition: all 0.25s; text-align: center; }
.toast.show { opacity: 1; transform: none; }

/* ---------- podnožje ---------- */
.foot { background: var(--ink); color: rgba(255,255,255,0.75); margin-top: 2rem; font-size: 0.9rem; }
.foot__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.25rem 2rem; }
.foot__logo { height: 44px; width: auto; margin-bottom: 1rem; }
.foot h4 { font-family: var(--font-display); color: #fff; font-size: 1.05rem; margin-bottom: 0.6rem; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot__hours { border-collapse: collapse; }
.foot__hours td { padding: 0.15rem 1.25rem 0.15rem 0; }
.foot__hours td:last-child { color: #fff; font-weight: 700; }
.foot__links a { display: block; margin-bottom: 0.3rem; }
.foot__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1rem 1.25rem 5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.8rem; }
.foot__bottom a { margin-right: 1rem; }

/* ---------- GDPR ---------- */
.consent { position: fixed; left: 0.75rem; bottom: 0.75rem; z-index: 860; width: min(420px, calc(100% - 1.5rem)); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; box-shadow: var(--shadow); font-size: 0.85rem; }
.consent a { color: var(--terra); font-weight: 700; }
.consent .btn { margin-top: 0.75rem; }
body.has-basket .consent { bottom: 4.5rem; }

/* ---------- podstranice (checkout, praćenje, pravno) ---------- */
.pagebar { background: var(--ink); color: #fff; height: 56px; position: sticky; top: 0; z-index: 900; }
.pagebar__in { display: flex; align-items: center; height: 100%; gap: 1rem; }
.pagebar__back { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 800; color: rgba(255,255,255,0.85); }
.pagebar__back svg { width: 20px; height: 20px; }
.pagebar__title { font-family: var(--font-display); font-size: 1.15rem; flex: 1; text-align: center; }
.pagebar__logo img { height: 28px; width: auto; }

.page { padding: 1.5rem 0 4rem; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem 1.25rem; }
.panel h2 { font-size: 1.3rem; margin-bottom: 1rem; }

.checkout { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.sum { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; }
.sum__title { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 0.75rem; }
.sum__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px dashed var(--line); }
.sum__name { font-weight: 700; }
.sum__sub { font-size: 0.8rem; color: var(--muted); font-weight: 400; display: block; }
.sum__sub--note { color: var(--terra); }
.sum__price { white-space: nowrap; font-weight: 700; }
.sum__row--total { border-bottom: 0; padding-top: 0.9rem; font-size: 1.15rem; }
.sum__row--total .sum__price { font-family: var(--font-display); font-size: 1.4rem; color: var(--terra); }
.when { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.6rem; }
.paynote { margin-top: 0.6rem; background: var(--olive-soft); color: var(--olive); padding: 0.6rem 0.8rem; border-radius: var(--r-sm); font-size: 0.85rem; font-weight: 700; }
.consent-text { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 0.9rem; }
.consent-text a { text-decoration: underline; }
.pickup-hint { display: block; margin-top: 0.5rem; padding: 0.55rem 0.75rem; border-radius: var(--r-sm); background: var(--terra-soft); color: var(--terra); font-weight: 800; font-size: 0.85rem; }

/* praćenje narudžbe */
.track { max-width: 640px; margin: 0 auto; }
.done { text-align: center; padding: 1.5rem 0 1rem; }
.done__icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: var(--olive); color: #fff; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; }
.done__icon--bad { background: var(--bad); }
.done h1 { font-size: 2rem; }
.done p { color: var(--ink-2); margin-top: 0.4rem; }
.track__ref { text-align: center; font-size: 0.9rem; color: var(--muted); margin-bottom: 1.5rem; }
.track__ref strong { color: var(--ink); font-family: var(--font-display); font-size: 1.1rem; }
.tl { position: relative; padding-left: 2rem; margin: 1.5rem 0; }
.tl::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl__step { position: relative; padding: 0.45rem 0 0.45rem 0.5rem; color: var(--muted); font-weight: 700; }
.tl__step::before { content: ''; position: absolute; left: -2rem; top: 0.7rem; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); }
.tl__step.completed { color: var(--ink-2); }
.tl__step.completed::before { background: var(--olive); border-color: var(--olive); }
.tl__step.active { color: var(--ink); font-weight: 800; }
.tl__step.active::before { background: var(--terra); border-color: var(--terra); box-shadow: 0 0 0 5px rgba(194,69,31,0.18); }
.eta { text-align: center; margin: 1rem 0 1.5rem; padding: 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.eta__time { font-family: var(--font-display); font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: 0.02em; }
.eta__label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }
.eta__bar { height: 8px; background: var(--paper-2); border-radius: 4px; margin: 1rem auto 0.6rem; overflow: hidden; }
.eta__fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--terra), var(--gold)); transition: width 1s linear; }
.eta__info { color: var(--ink-2); font-size: 0.9rem; }
.ready { text-align: center; margin: 1rem 0 1.5rem; padding: 1.25rem; background: var(--olive-soft); border-radius: var(--r-lg); color: var(--olive); }
.ready h2 { font-size: 1.3rem; }
.ready__icon { font-size: 2rem; }
.rcp { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; }
.rcp h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.rcp__type { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
.rcp__row { display: flex; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px dashed var(--line); }
.rcp__name { flex: 1; font-weight: 700; }
.rcp__qty { color: var(--muted); }
.rcp__price { font-weight: 700; white-space: nowrap; }
.rcp__total { text-align: right; padding-top: 0.9rem; font-size: 1.1rem; }
.rcp__total strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--terra); }
.track__actions { text-align: center; margin-top: 1.5rem; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--terra); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 3rem 1rem; }
.empty__icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.empty h2 { margin-bottom: 0.5rem; }
.empty p { color: var(--ink-2); margin-bottom: 1.25rem; }

/* pravne stranice */
.legal { max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem 1.5rem; line-height: 1.65; }
.legal h2 { font-size: 1.25rem; margin: 1.6rem 0 0.5rem; }
.legal p, .legal ul { margin-bottom: 0.8rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; }
.legal a { color: var(--terra); font-weight: 700; }
.legal code { background: var(--paper-2); padding: 0.1rem 0.35rem; border-radius: 3px; font-size: 0.9em; }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .group__list { grid-template-columns: 1fr 1fr; }
  .sizes { grid-template-columns: repeat(3, 1fr); }
  .sheet { align-items: center; padding: 1.5rem; }
  .sheet__panel { max-width: 640px; border-radius: var(--r-lg); max-height: 90dvh; }
  .sheet__img { height: 320px; }
}
@media (min-width: 900px) {
  .topbar__phone, .basketbtn { display: inline-flex; }
  .basketbar { display: none !important; }
  .hero { min-height: 540px; }
  .hero__in { padding: 4rem 1.25rem 3rem; }
  .hero__title { font-size: clamp(2.6rem, 4.5vw, 4.2rem); }
  .shop { grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; max-width: var(--wrap); margin: 0 auto; padding: 2.5rem 1.25rem 5rem; }
  .group__list { gap: 1.1rem; }
  .group__title { font-size: 2rem; }
  .dish { grid-template-columns: 170px 1fr; gap: 1.25rem; padding: 1rem; border-radius: var(--r-lg); }
  .dish__img { width: 170px; height: 170px; border-radius: var(--r-md); }
  .dish__name { font-size: 1.3rem; }
  .dish__desc { font-size: 0.95rem; }
  .dish__price { font-size: 1.35rem; }
  .dish__add { padding: 0.6rem 1.1rem; font-size: 0.92rem; }
  .catnav { position: sticky; top: calc(var(--topbar-h) + 1.5rem); align-self: start; background: transparent; border: 0; z-index: 1; }
  .catnav__title { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
  .catnav__list { flex-direction: column; gap: 0; padding: 0; overflow: visible; }
  .catnav__link { padding: 0.5rem 0.75rem; border-bottom: 0; border-left: 3px solid transparent; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
  .catnav__link.active { border-left-color: var(--terra); background: var(--terra-soft); }
  .dishes { padding-top: 0; }
  .foot__grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
  .foot__bottom { padding-bottom: 1.25rem; }
  .checkout { grid-template-columns: 1fr 360px; align-items: start; }
  .checkout .sum { position: sticky; top: 72px; }
  .page { padding: 2.5rem 0 4rem; }
  .panel { padding: 2rem; }
  .legal { padding: 2.5rem; }
  .consent { bottom: 1.25rem; }
  body.has-basket .consent { bottom: 1.25rem; }
}
@media (min-width: 1200px) {
  .group__list { grid-template-columns: 1fr 1fr; }
  .dish { grid-template-columns: 190px 1fr; }
  .dish__img { width: 190px; height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- dodaci u modalu ---------- */
.opt__hint { font-size: 0.8rem; color: var(--muted); margin: -0.3rem 0 0.6rem; }
.extras { display: grid; grid-template-columns: 1fr; gap: 0.35rem; }
.extra { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.7rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--card); transition: border-color 0.15s, background 0.15s; }
.extra--on { border-color: var(--terra); background: var(--terra-soft); }
.extra__lab { font-weight: 700; font-size: 0.92rem; }
.extra__price { font-size: 0.85rem; }
@media (min-width: 640px) {
  .extras { grid-template-columns: 1fr 1fr; }
}

/* ---------- "Dodaj uz narudžbu" u košarici ---------- */
.upsell { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.upsell__title { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.6rem; }
.upsell__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.upsell__item { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; text-align: left; padding: 0.6rem; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--card); transition: border-color 0.15s, transform 0.15s; }
.upsell__item:hover { border-color: var(--terra); transform: translateY(-1px); }
.upsell__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); }
.upsell__ph { width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 1.8rem; background: var(--paper-2); border-radius: var(--r-sm); }
.upsell__name { font-weight: 800; font-size: 0.85rem; line-height: 1.25; }
.upsell__price { font-size: 0.8rem; color: var(--terra); font-weight: 800; }

/* ---------- plutajuća košarica i na desktopu ---------- */
@media (min-width: 900px) {
  .basketbar {
    display: flex !important; left: auto; right: 1.5rem; bottom: 1.5rem; width: auto;
    border-radius: 999px; padding: 0.85rem 1.4rem 0.85rem 1.1rem; gap: 1.25rem;
    box-shadow: 0 12px 32px rgba(31,26,23,0.28);
    transition: transform 0.15s, box-shadow 0.15s;
  }
  .basketbar[hidden] { display: none !important; }
  .basketbar:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(31,26,23,0.34); }
}
