/* Egea menü — basılı menünün kimliği: açık mavi-gri kâğıt, yeşil halka + mavi yaprak, serif başlık, Poppins gövde. */
:root {
  --paper: #eef2f3;
  --card: #f8fafa;
  --ink: #1d2326;
  --muted: #5d676c;
  --line: #d6dee1;
  --green: #5f9233;
  --green-dark: #4b7728;
  --blue: #1f77b4;
  --blue-soft: #e1edf6;
  --danger: #b4432f;
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
button { font: inherit; color: inherit; }
a { color: var(--blue); }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 16px 10px; max-width: 720px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.mark { width: 42px; height: 42px; flex: none; }
.brand-name { font: 600 30px/1 var(--serif); letter-spacing: .5px; }
.brand-tag { font-size: 10.5px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.top-end { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; background: var(--card); }
.lang a { padding: 6px 10px; font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--muted); letter-spacing: .5px; }
.lang a.on { background: var(--ink); color: var(--paper); }
.pill {
  font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  max-width: 38vw; overflow: hidden; text-overflow: ellipsis;
}
.pill-table { background: var(--green); color: #fff; }
.pill-member { background: var(--blue); color: #fff; }

.notice {
  max-width: 688px; margin: 4px auto 8px; padding: 10px 14px; border-radius: 10px;
  background: var(--blue-soft); font-size: 14px; margin-inline: 16px;
}
@media (min-width: 720px) { .notice { margin-inline: auto; } }
.notice-warn { background: #f6e6df; }

.cats {
  position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line);
}
.cats-inner {
  position: relative; display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; max-width: 720px; margin: 0 auto;
  scrollbar-width: none;
}
.cats-inner::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
}
.cats a.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

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

.search {
  display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; padding: 0 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--muted);
}
.search svg { width: 18px; height: 18px; flex: none; }
.search input { border: 0; background: none; outline: none; font: inherit; color: var(--ink); width: 100%; padding: 11px 0; }
.empty-search { color: var(--muted); text-align: center; padding: 24px 0; }

.cat { padding-top: 18px; }
.cat h2 {
  font: 600 30px/1.1 var(--serif); margin: 8px 0 6px; display: inline-block;
  padding-bottom: 2px; border-bottom: 3px solid var(--blue);
}
.cat-desc { color: var(--muted); margin: 4px 0 8px; }
.items { list-style: none; margin: 6px 0 0; padding: 0; }
.items li + li { border-top: 1px solid var(--line); }

.item {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 14px 0; text-align: left;
  background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.item:active { opacity: .7; }
.thumb {
  width: 84px; height: 84px; flex: none; border-radius: 12px; overflow: hidden; background: var(--card);
  display: grid; place-items: center; border: 1px solid var(--line);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-mark { width: 40px; height: 40px; opacity: .35; }
.item-body { flex: 1; min-width: 0; }
.item-head { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.item-name { font-weight: 600; font-size: 16px; line-height: 1.3; margin-right: 2px; }
.item-desc { display: block; color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.price {
  flex: none; background: var(--green); color: #fff; font-weight: 600; font-size: 14px;
  padding: 3px 9px; border-radius: 6px; font-variant-numeric: tabular-nums; margin-top: 1px;
}

.badge-ico { width: 20px; height: 20px; flex: none; }
.badge-new {
  font-size: 9.5px; font-weight: 600; letter-spacing: .5px; color: var(--blue); border: 1.5px solid var(--blue);
  border-radius: 999px; padding: 1px 6px; line-height: 1.4;
}

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 36px 0 12px; }
.foot p { margin: 4px 0; }
.foot-mark { width: 44px; height: 44px; margin: 18px 0 6px; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-bottom: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.disclaimer { font-size: 12px; }

/* Alt sabit sepet çubuğu */
.cartbar {
  position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 30;
  max-width: 688px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; border: 0; border-radius: 14px; padding: 14px 18px; cursor: pointer;
  box-shadow: 0 10px 30px rgba(20, 30, 35, .25); font-weight: 500;
}
.cartbar-count {
  background: var(--green); min-width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center;
  font-size: 13px; font-weight: 600; padding: 0 7px;
}
.cartbar-total { margin-left: auto; font-variant-numeric: tabular-nums; }

/* Alttan açılan sayfa */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(15, 22, 26, .45); z-index: 40; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-width: 720px; margin: 0 auto;
  max-height: 92dvh; background: var(--paper); border-radius: 20px 20px 0 0; overflow: hidden;
  display: flex; flex-direction: column; animation: up .22s ease-out;
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } html { scroll-behavior: auto; } }
.sheet-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 999px;
  border: 0; background: rgba(255, 255, 255, .9); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}
.sheet-close svg { width: 18px; height: 18px; }
.sheet-body { overflow-y: auto; padding: 0 0 calc(16px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.sheet-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--card); }
.sheet-pad { padding: 20px 18px 0; }
.sheet-pad.no-img { padding-top: 26px; }
.sheet h3 { font: 600 28px/1.15 var(--serif); margin: 0 44px 6px 0; }
.sheet .item-head { margin-bottom: 6px; }
.sheet-desc { color: var(--muted); margin: 0 0 6px; }
.sheet-allergen { font-size: 13px; color: var(--muted); }
.sheet-price { display: inline-block; margin-top: 4px; }

.opt-group { margin-top: 18px; }
.opt-title { font-weight: 600; font-size: 14px; margin-bottom: 8px; display: flex; justify-content: space-between; }
.opt-title small { color: var(--muted); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 14px;
  cursor: pointer; font-size: 14px; display: inline-flex; gap: 6px; align-items: center;
}
.chip[aria-pressed="true"] { border-color: var(--green); background: #e7f0de; }
.chip.remove[aria-pressed="true"] { border-color: var(--danger); background: #f7e5e0; color: var(--danger); text-decoration: line-through; }
.chip .plus { color: var(--green-dark); font-weight: 600; font-variant-numeric: tabular-nums; }

.field { display: block; margin-top: 16px; }
.field > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.field textarea { min-height: 64px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2 .field { margin-top: 16px; }

.sheet-actions {
  position: sticky; bottom: 0; display: flex; gap: 10px; align-items: center; padding: 14px 18px;
  background: linear-gradient(to top, var(--paper) 75%, transparent); margin-top: 8px;
}
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.stepper button { width: 42px; height: 46px; border: 0; background: none; font-size: 20px; cursor: pointer; }
.stepper output { min-width: 22px; text-align: center; font-weight: 600; }
.btn {
  flex: 1; border: 0; border-radius: 12px; background: var(--green); color: #fff; font-weight: 600;
  padding: 13px 16px; cursor: pointer; font-size: 15px; min-height: 46px;
}
.btn:disabled { opacity: .55; cursor: default; }
.btn-ghost { background: none; color: var(--ink); border: 1px solid var(--line); flex: none; }

/* Sepet */
.cart h3 { margin-top: 4px; }
.cart-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; }
.cart-item-meta { color: var(--muted); font-size: 13px; }
.cart-item-meta .rm { color: var(--danger); }
.cart-item-person { font-size: 13px; color: var(--blue); }
.cart-item .stepper button { width: 34px; height: 36px; font-size: 17px; }
.cart-item-price { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.cart-total { display: flex; justify-content: space-between; font-weight: 600; padding: 14px 0 0; font-size: 17px; }
.cart-hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.kvkk { font-size: 11.5px; }
.cart-empty { color: var(--muted); padding: 20px 0; }
.tabs { display: flex; gap: 6px; margin: 4px 0 6px; }
.tabs button {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 14px;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.past { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 10px; background: var(--card); font-size: 14px; }
.past-head { display: flex; justify-content: space-between; font-weight: 600; }
.status { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--blue-soft); }
.status-approved, .status-done { background: #e7f0de; }
.status-rejected, .status-cancelled { background: #f7e5e0; }

.done { text-align: center; padding: 30px 6px 10px; }
.done .mark { width: 60px; height: 60px; }
.done h3 { margin: 10px 0 6px; }

.toast {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; max-width: calc(100% - 32px);
}
.error { color: var(--danger); font-size: 14px; margin: 10px 0 0; }
