:root {
  color-scheme: light;
  --bg: #faf7f1;
  --surface: #ffffff;
  --surface-soft: #f3ede2;
  --text: #1f1a17;
  --muted: #70645a;
  --muted-2: #998c80;
  --accent: #a75f32;
  --accent-dark: #7c4123;
  --accent-soft: #e7c6a8;
  --success: #4f7d4a;
  --warning: #b47b21;
  --danger: #b94a48;
  --border: #e5dacd;
  --shadow: 0 20px 60px rgba(31, 26, 23, 0.13);
  --shadow-soft: 0 14px 35px rgba(31, 26, 23, 0.09);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(231, 198, 168, 0.50), transparent 36rem),
    radial-gradient(circle at 90% 12%, rgba(167, 95, 50, 0.18), transparent 28rem),
    linear-gradient(180deg, #fffaf3 0%, var(--bg) 40%, #f4eee5 100%);
  color: var(--text);
  overflow-x: hidden;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 0 14px 44px;
}

.hero {
  position: relative;
  min-height: 480px;
  margin: 14px 0 16px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(31, 26, 23, 0.05) 0%, rgba(31, 26, 23, 0.35) 42%, rgba(31, 26, 23, 0.82) 100%),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,0.28), transparent 28rem);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 22px;
  color: #fff;
}

.hero-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: auto;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.30);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.7rem, 11vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 630px;
  margin: 14px 0 0;
  color: rgba(255,255,255,0.86);
  line-height: 1.55;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(12px);
  font-weight: 700;
  font-size: 0.86rem;
}

.toolbar-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 -14px 18px;
  padding: 10px 14px 12px;
  background: linear-gradient(180deg, rgba(250,247,241,0.96), rgba(250,247,241,0.86));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 218, 205, 0.75);
}

.category-nav {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-chip,
.attribute-chip,
.clear-chip {
  border: 1px solid rgba(167, 95, 50, 0.18);
  background: rgba(255,255,255,0.75);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(31, 26, 23, 0.06);
  scroll-snap-align: start;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border 180ms ease;
}

.category-chip:active,
.attribute-chip:active,
.clear-chip:active,
.primary-button:active,
.icon-button:active {
  transform: scale(0.97);
}

.category-chip.active,
.attribute-chip.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.search-field {
  position: relative;
}

.search-field input {
  width: 100%;
  border: 1px solid rgba(167, 95, 50, 0.18);
  background: rgba(255,255,255,0.86);
  border-radius: 20px;
  padding: 15px 16px 15px 44px;
  outline: none;
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(31, 26, 23, 0.06);
}

.search-field input:focus {
  border-color: rgba(167, 95, 50, 0.48);
  box-shadow: 0 0 0 4px rgba(167, 95, 50, 0.10);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}

.filter-toggle {
  min-height: 51px;
  border: none;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  padding: 0 16px;
  box-shadow: 0 14px 30px rgba(167, 95, 50, 0.24);
}

.filter-panel {
  display: none;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-top: 10px;
  scrollbar-width: none;
}

.filter-panel.open {
  display: flex;
}

.filter-panel::-webkit-scrollbar {
  display: none;
}

.clear-chip {
  background: rgba(255,255,255,0.40);
  color: var(--muted);
}

.menu-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 22px 2px 18px;
}

.menu-meta h2 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.8rem);
  letter-spacing: -0.055em;
}

.menu-meta p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.result-count {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 10px 13px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.category-section {
  scroll-margin-top: 150px;
  margin-bottom: 34px;
}

.category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 2px 14px;
}

.category-heading h3 {
  margin: 0;
  font-size: 1.42rem;
  letter-spacing: -0.04em;
}

.category-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.category-count {
  flex: 0 0 auto;
  min-width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--accent-dark);
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(31, 26, 23, 0.07);
  border: 1px solid var(--border);
}

.items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.item-card {
  position: relative;
  border: none;
  width: 100%;
  text-align: left;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229, 218, 205, 0.70);
  padding: 0;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.item-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-soft);
}

.item-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.00) 42%, rgba(0,0,0,0.62) 100%);
  pointer-events: none;
}

.item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.002);
  transition: transform 600ms ease;
}

.item-card:hover .item-image {
  transform: scale(1.045);
}

.price-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(255,255,255,0.90);
  color: var(--text);
  padding: 9px 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
}

.image-action {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 0.86rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.32);
}

.item-content {
  padding: 17px 17px 18px;
}

