/*
 * Şimşek — RestoLand QR menü teması (Tema SDK v1; çekirdek SDK v1.1 gerektirir). © CodRon.
 * Mobil öncelikli; hızlı alışveriş uygulaması düzeni. Renkler theme.json ayarlarından --rl-* olarak gelir
 * ($sdk->head() bu dosyadan SONRA basar, yani ayarlar buradaki varsayılanları ezer).
 */

/* DM Sans (SIL OFL 1.1, bkz. LICENSE-fonts.txt) — değişken yazı tipi: wght 100–1000, opsz 9–40. */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Belirteçler ---------- */
:root {
  --rl-primary: #1f3fe0;
  --rl-on-primary: #ffffff;
  --rl-accent: #ffc233;
  --rl-on-accent: #000000;
  --rl-background: #f2f3f7;
  --rl-surface: #ffffff;
  --rl-text: #17181c;
  --rl-warn: #7c2d12;
  --s-font-bundled: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --s-font-rounded: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --s-font-system: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rl-font-family: var(--s-font-bundled);
  --s-r: 16px;
  --s-r-sm: 12px;
  --s-bar-h: 60px; /* uygulama çubuğunun sabit yüksekliği (.s-bar__in) — çiplerin ve yan listenin yapışma konumu */
  --s-gutter: 16px;
  --s-shadow: 0 1px 2px rgba(16, 17, 20, .06), 0 4px 14px rgba(16, 17, 20, .06);
  --s-shadow-lg: 0 10px 30px rgba(16, 17, 20, .16);
}
:root {
  --rl-muted: color-mix(in srgb, var(--rl-text) 68%, var(--rl-surface));
  --rl-border: color-mix(in srgb, var(--rl-text) 13%, var(--rl-surface));
  --s-tint: color-mix(in srgb, var(--rl-primary) 9%, var(--rl-surface));
  --s-tint-strong: color-mix(in srgb, var(--rl-primary) 16%, var(--rl-surface));
  --s-ink: color-mix(in srgb, var(--rl-primary) 82%, var(--rl-text));
  --rl-radius: var(--s-r);
}
/* Açık zemin üstündeki ana renk tonu (fiyat, ikon): ana renk ne kadar açık seçilirse seçilsin OKLCH açıklığı
   0.5'e kırpılır (beyaz kartta ≥ 4.5:1). Desteklemeyen tarayıcılar yukarıdaki color-mix yedeğini kullanır. */
@supports (color: oklch(from red l c h)) {
  :root { --s-ink: oklch(from var(--rl-primary) min(l, 0.5) c h); }
}
.s-radius-soft { --s-r: 10px; --s-r-sm: 8px; }
.s-radius-round { --s-r: 16px; --s-r-sm: 12px; }
.s-radius-pill { --s-r: 24px; --s-r-sm: 16px; }
.s-font-bundled { --rl-font-family: var(--s-font-bundled); }
.s-font-rounded { --rl-font-family: var(--s-font-rounded); }
.s-font-system { --rl-font-family: var(--s-font-system); }

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.s-body {
  margin: 0;
  min-height: 100vh;
  background: var(--rl-background);
  color: var(--rl-text);
  font: 400 16px/1.45 var(--rl-font-family);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.s-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.s-i { width: 20px; height: 20px; flex: none; fill: currentColor; vertical-align: middle; }
.s-sr {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--rl-text); outline-offset: 2px; }
.s-main:focus { outline: none; }
.s-skip {
  position: absolute; z-index: 90; left: 12px; top: -80px;
  padding: 12px 16px; border-radius: var(--s-r-sm);
  background: var(--rl-text); color: var(--rl-surface); font-weight: 700; text-decoration: none;
}
.s-skip:focus { top: 12px; }
/* Yapışkan çubukların altında kalmasın: bağlantı hedefleri ve klavye odağı için kaydırma payı.
   --rl-sticky-offset: çekirdek data-rl-sticky çubukların (uygulama çubuğu + telefonda çipler) toplam yüksekliğini yazar.
   Pay tek yerden (html) verilir; çekirdeğin bölüm scroll-margin'i sıfırlanır (çift ofset olmasın). */
