/*
 * Lokma — RestoLand QR menü teması (Tema SDK v1, çekirdek v1.1). © CodRon. Tüm hakları saklıdır.
 * Yemek siparişi uygulaması düzeni: bilgi bloğu, yapışkan arama + kategori sekmeleri,
 * sağda görselli yoğun ürün satırları, "+" düğmesi, popüler şeridi, alt sepet çubuğu.
 * Mobil öncelikli (320–430 px), 768 px'te kart ızgarası, 1024 px'te sağ sepet paneli.
 */

/* ---------- Yazı tipi (DM Sans, SIL OFL 1.1 — LICENSE-fonts.txt). Yalnız l-font-dm seçiliyken indirilir. ---------- */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  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: 400 700;
  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 ---------- */
/* Yapışık kalan sekme satırının yüksekliği: çekirdek [data-rl-sticky] ölçüp <html> üstüne yazar; bu, JS yokken yedek. */
:root { --rl-sticky-offset: 48px; }
.lokma {
  --l-bg: var(--rl-background, #f4f4f5);
  --l-surface: var(--rl-surface, #fff);
  --l-text: var(--rl-text, #18181b);
  --l-primary: var(--rl-primary, #c2410c);
  --l-on-primary: var(--rl-on-primary, #fff);
  --l-accent: var(--rl-accent, #0f766e);
  --l-on-accent: var(--rl-on-accent, #fff);
  /* color-mix desteklemeyen tarayıcılar için güvenli yedekler */
  --l-muted: #5c5c63;
  --l-line: #e4e4e7;
  --l-soft: #f4f4f5;
  --l-ink: var(--l-primary);
  --l-primary-tint: #fdf0ea;
  --l-accent-tint: #e8f4f2;
  --l-accent-ink: var(--l-accent);
  --l-r-img: 12px;
  --l-search-row: 60px;
  --l-tabs-h: 48px;
  --l-shadow: 0 1px 2px rgba(16, 16, 20, .06), 0 4px 14px rgba(16, 16, 20, .06);

  /* çekirdek arayüz (çekmece, sepet, garsona göster) aynı tonları kullansın */
  --rl-muted: var(--l-muted);
  --rl-border: var(--l-line);
  --rl-radius: 12px;
  --rl-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .lokma {
    --l-muted: color-mix(in srgb, var(--l-text) 66%, var(--l-surface));
    --l-line: color-mix(in srgb, var(--l-text) 12%, var(--l-surface));
    --l-soft: color-mix(in srgb, var(--l-text) 5%, var(--l-surface));
    --l-ink: color-mix(in srgb, var(--l-primary) 82%, var(--l-text));
    --l-primary-tint: color-mix(in srgb, var(--l-primary) 10%, var(--l-surface));
    --l-accent-tint: color-mix(in srgb, var(--l-accent) 10%, var(--l-surface));
    --l-accent-ink: color-mix(in srgb, var(--l-accent) 82%, var(--l-text));
  }
}
/* Açık bir ana/kampanya rengi seçilse de yazı ve ikon tonu okunur kalsın: açıklık en fazla 0.5 (≈ ≥ 5:1 beyaz üstünde) */
@supports (color: oklch(from red l c h)) {
  .lokma {
    --l-ink: oklch(from var(--l-primary) min(l, 0.5) c h);
    --l-accent-ink: oklch(from var(--l-accent) min(l, 0.46) c h);
  }
}
.l-font-dm { --rl-font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.l-corners-sharp { --rl-radius: 8px; --l-r-img: 8px; }
.l-corners-soft { --rl-radius: 12px; --l-r-img: 12px; }
.l-corners-round { --rl-radius: 18px; --l-r-img: 16px; }

/* ---------- Temel ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body.lokma {
  margin: 0;
  background: var(--l-bg);
  color: var(--l-text);
  font: 400 15px/1.45 var(--rl-font-family);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}
/* sıfırlamalar :where() ile 0 özgüllükte: bileşen sınıfları her zaman kazanır */
:where(.lokma) img { max-width: 100%; display: block; }
:where(.lokma) a { color: inherit; }
:where(.lokma) :where(h1, h2, h3, p) { margin: 0; }
:where(.lokma) ul { margin: 0; padding: 0; list-style: none; }
.l-i { width: 18px; height: 18px; flex: none; }
.l-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.l-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;
}
.l-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.l-main:focus { outline: none; }
.lokma :focus-visible { outline: 3px solid var(--l-text); outline-offset: 2px; }

.l-skip {
  position: absolute; z-index: 90; top: 8px; left: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--l-text); color: var(--l-surface); font-weight: 700; text-decoration: none;
  transform: translateY(-160%);
}
.l-skip:focus { transform: none; }

/* ---------- Üst bölüm: kapak + restoran bilgisi ---------- */
.l-head { background: var(--l-surface); }
.l-head--cover { --l-cover-h: clamp(136px, 36vw, 248px); }
.l-cover { position: relative; height: var(--l-cover-h); overflow: hidden; background: var(--l-soft); }
.l-cover__img { width: 100%; height: 100%; object-fit: cover; }
.l-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0, rgba(0, 0, 0, 0) 42%);
  pointer-events: none;
}
.l-cover--pattern {
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .22) 1.5px, transparent 2px) 0 0 / 18px 18px,
    linear-gradient(120deg, var(--l-primary), var(--l-ink));
}
.l-head__inner { position: relative; padding-top: 14px; padding-bottom: 18px; }

.l-langs {
  position: absolute; z-index: 3; right: 16px; top: 12px;
  display: flex; align-items: center; gap: 2px;
  padding: 2px 2px 2px 10px; border-radius: 999px;
  background: var(--l-surface); color: var(--l-text);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .16);
}
.l-head--cover .l-langs { top: calc(12px - var(--l-cover-h)); }
.l-langs ul { display: flex; }
.l-langs a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 40px; padding: 0 10px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em; text-decoration: none; color: var(--l-muted);
}
.l-langs a[aria-current="true"] { background: var(--l-text); color: var(--l-surface); }

