/* ===========================================================================
   menu.css — Müşteri menüsü (QR ile açılan sayfa)
   Mobil öncelikli. Sıcak/iştah açıcı bir vurgu rengi kullanır.
   ======================================================================== */

.menu-page {
  --accent:       #c2410c;
  --accent-hover: #9a3412;
  --accent-soft:  #fff1ea;
  --accent-ink:   #ffffff;
  --hero-1:       #1f1410;
  --hero-2:       #3b2318;
  padding-bottom: env(safe-area-inset-bottom);
}
:root[data-theme="dark"] .menu-page {
  --accent:       #fb923c;
  --accent-hover: #fdba74;
  --accent-soft:  #2b1a10;
  --accent-ink:   #1a0f08;
  --hero-1:       #14100e;
  --hero-2:       #241812;
}

/* --- Açılış perdesi ----------------------------------------------------- */
.boot {
  position: fixed; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: var(--bg); z-index: 100;
}

/* --- Üst bölüm ---------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(150deg, var(--hero-1), var(--hero-2));
  color: #fff;
  padding: 34px 20px 30px;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(700px 260px at 18% -10%, rgba(255, 176, 110, .22), transparent 70%),
    radial-gradient(520px 220px at 92% 0%,  rgba(255, 120, 60, .14), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto; text-align: center;
}
.hero h1 {
  font-size: clamp(25px, 6.4vw, 36px);
  letter-spacing: -.025em;
  margin-bottom: 6px;
}
.hero-desc {
  color: rgba(255, 255, 255, .74);
  font-size: 14.5px;
  max-width: 46ch; margin: 0 auto;
}
.hero-logo {
  width: 78px; height: 78px; margin: 0 auto 14px;
  border-radius: 22px; overflow: hidden;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .3);
}
.hero-logo img { width: 100%; height: 100%; object-fit: cover; }

.theme-btn {
  position: absolute; top: 0; right: 0; z-index: 2;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
  color: #fff; font-size: 15px; cursor: pointer;
  transition: background .15s;
}
.theme-btn:hover { background: rgba(255, 255, 255, .2); }

/* --- Yapışkan arama + sekmeler ------------------------------------------ */
.sticky-bar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0 0;
  transition: box-shadow .2s;
}
.sticky-bar.stuck { box-shadow: var(--shadow-2); }

.search-wrap {
  position: relative;
  max-width: 760px; margin: 0 auto 10px; padding: 0 16px;
}
.search-icon {
  position: absolute; left: 28px; top: 50%; transform: translateY(-50%);
  color: var(--text-faint); font-size: 17px; pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 9px 34px 9px 34px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14.5px;
  transition: border-color .15s, box-shadow .15s;
}
.search-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-input::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute; right: 26px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: var(--bg-soft); color: var(--text-dim);
  font-size: 11px; cursor: pointer;
}

.tabs {
  display: flex; gap: 7px;
  overflow-x: auto; scrollbar-width: none;
  padding: 0 16px 10px;
  max-width: 760px; margin: 0 auto;
  scroll-behavior: smooth;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.tab:hover { color: var(--text); }
.tab.on {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}

/* --- Menü listesi ------------------------------------------------------- */
.menu { max-width: 760px; margin: 0 auto; padding: 20px 16px 8px; }

.cat { margin-bottom: 30px; scroll-margin-top: 118px; }
.cat-head {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 12px;
}
.cat-head h2 { font-size: 19px; letter-spacing: -.02em; }
.cat-head .cat-line { flex: 1; height: 1px; background: var(--border); }
.cat-head .cat-count { font-size: 12.5px; color: var(--text-faint); }

.items { display: flex; flex-direction: column; gap: 9px; }

.item {
  display: flex; gap: 13px; align-items: stretch;
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.item:active { transform: scale(.994); }

.item-img {
  width: 76px; height: 76px; flex: none;
  border-radius: 10px; overflow: hidden;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 21px; letter-spacing: .02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.item-img img { width: 100%; height: 100%; object-fit: cover; }

.item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.item-name { font-weight: 620; font-size: 15.5px; letter-spacing: -.01em; }
.item-desc {
  font-size: 13.2px; color: var(--text-dim); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-price {
  align-self: center;
  font-weight: 680; font-size: 15px; color: var(--accent);
  white-space: nowrap; padding-left: 4px;
}

/* Arama vurgusu */
mark { background: var(--accent-soft); color: var(--accent); padding: 0 2px; border-radius: 3px; }

/* --- Ürün detayı -------------------------------------------------------- */
.detail-img {
  width: 100%; aspect-ratio: 16 / 10;
  border-radius: var(--radius); overflow: hidden;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 46px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-price { font-size: 21px; font-weight: 700; color: var(--accent); }

/* --- Alt bilgi ---------------------------------------------------------- */
.foot {
  max-width: 760px; margin: 0 auto;
  padding: 26px 16px 34px;
  text-align: center; font-size: 12.5px;
  border-top: 1px solid var(--border);
  margin-top: 14px;
}
.brand-note { margin-top: 6px; font-weight: 600; font-size: 12.5px; letter-spacing: .02em; }
#brandName { color: var(--accent); }

/* --- Geniş ekran -------------------------------------------------------- */
@media (min-width: 620px) {
  .items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .cat { scroll-margin-top: 124px; }
}