html { scroll-padding-top: calc(var(--rl-sticky-offset, 116px) + 12px); scroll-padding-bottom: 84px; }
[data-rl-category], #s-venues { scroll-margin-top: 0; }

.s-wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--s-gutter); }

/* ---------- Uygulama çubuğu ---------- */
.s-bar {
  position: sticky; top: 0; z-index: 30;
  background: var(--rl-primary); color: var(--rl-on-primary);
}
.s-head-light .s-bar {
  background: var(--rl-surface); color: var(--rl-text);
  box-shadow: 0 1px 0 var(--rl-border);
}
.s-bar__in {
  max-width: 1180px; margin: 0 auto; min-height: var(--s-bar-h);
  display: flex; align-items: center; gap: 8px;
  padding: 8px var(--s-gutter);
}
.s-bar :focus-visible { outline-color: var(--rl-on-primary); }
.s-head-light .s-bar :focus-visible { outline-color: var(--rl-text); }
.s-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.s-brand__logo {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center;
  background: var(--rl-surface); color: var(--rl-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--rl-on-primary) 35%, transparent);
}
.s-head-light .s-brand__logo { background: var(--rl-primary); color: var(--rl-on-primary); box-shadow: none; }
.s-brand__initial { font-weight: 900; font-size: 20px; }
.s-brand__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--rl-surface); }
.s-brand__name {
  font-size: 19px; line-height: 1.15; font-weight: 850; letter-spacing: -.02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.s-lang ul { display: flex; gap: 0; padding: 2px; border-radius: 999px; background: color-mix(in srgb, var(--rl-on-primary) 16%, transparent); }
.s-head-light .s-lang ul { background: var(--rl-background); }
.s-lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 8px; border-radius: 999px;
  font-size: 13px; font-weight: 800; text-decoration: none; letter-spacing: .02em;
}
.s-lang a[aria-current="true"] { background: var(--rl-on-primary); color: var(--rl-primary); }
.s-head-light .s-lang a[aria-current="true"] { background: var(--rl-primary); color: var(--rl-on-primary); }
.s-lang-switch {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--rl-on-primary) 16%, transparent); color: inherit;
  font-size: 13px; font-weight: 850; letter-spacing: .03em; text-decoration: none;
}
.s-lang-switch .s-i { width: 16px; height: 16px; }
.s-head-light .s-lang-switch { background: var(--s-tint); color: var(--s-ink); }
.s-bar__cart {
  position: relative; flex: none; width: 44px; height: 44px; border: 0; border-radius: 999px; cursor: pointer;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--rl-on-primary) 16%, transparent); color: inherit;
}
.s-head-light .s-bar__cart { background: var(--s-tint); color: var(--s-ink); }
.s-bar__cart .s-i { width: 22px; height: 22px; }
.s-bar__count {
  position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; padding: 0 6px;
  display: none; align-items: center; justify-content: center; border-radius: 999px;
  background: var(--rl-accent); color: var(--rl-on-accent); font-size: 12px; font-weight: 900;
  box-shadow: 0 0 0 2px var(--rl-primary);
}
.rl-has-cart .s-bar__count { display: inline-flex; }
.s-head-light .s-bar__count { box-shadow: 0 0 0 2px var(--rl-surface); }

.s-announce {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 10px var(--s-gutter);
  background: var(--rl-accent); color: var(--rl-on-accent);
  font-size: 14px; font-weight: 700; line-height: 1.35;
}