.l-brand { display: flex; align-items: flex-end; gap: 14px; }
.l-head--compact .l-head__inner { display: flex; flex-direction: column; }
.l-head--compact .l-langs { position: static; align-self: flex-end; margin-bottom: 10px; }
.l-head--compact .l-brand { align-items: center; }
.l-brand__logo {
  flex: none; width: 76px; height: 76px; border-radius: calc(var(--rl-radius) + 2px);
  object-fit: cover; background: var(--l-surface);
  box-shadow: 0 0 0 1px var(--l-line), 0 4px 14px rgba(0, 0, 0, .12);
}
.l-head--cover .l-brand__logo { margin-top: -46px; border: 3px solid var(--l-surface); box-shadow: 0 4px 14px rgba(0, 0, 0, .16); }
.l-brand__logo--initial {
  display: grid; place-items: center;
  background: var(--l-primary); color: var(--l-on-primary);
  font-size: 34px; font-weight: 700;
}
.l-brand__text { min-width: 0; padding-bottom: 2px; }
.l-brand__name { font-size: 23px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.l-brand__tagline { margin-top: 3px; color: var(--l-muted); font-size: 14px; }
.l-brand__desc { margin-top: 12px; color: var(--l-muted); font-size: 14px; max-width: 70ch; }

.l-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.l-chip {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--l-line); background: var(--l-surface);
  font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--l-text);
}
.l-chip::after { content: ""; position: absolute; inset: -4px -2px; } /* ≥ 44 px dokunma alanı */
.l-chip .l-i { width: 16px; height: 16px; color: var(--l-ink); }

