/* Bulvar Cafe — müşteri menüsü. Mobil öncelikli, marka rengi admin ayarlarından (--brand). */

:root {
  --brand: #7a4b2a;
  --on-brand: #ffffff;
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f2ede6;
  --border: #e8e1d8;
  --text: #1d1915;
  --muted: #74695f;
  --accent: color-mix(in oklab, var(--brand) 85%, black);
  --danger: #b42318;
  --danger-soft: #fdecea;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(40 25 10 / 0.05), 0 8px 24px rgb(40 25 10 / 0.06);
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141110;
    --surface: #1e1a17;
    --surface-2: #29231f;
    --border: #36302a;
    --text: #f3eee8;
    --muted: #a99d91;
    --accent: color-mix(in oklab, var(--brand) 55%, white);
    --danger: #f2877b;
    --danger-soft: #3d1f1b;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[x-cloak] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
img {
  display: block;
  max-width: 100%;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}

/* ------------------------------------------------------------------ Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 14px;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

/* ------------------------------------------------------------------ Durumlar */
.state {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
}
.state-error {
  min-height: 80dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.state-error h1 {
  margin: 12px 0 4px;
  font: 600 22px/1.2 var(--serif);
}
.state-error p {
  margin: 0 0 20px;
  color: var(--muted);
}
.state-icon {
  width: 40px;
  height: 40px;
  color: var(--muted);
}
.skeleton {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sk {
  border-radius: 10px;
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.sk-logo {
  width: 120px;
  height: 56px;
  margin: 24px auto 4px;
}
.sk-line {
  height: 14px;
  margin: 0 auto 12px;
}
.w60 {
  width: 60%;
}
.sk-row {
  display: flex;
  gap: 8px;
}
.sk-chip {
  width: 96px;
  height: 36px;
  border-radius: 999px;
}
.sk-card {
  height: 104px;
}
@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sk {
    animation: none;
  }
}

.notice {
  margin: 0 16px 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 14px;
}

/* ------------------------------------------------------------------ Başlık */
.hero {
  padding: 32px 20px 20px;
  text-align: center;
}
.logo {
  max-width: min(220px, 60vw);
  max-height: 96px;
  margin: 0 auto;
  object-fit: contain;
}
.cafe-name {
  margin: 0;
  font: 600 34px/1.1 var(--serif);
  letter-spacing: -0.01em;
}
.tagline {
  margin: 10px 0 0;
  color: var(--muted);
  font: italic 17px/1.4 var(--serif);
}

/* ------------------------------------------------------------------ Kategori çubuğu */
.catnav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.catnav-inner,
.search {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 60px;
  padding: 0 4px 0 0;
}
.chips {
  flex: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent 100%);
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}
.search {
  padding: 0 4px 0 16px;
  color: var(--muted);
}
.search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 17px;
}

/* ------------------------------------------------------------------ Menü */
.menu {
  padding: 8px 16px 0;
}
.category {
  padding-top: 20px;
}
.category-title {
  margin: 0 0 4px;
  font: 600 24px/1.2 var(--serif);
  letter-spacing: -0.01em;
}
.category-desc {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}
.products {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.product:focus-visible,
.chip:focus-visible,
.btn:focus-visible,
.icon-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.product-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-name {
  font-weight: 650;
  font-size: 17px;
  line-height: 1.25;
}
.product-desc {
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-img {
  width: 96px;
  height: 96px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-2);
}
.product.is-sold-out .product-name,
.product.is-sold-out .prices,
.product.is-sold-out .product-img {
  opacity: 0.45;
}
.product.is-sold-out .price-value {
  text-decoration: line-through;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.tag-out {
  background: var(--danger-soft);
  color: var(--danger);
}
.tag-new,
.tag-recommended {
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--accent);
}
.tag-vegan,
.tag-vegetarian {
  background: color-mix(in srgb, #2f8f4e 15%, transparent);
  color: color-mix(in oklab, #2f8f4e 80%, var(--text));
}
.tag-spicy {
  background: color-mix(in srgb, #d0451b 14%, transparent);
  color: color-mix(in oklab, #d0451b 80%, var(--text));
}

.prices {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 6px;
}
.price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.price-name {
  color: var(--muted);
  font-size: 14px;
}
.price-value {
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

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

/* ------------------------------------------------------------------ Bilgi */
.info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 36px 16px 0;
}
.info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.info-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.info-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-size: 15px;
}
.info-body strong {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  margin: 4px 0 0;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.wifi {
  align-items: flex-start;
}
.wifi .info-icon {
  margin-top: 2px;
}
.wifi-copy {
  align-self: flex-start;
  margin-top: 10px;
}
.info-action {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.info-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.info-links .btn {
  flex: 1 1 auto;
}

/* ------------------------------------------------------------------ Ürün detayı */
.sheet {
  width: 100%;
  max-width: 560px;
  max-height: 92dvh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 20px 20px 0 0;
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
}
.sheet[open] {
  animation: sheet-up 0.22s ease-out;
}
.sheet::backdrop {
  background: rgb(0 0 0 / 0.5);
}
@keyframes sheet-up {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sheet[open] {
    animation: none;
  }
}
@media (min-width: 640px) {
  .sheet {
    margin: auto;
    border-radius: 20px;
  }
}
.sheet-body {
  position: relative;
  max-height: 92dvh;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sheet-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(6px);
}
.sheet-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-2);
}
.sheet-content {
  padding: 20px 20px 24px;
}
.sheet-content h2 {
  margin: 0 48px 8px 0;
  font: 600 26px/1.15 var(--serif);
}
.sheet-desc {
  margin: 12px 0 0;
  color: var(--muted);
  white-space: pre-line;
}
.sheet-prices {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.sheet-prices li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.sheet-prices strong {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
