:root {
  color-scheme: light;
  --ink: #111111;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --muted: #76736d;
  --line: #dedbd3;
  --accent: #e95e2a;
  --active-ink: #ffffff;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f1ea;
  --paper: #111315;
  --surface: #1b1e20;
  --muted: #aaa7a0;
  --line: #303336;
  --active-ink: #111315;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #f4f1ea;
    --paper: #111315;
    --surface: #1b1e20;
    --muted: #aaa7a0;
    --line: #303336;
    --active-ink: #111315;
  }
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  transition: color 180ms ease, background-color 180ms ease;
}

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

header {
  border-bottom: 1px solid var(--line);
}

.header-inner,
main,
footer {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-right: auto;
  line-height: 1;
}

.brand strong {
  font-size: 1.35rem;
  letter-spacing: -0.08em;
}

.brand span {
  font-size: 0.55rem;
  font-weight: 700;
}

.header-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.open-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #78a63a;
}

.whatsapp {
  padding: 9px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.theme-buttons {
  display: flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.language-picker select {
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
}

.theme-button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
}

.theme-button.active {
  color: var(--active-ink);
  background: var(--ink);
}

.theme-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.intro {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px;
  padding: 72px 0 38px;
}

.intro p {
  grid-column: 1 / -1;
  margin: 0 0 -14px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.8;
  letter-spacing: -0.09em;
}

.popular-section {
  padding: 18px 0 42px;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 18px;
}

.section-title-row h2 {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: -0.06em;
}

.section-kicker {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-title-row > p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: right;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.popular-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 13px;
  min-height: 136px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--surface);
}

.popular-card img {
  width: 112px;
  height: 112px;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 250ms ease;
}

.popular-card:hover img {
  transform: scale(1.04);
}

.popular-card-copy {
  min-width: 0;
}

.popular-card-copy strong {
  display: block;
  margin-bottom: 7px;
  font-size: 0.9rem;
  line-height: 1.25;
}

.popular-card-copy span {
  font-size: 0.75rem;
  font-weight: 700;
}

.smart-filters {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  margin: 22px 0 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.filter-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  font-size: 0.75rem;
}

.filter-heading div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.filter-heading span {
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.filter-heading button {
  margin-top: 8px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
}

.filter-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.filter-chip {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: left;
}

.filter-chip.active {
  color: var(--active-ink);
  border-color: var(--ink);
  background: var(--ink);
}

.filter-chip:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.search-wrap {
  display: flex;
  align-items: center;
  width: min(360px, 100%);
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.search-wrap svg {
  width: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-wrap input {
  width: 100%;
  padding: 13px 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.category-scroller {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  overflow: visible;
  padding: 14px 0;
}

.category {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.category.active {
  color: var(--active-ink);
  border-color: var(--ink);
  background: var(--ink);
}

.menu-list {
  padding: 28px 0 90px;
}

.menu-group {
  scroll-margin-top: 75px;
  margin-bottom: 54px;
}

.group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  padding-bottom: 13px;
  border-bottom: 2px solid var(--ink);
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.group-title span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
}

.items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 44px;
}

.menu-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 6px 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.item-image {
  grid-row: 1 / span 2;
  width: 76px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface);
}

.item-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.item-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-left: 7px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

.item-description {
  grid-column: 2 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.item-price {
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.empty-state {
  display: none;
  padding: 60px 0 100px;
  color: var(--muted);
  text-align: center;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 0 50px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

footer p {
  margin: 8px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 600;
}

@media (max-width: 720px) {
  .header-inner,
  main,
  footer {
    width: min(100% - 28px, 1100px);
  }

  .header-info {
    display: none;
  }

  .header-inner {
    gap: 8px;
  }

  .language-picker select {
    padding: 8px 6px;
  }

  .theme-button span {
    display: none;
  }

  .theme-button {
    padding: 7px;
  }

  .intro {
    grid-template-columns: 1fr;
    padding: 48px 0 24px;
  }

  .section-title-row {
    display: block;
  }

  .section-title-row > p {
    margin-top: 8px;
    text-align: left;
  }

  .popular-grid {
    grid-template-columns: 1fr;
  }

  .popular-card {
    grid-template-columns: 86px 1fr;
    min-height: 110px;
  }

  .popular-card img {
    width: 86px;
    height: 86px;
  }

  .filter-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .smart-filters {
    display: block;
    margin-top: 16px;
    padding: 14px;
  }

  .filter-heading {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  .filter-heading button {
    margin-top: 0;
  }

  .filter-chip {
    flex: 0 0 auto;
    min-height: 38px;
    border-radius: 999px;
  }

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

  .search-wrap {
    width: 100%;
    margin-top: 8px;
  }

  .items {
    grid-template-columns: 1fr;
  }

  .categories {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .categories::-webkit-scrollbar {
    display: none;
  }

  .category {
    flex: 0 0 auto;
    padding: 9px 14px;
    font-size: 0.75rem;
  }

  .menu-item {
    grid-template-columns: 82px 1fr auto;
  }

  .item-image {
    width: 82px;
    height: 82px;
  }

  .item-description {
    grid-column: 2 / -1;
  }

  .menu-group {
    margin-bottom: 42px;
  }

  footer {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}
