/* =============================================================
   RESTO DEMO · core/base.css
   Her iki demonun paylaştığı sıfırlama ve ortak parçacıklar.
   Tema renkleri burada TANIMLANMAZ — takeaway.css / restaurant.css
   kendi token setini getirir.
   ============================================================= */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, video { display: block; max-width: 100%; }

button { font: inherit; color: inherit; }

a { text-decoration: none; color: inherit; }

h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* --- Erişilebilirlik ----------------------------------------- */
/* Odak halkası currentColor DEĞİL: dolgulu butonlarda (beyaz metin)
   halka da beyaz oluyor ve açık zeminde kayboluyordu.
   Her tema kendi --rs-focus değerini tanımlar. */
:focus-visible {
  outline: 2px solid var(--rs-focus, #111111);
  outline-offset: 2px;
  border-radius: 4px;
}

.rs-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.rs-skip-link {
  position: absolute;
  left: 16px; top: -64px;
  z-index: 2000;
  padding: 10px 18px;
  background: #111; color: #fff;
  border-radius: 8px;
  transition: top .18s ease;
}
.rs-skip-link:focus { top: 16px; }

/* --- Metin sarma --------------------------------------------- */
.rs-balance { text-wrap: balance; }
.rs-pretty  { text-wrap: pretty; }

/* Değişen sayısal değerler hizada kalsın */
.rs-tnum { font-variant-numeric: tabular-nums; }

/* --- Yatay kaydırma şeritleri -------------------------------- */
.rs-scroll-x {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.rs-scroll-x::-webkit-scrollbar { display: none; }

/* --- Görsel çerçevesi (yüklenene kadar boş kutu görünmesin) --- */
.rs-media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(128,128,128,.14), rgba(128,128,128,.06));
}
.rs-media > img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Görsel kenarına ince kontur: açık zeminde kenar netleşir */
  outline: 1px solid rgba(0, 0, 0, .1);
  outline-offset: -1px;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.rs-media > img.is-broken { opacity: 0; }

/* --- Bildirim ------------------------------------------------- */
.rs-toast-host {
  position: fixed;
  z-index: 2200;
  right: 16px; bottom: 16px;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.rs-toast {
  min-width: 220px; max-width: min(92vw, 360px);
  padding: 12px 16px;
  border-radius: 10px;
  background: #16181C;
  color: #fff;
  font-size: .9rem;
  box-shadow: 0 14px 38px rgba(0,0,0,.28);
  transform: translateY(10px);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}
.rs-toast.is-visible { opacity: 1; transform: none; }
.rs-toast--success { background: #0E7D57; }
.rs-toast--brand   { background: #C8A15A; color: #14120F; }

@media (max-width: 575.98px) {
  .rs-toast-host { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* --- Sayaç vurgusu -------------------------------------------- */
@keyframes rs-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}
.is-pulsing { animation: rs-pulse .34s ease; }

/* --- Hareket tercihi ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Yazdırma -------------------------------------------------- */
@media print {
  .rs-no-print { display: none !important; }
}
