/* Premium minimal müşteri menüsü */
:root {
  --menu-paper: #f3f4f6;
  --menu-surface: #ffffff;
  --menu-ink: #1b1b19;
  --menu-muted: #74736d;
  --menu-line: #deddd7;
}

body { background: var(--menu-paper); }
.menu-page {
  width: min(100%, 1180px);
  max-width: 1180px;
  background: var(--menu-paper);
  box-shadow: none;
}

/* Kapak */
.menu-cover { height: clamp(260px, 35vw, 410px); background: #222; }
.menu-cover::after { display: none; }
.menu-cover > img { filter: saturate(.86) contrast(.96); }
.menu-cover-overlay {
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(1.4rem, 4vw, 3.5rem);
  background: linear-gradient(0deg, rgba(0,0,0,.62), rgba(0,0,0,0) 62%);
}
.menu-cover .menu-logo {
  width: 68px;
  height: 68px;
  margin: 0 0 .8rem;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}
.menu-business-name {
  font-family: var(--font);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -.045em;
  text-shadow: none;
}

/* Tek araç satırı */
.menu-topbar {
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(240px, 560px) auto;
  gap: 1.5rem;
  min-height: 76px;
  padding: .8rem clamp(1rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--menu-line);
  background: var(--menu-surface);
  backdrop-filter: none;
}
.menu-languages, .menu-tools { display: flex; align-items: center; gap: .45rem; }
.menu-tools { justify-content: flex-end; }
.lang-btn {
  min-width: auto;
  min-height: auto;
  padding: .35rem .2rem;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--menu-muted);
  font-size: .72rem;
  font-weight: 600;
}
.lang-btn.active { border-color: var(--primary); background: transparent; color: var(--menu-ink); }
.search-wrap { width: 100%; padding: 0; border: 0; background: transparent; }
.search-input-wrap { max-width: none; }
.search-input {
  height: 42px;
  padding-left: 2.45rem;
  border: 0;
  border-bottom: 1px solid var(--menu-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.search-input:focus { border-color: var(--primary); background: transparent; box-shadow: none; }
.search-icon { left: .45rem; }
.table-pill {
  padding: .35rem 0;
  border-radius: 0;
  background: transparent;
  color: var(--menu-ink);
  white-space: nowrap;
}
.dark-toggle {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Kategoriler */
.category-bar {
  top: 76px;
  padding: .75rem clamp(1rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--menu-line);
  background: var(--menu-surface);
  backdrop-filter: none;
}
.category-tabs { gap: .5rem; padding: 0; }
.cat-tab {
  padding: .65rem .9rem;
  border: 1px solid var(--menu-line);
  border-radius: 2px;
  background: var(--menu-surface);
  box-shadow: none;
  color: var(--menu-muted);
  font-size: .8rem;
  font-weight: 500;
}
.cat-tab:hover { color: var(--menu-ink); }
.cat-tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}

/* Editoryal ürün listesi */
.menu-content { padding: clamp(1.5rem, 4vw, 3.4rem); }
.category-section { margin-bottom: clamp(2.8rem, 6vw, 5rem); scroll-margin-top: 140px; }
.category-title {
  margin: 0 0 1.2rem;
  padding: 0 0 .8rem;
  border-bottom: 1px solid var(--menu-ink);
  color: var(--menu-ink);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -.035em;
}
.category-title::before { display: none; }
.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.product-card {
  position: relative;
  min-height: 150px;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--menu-line);
  border-radius: 0;
  background: var(--menu-surface);
  box-shadow: none;
}
.product-card:hover { transform: none; border-color: var(--primary); box-shadow: none; }
.product-info { order: 1; padding: 0 1rem 0 0; gap: .42rem; }
.product-img, .product-img-placeholder {
  order: 2;
  width: 126px;
  height: 126px;
  min-height: 126px;
  align-self: center;
  border-radius: 0;
}
.product-name { color: var(--menu-ink); font-size: 1rem; font-weight: 600; letter-spacing: -.015em; }
.product-desc { color: var(--menu-muted); font-size: .79rem; line-height: 1.55; }
.product-meta { margin: .05rem 0; }
.product-calories { color: var(--menu-muted); font-size: .7rem; }
.product-footer { justify-content: flex-start; gap: .75rem; }
.product-price { color: var(--menu-ink); font-size: .95rem; font-weight: 650; }
.add-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--menu-ink);
  border-radius: 50%;
  background: transparent;
  color: var(--menu-ink);
  box-shadow: none;
}
.add-btn:hover { border-color: var(--primary); background: var(--primary); color: #fff; }
.badge, .allergen-tag, .out-of-stock-badge {
  padding: .08rem .35rem;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--menu-muted);
  font-size: .66rem;
}
.badge { color: var(--primary); }
.allergen-list { margin: 0; gap: .1rem; }
.allergen-tag + .allergen-tag::before { content: '·'; margin-right: .35rem; color: var(--menu-muted); }

