:root {
  --cream: #f8f4e8;
  --paper: #fffdf8;
  --green: #425640;
  --green-soft: #edf1e7;
  --coffee: #985019;
  --ink: #201a17;
  --muted: #786f68;
  --line: #ebe4d8;
  --shadow: 0 18px 38px rgba(32, 26, 23, 0.08);
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(152, 80, 25, 0.05) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(45deg, rgba(66, 86, 64, 0.05) 25%, transparent 25%) 0 0 / 34px 34px,
    var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

body.modal-open {
  overflow: hidden;
}
/* 
.app-shell {
  width: min(100%, 520px);
  max-height: 100vh;
  overflow: scroll;
  margin: 0 auto;
  background: var(--paper);
} */

.welcome-screen {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100svh;
  overflow: hidden;
  background: #201a17;
}

.welcome-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-screen::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(32, 26, 23, 0.02) 0%, rgba(32, 26, 23, 0.24) 45%, rgba(32, 26, 23, 0.78) 100%),
    linear-gradient(90deg, rgba(32, 26, 23, 0.28), transparent 30%, transparent 70%, rgba(32, 26, 23, 0.28));
  content: "";
}

.welcome-panel {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 0 24px max(42px, env(safe-area-inset-bottom));
  color: #fffaf1;
  text-align: center;
}

.slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 12px;
}

.slider-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.78);
}

.slider-dots .is-active {
  width: 34px;
  background: #ffad32;
}

.welcome-panel h1 {
  max-width: 390px;
  margin: 0;
  font-size: clamp(2rem, 8.8vw, 3rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.welcome-panel p {
  max-width: 350px;
  margin: 0;
  color: rgba(255, 250, 241, 0.9);
  font-size: clamp(0.88rem, 3.6vw, 1rem);
  line-height: 1.45;
}

.start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 370px);
  min-height: 58px;
  margin-top: 10px;
  border-radius: 999px;
  background: #ffad32;
  color: #fffaf1;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(32, 26, 23, 0.22);
}

.menu-home {
  min-height: 100vh;
  padding: 0 16px 34px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-height);
  margin: 0 -16px;
  padding: 0 16px;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid rgba(235, 228, 216, 0.78);
}

.icon-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf1;
  color: var(--coffee);
}

.icon-button:not(.search) {
  flex-direction: column;
}

.icon-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  border-radius: 2px;
  background: currentColor;
}

.search::before {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
}

.search::after {
  width: 8px;
  height: 2px;
  margin-top: 16px;
  margin-left: 15px;
  background: currentColor;
  border-radius: 2px;
  transform: rotate(45deg);
  content: "";
  position: absolute;
}

.brand {
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(32, 26, 23, 0.12);
}

.brand strong {
  display: block;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1;
}

.brand-mark {
  display: block;
  color: var(--coffee);
  font-size: 0.68rem;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 235px;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
  background: var(--green);
  box-shadow: var(--shadow);
}

.hero img {
  display: block;
  width: 100%;
  height: 235px;
  object-fit: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32, 26, 23, 0.12), rgba(32, 26, 23, 0.68));
  content: "";
}

.hero-copy {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 1;
  color: #fffaf1;
}

.hero-copy p,
.hero-copy span {
  margin: 0;
  color: rgba(255, 250, 241, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-copy h2 {
  margin: 4px 0 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 13vw, 4.3rem);
  line-height: 0.95;
}

.category-tabs {
  position: sticky;
  top: var(--header-height);
  z-index: 19;
  margin: 0 -16px 8px;
  padding: 12px 16px 9px;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid rgba(235, 228, 216, 0.78);
}

.tab-scroll {
  display: flex;
  gap: 10px;
  margin: 0 -16px;
  padding: 0 16px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-scroll::-webkit-scrollbar {
  display: none;
}

#itemCount {
  display: block;
  color: var(--coffee);
  font-size: 0.82rem;
  font-weight: 850;
}

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

.tab {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0 17px;
}

.tab.is-active {
  border-color: var(--coffee);
  background: var(--coffee);
  color: #fffaf1;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 12px;
}

.section-title h2 {
  margin: 0;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.section-title a,
.section-title span {
  color: var(--coffee);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.featured-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 45%);
  gap: 12px;
  margin-right: -16px;
  padding: 0 16px 4px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.featured-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-trigger {
  cursor: pointer;
}

.card-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.featured-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.1;
  object-fit: cover;
}

.featured-card div {
  padding: 10px;
}

.featured-card h3,
.featured-card p {
  margin: 0;
}

.featured-card h3 {
  font-size: 0.98rem;
}

.featured-card p {
  margin-top: 3px;
  color: var(--coffee);
  font-weight: 800;
}

.promo-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.old-price {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: line-through;
}

.menu {
  overflow-anchor: none;
}

#menuSections{
  padding: 0px 20px;
}
.menu-group {
  padding: 16px 0 10px;
  border-top: 1px solid var(--line);
}

.menu-group:first-child {
  border-top: 0;
}

.group-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--green);
  text-transform: uppercase;
  font-size: 1.15rem;
  font-weight: 950;
}

.group-heading::after {
  flex: 1;
  height: 2px;
  background: #b8b7a2;
  content: "";
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 11px 0;
  border-radius: 8px;
  outline: none;
}

.menu-item:focus-visible,
.card-trigger:focus-visible {
  box-shadow: 0 0 0 3px rgba(152, 80, 25, 0.22);
}

.menu-item + .menu-item {
  border-top: 1px solid rgba(235, 228, 216, 0.72);
}

.menu-item h3,
.menu-item p {
  margin: 0;
}

.menu-item h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.menu-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.prices {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 76px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 850;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--green-soft);
  padding: 0 9px;
}

.empty-state {
  margin: 32px 0;
  color: var(--muted);
  text-align: center;
}

.product-modal[hidden] {
  display: none;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: end center;
  padding: 18px 18px 0;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 26, 23, 0.58);
  opacity: 0;
  transition: opacity 220ms ease;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-height: calc(100svh - 36px);
  overflow: auto;
  border-radius: 28px 28px 0 0;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(32, 26, 23, 0.34);
  transform: translateY(28px);
  transition: transform 220ms ease;
}

.product-modal.is-open .modal-backdrop {
  opacity: 1;
}

.product-modal.is-open .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.modal-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
}

.modal-body {
  padding: 22px;
}

.modal-body h2 {
  margin: 0;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.modal-body p {
  margin: 10px 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.modal-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.modal-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 999px;
  background: var(--green-soft);
  padding: 0 18px;
  color: var(--coffee);
  line-height: 1;
  text-align: center;
}

.modal-old-price {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: line-through;
}

@media (min-width: 521px) {
  body {
    background: #e8dacd;
  }

  /* .app-shell {
    margin-block: 24px;
    border: 10px solid #181716;
    border-radius: 42px;
    box-shadow: 0 24px 70px rgba(32, 26, 23, 0.2);
  } */
}
