/* QR menü sayfası — style.css üzerine eklenir */

.m-head {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 34px 0 30px;
  background: var(--coal);
  overflow: hidden;
}
.m-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/hero-pide.jpg") center / cover;
  opacity: .28;
}
.m-head .container { position: relative; max-width: 720px; }
.m-head .logo { width: min(300px, 78vw); height: auto; margin: 0 auto; }
.m-head h1 { font-size: 1.15rem; letter-spacing: .3em; text-transform: uppercase; margin: 22px 0 6px; color: rgba(255, 255, 255, .9); }
.m-meta { color: rgba(255, 255, 255, .72); font-size: .95rem; margin: 0; }
.m-meta a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }

.m-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.m-bar .container { max-width: 720px; padding-top: 12px; }
.m-search { position: relative; display: block; }
.m-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.m-search input {
  width: 100%;
  font: 500 1rem var(--body);
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--stone);
  color: var(--ink);
}
.m-search input:focus { outline: none; border-color: var(--ink); background: #fff; }

.m-cats {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.m-cats::-webkit-scrollbar { display: none; }
.m-cats a {
  flex: none;
  padding: 9px 12px 11px;
  color: var(--muted);
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.m-cats a.active { color: var(--ink); border-bottom-color: var(--fire); }

.m-list { max-width: 720px; padding-top: 8px; padding-bottom: 32px; }
.m-section { padding-top: 34px; scroll-margin-top: 112px; }
.m-photo {
  position: relative;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--coal);
  margin-bottom: 6px;
}
.m-photo img { width: 100%; height: 100%; object-fit: cover; }
.m-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23, 23, 23, .75), rgba(23, 23, 23, 0) 60%); }
.m-photo h2 { position: absolute; left: 20px; bottom: 14px; z-index: 1; color: #fff; margin: 0; font-size: 1.9rem; }
.m-section > h2 { font-size: 1.9rem; margin-bottom: 4px; }
.m-section .note { display: block; color: var(--muted); font-size: .92rem; margin: 8px 0 0; }

.m-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.m-item:last-child { border-bottom: 0; }
.m-item.has-photo { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; cursor: pointer; }
.m-body { min-width: 0; }
.m-thumb {
  width: 76px;
  height: 76px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--stone);
  cursor: zoom-in;
}
.m-thumb img { width: 100%; height: 100%; object-fit: cover; }
.m-item.has-photo:hover .m-thumb img { transform: scale(1.06); transition: transform .3s; }

/* Ürün fotoğrafı penceresi */
.dish-dialog {
  width: min(600px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.dish-dialog::backdrop { background: rgba(23, 23, 23, .78); }
.dish-dialog[open] { animation: dish-in .22s ease-out; }
@keyframes dish-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.dish-media { position: relative; background: var(--coal); }
.dish-media img { width: 100%; height: auto; aspect-ratio: 1200 / 650; object-fit: cover; }
.dish-btn {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font: 400 1.7rem/1 var(--body);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
.dish-btn:hover { background: #fff; }
.dish-close { top: 12px; right: 12px; font-size: 1.6rem; }
.dish-prev, .dish-next { top: 50%; transform: translateY(-50%); }
.dish-prev { left: 12px; }
.dish-next { right: 12px; }
.dish-info { padding: 18px 22px 22px; }
.dish-info .m-line h3 { font: 400 1.5rem/1.2 var(--display); }
.dish-info p { margin: 6px 0 0; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .dish-dialog[open] { animation: none; }
  .m-item.has-photo:hover .m-thumb img { transform: none; }
}
.m-line { display: flex; align-items: baseline; gap: 10px; }
.m-line h3 { font: 700 1.05rem/1.3 var(--body); margin: 0; }
.m-line .dots { flex: 1; min-width: 16px; border-bottom: 1px dotted #b9b8b3; transform: translateY(-5px); }
.m-price { font-weight: 800; color: var(--fire); white-space: nowrap; }
.m-item p { margin: 3px 0 0; font-size: .93rem; color: var(--muted); line-height: 1.45; }

.tag {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 3px;
  font: 700 .72rem/1.4 var(--body);
}
.tag-sef { background: var(--fire); color: #fff; }
.tag-yeni { background: rgba(29, 158, 82, .14); color: #12703a; }
.tag-acili { background: rgba(212, 42, 32, .1); color: var(--fire); }

.m-empty { text-align: center; padding: 40px 20px 60px; color: var(--muted); }

.m-foot {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 110px;
  font-size: .86rem;
  color: var(--muted);
  text-align: center;
}

.m-cta {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  gap: 8px;
  width: calc(100% - 28px);
  max-width: 460px;
}
.m-cta .btn { flex: 1; padding: 14px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4); }

@media print {
  .m-bar, .m-cta { display: none; }
  .m-section { break-inside: avoid; }
}

.tag-out { background: #e9e8e4; color: var(--muted); }
.tag-veg { background: rgba(29, 158, 82, .14); color: #12703a; }
.m-item.soldout .m-price, .m-item.soldout h3 { color: var(--muted); }
.allergen { font-size: .82rem !important; }
.m-foot a { color: inherit; }
