:root {
  --bg: #efeae1;
  --surface: #f7f4ee;
  --ink: #1c1714;
  --muted: #6f675f;
  --line: color-mix(in srgb, var(--ink) 18%, transparent);
  --wine: #7c2f2f;
  --accent-text: #7c2f2f;
  --wine-soft: color-mix(in srgb, var(--wine) 14%, var(--card));
  --olive: color-mix(in srgb, var(--ink) 55%, #2f8a4d);
  --olive-soft: color-mix(in srgb, var(--olive) 14%, var(--card));
  --gold: var(--accent-text);
  --warn: color-mix(in srgb, #c2410c 65%, var(--ink));
  --gold-soft: color-mix(in srgb, var(--gold) 14%, var(--card));
  --gutter: 16px;
  --topbar: calc(64px + env(safe-area-inset-top));
  --catbar: 48px;
  --serif: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", sans-serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", sans-serif;
  /* Tema belirteçleri: theme.php bunları yazdırır; buradaki değerler Klasik temayla aynıdır */
  --card: #ffffff;
  --sheet: #f7f4ee;
  --btn: #1c1714;
  --btn-text: #f7f4ee;
  --on-accent: #ffffff;
  --r: 1;
  --rb: 999px;
  --ri: 50%;
  --d: 1;
  --cols: 3;
  --logo-filter: none;
  --scheme: light;
  color-scheme: var(--scheme);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 2px;
  height: 2px;
}

::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ink) 35%, transparent);
  border-radius: 99px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

h1, h2, p, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a,
a:hover,
a:active,
a:visited {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--wine-soft);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app {
  width: min(720px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  background: var(--bg);
  position: relative;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--topbar);
  padding: env(safe-area-inset-top) 18px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: min(calc(11px * var(--r)), var(--rb));
  background: var(--btn);
  color: var(--btn-text);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
  flex: none;
}

.brand small {
  display: block;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.55rem;
  color: var(--muted);
  font-weight: 500;
}

.brand h1 {
  display: block;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--ri);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  flex: none;
}

.icon-btn svg,
.sheet-close svg {
  width: 18px;
  height: 18px;
}