.l-promo {
  display: flex; align-items: center; gap: 12px;
  margin-top: 14px; padding: 12px 14px;
  border-radius: var(--rl-radius); background: var(--l-accent-tint);
  border: 1px solid var(--l-accent-tint);
}
.l-promo__icon {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--l-accent); color: var(--l-on-accent);
}
.l-promo__icon .l-i { width: 20px; height: 20px; }
.l-promo__body { min-width: 0; }
.l-promo__title { font-weight: 700; color: var(--l-accent-ink); font-size: 15px; }
.l-promo__text { font-size: 13.5px; color: var(--l-text); }

/* ---------- Yapışkan çubuk: arama + sekmeler ---------- */
.l-bar {
  position: sticky; z-index: 30; top: calc(-1 * var(--l-search-row));
  background: var(--l-surface); border-bottom: 1px solid var(--l-line);
}
.l-bar.is-stuck { box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .22); }
.l-bar__inner { display: flex; flex-direction: column; }
.l-search { position: relative; padding: 8px 0; height: var(--l-search-row); }
.l-search__icon { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--l-muted); pointer-events: none; }
.l-search__input {
  width: 100%; height: 44px; padding: 0 16px 0 42px;
  border: 1px solid var(--l-soft); border-radius: 999px;
  background: var(--l-soft); color: var(--l-text);
  font: 500 15px/1 var(--rl-font-family);
  -webkit-appearance: none; appearance: none;
}
.l-search__input::placeholder { color: var(--l-muted); opacity: 1; }
.l-search__input:focus { background: var(--l-surface); border-color: var(--l-text); outline: none; box-shadow: 0 0 0 1px var(--l-text); }

.l-tabs-wrap { position: relative; display: flex; align-items: center; min-width: 0; }
.l-tabs {
  flex: 1; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin: 0 -16px; padding: 0 8px;
}
.l-tabs::-webkit-scrollbar { display: none; }
.l-tabs__list { display: flex; white-space: nowrap; }
.l-tab {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  min-height: var(--l-tabs-h); padding: 0 10px;
  color: var(--l-muted); font-size: 14.5px; font-weight: 600; text-decoration: none;
}
.l-tab::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px;
  border-radius: 3px 3px 0 0; background: transparent;
}
.l-tab.is-active { color: var(--l-text); }
.l-tab.is-active::after { background: var(--l-primary); }
.l-tab__n { font-weight: 500; color: var(--l-muted); font-size: 13px; }
.l-tab__flame { width: 15px; height: 15px; color: var(--l-ink); }
.l-tab:focus-visible { outline-offset: -3px; border-radius: 8px; }
.l-tabs-arrow { display: none !important; }

/* bölüm başlığı sekme satırının biraz altına otursun */
.lokma [data-rl-category] { scroll-margin-top: calc(var(--rl-sticky-offset) + 14px); }

