/* QR Menü - müşteri görünümü */
:root {
  --brand: #c0392b;
  --radius: 16px;
  --card-bg: #fff;
  --page-bg: #f4f1ee;
  --muted: #6c757d;
}
[data-bs-theme="dark"] {
  --card-bg: #1f2226;
  --page-bg: #121416;
  --muted: #9aa0a6;
}

body.menu-body {
  font-family: var(--menu-font);
  background: var(--page-bg);
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
}
.menu-wrap {
  max-width: 560px;
  margin: 0 auto;
  background: var(--page-bg);
  min-height: 100vh;
}
@media (min-width: 576px) {
  .menu-wrap { box-shadow: 0 0 40px rgba(0,0,0,.08); }
}

.text-brand { color: var(--brand) !important; }
.bg-brand { background: var(--brand) !important; color: #fff; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand); color: #fff; filter: brightness(.92); }
.btn-outline-brand { border-color: var(--brand); color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }

/* ---- Hero ---- */
.menu-hero {
  position: relative;
  min-height: 230px;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000));
  background-size: cover;
  background-position: center;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.6));
}
.hero-tools {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: flex; gap: 8px;
}
.tool-btn {
  border: 0; border-radius: 999px;
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  color: #fff; height: 38px; min-width: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; color: #fff;
  padding: 56px 16px 22px;
}
.hero-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 92px; height: 92px; border-radius: 50%;
  background: #fff; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  border: 3px solid rgba(255,255,255,.9);
  text-decoration: none;
}
.hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.hero-logo span { font-size: 40px; font-weight: 700; color: var(--brand); }
.hero-title { font-size: 1.5rem; font-weight: 700; margin: 12px 0 2px; letter-spacing: .3px; }
.hero-slogan { margin: 0; opacity: .9; font-size: .95rem; }

/* ---- Arama ---- */
.search-bar {
  position: sticky; top: 0; z-index: 20;
  margin: -22px 16px 8px;
  background: var(--card-bg);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px;
}
.search-bar i { color: var(--muted); }
.search-bar input {
  border: 0; outline: 0; background: transparent; color: inherit;
  height: 46px; flex: 1; font-size: .95rem;
}

.section-title {
  font-size: 1.05rem; font-weight: 700;
  margin: 10px 2px 12px;
  display: flex; align-items: center; gap: 8px;
}
.section-title i { color: var(--brand); }

/* ---- Kampanya ---- */
.campaign-carousel { border-radius: var(--radius); overflow: hidden; }
.campaign-card {
  display: flex; align-items: flex-end;
  min-height: 140px;
  position: relative;
  text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 50%, #f39c12));
  border-radius: var(--radius);
  overflow: hidden;
}
.campaign-card img { width: 100%; display: block; aspect-ratio: 16/8; object-fit: cover; }
.campaign-text {
  position: relative; padding: 16px 18px 28px; font-weight: 600; font-size: 1rem;
}
.campaign-card.has-img .campaign-text {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
}
.campaign-carousel .carousel-indicators { margin-bottom: .4rem; }
.campaign-carousel .carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 50%; }

/* ---- Kategoriler ---- */
.category-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.category-card {
  position: relative; display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius); overflow: hidden;
  background: var(--card-bg);
  text-decoration: none; color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  transition: transform .15s ease;
}
.category-card:active { transform: scale(.97); }
.category-card img { width: 100%; height: 100%; object-fit: cover; }
.category-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; font-weight: 700;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 85%, #fff), color-mix(in srgb, var(--brand) 60%, #000));
  color: rgba(255,255,255,.45);
}
.category-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  font-weight: 600; line-height: 1.2;
}
.category-name small { display: block; font-weight: 400; opacity: .8; font-size: .75rem; margin-top: 2px; }