/* Arama: kutu, sağdaki butonun yerinden sola doğru açılır; logo kayarak çekilir. */
.brand {
  transition: opacity 0.28s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.topbar.is-searching .brand {
  opacity: 0;
  transform: translateX(-18px);
  pointer-events: none;
}

.search {
  position: absolute;
  top: env(safe-area-inset-top);
  bottom: 0;
  left: max(18px, env(safe-area-inset-left));
  right: calc(max(18px, env(safe-area-inset-right)) + 52px);
  height: 42px;
  margin: auto 0;
  display: flex;
  align-items: center;
  clip-path: inset(0 0 0 100% round 21px);
  opacity: 0;
  transition: clip-path 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease 0.05s;
}

.topbar.is-searching .search {
  clip-path: inset(0 0 0 0 round 21px);
  opacity: 1;
}

.search-glyph {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}

.search input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border-radius: var(--rb);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 16px 0 40px;
  font-size: 16px;
  transform: translateX(24px);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.topbar.is-searching .search input {
  transform: none;
}

.search input::placeholder {
  color: var(--muted);
}

.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-toggle {
  position: relative;
  margin-left: auto;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.search-toggle svg {
  grid-area: 1 / 1;
  transition: opacity 0.25s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-toggle .i-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.topbar.is-searching .search-toggle {
  background: var(--btn);
  border-color: var(--btn);
  color: var(--btn-text);
}

.topbar.is-searching .search-toggle .i-search {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.topbar.is-searching .search-toggle .i-close {
  opacity: 1;
  transform: none;
}

/* Ana ekran bölüm başlıkları: "Öne çıkanlar", "Kategoriler". */
.home-label {
  font-family: var(--serif);
  padding: 20px var(--gutter) 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Öne çıkan ürün kartları: yana kayar, sıradaki kartın kenarı görünür.
   Yatay sürüklemeyi enableSwipe yönetir (fare + parmak); dikey kaydırma sayfada kalır. */
.feature-row {
  display: flex;
  gap: 12px;
  padding: 0 var(--gutter) 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-y;
  cursor: grab;
}

.feature-row.is-dragging {
  cursor: grabbing;
}

.feature-row::-webkit-scrollbar {
  display: none;
}

.feature {
  position: relative;
  flex: 0 0 84%;
  aspect-ratio: 5 / 4;
  max-height: 62vh;
  max-height: 62svh;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: min(calc(24px * var(--r)), var(--rb));
  text-align: left;
  color: #f7f4ee;
  background: var(--surface);
  transition: transform 0.2s ease;
}

.feature-row.is-single .feature {
  flex-basis: 100%;
}

.feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Yazı her fotoğrafta okunsun diye alttan koyulaşan perde. */
.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 14, 12, 0.88) 0%, rgba(18, 14, 12, 0.45) 42%, transparent 72%);
}

.feature-body {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  gap: 3px;
  padding: 18px;
}

.feature-kicker {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8d3ad;
}

.feature-name {
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}



.feature:active {
  transform: scale(0.98);
}

/* Geniş ekranda iki kart yan yana, üçüncünün kenarı görünür. */
@media (min-width: 560px) {
  .feature {
    flex-basis: 46%;
    aspect-ratio: 4 / 3;
  }

  .feature-row.is-single .feature {
    aspect-ratio: 16 / 9;
  }
}


.result-count {
  padding: 12px var(--gutter) 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.section {
  padding: 4px var(--gutter) 6px;
}

.section-title {
  padding: 22px 0 14px;
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cats {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 14px 10px;
  padding: 0 var(--gutter) 4px;
}

.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.cat-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: min(calc(18px * var(--r)), var(--rb));
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(166, 132, 86, 0.28), transparent 60%),
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Görseli olmayan kategori: adının baş harfi. */
.cat-img[data-letter]::after {
  content: attr(data-letter);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 9vw, 2.4rem);
  font-weight: 500;
  color: var(--gold);
}

.cat-name {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* Ürün listesi: kategoriye ya da aramaya basınca alttan açılan panel. */
body.panel-open {
  overflow: hidden;
}

.panel {
  position: fixed;
  z-index: 40;
  top: var(--topbar);
  bottom: 0;
  left: 50%;
  width: min(720px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: min(calc(26px * var(--r)), var(--rb)) min(calc(26px * var(--r)), var(--rb)) 0 0;
  box-shadow: 0 -18px 50px rgba(28, 23, 20, 0.18), 0 0 0 1px rgba(28, 23, 20, 0.06);
  transform: translate(-50%, 104%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.panel.is-on {
  transform: translate(-50%, 0);
}

.panel.is-dragging {
  transition: none;
}

.panel-head {
  flex: none;
  padding: 8px 0 0;
  border-bottom: 1px solid var(--line);
  touch-action: none;
  cursor: grab;
}

.panel-grip {
  width: 40px;
  height: 4px;
  margin: 0 auto 4px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--ink) 18%, transparent);
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: max(10px, env(safe-area-inset-right));
}

.panel-close {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--ri);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
}

.panel-close svg {
  width: 20px;
  height: 20px;
}

.panel-scroll {
  position: relative;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
}

.catbar {
  flex: 1;
  min-width: 0;
  height: var(--catbar);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px 0 max(var(--gutter), env(safe-area-inset-left));
  overflow-x: auto;
  scrollbar-width: none;
  touch-action: pan-x;
  cursor: auto;
}

/* Panel açılınca başlıklar ve ürünler sırayla yukarı süzülür. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

#menu.is-entering .section-title,
#menu.is-entering .item {
  animation: rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(140ms + var(--i, 0) * 40ms);
}
.catbar::-webkit-scrollbar {
  display: none;
}

.catbar .chip {
  flex: none;
  padding: 7px 12px;
  border-radius: var(--rb);
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.catbar .chip.is-on {
  background: var(--btn);
  color: var(--btn-text);
  font-weight: 500;
}

@media (max-width: 299px) {
  .cats {
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  }
}

@media (min-width: 560px) {
  .cats {
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
    gap: 18px 14px;
  }
}

.item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: calc(13px * var(--d)) 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.item-name {
  min-width: 0;
  flex: 1;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.item-price {
  font-weight: 600;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.item-desc {
  margin-top: 4px;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--muted);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.pill {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: var(--rb);
  background: var(--wine-soft);
  color: var(--accent-text);
  font-weight: 500;
}

.pill.tag-new {
  background: var(--gold-soft);
  color: var(--accent-text);
}

.pill.tag-spicy {
  background: color-mix(in srgb, #c2410c 14%, var(--card));
  color: color-mix(in srgb, #9a3412 55%, var(--ink));
}

.pill.tag-seasonal {
  background: var(--olive-soft);
  color: var(--olive);
}

.footnote {
  margin: 10px 8px 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.empty {
  padding: 56px var(--gutter) 36px;
  text-align: center;
}

.empty p {
  font-family: var(--serif);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.empty button {
  margin-top: 14px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  font-size: 0.95rem;
}

/* Alt bilgi: kart yok; ince çizginin altında ortalanmış üç sade satır. */
.footer {
  margin: 36px var(--gutter) calc(104px + env(safe-area-inset-bottom));
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-align: center;
}

.footer svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.wifi {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.88rem;
}

.wifi-icon {
  display: grid;
  color: var(--gold);
}

.wifi-name {
  color: var(--muted);
}

.wifi-dot {
  color: var(--muted);
}

.wifi strong {
  font-weight: 600;
  letter-spacing: 0.02em;
  user-select: all;
}

.copy {
  width: 30px;
  height: 30px;
  margin-left: 2px;
  border-radius: var(--ri);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.copy span {
  display: grid;
  grid-area: 1 / 1;
}

.copy .copy-done,
.copy.is-done .copy-idle {
  display: none;
}

.copy.is-done .copy-done {
  display: grid;
  animation: pop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer .copy.is-done {
  color: var(--olive);
}

@media (hover: hover) {
  .footer .copy:hover {
    background: var(--surface);
    color: var(--ink);
  }
}

@keyframes pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  transition: opacity 0.2s ease;
}

.social-icon {
  width: 20px;
  height: 20px;
  border-radius: min(calc(6px * var(--r)), var(--rb));
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
  background: radial-gradient(circle at 30% 110%, #fdd36b 0%, #f77737 30%, #e1306c 58%, #c13584 75%, #833ab4 100%);
}

.footer .social-icon svg {
  width: 13px;
  height: 13px;
}

.footer .social:active {
  opacity: 0.6;
}

.legal {
  margin-top: 12px;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
}

.legal-more {
  margin: 4px 0 0;
}

.legal-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-link:hover,
.legal-link:focus-visible {
  color: var(--ink);
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(20, 16, 12, 0.48);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.backdrop.is-on {
  opacity: 1;
}

.sheet {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 0;
  width: min(720px, 100%);
  max-height: min(86vh, 640px);
  max-height: min(86dvh, 640px);
  overflow: auto;
  background: var(--sheet);
  color: var(--ink);
  border-radius: min(calc(28px * var(--r)), var(--rb)) min(calc(28px * var(--r)), var(--rb)) 0 0;
  padding: 10px max(22px, env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
  box-shadow: 0 -20px 60px rgba(20, 16, 12, 0.22);
  transform: translateX(-50%) translateY(105%);
  transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sheet.is-on {
  transform: translateX(-50%) translateY(0);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--ink) 16%, transparent);
  margin: 2px auto 10px;
}

.sheet-photos {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sheet-photos::-webkit-scrollbar,
.lb-track::-webkit-scrollbar {
  display: none;
}

.sheet-photo {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: min(calc(14px * var(--r)), var(--rb));
  overflow: hidden;
  background: color-mix(in srgb, var(--ink) 8%, var(--card));
}

.sheet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  /* Arka plan görünsün ama bulanık: yazılar fotoğrafla yarışmasın. */
  background: rgba(28, 23, 20, 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
  backdrop-filter: blur(22px) saturate(1.1);
  color: #f6f1e8;
}

.lb-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  touch-action: pan-y;
  cursor: grab;
}

.lb-track.is-dragging {
  cursor: grabbing;
}

.lb-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  padding: calc(64px + env(safe-area-inset-top)) 0 calc(56px + env(safe-area-inset-bottom));
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.lb-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: #f6f1e8;
}

.lb-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.lb-btn svg {
  width: 20px;
  height: 20px;
}

.lb-close {
  top: calc(12px + env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
}

/* transform yerine top: genel button:active kuralı transform'u sıfırlayıp okları kaydırıyordu. */
.lb-prev,
.lb-next {
  top: calc(50% - 22px);
}

.lb-prev {
  left: max(12px, env(safe-area-inset-left));
}

.lb-next {
  right: max(12px, env(safe-area-inset-right));
}

.lb-count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(18px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: #f6f1e8;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.sheet-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: var(--ri);
  background: var(--card);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}

.sheet-cat {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 500;
}

.sheet h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.55rem, 6vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 4px 48px 6px 0;
  text-wrap: balance;
}

.sheet-price {
  font-size: 1.05rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.sheet-desc {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 300;
}

.sheet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.sheet-tags li {
  background: var(--card);
  border-radius: var(--rb);
  padding: 4px 9px;
  font-size: 0.78rem;
  border: 1px solid var(--line);
}

.sheet-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

.noscript {
  padding: 24px;
  text-align: center;
}

body.locked {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 800px) {
  :root {
    --gutter: 28px;
  }

  body {
    background:
      radial-gradient(circle at 50% -10%, color-mix(in srgb, var(--bg) 70%, #fff), color-mix(in srgb, var(--bg) 88%, #000) 58%);
  }

  .app {
    box-shadow:
      0 0 0 1px rgba(48, 34, 20, 0.05),
      0 30px 80px rgba(48, 34, 20, 0.1);
  }

  .footer {
    margin-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

button:hover,
button:active,
input:hover,
input:focus {
  filter: none;
  transform: none;
  opacity: 1;
}

.item:hover,
.item:active,
.empty button:hover,
.empty button:active {
  background: transparent;
  background-image: none;
  box-shadow: none;
}

.icon-btn:hover,
.icon-btn:active {
  background: var(--surface);
  border-color: var(--line);
  color: inherit;
}

.sheet-close:hover,
.sheet-close:active {
  background: var(--card);
  border-color: var(--line);
  color: inherit;
}


.search input:hover {
  background: var(--surface);
  border-color: var(--line);
}

@media print {
  .topbar,
  .allergen-row,
  .featured,
  .cats,
  .catbar,
  .sheet,
  .backdrop,
  .copy,
  .result-count {
    display: none !important;
  }

  body,
  .app {
    background: #fff;
    box-shadow: none;
    width: auto;
  }

  .footer {
    break-inside: avoid;
  }

  .item {
    break-inside: avoid;
  }
}

/* İndirimli fiyat: eski fiyat üstü çizili, yeni fiyat ve yüzde rozeti */
.price-sale {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 2px 8px;
}

.price-old {
  color: var(--muted);
  font-size: 0.82em;
  font-weight: 400;
  text-decoration: line-through;
}

.price-new {
  color: var(--accent-text);
}

.price-off {
  padding: 1px 7px;
  border-radius: var(--rb);
  background: var(--wine-soft);
  color: var(--accent-text);
  font-size: 0.72em;
  font-weight: 700;
}

/* Dil düğmesi */
.lang-btn {
  color: var(--ink);
  transition: opacity 0.2s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.lang-btn.is-set {
  background: var(--btn);
  border-color: var(--btn);
  color: var(--btn-text);
}

.lang-btn[hidden] {
  display: none;
}

.topbar.is-searching .lang-btn {
  opacity: 0;
  pointer-events: none;
}

/* Alerjen filtresi */
.allergen-hint {
  margin-bottom: 10px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.allergen-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.allergen-chip {
  padding: 7px 12px;
  border-radius: var(--rb);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 0.82rem;
  color: var(--ink);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.allergen-chip.is-active {
  background: var(--wine-soft);
  border-color: var(--wine);
  color: var(--accent-text);
  font-weight: 600;
}

/* Zamanlı kategori */
.schedule-note {
  margin: 8px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--olive);
}

.schedule-note.is-off {
  color: var(--accent-text);
}

.section.is-off .item {
  opacity: 0.55;
}

/* Ürün penceresi: indirim tarihi, seçenekler, besin bilgisi, alerjenler */
.sheet-until {
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-text);
}

.sheet-options {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.sheet-options li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.sheet-options li span:last-child {
  font-weight: 600;
}

.sheet-facts {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.sheet-allergens {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: min(calc(12px * var(--r)), var(--rb));
  background: var(--wine-soft);
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--accent-text);
}

.sheet-allergens[hidden],
.sheet-until[hidden],
.sheet-options[hidden],
.sheet-facts[hidden] {
  display: none;
}

.sheet-ingredients {
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink);
}

.sheet-ingredients[hidden] {
  display: none;
}

/* Büyük yazı modu: boyutlar rem tabanlı, kök yazıyı büyütmek hepsini ölçekler */
html.large-text {
  font-size: 122%;
}

.text-btn {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.text-btn[aria-pressed="true"] {
  background: var(--btn);
  color: var(--btn-text);
}

.topbar.is-searching .text-btn {
  opacity: 0;
  pointer-events: none;
}

/* Restoran logosu (panel › Ayarlar › Marka) */
/* Logo olduğu gibi görünür: kutu, zemin ve çerçeve yok; oranı korunur. */
.mark.has-logo {
  width: auto;
  height: auto;
  background: none;
  border: 0;
  border-radius: 0;
}

/* Yükseklik panelden (--logo-h, varsayılan 40px); dar ekranda butonlara yer kalacak kadar genişlikle sınırlı, oran korunur. */
.mark.has-logo img {
  display: block;
  width: auto;
  height: auto;
  max-height: var(--logo-h, 40px);
  color: var(--ink); /* "Tema rengi" süzgeci (url(#logo-tint)) currentColor ile boyar */
  filter: var(--logo-filter);
  max-width: calc(100vw - 214px);
}

/* Çok bakılan rozeti */
.pill.tag-trending {
  background: var(--wine-soft);
  color: var(--accent-text);
  font-weight: 600;
}

/* Garson çağır: yalnızca masa QR'ından gelen misafirde görünür */
.call-btn {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--rb);
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(28, 23, 20, 0.14);
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.call-btn[hidden] {
  display: none;
}

.call-btn:disabled {
  opacity: 0.8;
  background: var(--olive-soft);
}

/* Ürün penceresinde bağlantı paylaşma */
/* ---------- Sipariş: liste, ürün penceresi, sepet ---------- */
.item-wrap {
  position: relative;
}

.item-wrap.can-order .item {
  padding-right: 48px; /* "+" 34px + fiyatla arası 14px; fiyat butona yakın durur */
  transition: padding-right 0.38s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.15s ease; /* fiyat "+" yanında durur, kontrol açılınca yumuşakça sola kayar */
  min-height: calc(64px * var(--d));
  justify-content: center;
}

.item-wrap.is-open .item {
  padding-right: 112px; /* açık kontrol 98px (çöp 40 + adet 24 + "+" 34) + 14px */
}

.add-ctl {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
}

.add-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--ri);
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Seçenekli ürün: sepetteki adet "+" yerinde dolu yuvarlakta görünür */
.add-ctl.is-in:not(.has-dec) .add-btn {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--on-accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.add-btn:disabled,
.mini-dec:disabled {
  opacity: 0.3;
}

/* "+" sağda sabit kalır; sepete girince soldan çöp kutusu ve adet açılır, çıkınca kapanır. */
.mini-step {
  display: inline-flex;
  align-items: center;
  height: 34px;
  border-radius: var(--rb);
  background: transparent;
  color: var(--accent-text);
  transition: background-color 0.3s ease;
}

.add-ctl.has-dec .mini-step {
  background: var(--wine-soft);
}

.add-ctl.has-dec .add-btn {
  background: transparent;
  border-color: transparent;
  color: var(--accent-text);
}

.mini-dec,
.mini-qty {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.add-ctl.has-dec .mini-dec,
.add-ctl.has-dec .mini-qty {
  opacity: 1;
}

.add-ctl.has-dec .mini-dec {
  max-width: 32px;
}

.add-ctl.has-dec .mini-qty {
  max-width: 24px;
}

.mini-dec {
  width: 32px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--ri);
  color: inherit;
  font-size: 1.2rem;
  line-height: 1;
}

.mini-qty {
  width: 24px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Alttaki çubuk aşağıdan süzülerek gelir */
@keyframes barIn {
  from {
    opacity: 0;
    translate: 0 16px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.cart-bar:not([hidden]),
.tab-btn:not([hidden]) {
  animation: barIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.call-btn,
.tab-btn {
  transition: bottom 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, background-color 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .mini-dec,
  .mini-qty,
  .item-wrap.can-order .item,
  .cart-bar,
  .tab-btn,
  .call-btn {
    transition: none;
    animation: none;
  }
}

/* Öne çıkanlar: ad yanında küçük renkli yıldız; adı ürün penceresinde */
.stars {
  display: inline-flex;
  gap: 1px;
  margin-left: 6px;
  vertical-align: 2px;
}

.star {
  display: inline-flex;
  font-style: normal;
  font-size: 0.72rem;
  line-height: 1;
  color: #9aa0a6;
}

.star svg {
  width: 1em;
  height: 1em;
}

.star-trending { color: #e8590c; }
.star-popular { color: #d9a21b; }
.star-discount { color: #2f9e44; }
.star-new { color: #1c7ed6; }
.star-spicy { color: #e03131; }
.star-seasonal { color: #0ca678; }

.sheet-tags .star {
  font-size: 0.95rem;
}

.order-box {
  margin-top: 12px;
  padding: 8px;
  border-radius: min(calc(22px * var(--r)), var(--rb));
  background: var(--card);
  border: 1px solid var(--line);
}

.order-box[hidden] {
  display: none;
}

.order-off {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-text);
}

.order-choices {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.order-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: min(calc(12px * var(--r)), var(--rb));
  font-size: 0.95rem;
  cursor: pointer;
}

.order-choice span:nth-of-type(1) {
  flex: 1;
}

.order-choice span:last-child {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.order-choice:has(input:checked) {
  border-color: var(--ink);
  background: var(--surface);
}

.order-choice input {
  accent-color: var(--wine);
}

.order-row {
  display: flex;
  flex-wrap: wrap; /* çok dar alanda ya da büyük yazıda düğme stepper'ın altına tam genişlikte iner */
  align-items: center;
  gap: 12px;
}

.order-row .order-add { /* alttaki ".order-add, .order-send { flex: 1 }" kuralını geçmek için .order-row ile */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1 1 10.5rem;
  min-width: 0;
  padding: 0 16px;
}

.order-add__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-add__price {
  flex: none;
  padding-left: 12px;
  border-left: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--rb);
  background: var(--card);
}

.stepper button {
  width: 32px;
  height: 32px;
  border-radius: var(--ri);
  background: var(--surface);
  font-size: 1.1rem;
  line-height: 1;
}

.stepper span {
  min-width: 26px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.order-add,
.order-send {
  flex: 1;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--rb);
  background: var(--btn);
  color: var(--btn-text);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: opacity 0.2s ease;
}

.order-send {
  width: 100%;
  margin-top: 14px;
}

.order-send__price {
  display: inline-block; /* adet/fiyat kayma animasyonu (roll) için */
  font-variant-numeric: tabular-nums;
}

/* Hata ve onay mesajları aniden değil, hafifçe süzülerek belirir. */
.cart-error:not([hidden]) {
  animation: noteIn 0.28s var(--ease-out);
}

@keyframes noteIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.order-send:disabled {
  opacity: 0.55;
  cursor: progress;
}

.cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  margin: 0 auto; /* transform değil: genel button:hover/:active kuralı transform'u sıfırlayıp çubuğu kaydırıyordu */
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 46;
  width: min(680px, calc(100% - 28px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 8px 8px;
  border-radius: var(--rb);
  background: var(--btn);
  color: var(--btn-text);
  font-size: 0.92rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 24px rgba(28, 23, 20, 0.26);
}

.cart-bar__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cart-bar__label b {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border-radius: var(--rb);
  background: var(--wine);
  color: var(--on-accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-bar[hidden] {
  display: none;
}

body.has-cart .footer {
  margin-bottom: calc(168px + env(safe-area-inset-bottom));
}

body.has-cart .call-btn {
  bottom: calc(82px + env(safe-area-inset-bottom));
}

.cart-view[hidden] {
  display: none;
}

.sheet--cart > :not(.sheet-handle):not(.sheet-close):not(#sheetCat):not(#sheetTitle):not(.cart-view) {
  display: none !important;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line__name span {
  font-weight: 500;
}

.cart-line__name small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.cart-line__name small.is-off {
  color: var(--accent-text);
  font-weight: 600;
}

.cart-line__price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cart-empty {
  padding: 18px 0;
  color: var(--muted);
}

.cart-fields {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.cart-fields label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

.cart-fields input,
.cart-fields textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: min(calc(14px * var(--r)), var(--rb));
  background: var(--card);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}

.cart-fields input:focus,
.cart-fields textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

/* QR'dan gelen masa kilitli: değiştirilemez görünür, altındaki bağlantıyla istenirse açılır. */
.cart-fields input[readonly] {
  background: var(--surface);
  font-weight: 600;
}

.table-change {
  justify-self: start;
  min-height: 44px;
  margin-top: -6px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--accent-text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.cart-error {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: min(calc(12px * var(--r)), var(--rb));
  background: var(--wine-soft);
  color: var(--accent-text);
  font-size: 0.88rem;
  font-weight: 600;
}

.cart-error[hidden] {
  display: none;
}

.cart-note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.order-done {
  padding: 8px 0 4px;
  text-align: center;
}

.order-done__mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--card);
  display: grid;
  place-items: center;
}

.order-done__mark svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.4;
}

.order-done h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
}

.order-done p {
  margin: 4px 0;
}

/* ---------- Hesabım: masa toplamı ---------- */
.tab-btn {
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--rb);
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(28, 23, 20, 0.18);
}

.tab-btn strong {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: var(--accent-text);
}

.tab-btn[hidden] {
  display: none;
}

body.has-cart .tab-btn {
  bottom: calc(82px + env(safe-area-inset-bottom));
}

.tab-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0 14px;
  border-bottom: 2px solid var(--ink);
  font-size: 1rem;
}

.tab-total strong {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tab-order {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.tab-order__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

.tab-order__head b {
  color: var(--ink);
}

.tab-order ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.tab-order li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  font-size: 0.93rem;
  font-variant-numeric: tabular-nums;
}

.tab-order__sum {
  margin-top: 4px;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.order-done__tab {
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: min(calc(12px * var(--r)), var(--rb));
  background: var(--surface);
}

.order-done__tab strong {
  color: var(--accent-text);
}

/* Yüzen düğmeler (Siparişi ver, Garson çağır, Hesabım) ürün listesi panelinin (40) üstünde, açılan pencerenin (50+) altında durur;
   listenin son satırları düğmelerin altında kalmasın. */
.panel-scroll {
  padding-bottom: calc(var(--float-h, 96px) + 24px + env(safe-area-inset-bottom)); /* --float-h: yüzen düğmelerin ölçülen yüksekliği (js/app.js) */
  scroll-padding-bottom: calc(var(--float-h, 96px) + 24px);
}

body.has-cart .panel-scroll {
  padding-bottom: calc(var(--float-h, 164px) + 24px + env(safe-area-inset-bottom));
  scroll-padding-bottom: calc(var(--float-h, 164px) + 24px);
}

/* Dar ekranda ya da büyük yazıda iki yüzen düğme yan yana sığsın: her biri genişliğin yarısını geçmez, yazı satır atlar. */
.tab-btn,
.call-btn {
  max-width: calc(50% - 22px);
  line-height: 1.2;
  text-align: center;
}

/* ---------- Alerjen filtresi: panelin üstünde tek satır, seçim penceresi alt kabukta ---------- */
.allergen-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px var(--gutter) 2px;
}

.allergen-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--rb);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.allergen-btn svg {
  flex: none;
}

.allergen-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.allergen-btn.is-set {
  border-color: var(--wine);
  background: var(--wine-soft);
  color: var(--accent-text);
}

.allergen-btn b {
  flex: none;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: var(--ri);
  background: var(--wine);
  color: var(--on-accent);
  font-size: 0.72rem;
  font-weight: 600;
}

.allergen-x {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--ri);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
}

.item-note {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  font-weight: 500;
}

.item-note.is-safe {
  color: var(--olive);
}

.item-note svg {
  width: 1.1em;
  height: 1.1em;
  margin-right: 4px;
  vertical-align: -0.2em;
}

.item-note.is-unknown {
  color: var(--warn);
}

.cart-view .allergen-hint {
  margin: 8px 0 14px;
  font-size: 0.88rem;
}

.cart-view .allergen-chip {
  padding: 9px 14px;
  font-size: 0.9rem;
}

/* ---------- Dil penceresi (Vulfes Studio dil paneliyle aynı düzen: bayrak, ad, seçili işareti) ---------- */
.lang-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border-radius: min(calc(14px * var(--r)), var(--rb));
  border: 1px solid var(--line);
  background: var(--card);
  text-align: left;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.lang-flag {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: min(8px, var(--rb));
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.lang-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-item svg {
  flex: none;
}

.lang-item.is-active {
  border-color: var(--wine);
  background: var(--wine-soft);
  color: var(--accent-text);
  font-weight: 600;
}

.lang-note {
  margin-top: 14px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Google Translate'in kendi arayüzünü gizle (Vulfes Studio ile aynı): üst çubuk, balon, vurgu, gövdeye eklediği boşluk.
   Gövde kilitliyken (alt pencere açık) top değeri kaydırma konumunu tuttuğu için ona dokunulmaz. */
.goog-te-banner-frame,
.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

#google_translate_element {
  display: none !important;
}

html body:not(.locked) {
  top: 0 !important;
}

/* ---------- Dokunma deneyimi ---------- */
/* Alt pencere tutamacı: görünen çubuk küçük, dokunma alanı geniş; touch-action: none ile sürükleme kaydırmaya karışmaz. */
.sheet-handle {
  position: relative;
  touch-action: none;
  cursor: grab;
}

.sheet-handle::before {
  content: "";
  position: absolute;
  inset: -14px -90px -18px;
}

.sheet.is-dragging {
  transition: none;
}

/* Dokunma alanları görünen boyuttan büyük (≈44px): "+", adet düğmeleri, kapat. */
.add-btn,
.stepper button,
.allergen-x {
  position: relative;
}

.add-btn::after,
.stepper button::after,
.allergen-x::after,
.sheet-close::after {
  content: "";
  position: absolute;
  inset: -6px; /* çerçeveli düğmelerde iç kenardan başladığı için 34→44px */
}

.mini-dec {
  height: 44px;
  margin: -5px 0;
}

/* Basma geri bildirimi. Genel button:active kuralı (transform/filter sıfırlar) daha düşük özgüllükte; bunlar onu ezer. */
.mini-dec {
  transition: max-width 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, transform 0.15s ease;
}

.call-btn,
.tab-btn {
  transition: bottom 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.item {
  transition: background-color 0.15s ease;
}

.add-btn:not(:disabled):active,
.mini-dec:not(:disabled):active,
.stepper button:active {
  transform: scale(0.88);
}

.order-send:not(:disabled):active,
.order-add:active,
.cart-bar:active,
.call-btn:active,
.tab-btn:active,
.allergen-btn:active,
.allergen-x:active,
.allergen-chip:active,
.lang-item:active {
  transform: scale(0.97);
}

.item:active {
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}

/* Öne çıkanlar: sayfa noktaları; aktif nokta uzar */
.feature-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.feature-dots i {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}

.feature-dots i.is-on {
  width: 18px;
  background: var(--ink);
}

/* Sepet adedi değişince yuvarlak hafifçe sıçrar */
@keyframes bump {
  40% {
    transform: scale(1.28);
  }
}

.cart-bar__label b.is-bump {
  animation: bump 0.32s ease;
}

/* ---------- Hareket ve düğme dili ----------
   Tek eğri ailesi: --ease (renk/gölge), --ease-out (kayma/açılma, yumuşak iniş). Süreler: basma 0.16s, renk 0.24s, kayma 0.45s. */
:root {
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --hairline: color-mix(in srgb, var(--ink) 14%, transparent);
  --shadow-soft: 0 1px 2px rgba(28, 23, 20, 0.06);
}

.icon-btn,
.panel-close,
.sheet-close,
.allergen-btn,
.allergen-x,
.allergen-chip,
.lang-item,
.add-btn,
.stepper button,
.order-send,
.order-add,
.order-choice,
.copy,
.chip {
  transition: background-color 0.24s var(--ease), border-color 0.24s var(--ease), color 0.24s var(--ease), box-shadow 0.24s var(--ease), transform 0.16s var(--ease-out), opacity 0.2s var(--ease);
}

/* Çerçeve daha ince, yüzeye hafif gölge: düğmeler zeminden "kalkık" ama gürültüsüz. */
.icon-btn,
.panel-close,
.sheet-close,
.allergen-btn,
.allergen-x,
.lang-item,
.add-btn,
.stepper {
  border-color: var(--hairline);
  box-shadow: var(--shadow-soft);
}

.add-ctl.has-dec .add-btn {
  box-shadow: none;
}

/* Birincil eylem: koyu hap, yumuşak gölge ve ince üst ışık */
.order-send,
.order-add {
  min-height: 50px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 22px -10px rgba(28, 23, 20, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.order-send:disabled {
  box-shadow: none;
}

/* Fare olan cihazlarda üzerine gelince yalnızca renk/çerçeve/gölge değişir (kayma ya da büyüme yok). */
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover,
  .panel-close:hover,
  .sheet-close:hover,
  .allergen-btn:not(.is-set):hover,
  .allergen-x:hover,
  .lang-item:not(.is-active):hover,
  .add-btn:not(:disabled):hover,
  .stepper button:hover {
    /* Beyaza dönmez: düğme kendi renginde kalır, üstüne yazı renginden çok hafif bir ton biner (box-shadow geçişi yumuşak çalışır). */
    border-color: color-mix(in srgb, var(--ink) 30%, transparent);
    box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--ink) 6%, transparent), var(--shadow-soft);
  }

  .order-send:not(:disabled):hover,
  .order-add:hover {
    box-shadow: 0 14px 26px -10px rgba(28, 23, 20, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
}

.icon-btn:active,
.panel-close:active,
.sheet-close:active {
  transform: scale(0.92);
}

/* Arka plan: hafif bulanıklık, pencere "öne çıkar" */
.backdrop {
  background: rgba(20, 16, 12, 0.42);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transition: opacity 0.35s var(--ease);
}

/* Alt pencere: daha uzun, yumuşak iniş */
.sheet {
  transition: transform 0.45s var(--ease-out);
}

/* Kaydırınca üst çubuk ve panel başlığı hafif gölge alır: içerik altlarından geçtiği anlaşılır. */
.topbar,
.panel-head {
  transition: box-shadow 0.3s var(--ease);
}

.topbar.is-scrolled {
  box-shadow: 0 1px 0 var(--hairline), 0 10px 24px -18px rgba(28, 23, 20, 0.35);
}

.panel-head.is-scrolled {
  box-shadow: 0 12px 24px -20px rgba(28, 23, 20, 0.4);
}

/* Alt çubuktaki ok */
.cart-bar > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-bar svg {
  opacity: 0.6;
}

/* Fotoğraflar yüklenince yumuşakça belirir */
.cat-img img,
.feature img {
  transition: opacity 0.5s var(--ease);
}

img.is-pending {
  opacity: 0;
}

/* Sipariş durumu bildirimi (panelde "Hazırlanıyor" / "Teslim edildi" olunca) */
.order-toast {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  left: 50%;
  z-index: 80;
  width: min(92vw, 420px);
  border: 1px solid var(--line);
  border-radius: min(calc(14px * var(--r)), var(--rb));
  background: var(--card);
  color: var(--ink);
  display: flex;
  align-items: stretch;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(28, 23, 20, 0.22);
  transform: translate(-50%, -140%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, visibility 0s 0.35s;
}

.order-toast.is-on {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.order-toast__open,
.order-toast__x {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.order-toast__open {
  flex: 1;
  padding: 14px 4px 14px 18px;
}

.order-toast__x {
  flex: none;
  width: 44px;
  font-size: 1.4rem;
  text-align: center;
}

.notify-ask svg {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -4px;
}

.notify-ask {
  display: block;
  margin: 12px auto 0;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--rb);
  background: transparent;
  color: var(--ink);
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .order-toast {
    transition: none;
  }
}

/* Hesabım: ilk 2 dakikada müşteri kendi siparişini iptal edebilir (iki dokunuşlu). */
.tab-cancel {
  min-height: 44px;
  margin-top: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--rb);
  background: transparent;
  color: var(--accent-text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.24s var(--ease), color 0.24s var(--ease), border-color 0.24s var(--ease);
}

.tab-cancel.is-armed {
  border-color: #b91c1c;
  background: #b91c1c;
  color: #fff;
}

/* ---- Denetim düzeltmeleri: taşma, odak, kontrast, geniş ekran ---- */
.item-name, .sheet h2, .cart-line__name, .feature-name, .sheet-options li span:first-child, .order-choice span { overflow-wrap: anywhere; min-width: 0; }
.brand > div { min-width: 0; }
.brand h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-close { position: sticky; float: right; top: 12px; margin: 2px -4px -34px 0; z-index: 2; }
.cart-fields input, .cart-fields textarea, .search input { border-color: color-mix(in srgb, var(--ink) 55%, transparent); }
.cart-fields ::placeholder { color: var(--muted); opacity: 1; }
.cart-fields textarea { resize: vertical; }
.search input:focus-visible { outline-offset: -3px; }
.section.is-off .item { opacity: 0.8; }
.item-desc, .sheet-desc { font-weight: 400; }
.feature::after { background: linear-gradient(to top, rgba(18, 14, 12, 0.92) 0, rgba(18, 14, 12, 0.78) 50%, transparent 85%); }
.feature-kicker { color: #fff3dc; }
.lightbox :focus-visible { outline-color: #fff; }
.lang-flag { min-height: 24px; height: auto; }
.mini-qty { min-width: 24px; max-width: 3ch; }
.feature-row { padding-top: 6px; padding-bottom: 8px; }
.sheet-photos { padding: 6px 0; }
.search input { font-size: 1rem; }
::-webkit-scrollbar { width: 8px; height: 8px; }
.topbar.is-searching :is(.lang-btn, .text-btn) { visibility: hidden; transition: opacity 0.2s, visibility 0s 0.2s; }
.panel-scroll { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
@media (max-width: 340px) { .lang-list { grid-template-columns: 1fr; } }
/* Geniş ekranda yüzen düğmeler 720px'lik sütuna yaslansın */
@media (min-width: 800px) {
  .tab-btn { left: calc(50% - 360px + 16px); }
  .call-btn { right: calc(50% - 360px + 16px); }
}
/* Okunur boyut: 12px altı yazılar */
.brand small, .feature-kicker, .home-label, .legal, .sheet-cat, .lang-flag, .allergen-btn b { font-size: 0.75rem; }
@media print { .call-btn, .tab-btn, .cart-bar, .order-toast, .lightbox { display: none !important; } }

/* ---- Denetim 2: dokunma alanı, klavye, güvenli alan, RTL, büyük yazı ---- */
:root { --danger: #b91c1c; --on-danger: #fff; }

/* Arama kutusu .app içinde: güvenli alan dolgusunu .app zaten veriyor, burada tekrar sayılmaz */
.search { left: 18px; right: calc(18px + 56px); height: 44px; }
.search { clip-path: inset(0 0 0 100% round 22px); }
.topbar.is-searching .search { clip-path: inset(0 0 0 0 round 22px); }
.search input { height: 44px; font-size: 16px; }
.mark.has-logo img { max-width: calc(100vw - 226px); }

/* Üst çubuk ve panel düğmeleri 44px */
.icon-btn { width: 44px; height: 44px; }
.panel-close { width: 44px; height: 44px; }
.catbar { height: var(--catbar); }
.catbar .chip { min-height: 44px; display: inline-flex; align-items: center; }

/* Küçük düğmelerin dokunma alanı 44px'e tamamlanır */
.copy { position: relative; }
.copy::after { content: ""; position: absolute; inset: -7px; }
.allergen-btn, .allergen-x { min-height: 44px; height: auto; }
.allergen-x { width: 44px; }
.allergen-chip, .cart-view .allergen-chip { min-height: 44px; }
.notify-ask, .empty button { min-height: 44px; }
.empty button { padding: 10px 6px 4px; }
.social { min-height: 44px; }
.mini-dec { width: 40px; }
.add-ctl.has-dec .mini-dec { max-width: 40px; }

/* Klavye açıkken (--kb, JS yazar) alt öğeler klavyenin üstünde kalır */
.panel { bottom: var(--kb, 0px); }
.sheet { bottom: var(--kb, 0px); max-height: calc(min(86vh, 640px) - var(--kb, 0px)); max-height: calc(min(86dvh, 640px) - var(--kb, 0px)); }
.cart-bar { bottom: calc(14px + env(safe-area-inset-bottom) + var(--kb, 0px)); }
.call-btn, .tab-btn { bottom: calc(16px + env(safe-area-inset-bottom) + var(--kb, 0px)); }
body.has-cart .call-btn, body.has-cart .tab-btn { bottom: calc(82px + env(safe-area-inset-bottom) + var(--kb, 0px)); }
/* Yüzen düğmeler görünürken liste sonu düğmelerin altında kalmaz (JS ölçmese de) */
body:has(.call-btn:not([hidden]), .tab-btn:not([hidden]), .cart-bar:not([hidden])) .panel-scroll { padding-bottom: calc(var(--float-h, 84px) + 24px + env(safe-area-inset-bottom)); }

/* Okunur boyut: kalan küçük yazılar */
.pill, .item-note, .star, .price-off { font-size: 0.75rem; }
.price-off { font-size: 0.75rem; }

/* Kategori harfi dekoratif: ekran okuyucu okumaz */
.cat-img[data-letter]::after { content: attr(data-letter); content: attr(data-letter) / ""; }

/* Işık kutusu okunurluğu */
.lightbox { background: rgba(18, 14, 12, 0.86); }
.lb-btn { background: rgba(255, 255, 255, 0.24); }
.lb-count { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }

/* Sabit renkler tema belirtecine bağlandı */
.tab-cancel.is-armed { border-color: var(--danger); background: var(--danger); color: var(--on-danger); }
.panel { box-shadow: 0 -18px 50px color-mix(in srgb, var(--ink) 18%, transparent), 0 0 0 1px color-mix(in srgb, var(--ink) 6%, transparent); }
@media (min-width: 800px) {
  .app { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 5%, transparent), 0 30px 80px color-mix(in srgb, var(--ink) 10%, transparent); }
}
/* Yıldız renkleri kart zemininde en az 3:1 (koyulaştırıldı) */
.star-trending { color: #b84308; }
.star-popular { color: #8a6508; }
.star-discount { color: #237a36; }
.star-new { color: #1864ab; }
.star-spicy { color: #c92a2a; }
.star-seasonal { color: #087f5b; }

/* Büyük yazı modu: sabit yükseklikler kırpmasın */
html.large-text .feature { min-height: 240px; }
html.large-text .feature-name { font-size: 1.25rem; overflow-wrap: anywhere; }
html.large-text .order-add, html.large-text .order-send { min-height: 56px; }
html.large-text .cart-bar { padding-top: 10px; padding-bottom: 10px; }

/* Sağdan sola diller (Google Translate Arapça: html.translated-rtl) */
html.translated-rtl .item,
html.translated-rtl .feature,
html.translated-rtl .lang-item,
html.translated-rtl .order-toast__open { text-align: start; }
html.translated-rtl .item-wrap.can-order .item { padding-right: 0; padding-left: 48px; transition-property: padding-left, background-color; }
html.translated-rtl .item-wrap.is-open .item { padding-right: 0; padding-left: 112px; }
html.translated-rtl .add-ctl { right: auto; left: 0; }
html.translated-rtl .sheet-close { right: auto; left: 14px; float: left; margin: 2px 0 -34px -4px; }
html.translated-rtl .sheet h2 { margin: 4px 0 6px 48px; }
html.translated-rtl .lb-prev { left: auto; right: max(12px, env(safe-area-inset-right)); }
html.translated-rtl .lb-next { right: auto; left: max(12px, env(safe-area-inset-left)); }
html.translated-rtl .lb-close { right: auto; left: max(12px, env(safe-area-inset-left)); }
html.translated-rtl .search-glyph { left: auto; right: 14px; }
html.translated-rtl .search input { padding: 0 40px 0 16px; }
html.translated-rtl .tab-btn { left: auto; right: 16px; }
html.translated-rtl .call-btn { right: auto; left: 16px; }
html.translated-rtl .stars { margin-left: 0; margin-right: 6px; }
html.translated-rtl .copy { margin-left: 0; margin-right: 2px; }
html.translated-rtl .cart-bar svg { transform: scaleX(-1); }
