/* ─────────────────────────────────────────
   assets/css/menu.css  — Müşteri arayüzü
   ───────────────────────────────────────── */

/* ── Menu Layout ── */
.menu-page { max-width: 480px; margin: 0 auto; min-height: 100vh; }

/* ── Cover / Hero ── */
.menu-cover {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--primary);
}
.menu-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.menu-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.55) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #fff;
}
.menu-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.8);
  margin-bottom: .5rem;
}
.menu-business-name {
  font-size: 1.3rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* ── Lang & Dark Toggle Bar ── */
.menu-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem 1rem;
  gap: .5rem;
}
.lang-btn {
  padding: .25rem .55rem;
  border-radius: var(--radius-sm);
  font-size: .75rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s;
}
.lang-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.dark-toggle {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
}

/* ── Category Tabs ── */
.category-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 49px;
  z-index: 40;
}
.category-bar::-webkit-scrollbar { display: none; }
.category-tabs {
  display: flex;
  gap: 0;
  padding: 0 .5rem;
  width: max-content;
  min-width: 100%;
}
.cat-tab {
  padding: .7rem 1rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.cat-tab:hover { color: var(--text); }
.cat-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ── Menu Content ── */
.menu-content { padding: 1rem; }
.category-section { margin-bottom: 2rem; }
.category-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .85rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

/* ── Product Card ── */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: .85rem;
  cursor: pointer;
  transition: box-shadow .15s, transform .15s;
  display: flex;
  min-height: 100px;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.product-card.out-of-stock { opacity: .5; pointer-events: none; }
.product-img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
}
.product-img-placeholder {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
}
.product-info {
  flex: 1;
  padding: .85rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.product-name { font-weight: 500; font-size: .95rem; line-height: 1.3; }
.product-desc { font-size: .8rem; color: var(--text-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-meta { display: flex; align-items: center; gap: .4rem; margin-top: .15rem; flex-wrap: wrap; }
.product-calories { font-size: .75rem; color: var(--text-3); }
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.product-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}
.add-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: background .15s;
}
.add-btn:hover { background: var(--primary-dark); }

/* ── Cart ── */
.cart-fab {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 99px;
  padding: .85rem 1.75rem;
  font-size: .9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .6rem;
  box-shadow: 0 8px 24px rgba(37,99,235,.35);
  cursor: pointer;
  transition: all .2s;
  z-index: 60;
  width: calc(100% - 2rem);
  max-width: 440px;
  justify-content: space-between;
}
.cart-fab:hover { background: var(--primary-dark); box-shadow: 0 12px 32px rgba(37,99,235,.4); }
.cart-fab-count {
  background: rgba(255,255,255,.25);
  border-radius: 99px;
  padding: .1rem .55rem;
  font-size: .8rem;
  font-weight: 600;
}
.cart-fab-total { font-weight: 600; }

/* ── Bottom Nav ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 70;
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .6rem;
  gap: .2rem;
  font-size: .65rem;
  color: var(--text-3);
  cursor: pointer;
  transition: color .15s;
  border: none;
  background: transparent;
}
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item svg { width: 20px; height: 20px; }

/* ── Modal / Sheet ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 150;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-sheet {
  background: var(--surface);
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .25s cubic-bezier(.32,.72,0,1);
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }
.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  margin: .75rem auto .5rem;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-weight: 600; font-size: 1.05rem; }
.modal-close {
  width: 30px; height: 30px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  cursor: pointer;
}
.modal-body { padding: 1rem; }
.modal-footer {
  padding: .85rem 1rem;
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
  background: var(--surface);
}

/* ── Product Detail Modal ── */
.product-detail-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  background: var(--surface-2);
}
.variant-group { margin-bottom: 1rem; }
.variant-group-title { font-weight: 500; font-size: .9rem; margin-bottom: .5rem; }
.variant-option {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .4rem;
  cursor: pointer;
  transition: all .15s;
  font-size: .875rem;
}
.variant-option:hover { border-color: var(--primary); }
.variant-option.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.variant-price { margin-left: auto; font-weight: 500; }
.qty-control {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: .3rem .5rem;
}
.qty-btn {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text);
}
.qty-num { font-weight: 600; min-width: 24px; text-align: center; }