.item-title-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.item-title {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.item-description {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.94rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 6px 9px;
  background: #f3ede2;
  color: #594b42;
  font-size: 0.75rem;
  font-weight: 900;
  border: 1px solid rgba(229, 218, 205, 0.90);
}

.badge.recommended,
.badge.signature {
  background: rgba(167, 95, 50, 0.12);
  color: var(--accent-dark);
  border-color: rgba(167, 95, 50, 0.20);
}

.badge.vegan,
.badge.vegetarian,
.badge.light,
.badge.glutenFree,
.badge.dairyFree {
  background: rgba(79, 125, 74, 0.12);
  color: #365f31;
  border-color: rgba(79, 125, 74, 0.18);
}

.badge.spicy {
  background: rgba(185, 74, 72, 0.12);
  color: #8f302f;
  border-color: rgba(185, 74, 72, 0.20);
}

.empty-state,
.error-state {
  margin: 28px 0;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.70);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.empty-state h3,
.error-state h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.empty-state p,
.error-state p {
  margin: 0;
  color: var(--muted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(31, 26, 23, 0.62);
  backdrop-filter: blur(10px);
  padding: 18px 12px calc(18px + var(--safe-bottom));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 180ms ease both;
}

.item-modal {
  width: min(100%, 920px);
  max-height: min(92vh, 1000px);
  overflow: hidden;
  border-radius: 34px;
  background: var(--surface);
  box-shadow: 0 30px 100px rgba(0,0,0,0.36);
  display: grid;
  grid-template-rows: auto 1fr;
  animation: slideUp 240ms ease both;
}

.modal-image-wrap {
  position: relative;
  aspect-ratio: 16 / 11;
  background: var(--surface-soft);
  overflow: hidden;
}

.modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 44%, rgba(0,0,0,0.54) 100%);
}

.modal-top-actions {
  position: absolute;
  inset: 14px 14px auto 14px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.icon-button,
.primary-button {
  border: none;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
}

.icon-button {
  width: 44px;
  background: rgba(255,255,255,0.88);
  color: var(--text);
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

.primary-button {
  padding: 0 15px;
  background: rgba(255,255,255,0.88);
  color: var(--text);
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

.modal-price {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.90);
  color: var(--text);
  font-weight: 1000;
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

.modal-body {
  overflow: auto;
  padding: 20px 18px 24px;
}

.modal-body h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 8vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.modal-description {
  color: var(--muted);
  line-height: 1.55;
  margin: 12px 0 0;
  font-size: 1rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.info-card {
  border-radius: var(--radius-lg);
  background: #fbf8f3;
  border: 1px solid var(--border);
  padding: 15px;
}

.info-card h4 {
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.list-rows {
  display: grid;
  gap: 8px;
}

.list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(229, 218, 205, 0.78);
  color: var(--text);
  line-height: 1.35;
}

.list-row:last-child {
  border-bottom: none;
}

.list-row small,
.nutrient-value {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.nutrient-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.nutrient-pill {
  border-radius: 16px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(229, 218, 205, 0.82);
}

.nutrient-pill span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.nutrient-pill strong {
  display: block;
  margin-top: 3px;
}

.fullscreen-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0,0,0,0.92);
  display: grid;
  place-items: center;
  padding: 56px 12px 28px;
  animation: fadeIn 180ms ease both;
}

.fullscreen-modal img {
  width: min(100%, 1300px);
  max-height: calc(100vh - 100px);
  object-fit: contain;
  border-radius: 18px;
}

.fullscreen-modal .icon-button {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 0px));
  right: 14px;
  z-index: 2;
}

.fullscreen-caption {
  position: fixed;
  left: 14px;
  right: 74px;
  top: max(18px, env(safe-area-inset-top, 0px));
  color: #fff;
  font-weight: 900;
  text-shadow: 0 2px 18px rgba(0,0,0,0.50);
}

.loading-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.loading-card {
  width: min(100%, 430px);
  border-radius: 34px;
  background: rgba(255,255,255,0.72);
  box-shadow: var(--shadow-soft);
  padding: 14px;
  border: 1px solid var(--border);
}

.loading-shimmer {
  background: linear-gradient(90deg, #eee3d6, #fffaf2, #eee3d6);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

.loading-shimmer.image {
  aspect-ratio: 4 / 3;
  border-radius: 26px;
}

.loading-shimmer.line {
  height: 17px;
  margin-top: 12px;
  border-radius: 999px;
  width: 75%;
}

.loading-shimmer.line.wide {
  width: 94%;
}

.loading-shimmer.line.short {
  width: 46%;
}

.no-scroll {
  overflow: hidden;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(18px); opacity: 0.8; }
  to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 700px) {
  .app-shell {
    padding-inline: 24px;
  }

  .hero {
    margin-top: 24px;
    min-height: 560px;
  }

  .hero-content {
    padding: 42px;
  }

  .toolbar-wrap {
    margin-inline: -24px;
    padding-inline: 24px;
  }

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

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

  .item-modal {
    border-radius: 42px;
  }

  .modal-backdrop {
    align-items: center;
  }

  .modal-body {
    padding: 28px;
  }
}

@media (min-width: 1040px) {
  .items-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-section {
    margin-bottom: 48px;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 470px;
    border-radius: 30px;
  }

  .hero-content {
    padding: 22px 18px;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .filter-toggle {
    padding-inline: 13px;
  }

  .menu-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}