/* ---------- Giriş ---------- */
.s-cover {
  margin: 12px 0 0; border-radius: var(--s-r); overflow: hidden;
  aspect-ratio: 5 / 2; background: var(--s-tint);
}
.s-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.s-info {
  position: relative; margin-top: 12px; padding: 14px 16px;
  border-radius: var(--s-r); background: var(--rl-surface); box-shadow: var(--s-shadow);
}
.s-info--over { margin: -34px 10px 0; }
.s-info:empty { display: none; }
.s-strip {
  display: flex; align-items: stretch; min-height: 52px; margin-top: 12px;
  border-radius: var(--s-r); background: var(--rl-surface); box-shadow: var(--s-shadow); overflow: hidden;
}
.s-strip__venue {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px 14px;
  font-size: 15px; line-height: 1.25; text-decoration: none;
}
.s-strip__venue .s-i { color: var(--s-ink); }
.s-strip__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-strip__text strong { font-weight: 800; }
.s-strip__sub { color: var(--rl-muted); font-weight: 500; }
.s-strip__badge {
  flex: none; display: flex; align-items: center; gap: 6px; padding: 0 16px 0 14px;
  border-radius: var(--s-r) 0 0 var(--s-r);
  background: var(--rl-accent); color: var(--rl-on-accent); font-size: 15px; font-weight: 850; white-space: nowrap;
}
.s-strip__badge .s-i { width: 18px; height: 18px; }
.s-info__tagline { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.s-info__desc { margin-top: 2px; font-size: 14px; color: var(--rl-muted); }
.s-quick { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.s-quick::-webkit-scrollbar { display: none; }
.s-quick__a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid var(--rl-border);
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.s-quick__a .s-i { width: 18px; height: 18px; color: var(--s-ink); }

.s-search { position: relative; margin-top: 12px; }
.s-search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--s-ink); pointer-events: none; }
.s-search__input {
  width: 100%; min-height: 50px; padding: 0 16px 0 46px;
  border: 1.5px solid transparent; border-radius: var(--s-r);
  background: var(--rl-surface); color: var(--rl-text); box-shadow: var(--s-shadow);
  font-size: 16px; font-weight: 500;
}
.s-search__input::placeholder { color: var(--rl-muted); opacity: 1; }
.s-search__input:focus { outline: none; border-color: var(--rl-primary); }
.s-search__input:focus-visible { outline: 3px solid var(--rl-text); outline-offset: 2px; }
.s-search-empty {
  display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 16px;
  border-radius: var(--s-r); background: var(--rl-surface); font-weight: 700;
}
.s-search-empty .s-i { color: var(--s-ink); }

.s-h2 {
  display: flex; align-items: center; gap: 8px;
  font-size: 21px; line-height: 1.2; font-weight: 850; letter-spacing: -.02em;
}
.s-h2__icon {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px;
  background: var(--rl-accent); color: var(--rl-on-accent);
}
.s-h2__icon .s-i { width: 18px; height: 18px; }

.s-tiles { margin-top: 20px; }
.s-tiles .s-h2 { margin-bottom: 12px; }
.s-tiles__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; }
.s-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; text-align: center; }
.s-tile__art {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1;
  border-radius: calc(var(--s-r) + 2px); overflow: hidden; box-shadow: var(--s-shadow);
  transition: transform .15s ease;
}
.s-tile__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-tile__letter { font-size: 28px; font-weight: 900; }
.s-tile__art.has-img { background: var(--s-tint); }
.s-tile__art.has-img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(16, 17, 20, .06); }
.s-tile__name {
  font-size: 12.5px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word;
}
.s-tile:active .s-tile__art { transform: scale(.96); }
.s-tile:focus-visible { outline: none; }
.s-tile:focus-visible .s-tile__art { outline: 3px solid var(--rl-text); outline-offset: 2px; }

