:root {
  --red: #d71920;
  --red-dark: #9f1018;
  --charcoal: #3e3e3e;
  --ink: #252525;
  --muted: #909090;
  --cream: #f4d8b3;
  --soft: #fbf7f1;
  --line: #e9e3dc;
  --card: #ffffff;
  --shadow: 0 20px 50px rgba(37, 25, 17, .10);
  --radius: 12px;
  --page-pad: clamp(12px, 2.2vw, 34px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html {
  width: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #fff;
  font-family: "Montserrat", "Noto Sans Georgian", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.is-hidden { display: none !important; }

/* Dil seçimi */
.welcome {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(16px, 3vw, 42px);
  overflow: hidden;
  background: #1b100c;
}
.welcome-slide,
.welcome-overlay { position: absolute; inset: 0; }
.welcome-slide {
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  transition: background-image .45s ease, opacity .45s ease;
}
.welcome-overlay {
  background:
    linear-gradient(180deg, rgba(25, 12, 8, .25), rgba(25, 12, 8, .82)),
    radial-gradient(circle at 50% 20%, rgba(244, 216, 179, .22), transparent 34rem);
}
.welcome-panel {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 20px;
  background: rgba(255, 250, 244, .94);
  text-align: center;
  box-shadow: 0 32px 90px rgba(0,0,0,.38);
  backdrop-filter: blur(16px);
}
.welcome-logo {
  width: clamp(160px, 34vw, 230px);
  margin: 0 auto 18px;
  border-radius: 999px;
  box-shadow: 0 18px 45px rgba(215,25,32,.24);
}
.brand-line {
  margin: 0 0 10px;
  color: var(--red);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.welcome h1 {
  margin: 0;
  font-size: clamp(1.55rem, 5.6vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}
#welcomeText {
  max-width: 34ch;
  margin: 13px auto 22px;
  color: #77665c;
  line-height: 1.6;
}
.language-grid { display: grid; gap: 10px; }
.language-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 15px 18px;
  border: 1px solid rgba(159,16,24,.9);
  border-radius: 12px;
  color: #fff;
  background: var(--red);
  text-align: left;
  box-shadow: 0 10px 22px rgba(215,25,32,.18);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.language-button:hover,
.language-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.36);
  background: var(--red-dark);
  box-shadow: 0 16px 30px rgba(215,25,32,.22);
  outline: 0;
}
.language-button strong { color: #fff; font-size: 1.03rem; font-weight: 900; }
.language-button span { color: rgba(255,255,255,.88); font-size: .82rem; text-align: right; }

/* Menü ekranı */
.app {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: #fff;
}
.menu-page {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0 var(--page-pad) clamp(42px, 5vw, 72px);
}
.menu-tools {
  position: sticky;
  top: 0;
  z-index: 40;
  margin-inline: calc(var(--page-pad) * -1);
  padding: clamp(10px, 1.4vw, 16px) var(--page-pad);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand-strip {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  gap: 6px;
  min-height: clamp(92px, 9vw, 132px);
  margin: 0 0 clamp(10px, 1.4vw, 18px);
  text-align: center;
}
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(92px, 8vw, 128px);
  height: clamp(92px, 8vw, 128px);
  margin-inline: auto;
  border-radius: 999px;
  text-decoration: none;
}
.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 999px;
  filter: drop-shadow(0 10px 18px rgba(215,25,32,.16));
}
.brand-copy {
  width: 100%;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
}
.brand-copy strong {
  color: var(--red);
  font-size: clamp(1.05rem, 1.35vw, 1.42rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.brand-copy span {
  color: #7a716a;
  font-size: clamp(.72rem, .85vw, .88rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.search-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(8px, 1vw, 14px);
  align-items: center;
  margin: 0 0 clamp(8px, 1vw, 12px);
}
.search-box {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: clamp(44px, 4.5vw, 54px);
  gap: 10px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--red);
  background: #fff;
  box-shadow: 0 10px 24px rgba(32,22,16,.05);
}
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 650;
}
.search-box input::placeholder { color: #aaa; font-weight: 550; }
.lang-chip {
  width: clamp(44px, 4.5vw, 54px);
  height: clamp(44px, 4.5vw, 54px);
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(215,25,32,.25);
}
.category-bar {
  display: flex;
  width: 100%;
  gap: clamp(7px, .8vw, 12px);
  margin: 0;
  padding: 1px 0 4px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.category-bar::-webkit-scrollbar { display: none; }
.category-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-height: clamp(38px, 4vw, 46px);
  padding: 9px clamp(13px, 1.4vw, 19px);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #555;
  background: #fff;
  font-size: clamp(.78rem, .95vw, .94rem);
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(32,22,16,.04);
}
.category-tab.is-active {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 12px 24px rgba(215,25,32,.22);
}
.result-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
  margin: clamp(14px, 1.8vw, 24px) 0 clamp(12px, 1.5vw, 20px);
  padding: 0 2px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}
.clear-button {
  border: 0;
  padding: 0;
  color: var(--red);
  background: transparent;
  font-weight: 900;
}
.empty-state {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--soft);
  text-align: center;
  font-weight: 800;
}
.menu-sections {
  display: grid;
  width: 100%;
  gap: clamp(28px, 3.2vw, 54px);
}
.menu-section {
  width: 100%;
  scroll-margin-top: clamp(104px, 12vw, 142px);
}
.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  margin: clamp(8px, 1vw, 12px) 0 clamp(12px, 1.5vw, 20px);
  padding: 0 1px;
}
.section-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.2vw, 2.35rem);
  line-height: 1;
  letter-spacing: -.03em;
}
.section-title span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 850;
}
.cards-grid {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: clamp(22px, 6vw, 30px);
}
.menu-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(6px, .8vw, 10px);
  background: var(--card);
  color: inherit;
  text-align: left;
  box-shadow: 0 16px 42px rgba(37,25,17,.07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.menu-card:hover,
.menu-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(215,25,32,.28);
  box-shadow: var(--shadow);
  outline: 0;
}
.card-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  margin: 0;
  border-radius: clamp(6px, .8vw, 10px) clamp(6px, .8vw, 10px) 0 0;
  background: var(--soft);
  overflow: hidden;
  box-shadow: none;
}
.card-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
  transform-origin: center;
}

