:root {
  --bg: #f5eadb;
  --paper: #fff8ec;
  --ink: #211811;
  --muted: #6f5e4e;
  --line: rgba(33, 24, 17, 0.14);
  --teal: #13484d;
  --teal-dark: #0c3033;
  --terracotta: #a84f39;
  --gold: #e1b45c;
  --shadow: 0 16px 42px rgba(19, 72, 77, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(19, 72, 77, 0.07), transparent 320px),
    var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='270' height='170' viewBox='0 0 270 170'%3E%3Cg transform='rotate(-18 135 85)'%3E%3Ctext x='20' y='84' fill='%230c3033' fill-opacity='0.18' font-family='Arial, Helvetica, sans-serif' font-size='30' font-weight='900' letter-spacing='4'%3EDEMO%3C/text%3E%3Ctext x='20' y='114' fill='%230c3033' fill-opacity='0.15' font-family='Arial, Helvetica, sans-serif' font-size='18' font-weight='900' letter-spacing='3'%3EPREVIEW%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  content: "";
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input {
  font: inherit;
}

.demo-ribbon {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 120;
  border-radius: 999px;
  background: rgba(12, 48, 51, 0.9);
  color: #fff8ec;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 9px 12px;
  pointer-events: none;
}

.menu-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(255, 248, 236, 0.18);
  background: rgba(19, 72, 77, 0.96);
  color: #fff8ec;
  padding: 12px 14px;
  backdrop-filter: blur(14px);
}

.brand-row,
.header-actions,
.filter-row,
.category-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-row {
  justify-content: space-between;
}

.brand {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
}

.demo-pill {
  border: 1px solid rgba(255, 248, 236, 0.38);
  border-radius: 999px;
  color: #fff8ec;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 7px 9px;
}

.menu-header p {
  margin: 7px 0 10px;
  color: rgba(255, 248, 236, 0.82);
  font-size: 0.9rem;
  line-height: 1.35;
}

.header-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 900;
  text-align: center;
}

.action.primary {
  background: var(--terracotta);
  color: #fff8ec;
}

.action.secondary {
  border: 1px solid rgba(255, 248, 236, 0.34);
  color: #fff8ec;
}

.action.outline {
  border: 1px solid var(--line);
  background: #fffaf1;
  color: var(--teal);
}

main {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 12px 12px 70px;
}

.hero-card,
.featured-section,
.controls,
.category-block,
.qr-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.94);
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
}

.hero-card img {
  width: 108px;
  height: 88px;
  border-radius: 6px;
  object-fit: cover;
}

.hero-card span,
.section-heading span,
.contact-card span,
.search-box span,
.category-heading span {
  color: var(--terracotta);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card strong {
  display: block;
  margin-top: 5px;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.08;
}

.featured-section,
.controls,
.qr-card,
.contact-card {
  margin-top: 12px;
  padding: 12px;
}

.section-heading {
  margin-bottom: 10px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
.contact-card h2 {
  margin: 4px 0 0;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.1;
}

.featured-grid {
  display: grid;
  gap: 10px;
}

.featured-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  min-height: 128px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.featured-card img {
  width: 112px;
  height: 100%;
  object-fit: cover;
}

.featured-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  align-content: start;
  padding: 10px;
}

.badge {
  grid-column: 1 / -1;
  width: fit-content;
  border-radius: 999px;
  background: rgba(225, 180, 92, 0.72);
  color: var(--teal-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 5px 8px;
  text-transform: uppercase;
}

.featured-card h3,
.item-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

.featured-card p,
.item-card p,
.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
}

.featured-card p {
  grid-column: 1 / -1;
}

.price {
  color: var(--terracotta);
  font-weight: 900;
  white-space: nowrap;
}

.controls {
  display: grid;
  gap: 10px;
}

.search-box {
  display: grid;
  gap: 5px;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
  color: var(--ink);
  padding: 0 12px;
}

.filter-row,
.category-nav {
  flex-wrap: wrap;
}

.filter-chip,
.category-tab {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf1;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 900;
  padding: 8px 11px;
}

.filter-chip.active,
.category-tab.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff8ec;
}

.category-nav {
  position: sticky;
  top: 139px;
  z-index: 60;
  margin: 12px -12px 8px;
  border-block: 1px solid rgba(33, 24, 17, 0.1);
  background: rgba(245, 234, 219, 0.96);
  padding: 8px 12px;
  backdrop-filter: blur(12px);
}

.menu-list {
  display: grid;
  gap: 10px;
}

.category-block {
  padding: 12px;
  scroll-margin-top: 218px;
}

.category-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.category-heading h2 {
  margin: 0;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.1;
}

.item-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}

.item-card:last-child {
  border-bottom: 0;
}

.item-card p {
  grid-column: 1 / -1;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.92);
  color: var(--muted);
  padding: 16px;
}

.contact-card {
  display: grid;
  gap: 9px;
}

.qr-card {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.qr-copy {
  display: grid;
  gap: 5px;
  justify-items: center;
}

.qr-copy span {
  color: var(--terracotta);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.qr-card h2 {
  margin: 4px 0 0;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.1;
}

.qr-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
}

.qr-url {
  max-width: 100%;
  border-radius: 999px;
  background: rgba(19, 72, 77, 0.08);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 10px;
}

.qr-image {
  width: min(58vw, 220px);
  height: auto;
  border: 10px solid #fffaf1;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(19, 72, 77, 0.16);
}

.qr-actions {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.contact-card p {
  font-size: 0.9rem;
}

@media (min-width: 680px) {
  .menu-header {
    border-radius: 0 0 14px 14px;
    padding-inline: calc((100vw - min(100%, 760px)) / 2 + 12px);
  }

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

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-card img {
    width: 100%;
    height: 170px;
  }

  .category-nav {
    top: 129px;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 1.72rem;
  }

  .demo-pill {
    font-size: 0.62rem;
    padding-inline: 7px;
  }

  .featured-card {
    grid-template-columns: 96px 1fr;
  }

  .featured-card img {
    width: 96px;
  }
}
