:root {
  --bg-page: #EEEEEE;
  --text: #0A0A0A;
  --muted: #6B7280;
  --separator: #D1D5DB;
  --nav-bg: rgba(255, 255, 255, 0.96);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--text);
  font-family: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
  container-type: inline-size;
}

.spotlight {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  background: #FFFFFF;
  clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
}

.lang-toggle {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  right: 16px;
  z-index: 30;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #0A0A0A;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-weight: 700;
  font-size: 13px;
  color: #0A0A0A;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.lang-toggle .sep { color: var(--muted); }
.lang-toggle [data-lang] { opacity: 0.4; letter-spacing: 0.02em; }
.lang-toggle.lang-en [data-lang="en"],
.lang-toggle.lang-sr [data-lang="sr"] { opacity: 1; }

/* Cover */
.cover {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px 20px 40px;
  position: relative;
}
.cover-title {
  margin: 0;
  padding-top: 48px;
  font-size: clamp(84px, 28cqi, 150px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #0A0A0A;
  overflow-wrap: break-word;
  text-align: center;
  width: 100%;
}
.cover-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.cover-logo {
  width: 72px;
  height: 72px;
  display: block;
}
.cover-tagline {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  color: #0A0A0A;
  line-height: 1.3;
  margin: 0;
}

/* Section */
.section {
  scroll-margin-top: 8px;
  padding-bottom: 24px;
}
.section-banner {
  padding: 28px 20px 24px;
  font-size: clamp(40px, 13cqi, 64px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.items {
  padding: 8px 20px 0;
  position: relative;
  z-index: 1;
}

.item {
  padding: 18px 0;
}
.item + .item {
  border-top: 1px solid var(--separator);
}

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.item-name {
  margin: 0;
  min-width: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #0A0A0A;
  overflow-wrap: break-word;
}
.item-price {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 17px;
  color: #0A0A0A;
}
.item-ing {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

/* Per-section footer (allergy note + page number) */
.section-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 22px;
  font-size: 11px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.section-footer .note {
  flex: 1;
  min-width: 0;
}
.section-footer .page-num {
  font-weight: 700;
  color: #0A0A0A;
  font-variant-numeric: tabular-nums;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 6px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--separator);
  z-index: 20;
  scrollbar-width: none;
}
.bottom-nav::-webkit-scrollbar { display: none; }

.bottom-nav button {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  color: #0A0A0A;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.bottom-nav button:hover {
  background: rgba(0, 0, 0, 0.06);
}
.bottom-nav button.active {
  background: #0A0A0A;
  color: #FFFFFF;
}

/* Loading / error */
.status {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 521px) {
  body {
    box-shadow: 0 0 0 1px var(--separator);
  }
}