.card-image[data-category="breakfast"] img { object-position: 60% 50%; transform: scale(1.17); }
.card-image[data-category="soups"] img,
.card-image[data-category="turkish-meals"] img { object-position: 58% 50%; transform: scale(1.14); }
.card-image[data-category="rice-side"] img,
.card-image[data-category="salads-desserts"] img { object-position: 52% 50%; transform: scale(1.13); }

.dialog-image[data-category="breakfast"] { background-position: 60% 50%; background-size: 117%; }
.dialog-image[data-category="soups"],
.dialog-image[data-category="turkish-meals"] { background-position: 58% 50%; background-size: 114%; }
.dialog-image[data-category="rice-side"],
.dialog-image[data-category="salads-desserts"] { background-position: 52% 50%; background-size: 113%; }
.card-copy {
  display: grid;
  align-content: start;
  min-height: clamp(118px, 10vw, 156px);
  padding: clamp(16px, 1.8vw, 26px) clamp(16px, 2vw, 28px) clamp(14px, 1.6vw, 20px);
  gap: clamp(8px, 1vw, 14px);
}
.card-copy h3 {
  margin: 0;
  color: #4a4a4a;
  font-size: clamp(1.06rem, 1.65vw, 1.62rem);
  line-height: 1.12;
  font-weight: 850;
  text-align: center;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.card-copy p {
  margin: 0;
  color: #9a9a9a;
  font-size: clamp(.9rem, 1.08vw, 1.08rem);
  line-height: 1.45;
  text-align: left;
  font-weight: 500;
}
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: clamp(48px, 4.6vw, 62px);
  margin: 0 clamp(14px, 1.8vw, 24px) clamp(14px, 1.8vw, 24px);
  overflow: hidden;
  border-radius: clamp(5px, .6vw, 7px);
  box-shadow: 0 14px 28px rgba(37,25,17,.08);
}
.card-price,
.card-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  color: #fff;
  font-size: clamp(.96rem, 1.4vw, 1.28rem);
  font-weight: 850;
  letter-spacing: -.02em;
}
.card-price { background: #3f3f3f; }
.card-price small { font-size: .88em; font-weight: 650; }
.card-detail {
  border: 0;
  background: #e1121b;
  text-transform: uppercase;
}
.card-detail svg {
  width: clamp(19px, 2vw, 25px);
  height: clamp(19px, 2vw, 25px);
  flex: 0 0 auto;
}

.footer {
  width: 100%;
  max-width: none;
  margin: clamp(22px, 4vw, 54px) 0 0;
  padding: 24px var(--page-pad) calc(28px + var(--safe-bottom));
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}
.footer img {
  width: clamp(96px, 8vw, 126px);
  margin: 0 auto 12px;
  border-radius: 999px;
}
.footer strong {
  display: block;
  color: var(--red);
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.footer span { display: block; margin-top: 5px; font-size: .86rem; }
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: calc(18px + var(--safe-bottom));
  z-index: 28;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-size: 1.3rem;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(215,25,32,.32);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Detay modalı */
.item-dialog {
  width: min(560px, calc(100% - 26px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,.38);
}
.item-dialog::backdrop { background: rgba(20,13,10,.58); backdrop-filter: blur(4px); }
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.48);
  font-size: 1.6rem;
  line-height: 1;
}
.dialog-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-position: center;
  background-size: cover;
}
.dialog-body { padding: 22px; }
.dialog-category {
  margin: 0 0 8px;
  color: var(--red);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dialog-body h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 5vw, 2rem);
  line-height: 1.08;
}
.dialog-description {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}
.dialog-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-weight: 950;
}

@media (min-width: 1500px) {
  .cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1050px) and (max-width: 1499px) {
  .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 680px) and (max-width: 1049px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 679px) {
  :root { --page-pad: clamp(10px, 3.8vw, 16px); }
  .brand-strip {
    min-height: 96px;
    margin-bottom: 10px;
  }
  .brand-logo-link {
    width: 88px;
    height: 88px;
  }
  .brand-copy strong { font-size: 1.02rem; }
  .brand-copy span { font-size: .68rem; }
  .welcome-logo { width: 170px; }
  .search-row { gap: 8px; }
  .card-copy {
    min-height: auto;
    padding: 20px clamp(18px, 5vw, 24px) 16px;
  }
  .card-actions {
    margin-left: clamp(16px, 5vw, 22px);
    margin-right: clamp(16px, 5vw, 22px);
  }
}
@media (max-width: 360px) {
  .card-copy h3 { font-size: 1.02rem; }
  .card-copy p { font-size: .86rem; }
  .card-price,
  .card-detail { font-size: .9rem; }
}
