/* AdisyonJet menu tasarimi - menu.html ile birebir ayni */
:root {
  --accent: #16140f;
  --bg: #f6f4ef;
  --card: #ffffff;
  --ink: #1d1b18;
  --muted: #8a8478;
  --line: #e9e4da;
  --shadow: 0 1px 2px rgba(20,16,10,.04), 0 12px 28px -12px rgba(20,16,10,.14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 320px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); filter: saturate(1.05); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 70%, rgba(0,0,0,.78) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1080px; margin: 0 auto; padding: 28px 22px; display: flex; align-items: flex-end; gap: 18px; }
.logo {
  width: 88px; height: 88px; border-radius: 20px; object-fit: cover; flex-shrink: 0;
  border: 3px solid rgba(255,255,255,.85); box-shadow: 0 8px 24px rgba(0,0,0,.35); background: #fff;
}
.hero-text { color: #fff; padding-bottom: 4px; }
.hero-text h1 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(28px, 5vw, 44px); line-height: 1.05; letter-spacing: -.01em; }
.hero-meta { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 14px; opacity: .92; font-weight: 500; }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.switcher {
  position: absolute; top: 18px; right: 22px; z-index: 3;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border: none; border-radius: 999px; padding: 9px 14px; font: inherit; font-weight: 600; font-size: 13px;
  color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.18); cursor: pointer;
}

/* ---------- Category nav ---------- */
.catnav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246,244,239,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.catnav-scroll {
  max-width: 1080px; margin: 0 auto; display: flex; gap: 8px; padding: 12px 18px;
  overflow-x: auto; scrollbar-width: none;
  /* Kenarlarda yumusak gecis: kesilen hap "devami var" hissi versin */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 34px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 34px), transparent 100%);
}
.catnav-scroll::-webkit-scrollbar { display: none; }
.pill {
  white-space: nowrap; border: 1px solid var(--line); background: var(--card);
  color: var(--muted); padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: .18s ease; flex-shrink: 0; font-family: inherit; line-height: 1.35;
}
.pill:hover { color: var(--ink); }
.pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Menu ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 14px 18px 40px; }
.cat { padding-top: 26px; scroll-margin-top: 70px; }
.cat-head { display: flex; align-items: center; gap: 14px; margin: 10px 0 6px; }
.cat-head .cat-img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; box-shadow: var(--shadow); }
.cat-head h2 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: clamp(19px, 4.2vw, 25px); letter-spacing: -.01em; line-height: 1.2;
  overflow-wrap: break-word; min-width: 0;
}
.cat-rule { height: 1px; background: var(--line); margin: 14px 0 4px; }
.subhead { font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin: 20px 0 10px; opacity: .85; }

.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.item {
  display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px; box-shadow: var(--shadow); transition: transform .16s ease, box-shadow .16s ease;
}
.item:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(20,16,10,.04), 0 18px 36px -14px rgba(20,16,10,.22); }
.item-thumb { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: #efece4; }
.item-thumb.noimg { display: none; }
.item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item-name { font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.item-desc { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-price { margin-top: auto; padding-top: 8px; align-self: flex-start; }
.item-price b { font-weight: 700; font-size: 15px; color: var(--accent); }

/* ---------- States ---------- */
.state { text-align: center; padding: 90px 20px; color: var(--muted); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto 16px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 26px 0 6px; }
.footer b { color: var(--accent); }

@media (max-width: 560px) {
  .items { grid-template-columns: 1fr; }
  .logo { width: 66px; height: 66px; }
}

/* ---------- Garson çağır modülü (bildirimli paket) ---------- */
body.has-cagir main { padding-bottom: 104px; }

.cagir-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 10px; justify-content: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(246,244,239,0) 0%, rgba(246,244,239,.94) 34%);
}
.cagir-btn {
  flex: 1; max-width: 260px; border: none; border-radius: 14px; padding: 14px 18px;
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  background: var(--accent); color: #fff; box-shadow: 0 8px 24px -6px rgba(20,16,10,.45);
  transition: transform .12s ease, opacity .12s;
}
.cagir-btn:active { transform: scale(.97); }
.cagir-btn:disabled { opacity: .5; cursor: default; }
.cagir-btn.cagir-hesap { background: var(--card); color: var(--accent); border: 1.5px solid var(--line); }

.cagir-toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 50;
  transform: translateX(-50%) translateY(10px);
  background: #16140f; color: #fff; padding: 12px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 600; max-width: 90vw; text-align: center;
  opacity: 0; pointer-events: none; transition: .25s ease;
}
.cagir-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cagir-toast.ok { background: #1f7a4d; }
.cagir-toast.err { background: #b3261e; }

.masa-modal { position: fixed; inset: 0; z-index: 60; background: rgba(20,16,10,.5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.masa-modal[hidden] { display: none; }
.masa-box { background: var(--card); border-radius: 18px; padding: 24px; width: 100%; max-width: 320px; box-shadow: 0 20px 50px -10px rgba(0,0,0,.4); }
.masa-box h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 20px; margin-bottom: 6px; }
.masa-box p { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.masa-box input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px; text-align: center; background: #fcfbf9; }
.masa-box input:focus { outline: none; border-color: var(--accent); background: #fff; }
.masa-actions { display: flex; gap: 10px; margin-top: 16px; }
.masa-actions button { flex: 1; border: none; border-radius: 11px; padding: 12px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.masa-actions .m-iptal { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.masa-actions .m-onay { background: var(--accent); color: #fff; }