/* Sepet ve alt navigasyon */
.bottom-nav {
  bottom: 0;
  width: 100%;
  max-width: 1180px;
  border: 0;
  border-top: 1px solid var(--menu-line);
  border-radius: 0;
  background: var(--menu-surface);
  box-shadow: none;
  backdrop-filter: none;
}
.bottom-nav-item { min-height: 60px; color: var(--menu-muted); }
.bottom-nav-item.active { background: transparent; color: var(--primary); }
.cart-fab {
  bottom: 4.5rem;
  max-width: 480px;
  border: 0;
  border-radius: 2px;
  background: var(--menu-ink);
  box-shadow: none;
}
.cart-fab:hover { background: var(--primary); box-shadow: none; }

/* Paneller */
.modal-overlay { background: rgba(0,0,0,.36); backdrop-filter: none; }
.modal-sheet { max-width: 640px; border-radius: 8px 8px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.12); }
.modal-handle { height: 2px; }
.modal-header, .modal-footer { border-color: var(--menu-line); }
.modal-close { border-radius: 0; background: transparent; }
.product-detail-img { border-radius: 4px; }
.variant-option, .qty-control, .qty-btn, .order-summary, .waiter-btn { border-radius: 3px; }
.popup-banner { top: 0; max-width: 680px; border-radius: 0; box-shadow: none; }

/* Koyu görünüm */
[data-theme="dark"] {
  --menu-paper: #181817;
  --menu-surface: #222220;
  --menu-ink: #f1f0eb;
  --menu-muted: #aaa8a0;
  --menu-line: #343330;
}
[data-theme="dark"] body,
[data-theme="dark"] .menu-page,
[data-theme="dark"] .menu-topbar,
[data-theme="dark"] .category-bar,
[data-theme="dark"] .bottom-nav { background: var(--menu-surface); }

@media (max-width: 760px) {
  .menu-cover { height: 255px; }
  .menu-cover-overlay { align-items: flex-start; padding: 1.25rem; }
  .menu-cover .menu-logo { width: 58px; height: 58px; }
  .menu-business-name { font-size: 1.65rem; }
  .menu-topbar {
    grid-template-columns: auto 1fr auto;
    gap: .7rem;
    min-height: 62px;
    padding: .65rem 1rem;
  }
  .search-wrap { grid-column: 1 / -1; grid-row: 2; }
  .menu-topbar { padding-bottom: .8rem; }
  .category-bar { top: 105px; }
  .category-tabs { gap: .4rem; }
  .cat-tab { padding: .58rem .75rem; }
  .menu-content { padding: 1.35rem 1rem; }
  .category-section { scroll-margin-top: 155px; margin-bottom: 3rem; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 138px; padding: .85rem; }
  .product-img, .product-img-placeholder { width: 108px; height: 108px; min-height: 108px; }
  .product-info { padding-right: .8rem; }
  .allergen-list { display: flex; max-height: 20px; }
  .bottom-nav { bottom: 0; width: 100%; }
  .popup-banner { top: 0; width: 100%; }
}

@media (max-width: 390px) {
  .table-pill svg { display: none; }
  .product-img, .product-img-placeholder { width: 96px; height: 96px; min-height: 96px; }
  .product-desc { -webkit-line-clamp: 2; }
  .allergen-list { display: none; }
}
