/* menu.css - Digital Menu for Restaurant Customers */
body.menu-body {
  background-color: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 90px;
}

.menu-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header & Banner */
.menu-header {
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 24px 16px 20px;
  text-align: center;
}
.menu-banner {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.menu-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,20,15,0.2) 0%, var(--bg) 100%);
}

.menu-brand-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.menu-logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: var(--bg-deep);
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.menu-logo-placeholder {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: var(--bg-surface);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.menu-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.menu-desc {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.45;
}

.menu-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.82rem;
}
.menu-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  color: var(--paper-dim);
}
.menu-pill.table-pill {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold-bright);
  font-weight: 600;
}
.menu-pill.open-pill {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

.menu-actions-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.action-btn {
  background: var(--bg-surface);
  color: var(--paper-dim);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.action-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* Search Bar */
.search-container {
  padding: 14px 16px 8px;
  position: sticky;
  top: 0;
  background: var(--bg-deep);
  z-index: 30;
  border-bottom: 1px solid var(--line);
}
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 10px 16px 10px 38px;
  color: var(--paper);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus {
  border-color: var(--gold);
}
.search-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  pointer-events: none;
}
.search-clear {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: none;
  font-size: 1rem;
}

/* Category Tabs */
.cat-nav {
  position: sticky;
  top: 55px;
  background: var(--bg-deep);
  z-index: 25;
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  gap: 8px;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar {
  display: none;
}
.cat-tab {
  padding: 7px 15px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.cat-tab:hover {
  color: var(--paper);
  border-color: var(--line-strong);
}
.cat-tab.active {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
  font-weight: 700;
}

/* Category Section */
.cat-section {
  padding: 24px 0 10px;
  scroll-margin-top: 110px;
}
.cat-header {
  margin-bottom: 14px;
}
.cat-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 3px;
}

/* Dish Card */
.dishes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dish-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: border-color 0.2s, transform 0.15s;
}
.dish-card:hover {
  border-color: var(--line-strong);
}
.dish-card.unavailable {
  opacity: 0.55;
  filter: grayscale(0.5);
}

.dish-info {
  flex: 1;
  min-width: 0;
}
.dish-name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.dish-name {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--paper);
}
.dish-desc {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dish-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.dish-tag {
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(198, 161, 91, 0.12);
  color: var(--gold-bright);
}
.dish-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.dish-price {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.dish-img-box {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--line);
}
.dish-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-add-dish {
  background: var(--gold);
  color: var(--bg-deep);
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s ease, transform 0.1s;
}
.btn-add-dish:hover {
  background: var(--gold-bright);
  transform: scale(1.02);
}
.btn-dish-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--gold);
  border-radius: var(--radius-full);
  padding: 3px 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--paper);
}
.btn-dish-qty button {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1rem;
  cursor: pointer;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating Cart Bar */
.cart-floating-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 680px;
  background: var(--gold);
  color: var(--bg-deep);
  border-radius: var(--radius-full);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  cursor: pointer;
  z-index: 100;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cart-floating-bar:hover {
  transform: translateX(-50%) translateY(-2px);
  background: var(--gold-bright);
}
.cart-pill-items {
  background: var(--bg-deep);
  color: var(--paper);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
}
.cart-floating-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Cart Modal Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cart-drawer-overlay.active {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 1;
}
.cart-drawer {
  background: var(--bg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: 20px 20px 0 0;
  border: 1px solid var(--line-strong);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
  animation: slideUp 0.25s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cart-drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-drawer-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--paper);
}
.btn-close-drawer {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  color: var(--paper);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}

.cart-drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* Cart Items in Drawer */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.cart-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--paper);
}
.cart-item-note {
  font-size: 0.78rem;
  color: var(--gold-bright);
  margin-top: 2px;
}
.cart-item-price {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--paper-dim);
  white-space: nowrap;
}

.order-type-picker {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.order-type-btn {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  font-size: 0.84rem;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s;
}
.order-type-btn.active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold-bright);
  font-weight: 600;
}

.cart-input-group {
  margin-bottom: 14px;
}
.cart-input-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 5px;
}
.cart-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--paper);
  font-size: 0.92rem;
  outline: none;
}
.cart-input:focus {
  border-color: var(--gold);
}

.cart-total-box {
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  border: 1px solid var(--line);
}
.cart-total-amount {
  color: var(--gold-bright);
  font-size: 1.25rem;
}

.cart-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

/* Empty cart state */
.cart-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.cart-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

/* Dish Detail Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.active {
  display: flex;
}
.modal-card {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