/* ---- Kategori çipleri ---- */
.cat-chips {
  position: sticky; top: 50px; z-index: 15;
  display: flex; gap: 8px; overflow-x: auto;
  padding: 8px 16px; scrollbar-width: none;
  background: var(--page-bg);
}
.cat-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px;
  background: var(--card-bg); color: inherit; text-decoration: none;
  font-size: .85rem; font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.chip.active { background: var(--brand); color: #fff; }

/* ---- Ürünler ---- */
.product-list { display: flex; flex-direction: column; gap: 10px; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.product-card {
  display: flex; gap: 12px; width: 100%; text-align: left;
  background: var(--card-bg); color: inherit;
  border: 0; border-radius: var(--radius); padding: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,.05);
}
.product-card:active { transform: scale(.99); }
.product-img {
  position: relative; flex: 0 0 96px; height: 96px;
  border-radius: 12px; overflow: hidden;
  background: color-mix(in srgb, var(--brand) 12%, var(--card-bg));
  display: flex; align-items: center; justify-content: center;
  color: color-mix(in srgb, var(--brand) 60%, transparent); font-size: 32px;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.product-name { font-weight: 600; line-height: 1.25; }
.product-desc {
  font-size: .8rem; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.product-price { font-weight: 700; color: var(--brand); white-space: nowrap; }
.product-price del { color: var(--muted); font-weight: 400; font-size: .8rem; margin-right: 4px; }
.product-more { font-size: .75rem; color: var(--muted); white-space: nowrap; }

.product-grid .product-card { flex-direction: column; }
.product-grid .product-img { flex-basis: auto; height: auto; aspect-ratio: 4/3; }
.product-grid .product-more { display: none; }

.product-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.pbadge {
  font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .3px;
  padding: 2px 7px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand);
}
.pbadge-new { background: #e3f2fd; color: #1565c0; }
.pbadge-popular { background: #fff3e0; color: #e65100; }
.pbadge-spicy { background: #ffebee; color: #c62828; }
.pbadge-vegan { background: #e8f5e9; color: #2e7d32; }
.pbadge-chef { background: #f3e5f5; color: #6a1b9a; }
[data-bs-theme="dark"] .pbadge { filter: brightness(.9) saturate(1.2); }

.sold-out { opacity: .55; }
.sold-badge {
  position: absolute; inset: auto 0 0 0;
  background: rgba(0,0,0,.65); color: #fff;
  font-size: .7rem; text-align: center; padding: 2px 0;
}

/* ---- Ürün modalı ---- */
.product-modal { border: 0; border-radius: 20px; overflow: hidden; }
.product-modal .modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  background-color: rgba(255,255,255,.9); border-radius: 50%; padding: 10px; opacity: 1;
}
.pm-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.pm-ph {
  aspect-ratio: 16/7; display: flex; align-items: center; justify-content: center;
  font-size: 64px; color: color-mix(in srgb, var(--brand) 60%, transparent);
  background: color-mix(in srgb, var(--brand) 12%, var(--card-bg));
}
.pm-content { padding: 18px 20px 22px; }
.pm-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
.pm-price { font-size: 1.25rem; font-weight: 700; color: var(--brand); }
.pm-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pm-meta span {
  font-size: .8rem; padding: 5px 10px; border-radius: 10px;
  background: var(--bs-tertiary-bg);
}
.pm-options .list-group-item { display: flex; justify-content: space-between; background: transparent; }
.pm-video { aspect-ratio: 16/9; width: 100%; border: 0; border-radius: 12px; }

/* ---- Alt menü ---- */
.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: 560px; z-index: 1030;
  display: flex; justify-content: space-around;
  background: var(--card-bg);
  border-top: 1px solid var(--bs-border-color-translucent);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--muted); text-decoration: none; font-size: .7rem; padding: 4px 0;
}
.bottom-nav a i { font-size: 1.3rem; }
.bottom-nav a:active, .bottom-nav a:hover { color: var(--brand); }

.menu-sheet { max-width: 560px; margin: 0 auto; height: auto !important; max-height: 85vh; border-radius: 20px 20px 0 0; }
.info-box {
  background: var(--bs-tertiary-bg); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
}
.info-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 4px; }
.list-group-item.today { background: color-mix(in srgb, var(--brand) 10%, transparent); }

/* ---- Footer ---- */
.menu-footer {
  text-align: center; color: var(--muted);
  padding: 28px 16px 16px; font-size: .85rem;
}
.footer-icons { display: flex; justify-content: center; gap: 12px; }
.footer-icons a {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card-bg); color: var(--brand); font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* Kategori sayfasında küçük başlık */
.menu-hero.compact { min-height: 150px; }
.menu-hero.compact .hero-content { padding: 40px 16px 30px; display: flex; align-items: center; gap: 12px; text-align: left; }
.menu-hero.compact .hero-logo { width: 56px; height: 56px; flex-shrink: 0; border-width: 2px; }
.menu-hero.compact .hero-logo span { font-size: 26px; }
.menu-hero.compact .hero-title { font-size: 1.2rem; margin: 0; }
.menu-hero.compact .hero-slogan { font-size: .85rem; }

.product-kcal { font-size: .72rem; color: var(--muted); }
.product-kcal i { color: #e67e22; }