/* Pastel karo / yer tutucu renkleri (yazı koyu tonla, kontrast ≥ 4.5). */
.s-hue-0 { background: #ffe3d6; color: #8a2d0c; }
.s-hue-1 { background: #daf2e2; color: #14532d; }
.s-hue-2 { background: #dde9ff; color: #1e3a8a; }
.s-hue-3 { background: #fff0bf; color: #713f12; }
.s-hue-4 { background: #fde0eb; color: #831843; }
.s-hue-5 { background: #d9f4f3; color: #134e4a; }

/* ---------- Kategori gezinmesi (çipler) ---------- */
.s-layout { margin-top: 8px; }
.s-nav {
  position: sticky; top: var(--s-bar-h); z-index: 20;
  margin: 0 calc(var(--s-gutter) * -1); padding: 5px 0 7px;
  background: var(--rl-background);
}
.s-nav.is-stuck { box-shadow: 0 6px 12px -8px rgba(16, 17, 20, .25); }
.s-nav__list {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--s-gutter);
  scroll-padding: 0 var(--s-gutter); scrollbar-width: none; overscroll-behavior-x: contain;
}
.s-nav__list::-webkit-scrollbar { display: none; }
.s-nav__list li { flex: none; }
.s-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--rl-surface); color: var(--rl-text);
  box-shadow: inset 0 0 0 1.5px var(--rl-border);
  font-size: 15px; font-weight: 750; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.s-chip .s-i { width: 16px; height: 16px; color: var(--s-ink); }
.s-chip.is-active {
  background: var(--rl-primary); color: var(--rl-on-primary); box-shadow: none;
}
.s-chip.is-active .s-i { color: inherit; }
.s-side { display: none; } /* geniş ekran yan listesi (aşağıda) */

/* ---------- Bölümler ---------- */
.s-section { margin-top: 22px; }
.s-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.s-section__count { flex: none; font-size: 13px; font-weight: 600; color: var(--rl-muted); }
.s-section__desc { margin: -6px 0 12px; font-size: 14px; color: var(--rl-muted); }
.s-featured .s-section__head { margin-bottom: 10px; }

/* ---------- Izgara kart ---------- */
.s-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.s-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border-radius: var(--s-r); background: var(--rl-surface);
  box-shadow: inset 0 0 0 1px var(--rl-border);
}
.s-card__media {
  position: relative; aspect-ratio: 1; border-radius: var(--s-r) var(--s-r) 0 0; overflow: hidden;
  margin: 0;
}
.s-ph {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 2px;
}
.s-ph {
  background-image:
    radial-gradient(circle at 20% 85%, rgba(255, 255, 255, .5) 0 22%, transparent 23%),
    linear-gradient(160deg, rgba(255, 255, 255, .35), transparent 60%);
}
.s-ph__letter { position: relative; font-size: 44px; line-height: 1; font-weight: 900; letter-spacing: -.03em; }
.s-ph__bolt {
  position: absolute; left: 50%; top: 50%; width: 78%; height: 78%; transform: translate(-50%, -50%) rotate(10deg);
  fill: currentColor; opacity: .1;
}
.s-card--compact.is-noimg .s-card__media { aspect-ratio: 16 / 10; }
.s-card--compact.is-noimg .s-ph__letter { font-size: 32px; }
.s-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.s-card__body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; flex: 1; }
.s-card__name { font-size: 15px; line-height: 1.25; font-weight: 650; overflow-wrap: anywhere; }
.s-card__name .s-open {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.s-card__portion { font-size: 13px; color: var(--rl-muted); font-weight: 500; }
.s-card__desc {
  font-size: 13px; line-height: 1.35; color: var(--rl-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere;
}
.s-card .s-tags { margin-top: 6px; }

/* Kartın tamamını kaplayan detay düğmesi (iç içe etkileşimli öğe olmadan). */
.s-open {
  display: inline; padding: 0; margin: 0; border: 0; background: none; color: inherit;
  font: inherit; text-align: left; cursor: pointer;
}
.s-open::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.s-card .s-open::after, .s-row .s-open::after { border-radius: var(--s-r); }
@supports selector(:has(a)) {
  .s-open:focus-visible { outline: none; }
  .s-card:has(.s-open:focus-visible), .s-row:has(.s-open:focus-visible) { outline: 3px solid var(--rl-text); outline-offset: 2px; }
}

.s-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-variant-numeric: tabular-nums; }
.s-price__val { font-size: 17px; font-weight: 850; color: var(--s-ink); letter-spacing: -.01em; }
.s-price__ask { font-size: 14px; font-weight: 800; color: var(--rl-text); }
.s-price__opts { font-size: 12.5px; font-weight: 600; color: var(--rl-muted); }

.s-flag {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 800; line-height: 1;
}
.s-flag--soldout {
  left: 8px; bottom: 8px; min-height: 0; padding: 7px 10px; border-radius: 999px;
  background: var(--rl-text); color: var(--rl-surface);
}
.s-flag--featured {
  left: 8px; top: 8px; width: 30px; height: 30px; justify-content: center; border-radius: 10px;
  background: var(--rl-accent); color: var(--rl-on-accent); box-shadow: var(--s-shadow);
}
.s-flag--featured .s-i { width: 18px; height: 18px; }
.is-soldout .s-card__img, .is-soldout .s-row__media img, .is-soldout .s-ph { filter: grayscale(1); }
.is-soldout .s-card__media::after, .is-soldout .s-row__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; background: color-mix(in srgb, var(--rl-surface) 50%, transparent);
}
.s-row__media { position: relative; }
.is-soldout .s-price__val { color: var(--rl-muted); }

/* ---------- (+) ekle / "− n +" adet düğmesi (çekirdek addButton icon + decButton + data-rl-qty-for) ---------- */
.s-act {
  position: absolute; z-index: 2; top: 8px; right: 8px;
  display: flex; align-items: center; border-radius: 999px;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.s-add.rl-add {
  width: 44px; height: 44px;
  background: var(--rl-surface); color: var(--s-ink);
  box-shadow: 0 0 0 1.5px var(--rl-border), 0 4px 10px rgba(16, 17, 20, .14);
}
.s-add .rl-add__icon { width: 28px; height: 28px; }
.s-add .rl-add__icon path, .s-dec .rl-dec__icon path { stroke-width: 2.6; }
.s-add.rl-add:hover { background: var(--s-tint); }
.s-add.rl-add.rl-added { transform: scale(1.12); }
.s-dec.rl-dec {
  width: 44px; height: 44px; border: 0; background: transparent; color: var(--rl-on-primary);
}
.s-dec .rl-dec__icon { width: 28px; height: 28px; }
.s-qty {
  min-width: 18px; text-align: center;
  color: var(--rl-on-primary); font-size: 17px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums;
}
/* Sepetteyken hap ana renge döner: − adet + */
.s-act:has(.s-qty:not([hidden])) { background: var(--rl-primary); box-shadow: 0 4px 12px rgba(16, 17, 20, .22); }
.s-act:has(.s-qty:not([hidden])) .s-add.rl-add { background: transparent; color: var(--rl-on-primary); box-shadow: none; }
.s-act :focus-visible { outline-color: var(--rl-text); }
.s-act.is-bump { animation: s-bump .32s ease-out; }
@keyframes s-bump { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }

/* ---------- Öne çıkanlar şeridi ---------- */
.s-rail {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--s-gutter) * -1); padding: 2px var(--s-gutter) 8px;
  scroll-padding: 0 var(--s-gutter); scrollbar-width: none; overscroll-behavior-x: contain;
}
.s-rail::-webkit-scrollbar { display: none; }
.s-rail__item { flex: 0 0 148px; scroll-snap-align: start; display: flex; }
.s-rail__item .s-card { width: 100%; }
.s-card--compact .s-card__body { padding: 8px 10px 10px; gap: 2px; }
.s-card--compact .s-card__name { font-size: 14px; }
.s-card--compact .s-card__name .s-open { -webkit-line-clamp: 2; }
.s-card--compact .s-price__val { font-size: 16px; }

/* ---------- Liste satırı ---------- */
.s-list {
  border-radius: var(--s-r); background: var(--rl-surface);
  box-shadow: inset 0 0 0 1px var(--rl-border); overflow: hidden;
}
.s-row { position: relative; display: flex; gap: 12px; padding: 14px; min-height: 76px; }
.s-row + .s-row { border-top: 1px solid var(--rl-border); }
.s-row .s-open::after { border-radius: 0; }
.s-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.s-row__name { display: flex; align-items: flex-start; gap: 6px; font-size: 16px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.s-flag--inline { position: static; flex: none; width: 22px; height: 22px; border-radius: 7px; box-shadow: none; }
.s-flag--inline .s-i { width: 14px; height: 14px; }
.s-row__desc {
  font-size: 14px; line-height: 1.4; color: var(--rl-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.s-row__portion { font-size: 13px; color: var(--rl-muted); font-weight: 500; }
.s-row__foot { margin-top: auto; padding-top: 4px; }
.s-row__side { position: relative; flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; }
.s-row.has-img .s-row__side { width: 104px; justify-content: flex-start; }
.s-row__media { width: 104px; height: 104px; border-radius: var(--s-r-sm); overflow: hidden; background: var(--s-tint); }
.s-row__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.s-row .s-act { position: relative; top: auto; right: auto; }
.s-row.has-img .s-act { position: absolute; top: 74px; right: -6px; }
.s-row .s-flag--soldout { position: static; }
.s-row.has-img .s-flag--soldout { position: absolute; left: auto; right: 6px; top: 76px; bottom: auto; }
.s-row.has-img { min-height: 132px; }

/* ---------- Rozetler ---------- */
.s-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.s-tag {
  display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 3px 8px;
  border-radius: 999px; font-size: 12.5px; font-weight: 650; line-height: 1.2;
  background: var(--rl-background); color: var(--rl-text);
}
.s-tag .s-i { width: 14px; height: 14px; }
.s-tag--spicy { background: #fdeceb; color: #9b1c1c; }
.s-tag__flames { display: inline-flex; }
.s-tag__flames .s-i { width: 12px; height: 12px; margin-right: -2px; }
.s-tag--diet { background: #e3f5e8; color: #14532d; }
.s-allergens { margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: var(--rl-muted); overflow-wrap: anywhere; }
.s-allergens__k { font-weight: 700; color: var(--rl-text); }
.s-allergens__v:not(:last-child)::after { content: ","; }
.s-allergens__v--may { font-style: italic; }
.s-allergens--unknown {
  display: flex; gap: 6px; align-items: flex-start;
  color: color-mix(in srgb, #8a3c00 80%, var(--rl-text)); font-weight: 600;
}
.s-allergens--unknown .s-i { width: 15px; height: 15px; margin-top: 1px; }

/* ---------- Bilgi, şubeler, boş durum, alt bilgi ---------- */
.s-notice {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; padding: 14px 16px;
  border-radius: var(--s-r); background: var(--rl-surface); color: var(--rl-muted);
  font-size: 14px; line-height: 1.45;
}
.s-notice .s-i { margin-top: 1px; color: var(--s-ink); }
.s-venues { margin-top: 28px; }
.s-venues__list { display: grid; gap: 10px; }
.s-venue {
  padding: 14px 16px; border-radius: var(--s-r); background: var(--rl-surface);
  box-shadow: inset 0 0 0 1px var(--rl-border);
}
.s-venue.is-current { box-shadow: inset 0 0 0 2px var(--rl-primary); }
.s-venue__name { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 800; }
.s-venue__name .s-i { color: var(--s-ink); }
.s-venue__addr { margin-top: 4px; font-size: 14px; color: var(--rl-muted); }
.s-venue__city { display: block; }
.s-venue__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.s-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; font-size: 15px; font-weight: 800; text-decoration: none; border: 0;
}
.s-btn .s-i { width: 18px; height: 18px; }
.s-btn--primary { background: var(--rl-primary); color: var(--rl-on-primary); }
.s-btn--soft { background: var(--s-tint); color: var(--rl-text); }
.s-btn--soft .s-i { color: var(--s-ink); }

.s-emptystate {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  margin-top: 20px; padding: 36px 20px; border-radius: var(--s-r); background: var(--rl-surface);
}
.s-emptystate__art { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 24px; background: var(--s-tint); color: var(--s-ink); }
.s-emptystate__art .s-i { width: 40px; height: 40px; }
.s-emptystate p { color: var(--rl-muted); }

.s-footer { margin-top: 28px; padding: 24px 0 calc(110px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rl-border); }
.s-footer__in {
  max-width: 1180px; margin: 0 auto; padding: 0 var(--s-gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 14px; color: var(--rl-muted);
}
.s-footer__kimlink {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--rl-text); color: var(--rl-surface); font-weight: 800; text-decoration: none;
}
.s-footer__meta { flex: 1 1 200px; }
.s-footer__meta strong { color: var(--rl-text); }
.s-footer__top { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--rl-text); text-decoration: none; }
.s-footer__powered { flex-basis: 100%; font-size: 13px; }

/* Arama sürerken karolar gizlenir (süzmeyi çekirdek yapar; html.rl-searching çekirdekten). */
.rl-searching [data-s-hide-on-search] { display: none; }

/* ---------- Çekirdek UI (sepet çubuğu, çekmeceler) ---------- */
.rl-cartbar {
  left: 12px; right: 12px; min-height: 60px; padding: 0 10px 0 10px; gap: 10px;
  border-radius: 999px; background: var(--rl-primary); color: var(--rl-on-primary);
  font: 800 16px/1.2 var(--rl-font-family); box-shadow: var(--s-shadow-lg);
}
.rl-cartbar__count { min-width: 40px; height: 40px; background: var(--rl-accent); color: var(--rl-on-accent); font-size: 16px; }
.rl-cartbar__label { flex: 1; text-align: left; }
.rl-cartbar__total {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--rl-surface); color: var(--s-ink); font-weight: 900; font-variant-numeric: tabular-nums;
}
.rl-cartbar:focus-visible { outline: 3px solid var(--rl-text); outline-offset: 3px; }
.rl-drawer { border-radius: 24px 24px 0 0; }
.rl-drawer__head { border-bottom: 0; padding: 14px 12px 6px 20px; }
.rl-drawer__title { font-size: 21px; font-weight: 850; letter-spacing: -.02em; }
.rl-drawer .rl-icon-btn { background: var(--rl-background); }
.rl-btn { border-radius: 999px; font-weight: 800; }
.rl-pd__img { aspect-ratio: 4 / 3; max-height: 300px; border-radius: var(--s-r); }
.rl-pd__price { color: var(--s-ink); font-weight: 900; font-size: 22px; }
.rl-variant { border-radius: var(--s-r-sm); border-width: 1.5px; font-weight: 600; }
.rl-variant:has(input:checked) { border-color: var(--rl-primary); background: var(--s-tint); }
.rl-variant__price { color: var(--s-ink); font-weight: 800; }
.rl-pd__tags li { background: var(--rl-background); border: 0; font-weight: 600; }
.rl-qty__btn { border-width: 1.5px; color: var(--s-ink); font-weight: 700; }
.rl-line__name { font-weight: 750; }
.rl-line__price { font-weight: 800; }
@media (min-width: 700px) { .rl-drawer { border-radius: 24px; } }

/* ---------- Duyarlı düzen ---------- */
@media (max-width: 359.98px) {
  :root { --s-gutter: 12px; }
  .s-tiles__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s-grid { gap: 8px; }
  .s-card__body { padding: 8px 10px 10px; }
  .s-brand__name { font-size: 17px; }
}
@media (min-width: 600px) {
  :root { --s-gutter: 20px; }
  .s-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .s-tiles__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .s-rail__item { flex-basis: 172px; }
  .s-venues__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-cover { aspect-ratio: 3 / 1; }
  .s-info--over { margin: -40px 16px 0; }
  .s-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-row + .s-row { border-top: 0; }
  .s-row { box-shadow: 0 -1px 0 var(--rl-border); }
  .s-row:nth-child(odd) { box-shadow: 0 -1px 0 var(--rl-border), 1px 0 0 var(--rl-border); }
}
@media (min-width: 720px) {
  .s-tiles__grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .s-cover { aspect-ratio: 4 / 1; margin-top: 16px; }
  .s-tiles__grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 16px 14px; }
  .s-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 24px; }
  html { scroll-padding-top: calc(var(--rl-sticky-offset, 60px) + 16px); }
  /* Telefon çipleri gizlenir (data-rl-sticky payına 0 sayılır); yerine yapışkan, kendi içinde kayan yan liste.
     Aktif kategoriyi çekirdek bu listede de işaretler ve görünür tutar (dikey kaydırma). */
  .s-nav { display: none; }
  .s-side {
    display: block; position: sticky; top: calc(var(--s-bar-h) + 16px); margin: 22px 0 0; padding: 8px;
    max-height: calc(100vh - var(--s-bar-h) - 32px); overflow-y: auto; overscroll-behavior: contain;
    border-radius: var(--s-r); background: var(--rl-surface); box-shadow: inset 0 0 0 1px var(--rl-border);
  }
  .s-side__list { display: flex; flex-direction: column; gap: 2px; }
  .s-side__link {
    display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: var(--s-r-sm);
    color: var(--rl-text); font-size: 15px; font-weight: 750; line-height: 1.25; text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
  }
  .s-side__link .s-i { width: 16px; height: 16px; color: var(--s-ink); }
  .s-side__name { flex: 1; }
  .s-side__n { font-size: 13px; font-weight: 700; color: var(--rl-muted); }
  .s-side__link:hover { background: var(--rl-background); }
  .s-side__link.is-active { background: var(--s-tint-strong); }
  .s-side__link.is-active .s-side__n { color: var(--rl-text); }
  .s-cols-3 .s-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s-cols-4 .s-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .s-cols-5 .s-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
  .s-rail__item { flex-basis: 184px; }
  .s-rail { margin: 0; padding: 2px 2px 10px; }
  .s-h2 { font-size: 24px; }
  .s-section { margin-top: 28px; }
  .s-venues__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (hover: hover) {
  .s-card, .s-tile__art { transition: transform .15s ease, box-shadow .15s ease; }
  .s-card:hover { box-shadow: inset 0 0 0 1px var(--rl-border), var(--s-shadow); transform: translateY(-2px); }
  .s-tile:hover .s-tile__art { transform: translateY(-2px); }
}

/* ---------- Erişilebilirlik tercihleri ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .s-card:hover, .s-tile:hover .s-tile__art { transform: none; }
}
@media (forced-colors: active) {
  .s-add.rl-add, .s-dec.rl-dec, .s-chip, .s-card, .s-list, .s-tag, .s-strip, .s-quick__a, .s-btn, .s-bar__cart { border: 1px solid CanvasText; }
  .s-chip.is-active, .s-side__link.is-active { outline: 2px solid Highlight; }
}
@media print {
  .s-bar, .s-nav, .s-side, .s-search, .s-tiles, .s-act, .rl-cartbar { display: none !important; }
  .s-footer { padding-bottom: 0; }
}
.rl-waiter__name { -webkit-hyphens: auto; hyphens: auto; }
