/* Modern theme — UberEats-inspired: underline tabs, stacked price+name, + button */
* { box-sizing: border-box; }
body {
  margin: 0; background: white; min-height: 100vh; color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

/* Header */
.order-header {
  background: white; border-bottom: 1px solid #eee;
  padding: 0.9rem 1rem; text-align: center;
  position: sticky; top: 0; z-index: 10;
}
.order-header h1 { font-size: 1rem; font-weight: 700; margin: 0; color: #1a1a1a; }
.order-header p { font-size: 0.75rem; color: #767676; margin: 0.15rem 0 0; }

/* Underline tab nav — replaces pill style */
.cat-tabs-bar {
  display: flex; gap: 0 !important; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid #eee; padding: 0;
  position: sticky; top: 0; background: white; z-index: 9;
  scrollbar-width: none;
}
.cat-tabs-bar::-webkit-scrollbar { display: none; }
.cat-menu-trigger { padding: 0.65rem 0.85rem !important; border-right: 1px solid #eee !important; background: white !important; }

.cat-tab {
  white-space: nowrap; padding: 0.65rem 1rem 0.6rem;
  border: none; border-bottom: 2px solid transparent;
  background: none; color: #767676; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; margin-bottom: -1px; flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s;
}
.cat-tab.active { color: #1a1a1a; border-bottom-color: #1a1a1a; }

.order-body { max-width: 720px; margin: 0 auto; padding: 0 1rem 5rem; }

/* Category section headers */
.cat-section-header {
  font-size: 1.2rem; font-weight: 800; color: #1a1a1a;
  padding: 1.5rem 0 0.75rem; letter-spacing: -0.01em; border-bottom: none;
}

/* Product grid as list */
.product-grid { display: block; }

.p-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 0; border-bottom: 1px solid #f0f0f0;
  cursor: pointer; background: transparent;
  border-radius: 0; border-left: none; border-right: none; border-top: none;
  transition: background 0.1s;
}
.p-card:active { background: #f9f9f9; }

/* Text block — left side */
.p-card-info { flex: 1; min-width: 0; }
.p-card-name {
  font-size: 0.9rem; font-weight: 600; color: #1a1a1a;
  margin: 0 0 0.15rem; line-height: 1.3;
}
.p-card-price {
  font-size: 0.85rem; font-weight: 500; color: #1a1a1a;
  margin: 0 0 0.2rem;
}
.p-card-desc {
  font-size: 0.75rem; color: #767676; margin: 0;
  line-height: 1.4; font-weight: 400;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* Image wrapper — right side, only when image exists */
.p-card-img-wrap {
  position: relative; flex-shrink: 0; width: 88px; height: 88px;
}
.p-card-img-wrap img {
  width: 88px; height: 88px; object-fit: cover;
  border-radius: 0.5rem; display: block;
}
/* + button overlaid on image bottom-right */
.p-card-img-wrap .add-btn {
  position: absolute; bottom: 4px; right: 4px;
  width: 28px; height: 28px; border-radius: 50%;
  background: white; border: 1px solid #e8e8e8;
  font-size: 1.25rem; line-height: 1; font-weight: 300;
  color: #1a1a1a; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

/* + button when no image — standalone right side */
.add-btn-inline {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: white; border: 1.5px solid #e8e8e8;
  font-size: 1.35rem; line-height: 1; font-weight: 300;
  color: #1a1a1a; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}

/* Hide any stray no-img divs */
.p-card .no-img { display: none; }
/* Also hide standard img tag if used outside p-card-img-wrap */
.p-card > img { display: none; }

/* Cart bar */
.cart-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #1a1a1a; color: white;
  padding: 0.9rem 1.25rem; cursor: pointer;
  display: none; z-index: 20; text-align: center;
  font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.15);
}
.cart-bar.visible { display: block; }

/* Cart overlay */
.cart-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 30;
}
.cart-overlay.open { display: flex; align-items: flex-end; justify-content: center; }
.cart-sheet {
  background: white; width: 100%; max-width: 720px;
  border-radius: 1rem 1rem 0 0; max-height: 90vh; overflow-y: auto;
  padding: 1.5rem; box-shadow: 0 -4px 32px rgba(0,0,0,0.12);
}
@media (min-width: 720px) {
  .cart-overlay.open { align-items: center; justify-content: center; }
  .cart-sheet { border-radius: 1rem; max-width: 520px; margin: 1rem; }
}

.loc-card {
  display: block; padding: 1rem; border: 1px solid #eee; border-radius: 0.5rem;
  text-decoration: none; color: #1a1a1a; font-weight: 600; font-size: 0.95rem;
  transition: border-color 0.15s;
}
.loc-card:hover { border-color: #1a1a1a; }
.loc-card small { display: block; color: #767676; font-weight: 400; font-size: 0.8rem; margin-top: 0.25rem; }

.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid #d5d5d5;
  border-radius: 0.5rem; font-size: 0.9rem; outline: none; font-family: inherit;
  color: #1a1a1a;
}
.form-input:focus, .form-select:focus { border-color: #1a1a1a; box-shadow: 0 0 0 2px rgba(0,0,0,0.08); }

#menu-search { background: #f6f6f6; border-color: transparent; }
#menu-search:focus { background: white; border-color: #1a1a1a; }

.header-cart-btn { background: #1a1a1a; }