/* ---------- Bölümler ---------- */
.l-layout { padding-bottom: 8px; }
.l-section {
  margin: 8px -16px 0; padding: 20px 16px 6px;
  background: var(--l-surface);
}
.l-section__head { margin-bottom: 6px; }
.l-section__title { display: flex; align-items: center; gap: 6px; font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.l-section__flame { width: 20px; height: 20px; color: var(--l-primary); }
.l-section__desc { margin-top: 4px; color: var(--l-muted); font-size: 14px; }

/* ---------- Ürün satırı ---------- */
.l-item + .l-item { border-top: 1px solid var(--l-line); }
.l-prod { position: relative; display: flex; gap: 14px; padding: 16px 0; }
.l-img-left .l-prod { flex-direction: row-reverse; }
.l-prod__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.l-prod__name { font-size: 16px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
/* popüler işareti: rozet yerine adın yanında küçük, sessiz alev (şeritte zaten listeleniyor) */
.l-prod__pop { width: 15px; height: 15px; margin-left: 3px; vertical-align: -2px; color: var(--l-primary); }
.l-open {
  -webkit-appearance: none; appearance: none; margin: 0; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.l-open::after { content: ""; position: absolute; z-index: 1; inset: 0; border-radius: var(--rl-radius); }
.l-open:focus-visible { outline: none; }
.l-open:focus-visible::after { outline: 3px solid var(--l-text); outline-offset: 2px; }
.l-prod__desc {
  color: var(--l-muted); font-size: 14px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.l-prod__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 5px; }
.l-price { font-size: 15.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.l-price--ask { font-size: 13.5px; font-weight: 600; color: var(--l-muted); font-style: italic; white-space: normal; }
.l-opts, .l-portion { font-size: 13px; color: var(--l-muted); }
.l-portion::before { content: "· "; }

.l-prod__media { position: relative; flex: none; align-self: flex-end; }
.has-img .l-prod__media { align-self: flex-start; width: 104px; height: 104px; }
.l-prod__img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--l-r-img);
  background: var(--l-soft); box-shadow: inset 0 0 0 1px var(--l-line);
}
.lokma .has-img .l-prod__media .rl-add.l-add { position: absolute; right: -8px; bottom: -8px; }
.lokma.l-img-left .has-img .l-prod__media .rl-add.l-add { right: auto; left: -8px; }
.l-prod__sold { position: absolute; z-index: 2; left: 50%; bottom: 8px; transform: translateX(-50%); white-space: nowrap; }
.is-sold-out .l-prod__img, .is-sold-out .l-card__img { filter: grayscale(1); opacity: .55; }
.is-sold-out .l-price { color: var(--l-muted); }

/* "+" düğmesi: çekirdeğin simge düğmesi (.rl-add--icon, ad aria-label'da), 44 px dokunma, 36 px görünen daire */
.lokma .rl-add.l-add {
  position: relative; z-index: 2; isolation: isolate;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0;
  border-radius: 50%; background: transparent; color: var(--l-ink);
}
.lokma .rl-add.l-add::before {
  content: ""; position: absolute; z-index: -1; inset: 4px; border-radius: 50%;
  background-color: var(--l-surface);
  box-shadow: 0 0 0 1px var(--l-line), 0 2px 8px rgba(0, 0, 0, .16);
  transition: background-color .15s ease;
}
/* çizgiler 15 px boy, ~2.6 px kalınlık (simge yolu kutunun 14/24'ü) */
.lokma .rl-add.l-add .rl-add__icon { width: 26px; height: 26px; }
.lokma .rl-add.l-add.rl-added { color: var(--l-on-primary); }
.lokma .rl-add.l-add.rl-added::before { background-color: var(--l-primary); }
@media (hover: hover) {
  .lokma .rl-add.l-add:hover { color: var(--l-on-primary); }
  .lokma .rl-add.l-add:hover::before { background-color: var(--l-primary); }
}

/* Rozetler */
.l-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.l-badge {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 24px; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; line-height: 1.2; font-weight: 600;
}
.l-badge .l-i { width: 14px; height: 14px; }
.l-badge--spice { background: #fdecec; color: #a8221a; }
.l-badge--spice .l-i + .l-i { margin-left: -6px; }
.l-badge--diet { background: var(--l-accent-tint); color: var(--l-accent-ink); }
/* tükendi: çekirdek .rl-sold-out etiketi tema rozeti gibi */
.l-badge--sold { background: var(--l-text); color: var(--l-surface); }
.l-tags__sold { display: flex; }

.l-allergens { display: block; margin-top: 6px; color: var(--l-muted); font-size: 12.5px; line-height: 1.4; }
.l-allergens__k { font-weight: 600; }
.l-allergen + .l-allergen::before { content: ", "; }
.l-allergen__lvl { font-style: italic; }

/* ---------- Popüler şeridi ---------- */
.l-featured { padding-bottom: 14px; }
.l-pops {
  display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
  margin: 8px -16px 0; padding: 4px 16px 8px; scrollbar-width: none;
}
.l-pops::-webkit-scrollbar { display: none; }
.l-pop { scroll-snap-align: start; min-width: 0; }
.l-card { position: relative; display: flex; flex-direction: column; gap: 5px; height: 100%; }
.l-card__media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--l-r-img); background: var(--l-soft); margin-bottom: 4px; }
.l-card__img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--l-line); }
.l-card__media--empty { display: grid; place-items: center; background: var(--l-primary-tint); color: var(--l-ink); }
.l-card__ph { width: 52px; height: 52px; opacity: .55; }
.lokma .l-card__media .rl-add.l-add { position: absolute; right: 2px; bottom: 2px; }
.l-card__sold { position: absolute; z-index: 2; left: 8px; bottom: 8px; }
.l-card__name {
  font-size: 14.5px; line-height: 1.3; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.l-card__price { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: auto; }
.l-card__price .l-price { padding: 3px 9px; border-radius: 999px; background: var(--l-soft); font-size: 13.5px; }
.l-card__price .l-opts { font-size: 12px; }
.l-card--text { padding: 12px 12px 56px; border: 1px solid var(--l-line); border-radius: var(--rl-radius); min-height: 112px; }
.l-card--text .l-card__media { position: static; aspect-ratio: auto; height: 0; margin: 0; }
.lokma .l-card--text .l-card__media .rl-add.l-add { right: 6px; bottom: 6px; }
.l-card--text .l-card__sold { left: 12px; bottom: 12px; }

/* ---------- Boş durumlar, not ---------- */
.l-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin: 8px -16px 0; padding: 48px 16px; background: var(--l-surface);
  color: var(--l-muted); text-align: center; font-size: 15px;
}
.l-empty__icon { width: 44px; height: 44px; color: var(--l-line); }
.l-notice {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 8px -16px 0; padding: 14px 16px; background: var(--l-surface);
  color: var(--l-muted); font-size: 13px;
}
.l-notice .l-i { margin-top: 1px; color: var(--l-muted); }

