body {
  padding-bottom: 90px;
  background: linear-gradient(180deg, #f8fbfb 0, #eef3f3 100%);
  overflow-x: hidden;
}
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, #fff 94%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.topin {
  height: 66px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  direction: rtl;
}
html[dir="ltr"] .brand > div {
  direction: ltr;
  text-align: left;
}
.brand {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  max-width: 310px;
}
.brand-logo {
  width: 50px;
  height: 38px;
  object-fit: contain;
  flex: none;
}
.brand > div {
  min-width: 0;
}
.brand strong {
  display: block;
  font: 700 15px Tom;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand small {
  display: block;
  font-size: 12px;
}
.lang {
  width: 88px;
  min-width: 88px;
  height: 44px;
  padding: 6px 8px;
  border: 1.5px solid var(--p);
  border-radius: 13px;
  background: var(--soft);
  color: var(--p);
  font-family: Tom;
}
.track-btn {
  width: 52px;
  min-width: 52px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: var(--p);
  box-shadow: 0 3px 14px #102a2a18;
  display: grid;
  place-items: center;
  padding: 3px;
  font-family: Tom;
}
.track-btn span:first-child {
  font-size: 18px;
  line-height: 1;
}
.track-btn span:last-child {
  font-size: 10px;
  line-height: 1;
}
main {
  padding: 10px;
}
.hero {
  position: relative;
  overflow: hidden;
  height: 126px;
  min-height: 126px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--p), var(--p2));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--p) 18%, transparent);
}
.hero img,
.hero video {
  width: 100%;
  height: 126px;
  display: block;
  object-fit: cover;
}
.heroText {
  height: 126px;
  padding: 18px;
  display: flex;
  align-items: end;
  font: 700 23px Tom;
}
.heroCap {
  position: absolute;
  inset: auto 0 0;
  background: linear-gradient(transparent, #000b);
  padding: 30px 15px 10px;
  font: 700 19px Tom;
}
.menu-tools {
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 14px 2px 6px;
}
.menu-tools > div {
  flex: 1;
}
.menu-tools small {
  color: var(--p);
}
.menu-tools h2 {
  font-size: 21px;
  margin: 1px 0;
}
.search-box {
  width: 145px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  color: var(--p);
  font-size: 22px;
}
.search-box input {
  min-width: 0;
  border: 0;
  padding: 4px;
  background: transparent;
  font-size: 13px;
}
.search-box input:focus {
  outline: 0;
}
.cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
  padding: 10px 0;
}
.cats::-webkit-scrollbar {
  display: none;
}
.cat {
  min-width: 0;
  min-height: 44px;
  white-space: normal;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 4px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 2px 8px #102a2a0a;
  font-size: 12px;
  line-height: 1.15;
}
.cat.active {
  border-color: var(--p);
  background: var(--p);
  color: #fff;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.food {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 17px;
  box-shadow: 0 5px 18px #102a2a10;
  transition: 0.18s ease;
}
.food.selected {
  border-color: var(--p);
  box-shadow:
    0 0 0 2px var(--p),
    0 7px 20px #102a2a1a;
  transform: translateY(-1px);
}
.foodimg {
  height: 105px;
  flex: none;
  background: linear-gradient(145deg, var(--soft), #f8ffff);
  display: grid;
  place-items: center;
  font-size: 38px;
}
.foodimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.foodbody {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 125px;
  padding: 10px;
}
.food h3 {
  font-size: 17px;
  line-height: 1.25;
  margin: 0 0 3px;
}
.food p {
  display: -webkit-box;
  min-height: 32px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.set-components {
  list-style: none;
  margin: 4px 0;
  padding: 0;
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}
.set-components li {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.set-components li span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.set-components li b {
  flex: none;
  color: inherit;
}
.set-price {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  margin-top: 4px;
}
.set-price del {
  color: var(--muted);
}
.foodfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: auto;
  padding-top: 8px;
}
.price {
  color: var(--p);
  font: 700 18px Tom;
}
.quickqty {
  display: flex;
  align-items: center;
  gap: 5px;
}
.foodqty {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--soft);
  color: var(--p);
  font: 700 19px Tom;
}
.foodqty.add {
  background: var(--p);
  color: #fff;
}
.quick-checkout {
  position: fixed;
  z-index: 35;
  bottom: calc(76px + env(safe-area-inset-bottom));
  left: 8px;
  right: 8px;
  max-width: 464px;
  margin: auto;
  padding: 9px;
  background: #142323f5;
  color: #fff;
  border: 1px solid #ffffff18;
  border-radius: 19px;
  box-shadow: 0 14px 40px #0006;
  backdrop-filter: blur(14px);
}
.quick-main {
  display: flex;
  align-items: center;
  gap: 8px;
}
.quick-count {
  min-width: 50px;
  text-align: center;
}
.quick-count b {
  display: block;
  font: 700 20px Tom;
}
.quick-count small {
  color: #b8caca;
  font-size: 11px;
}
.quick-total {
  flex: 1;
  font: 700 22px Tom;
}
.order-now {
  min-width: 124px;
  min-height: 48px;
  padding: 8px 12px;
  font-size: 16px;
}
.quick-options {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
}
.quick-options select {
  height: 39px;
  padding: 5px 7px;
  border-color: #405555;
  background: #213536;
  color: #fff;
  font-size: 13px;
}
.quick-options details {
  position: relative;
  flex: 1;
}
.quick-options summary {
  list-style: none;
  text-align: center;
  padding: 7px;
  border-radius: 10px;
  background: #213536;
  color: #d7e2e2;
  font-size: 13px;
}
.quick-options textarea {
  position: absolute;
  bottom: 43px;
  left: 0;
  width: 220px;
  background: #fff;
  box-shadow: 0 8px 30px #0005;
}
.delivery-fields {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 7px;
  margin-top: 7px;
}
.delivery-fields input {
  min-height: 40px;
  background: #fff;
  color: var(--text);
}
.track-panel {
  margin-top: 15px;
  padding: 16px;
  text-align: center;
  scroll-margin-top: 82px;
}
.track-panel .track {
  max-width: 320px;
  margin: 13px auto;
}
.track {
  display: flex;
  gap: 4px;
}
.step {
  height: 7px;
  flex: 1;
  border-radius: 8px;
  background: #dbe1e2;
}
.step.on {
  background: var(--p);
}
.has-checkout {
  padding-bottom: 218px;
}
.bottom-nav {
  position: fixed;
  z-index: 45;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(68px + env(safe-area-inset-bottom));
  padding: 5px 8px env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: #fffffff5;
  border-top: 1px solid var(--border);
  box-shadow: 0 -7px 25px #102a2a12;
  backdrop-filter: blur(16px);
}
.bottom-nav button {
  min-width: 0;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  padding: 3px;
  font-family: Tom;
}
.bottom-nav button span {
  font-size: 20px;
  line-height: 1;
}
.bottom-nav button b {
  max-width: 100%;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#navFeedback b {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.bottom-nav button.active {
  background: var(--soft);
  color: var(--p);
}
.nav-layer {
  position: fixed;
  z-index: 70;
  inset: 0;
  background: #0008;
  display: flex;
  align-items: flex-end;
}
.nav-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 76dvh;
  margin: auto;
  padding: 16px;
  background: var(--bg);
  border-radius: 23px 23px 0 0;
  overflow: auto;
}
.nav-sheet > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.nav-sheet h2 {
  margin: 0;
}
.layer-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 24px;
}
.language-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.language-grid button {
  min-height: 58px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--p);
  font: 700 17px Tom;
}
.language-grid button:active {
  background: var(--soft);
}
#track .track {
  margin: 10px 0 0;
}
.history-card {
  padding: 12px;
  margin: 9px 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.history-head > div {
  display: grid;
  gap: 3px;
}
.history-head small {
  color: var(--muted);
}
.history-card ul {
  list-style: none;
  margin: 10px 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.history-card li {
  display: grid;
  grid-template-columns: 1fr auto 72px;
  gap: 7px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.history-card li em {
  text-align: left;
  font-style: normal;
  color: var(--p);
}
.history-card > p {
  font-size: 12px;
  color: var(--muted);
}
.history-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.history-total b {
  font: 700 21px Tom;
  color: var(--p);
}
.has-checkout .support-fab {
  bottom: 215px;
}
@media (max-width: 340px) {
  .topin {
    padding-inline: 7px;
  }
  .brand-logo {
    width: 42px;
  }
  .brand strong {
    font-size: 13px;
  }
  .lang {
    width: 78px;
    min-width: 78px;
  }
  .search-box {
    width: 125px;
  }
  .foodimg {
    height: 92px;
  }
  .foodbody {
    min-height: 120px;
    padding: 8px;
  }
  .food h3 {
    font-size: 15px;
  }
  .price {
    font-size: 16px;
  }
  .order-now {
    min-width: 108px;
  }
  .quick-options textarea {
    width: 190px;
  }
}
@media (min-width: 481px) {
  body {
    max-width: 480px;
    margin: auto;
    box-shadow: 0 0 45px #102a2a22;
  }
  .topin,
  main {
    max-width: 480px;
    margin: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .food {
    transition: none;
  }
}

.note-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 7px 0;
}
.note-presets button {
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--soft);
  color: var(--text);
  font-size: 11px;
}
.note-presets button:active {
  background: var(--p);
  color: #fff;
}
