/* ─────────────────────────────────────────
   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); }

/* 2026 müşteri deneyimi yenilemesi */
body {
  background:
    radial-gradient(circle at 10% 0%, var(--primary-light), transparent 28rem),
    var(--bg);
}
.menu-page {
  width: min(100%, 1120px);
  max-width: 1120px;
  background: var(--bg);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--border) 55%, transparent), 0 24px 80px rgba(15,23,42,.08);
}
.menu-cover { height: clamp(240px, 34vw, 360px); }
.menu-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,10,18,.72), rgba(7,10,18,.12) 68%), linear-gradient(0deg, rgba(7,10,18,.48), transparent 55%);
  pointer-events: none;
}
.menu-cover-overlay {
  z-index: 1;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(1.4rem, 4vw, 3rem);
  background: none;
}
.menu-logo {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 12px 32px rgba(0,0,0,.24);
  background: rgba(255,255,255,.94);
}
.menu-business-name {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.035em;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.menu-topbar {
  min-height: 62px;
  padding: .7rem clamp(1rem, 3vw, 2rem);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(18px);
}
.lang-btn {
  min-width: 38px;
  min-height: 34px;
  border-radius: 10px;
  font-weight: 700;
}
.table-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem .7rem;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: .78rem;
  font-weight: 600;
}
.dark-toggle { border-radius: 12px; box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.search-wrap {
  padding: 1rem clamp(1rem, 3vw, 2rem) .65rem;
  border: none;
  background: var(--surface);
}
.search-input-wrap { max-width: 720px; margin: 0 auto; }
.search-input {
  height: 48px;
  padding-left: 2.65rem;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: inset 0 1px 1px rgba(15,23,42,.02);
}
.search-icon { left: 1rem; }
.category-bar {
  top: 62px;
  padding: 0 clamp(.5rem, 2vw, 1.5rem) .8rem;
  border: none;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(18px);
}
.category-tabs { gap: .45rem; padding: 0; }
.cat-tab {
  padding: .62rem .95rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
  font-size: .82rem;
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.cat-tab.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--primary) 25%, transparent);
}
.menu-content { padding: clamp(1.1rem, 3vw, 2rem); }
.category-section { margin-bottom: 2.5rem; scroll-margin-top: 145px; }
.category-title {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
  padding: 0;
  border: none;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.category-title::before {
  content: '';
  width: 5px;
  height: 22px;
  border-radius: 99px;
  background: var(--primary);
}
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.product-card {
  min-height: 158px;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  border-radius: 20px;
  box-shadow: 0 7px 24px rgba(15,23,42,.055);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  box-shadow: 0 15px 35px rgba(15,23,42,.1);
}
.product-img, .product-img-placeholder { width: 148px; height: 100%; min-height: 158px; }
.product-info { padding: 1rem; gap: .4rem; min-width: 0; }
.product-name { font-size: 1rem; font-weight: 700; letter-spacing: -.012em; }
.product-desc { font-size: .82rem; line-height: 1.5; }
.product-price { font-size: 1.06rem; font-weight: 750; }
.add-btn {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  box-shadow: 0 7px 15px color-mix(in srgb, var(--primary) 28%, transparent);
}
.badge { border-radius: 99px; }
.allergen-tag { border-radius: 99px; background: color-mix(in srgb, #fbbf24 13%, var(--surface)); }
.bottom-nav {
  bottom: .75rem;
  width: min(calc(100% - 1.5rem), 520px);
  max-width: 520px;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 14px 45px rgba(15,23,42,.2);
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(20px);
}
.bottom-nav-item { min-height: 58px; padding: .5rem; font-size: .68rem; font-weight: 600; }
.bottom-nav-item.active { background: var(--primary-light); }
.cart-fab { bottom: 5.3rem; max-width: 500px; border-radius: 18px; box-shadow: 0 14px 34px color-mix(in srgb, var(--primary) 35%, transparent); }
.modal-overlay { background: rgba(2,6,23,.58); backdrop-filter: blur(5px); }
.modal-sheet { max-width: 620px; border-radius: 26px 26px 0 0; box-shadow: 0 -18px 60px rgba(2,6,23,.22); }
.modal-header { padding: .8rem 1.25rem 1rem; }
.modal-body { padding: 1.25rem; }
.modal-footer { padding: 1rem 1.25rem; }
.modal-close { width: 36px; height: 36px; border-radius: 12px; font-size: 1.25rem; }
.product-detail-img { height: clamp(230px, 45vw, 340px); border-radius: 18px; }
.popup-banner { max-width: 720px; top: .75rem; border-radius: 16px; box-shadow: 0 12px 35px rgba(15,23,42,.22); }

@media (max-width: 760px) {
  body { background: var(--bg); }
  .menu-page { box-shadow: none; }
  .menu-cover { height: 245px; }
  .menu-cover-overlay { align-items: center; padding: 1.4rem; }
  .menu-logo { width: 70px; height: 70px; border-radius: 20px; }
  .menu-business-name { font-size: 1.55rem; }
  .product-grid { grid-template-columns: 1fr; gap: .8rem; }
  .product-card { min-height: 132px; border-radius: 18px; }
  .product-img, .product-img-placeholder { width: 124px; min-height: 132px; }
  .product-info { padding: .8rem; }
  .allergen-list { max-height: 23px; overflow: hidden; }
  .bottom-nav { bottom: .45rem; width: calc(100% - .8rem); }
  .popup-banner { top: .4rem; width: calc(100% - .8rem); }
}

@media (max-width: 390px) {
  .product-img, .product-img-placeholder { width: 106px; }
  .product-desc { -webkit-line-clamp: 2; }
  .product-info { padding: .72rem; }
  .product-name { font-size: .94rem; }
  .allergen-list { display: none; }
}