/* ---------- Şubeler, iletişim ---------- */
.l-info { padding-bottom: 20px; }
.l-venues { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin-top: 8px; }
.l-venue { padding: 14px; border: 1px solid var(--l-line); border-radius: var(--rl-radius); }
.l-venue.is-current { border-color: var(--l-primary); box-shadow: inset 0 0 0 1px var(--l-primary); }
.l-venue__name { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; }
.l-venue__name .l-i { color: var(--l-ink); }
.l-venue__addr { margin-top: 4px; color: var(--l-muted); font-size: 14px; font-style: normal; }
.l-venue__actions, .l-contact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.l-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--l-line); background: var(--l-surface); color: var(--l-text);
  font: 600 14px/1.2 var(--rl-font-family); text-decoration: none; cursor: pointer;
}
.l-btn .l-i { width: 17px; height: 17px; color: var(--l-ink); }
.l-btn--primary { background: var(--l-primary); color: var(--l-on-primary); border-color: transparent; }
.l-btn--block { width: 100%; }
@media (hover: hover) {
  .l-btn:hover { border-color: var(--l-muted); }
  .l-btn--primary:hover { border-color: transparent; filter: brightness(.94); }
}

/* ---------- Geniş ekran sepet paneli ---------- */
.l-side { display: none; }
.l-cartcard {
  display: flex; flex-direction: column; gap: 14px; padding: 18px;
  background: var(--l-surface); border: 1px solid var(--l-line); border-radius: var(--rl-radius);
}
.l-cartcard__title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.l-cartcard__title .l-i { width: 20px; height: 20px; color: var(--l-ink); }
.l-cartcard__count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px;
  margin-left: auto; border-radius: 999px; background: var(--l-soft); color: var(--l-text); font-size: 13px; font-weight: 700;
}
.l-cartcard__empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 0 18px; color: var(--l-muted); text-align: center; font-size: 14px; }
.l-cartcard__art { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--l-primary-tint); color: var(--l-ink); }
.l-cartcard__art .l-i { width: 34px; height: 34px; }
.l-cartcard__foot { display: flex; flex-direction: column; gap: 10px; }
/* satır listesi (çekirdek doldurur; adet düğmeleri burada da çalışır); uzun sepette panel ekrana sığsın */
.l-cartcard__lines {
  max-height: max(168px, calc(100vh - var(--rl-sticky-offset) - 330px));
  overflow-y: auto; overscroll-behavior: contain;
  margin: -4px -18px 4px; padding: 0 18px;
  border-top: 1px solid var(--l-line); border-bottom: 1px solid var(--l-line);
}
.lokma .l-cartcard__lines .rl-line { gap: 6px; padding: 10px 0; }
.lokma .l-cartcard__lines .rl-line:last-child { border-bottom: 0; }
.lokma .l-cartcard__lines .rl-line__info { font-size: 14.5px; }
.lokma .l-cartcard__lines .rl-line__name { font-weight: 600; }
.lokma .l-cartcard__lines .rl-line__price { font-weight: 700; }
.lokma .l-cartcard__lines .rl-line__remove { font-size: 13px; }
.l-cartcard__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; }
.l-cartcard__total strong { font-size: 19px; }
.l-cartcard__note { color: var(--l-muted); font-size: 12.5px; }

