/* Reset + shared primitives (used by site and admin) */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--catnav-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.has-modal { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

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

.container {
  width: 100%;
  max-width: calc(var(--max-width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Small uppercase label — "FUEL LAB · BEOGRAD" style */
.label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-muted);
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
}

/* Prices: "840 RSD" — tabular numbers, small-caps currency */
.price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price .cur {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* ——◆—— the only ornament */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 136px;
  margin: var(--s-2) auto 0;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ink);
  opacity: 0.35;
}
.divider span {
  width: 7px; height: 7px;
  background: var(--red);
  transform: rotate(45deg);
  flex: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--cta-hover); }
.btn-primary:disabled { background: #D8D3CB; color: #5B6170; }

.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover:not(:disabled) { background: var(--yellow-soft); }
/* Off-hours: disabled pill showing when the dish can be ordered */
.btn-outline:disabled { border-color: var(--line); color: var(--ink-muted); background: var(--surface); }
.btn-when { font-size: 14px; padding: 0 16px; }

.btn-ghost { background: transparent; color: var(--ink); padding: 0 12px; }
.btn-ghost:hover { background: var(--surface); }

.btn-block { width: 100%; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  border-radius: var(--radius-pill);
  border: 0;
  background: transparent;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 22px; height: 22px; }

/* Quantity stepper  − 1 + */
.stepper {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  height: var(--tap);
  background: var(--cta);
  color: #fff;
}
.stepper button {
  width: var(--tap);
  height: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 20px;
  line-height: 1;
}
.stepper button:hover:not(:disabled) { background: var(--cta-hover); }
.stepper button:disabled { opacity: .35; }
.stepper output {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Black image placeholder, 4:3. Real photo (if any) is layered on top. */
.ph {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ink);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph-text {
  color: #fff;
  opacity: .4;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  text-align: center;
  padding: 0 16px;
}
.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Spinner (inside buttons) */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Status dot — "Otvoreno" / "Zatvoreno" */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: 600;
}
.status::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-muted);
}
.status.is-open { color: var(--success); }
.status.is-open::before { background: var(--success); }
.status.is-closed { color: var(--ink-muted); }

/* Forms */
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-small); font-weight: 600; }
.field .req { color: var(--danger); }
.field input, .field textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 14px;
  border: 1px solid #D9D2C6;
  border-radius: 10px;
  background: #fff;
  font-size: 16px; /* 16px stops iOS from zooming in on focus */
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 0;
  border-color: var(--ink);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .hint { font-size: 13px; color: var(--ink-muted); }
.field .error { font-size: 13px; color: var(--danger); font-weight: 600; }
.field .error:empty { display: none; }
.field .counter { font-size: 12px; color: var(--ink-muted); text-align: right; font-variant-numeric: tabular-nums; }

@media (min-width: 768px) {
  :root { --fs-section: 40px; }
}
@media (min-width: 1024px) {
  :root { --fs-section: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
