* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
  background: #f6f6f6;
}

/* App layout */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  background: #fff;
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

/* Content */
#content {
  flex: 1;
  padding: 16px;
}

/* Categories */
.category h2 {
  margin: 24px 0 12px;
}

/* Menu item */
.menu-item {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
}

.menu-item h3 {
  margin: 0;
}

.menu-item p {
  margin: 4px 0;
  color: #666;
}

.menu-item strong {
  font-size: 16px;
}

/* Bottom nav */
.bottom-nav {
  display: flex;
  background: #fff;
  border-top: 1px solid #eee;
}

.bottom-nav button {
  flex: 1;
  padding: 14px;
  border: none;
  background: none;
  font-size: 16px;
}

/* Overlay */
#drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 50;
}

#drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer */
#item-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  background: #fff;
  border-radius: 20px 20px 0 0;
  max-height: 85vh;
  overflow-y: auto;

  transform: translateY(100%);
  pointer-events: none;

  transition: transform 0.3s ease;
  z-index: 100;
}

#item-drawer.active {
  transform: translateY(0);
  pointer-events: auto;
}

/* Drawer content */
#item-drawer img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.drawer-content {
  padding: 16px;
}

.drawer-price {
  font-size: 20px;
  font-weight: bold;
  margin-top: 12px;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
}