/* ---------- Alt bilgi ---------- */
.l-footer { padding: 24px 0 28px; color: var(--l-muted); font-size: 13px; text-align: center; }
.l-footer p + p { margin-top: 4px; }
.l-footer__brand { font-weight: 700; color: var(--l-text); font-size: 14px; }
.l-footer__top { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--l-text); }

/* ---------- Çekirdek arayüz uyarlamaları ---------- */
.lokma .rl-cartbar {
  min-height: 56px; padding: 0 16px 0 10px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}
.lokma .rl-cartbar__label { flex: 1; text-align: center; }
.lokma .rl-cartbar__total { font-variant-numeric: tabular-nums; }
.lokma .rl-drawer__title { font-size: 19px; font-weight: 700; }
.lokma .rl-pd__img { aspect-ratio: 4 / 3; max-height: 300px; height: auto; }
.lokma .rl-pd__price { font-size: 21px; }
.lokma .rl-variant:has(input:checked) { border-color: var(--l-primary); box-shadow: inset 0 0 0 1px var(--l-primary); }
.lokma .rl-qty__btn { color: var(--l-ink); font-weight: 700; }
.lokma .rl-btn--primary { font-weight: 700; }

/* ---------- 600 px+ ---------- */
@media (min-width: 600px) {
  .l-wrap { padding: 0 24px; }
  .l-section, .l-empty, .l-notice { margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; }
  .l-tabs { margin: 0 -24px; padding: 0 16px; }
  .l-pops { margin: 8px -24px 0; padding: 4px 24px 8px; scroll-padding: 0 24px; grid-auto-columns: 168px; }
  .l-langs { right: 24px; }
  .has-img .l-prod__media { width: 116px; height: 116px; }
}