/* ── Cart Items ── */
.cart-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 500; font-size: .9rem; }
.cart-item-variant { font-size: .78rem; color: var(--text-2); margin-top: .15rem; }
.cart-item-footer { display: flex; align-items: center; justify-content: space-between; margin-top: .4rem; }
.cart-item-price { font-weight: 600; font-size: .9rem; color: var(--primary); }
.cart-item-remove { color: var(--text-3); background: none; border: none; cursor: pointer; padding: .2rem; }

/* ── Order Summary ── */
.order-summary { background: var(--surface-2); border-radius: var(--radius); padding: .85rem; margin-top: 1rem; }
.order-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: .875rem;
  padding: .25rem 0;
  color: var(--text-2);
}
.order-summary-row.total { font-weight: 600; color: var(--text); font-size: 1rem; border-top: 1px solid var(--border); margin-top: .4rem; padding-top: .6rem; }

/* ── Waiter Call Button ── */
.waiter-btn {
  width: 100%;
  padding: 1rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--text-2);
  font-size: .9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  cursor: pointer;
  transition: all .2s;
  margin-top: 1rem;
}
.waiter-btn:hover { border-color: var(--primary); color: var(--primary); }
.waiter-btn.called { border-color: #16a34a; color: #16a34a; border-style: solid; background: #f0fdf4; }

/* ── Allergen Icons ── */
.allergen-list { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .3rem; }
.allergen-tag {
  font-size: .7rem;
  padding: .15rem .45rem;
  background: #fff3cd;
  color: #664d03;
  border-radius: var(--radius-sm);
  border: 1px solid #ffd458;
}

/* ── Popup Banner ── */
.popup-banner {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  width: 100%;
  max-width: 480px;
  z-index: 200;
  padding: .85rem 1rem;
  font-weight: 500;
  text-align: center;
  color: #fff;
  transition: transform .3s cubic-bezier(.32,.72,0,1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.popup-banner.show { transform: translateX(-50%) translateY(0); }
.popup-close { background: none; border: none; color: rgba(255,255,255,.7); cursor: pointer; font-size: 1.1rem; }

/* ── Out of stock ── */
.out-of-stock-badge {
  font-size: .72rem;
  background: var(--surface-2);
  color: var(--text-3);
  padding: .15rem .5rem;
  border-radius: var(--radius-sm);
}

/* ── Order Status ── */
.order-status-wrap { padding: 1.5rem 1rem; text-align: center; }
.order-status-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.order-status-title { font-size: 1.15rem; font-weight: 600; margin-bottom: .4rem; }
.order-status-sub { color: var(--text-2); font-size: .875rem; }
.order-status-steps { display: flex; justify-content: center; gap: 0; margin: 1.5rem 0; }
.status-step { display: flex; flex-direction: column; align-items: center; gap: .3rem; flex: 1; position: relative; }
.status-step::before {
  content: '';
  position: absolute;
  top: 12px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--border);
}
.status-step:first-child::before { display: none; }
.status-step.done::before { background: var(--primary); }
.step-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--border);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.status-step.done .step-dot { background: var(--primary); }
.status-step.active .step-dot { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
.step-label { font-size: .7rem; color: var(--text-3); }
.status-step.done .step-label, .status-step.active .step-label { color: var(--primary); }

/* ── Search Bar ── */
.search-wrap { padding: .75rem 1rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.search-input-wrap { position: relative; }
.search-icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search-input { padding-left: 2.25rem; border-radius: 99px; background: var(--surface-2); border-color: transparent; }
.search-input:focus { border-color: var(--primary); background: var(--surface); }
