/* Mobile-first menu UI */
html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f4f1ea;
  color: #111;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Reduce accidental zoom on mobile browsers (double-tap / text size adjustments). */
html, body {
  touch-action: manipulation;
}

.phone {
  max-width: 670px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f8f8f8;
}

.menu-header {
  position: relative;
  z-index: auto;
  display: block;
  padding: 10px 14px 12px;
  background: #ffffff;
  border-bottom: 0px solid rgba(0,0,0,0.08);
  padding-bottom: 23px;
}

.menu-header-brand {
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 6px;
  padding-left: 10px;
  margin-bottom: 11px;
  margin-top: 26px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 16px;
}

.menu-header-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.menu-search-row {
  padding: 0;
  flex: 1;
}

.menu-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #E2D7CA;
  border-radius: 6px;
  padding: 8px 12px;
  position: relative;
}

.menu-search-icon {
  width: 10px;
  height: 10px;
  display: inline-block;
  border: 2px solid #9a9a9a;
  border-radius: 999px;
  position: relative;
}

.menu-search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  background: #9a9a9a;
  border-radius: 2px;
  right: -6px;
  bottom: -2px;
  transform: rotate(45deg);
}

.menu-search-input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 11px;
  color: #0E100F;
  padding: 3px;
}

.menu-search-input::placeholder {
  color: rgba(0,0,0,0.35);
}

.menu-search-loader {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0.18);
  border-top-color: rgba(0,0,0,0.65);
  animation: menuSearchSpin 0.7s linear infinite;
  margin-left: 6px;
}

@keyframes menuSearchSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.category-scroller {
  display: flex;
  gap: 18px;
  padding: 12px 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 10;
  /* Shadow only under the category bar */
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  padding-bottom: 31px;
}
.category-scroller::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: rgba(0,0,0,0.85);
  padding: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  font-family: "Boska Variable", "Boska", Georgia, "Times New Roman", serif;
  cursor: pointer;
  position: relative;
}

.category-pill::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  background: transparent;
  border-radius: 2px;
}

.category-pill.is-active::after {
  background: rgba(0,0,0,0.9);
}

.menu-content {
  padding: 10px 0 40px;
  background: #f8f8f8;
}

.menu-category {
  scroll-margin-top: 170px;
  padding: 0 14px 10px;
}

.category-title {
  display: block;
  margin: 14px 0 0px;
  font-family: "Boska Variable", "Boska", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 17px;
  color: rgba(0,0,0,0.85);
}

.category-subtitle {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  font-weight: 500;
  margin: 0 0 12px;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 23px;
}

.item-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 0;
  text-align: left;
  padding: 0px;
  border-radius: 10px;
  background: #E2D7CA;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

.item-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  box-sizing: border-box;
  display: grid;
  place-items: center;
}
.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.img-placeholder {
  font-weight: 900;
  font-size: 33px;
  letter-spacing: 0.2px;
  color: #000;
}

.item-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.1;
  color: #0E100F;
}

.item-meta {
  font-size: 13px;
  color: rgba(0,0,0,1);
  font-weight: 500;
}

.item-price {
  font-weight: 900;
  color: rgba(0, 0, 0, 0.85);
  font-size: 17px;
  margin-top: 8px;
  align-self: flex-start;
}

.item-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 76px;
  padding: 12px;
}

.empty-state {
  padding: 22px 14px;
  color: rgba(0,0,0,0.6);
  font-weight: 700;
}

.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.10);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 20;
}
.sheet-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: fixed;
  inset: 0;
  background: #ffffff;
  border-radius: 18px 18px 0 0;
  --sheet-translate-y: 100%;
  transform: translate3d(0, var(--sheet-translate-y), 0);
  transition: transform 220ms ease;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.sheet-overlay.is-open .sheet {
  --sheet-translate-y: 0%;
}

.sheet.is-dragging {
  transition: none !important;
}

.sheet-close {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  font-size: 34px;
  font-weight: lighter;
  color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

.sheet-details {
  padding: 15px;
  flex-direction: column;
  align-items: center;
}

.sheet-detail .sheet-image {
  margin: 0 auto 14px;
  width: 100%;
  height: 300px;
  border-radius: 0px;
  overflow: hidden;
  background: #efe6d6;
  position: relative;
  display: grid;
  place-items: center;
}
.sheet-detail .sheet-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sheet-image-placeholder {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 900;
  font-size: 33px;
  letter-spacing: 0.2px;
  color: #000;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.sheet-title {
  font-family: "Boska Variable", "Boska", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 8px;
  text-align: center;
  text-transform: lowercase;
  margin-top: 28px;
}

.sheet-meta {
  font-size: 14px;
  font-weight: bolder;
  color: #000;
  margin-bottom: 27px;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-align: center;
}

.sheet-price {
  font-weight: 800;
  color: rgba(0,0,0,0.75);
  margin-top: 14px;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-align: center;
}

.sheet-desc {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(0,0,0,0.72);
  font-weight: 500;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  white-space: pre-wrap;
  text-align: center;
}

.sheet-text {
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.sheet-loader {
  width: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  padding-top: 60px;
}

.sheet-spinner {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 4px solid rgba(0,0,0,0.12);
  border-top-color: rgba(0,0,0,0.65);
  animation: sheetSpin 0.8s linear infinite;
}

.sheet-loader-text {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.65);
}

@keyframes sheetSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

body.no-scroll {
  overflow: hidden;
}


/* Welcome / self-service popup */
.welcome-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}
.welcome-popup.is-hidden {
  display: none;
}
.welcome-popup-card {
  position: relative;
  width: min(430px, 92vw);
  max-height: 88vh;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.welcome-popup-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: contain;
  background: #ffffff;
  vertical-align: middle;
}
.welcome-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.welcome-popup-close:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}