/* ---------- 768 px+: kart ızgarası ---------- */
@media (min-width: 768px) {
  .l-head__inner { padding-top: 18px; padding-bottom: 22px; }
  .l-brand__logo { width: 96px; height: 96px; }
  .l-head--cover .l-brand__logo { margin-top: -56px; }
  .l-brand__name { font-size: 30px; }
  .l-brand__tagline { font-size: 15px; }

  .l-layout { padding-top: 8px; }
  .l-section, .l-empty, .l-notice { margin: 28px 0 0; padding: 0; background: none; }
  .l-empty { padding: 48px 16px; background: var(--l-surface); border-radius: var(--rl-radius); }
  .l-notice { padding: 14px 16px; background: var(--l-surface); border-radius: var(--rl-radius); border: 1px solid var(--l-line); }
  .l-section__title { font-size: 22px; }
  .l-section__head { margin-bottom: 12px; }

  .l-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .l-item + .l-item { border-top: 0; }
  .l-item { min-width: 0; }
  .l-prod {
    height: 100%; padding: 14px; background: var(--l-surface);
    border: 1px solid var(--l-line); border-radius: var(--rl-radius);
    transition: box-shadow .15s ease, border-color .15s ease;
  }
  .lokma .has-img .l-prod__media .rl-add.l-add { right: -6px; bottom: -6px; }
  .lokma.l-img-left .has-img .l-prod__media .rl-add.l-add { right: auto; left: -6px; }

  /* tek satır: yer varsa kartlar genişleyip satırı doldurur, sığmazsa yatay kayar (yetim kart kalmaz) */
  .l-pops {
    grid-auto-columns: minmax(150px, 1fr);
    margin: 0 -6px; padding: 6px 6px 12px; scroll-padding: 0 6px;
  }
  @media (hover: hover) {
    .l-pops { scrollbar-width: thin; scrollbar-color: var(--l-line) transparent; }
    .l-pops::-webkit-scrollbar { display: block; height: 6px; }
    .l-pops::-webkit-scrollbar-thumb { background: var(--l-line); border-radius: 3px; }
  }
  .l-pop .l-card { padding: 10px; background: var(--l-surface); border: 1px solid var(--l-line); border-radius: var(--rl-radius); transition: box-shadow .15s ease; }
  .l-pop .l-card--text { padding-bottom: 56px; }

  .l-info { padding: 20px; background: var(--l-surface); border: 1px solid var(--l-line); border-radius: var(--rl-radius); }
  .l-venue { background: var(--l-surface); }

  @media (hover: hover) {
    .l-prod:hover, .l-pop .l-card:hover { box-shadow: var(--l-shadow); border-color: color-mix(in srgb, var(--l-text) 22%, var(--l-surface)); }
  }
}

/* ---------- 960 px+: arama sekmelerle aynı satırda ---------- */
@media (min-width: 960px) {
  .l-bar { top: 0; }
  .l-bar__inner { flex-direction: row; align-items: center; gap: 16px; }
  .l-search { flex: none; width: 260px; height: auto; padding: 8px 0; }
  .l-tabs-wrap { flex: 1; gap: 6px; }
  .l-tabs { margin: 0; padding: 0; }
  .l-tabs-arrow:not([hidden]) {
    display: inline-flex !important; align-items: center; justify-content: center; flex: none;
    width: 36px; height: 36px; padding: 0; border-radius: 50%;
    border: 1px solid var(--l-line); background: var(--l-surface); color: var(--l-text); cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
  }
  .l-tabs-arrow .l-i { width: 18px; height: 18px; }
  .l-tab { min-height: 60px; padding: 0 12px; }
  .l-tab::after { left: 12px; right: 12px; }
  :root { --rl-sticky-offset: 60px; }
  .lokma [data-rl-category] { scroll-margin-top: calc(var(--rl-sticky-offset) + 20px); }
}

/* ---------- 1024 px+: sağda sepet paneli ---------- */
@media (min-width: 1024px) {
  .l-has-side .l-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
  .l-has-side .l-side { display: block; position: sticky; top: calc(var(--rl-sticky-offset) + 24px); margin-top: 28px; }
  .l-has-side .rl-cartbar { display: none !important; }
  body.lokma.l-has-side { padding-bottom: 24px; }
  .l-main > :first-child { margin-top: 28px; }
}

/* ---------- Erişilebilirlik, yazdırma ---------- */
@media (prefers-reduced-motion: reduce) {
  .lokma *, .lokma *::before, .lokma *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .l-chip, .l-badge, .l-btn, .l-prod, .l-card, .l-search__input, .l-langs a[aria-current="true"] { border: 1px solid CanvasText; }
  .l-tab.is-active::after { background: Highlight; }
  .lokma .rl-add.l-add::before { border: 1px solid ButtonText; }
}
@media print {
  .l-bar, .l-side, .l-skip, .rl-cartbar, .l-langs, .lokma .rl-add, .l-cover { display: none !important; }
  body.lokma { background: #fff; padding: 0; }
  .l-section { break-inside: auto; }
  .l-prod { break-inside: avoid; }
}
