/* =============================================
   QR MENU — ANA STİL DOSYASI
   ============================================= */

:root {
  --primary:       #1B3A2D;
  --primary-light: #2D5A42;
  --accent:        #D4763B;
  --accent-light:  #F5E6D8;
  --bg:            #F5F0E8;
  --bg-card:       #FFFFFF;
  --text:          #1A1A1A;
  --text-muted:    #6B7280;
  --text-light:    #9CA3AF;
  --border:        #E8E2D9;
  --danger:        #EF4444;
  --success:       #22C55E;
  --warning:       #F59E0B;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.14);
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --nav-h:         68px;
  --header-h:      70px;
  --font-display:  'Playfair Display', serif;
  --font-body:     'Plus Jakarta Sans', system-ui, sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }
input, textarea { font-family: inherit; }
a { text-decoration: none; color: inherit; }

/* UTILITY */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.w-full { width: 100%; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* =============================================
   LOADING SCREEN
   ============================================= */
.loading-screen {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  flex-direction: column; gap: 16px;
}
.loading-spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-logo p { color: var(--text-muted); font-size: .9rem; margin-top: 12px; text-align: center; }

/* =============================================
   ERROR SCREEN
   ============================================= */
.error-screen {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px; padding: 32px; text-align: center;
}
.error-icon { font-size: 64px !important; color: var(--accent); }
.error-screen h2 { font-size: 1.4rem; font-weight: 700; }
.error-screen p { color: var(--text-muted); }

/* =============================================
   APP SHELL
   ============================================= */
#app { display: flex; flex-direction: column; height: 100vh; max-width: 480px; margin: 0 auto; position: relative; overflow: hidden; }

/* =============================================
   HEADER
   ============================================= */
.app-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  height: var(--header-h);
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.header-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.header-brand { display: flex; flex-direction: column; min-width: 0; }
.header-title {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.2;
}
.header-subtitle { font-size: .72rem; color: var(--primary); font-weight: 500; }

.header-right { display: flex; align-items: center; gap: 8px; position: relative; }
.masa-chip {
  display: flex; align-items: center; gap: 4px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 10px;
  font-size: .8rem; font-weight: 600; color: var(--text);
  white-space: nowrap;
}
.masa-chip:hover { background: var(--border); }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text);
}

/* DİL MENÜSÜ */
.dil-menu {
  position: absolute; top: 44px; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden; min-width: 140px; z-index: 200;
}
.dil-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  font-size: .875rem; font-weight: 500;
  width: 100%; text-align: left;
  transition: background .15s;
}
.dil-item:hover { background: var(--bg); }
.dil-item.active { color: var(--primary); font-weight: 600; }
.dil-flag { font-size: 1.2rem; }

/* =============================================
   PAGE CONTENT
   ============================================= */
.page-content {
  flex: 1;
  margin-top: var(--header-h);
  margin-bottom: var(--nav-h);
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100vh - var(--header-h) - var(--nav-h));
}

/* =============================================
   BOTTOM NAV
   ============================================= */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  height: var(--nav-h);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  z-index: 100;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; padding: 8px 4px;
  color: var(--text-light); font-size: .68rem;
  font-weight: 500; position: relative;
  transition: color .2s;
}
.nav-item .material-icons-round { font-size: 22px; }
.nav-item.active { color: var(--primary); }
.nav-item.active .material-icons-round { font-weight: 700; }
.nav-badge {
  position: absolute; top: 4px; right: calc(50% - 18px);
  background: var(--accent); color: #fff;
  font-size: .6rem; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  background: var(--primary); color: #fff;
  border-radius: var(--radius-lg); padding: 14px 24px;
  font-size: 1rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; transition: opacity .2s, transform .1s;
}
.btn-primary:active { opacity: .85; transform: scale(.98); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.btn-secondary {
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 24px;
  font-size: 1rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; transition: background .2s;
}
.btn-secondary:hover { background: var(--border); }

.btn-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700;
  flex-shrink: 0;
}
.btn-icon.outline {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary);
}

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* =============================================
   BADGES
   ============================================= */
/* Ürün satırı badge — kartın sol üst köşesi */
.urun-satir-badge-wrap {
  position: absolute; top: -1px; left: -1px; z-index: 3;
}
.urun-satir-badge-wrap .badge {
  border-radius: 14px 0 10px 0;
}

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 20px;
  font-size: .68rem; font-weight: 600;
}
.badge-popular { background: #FEF3C7; color: #92400E; }
.badge-new      { background: #DCFCE7; color: #166534; }
.badge-special  { background: #EDE9FE; color: #5B21B6; }
.badge-menu     { background: #E0F2FE; color: #0369A1; }

/* =============================================
   SEARCH BAR
   ============================================= */
.search-bar {
  position: relative; padding: 12px 16px;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
}
.search-input {
  width: 100%; background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 50px;
  padding: 10px 16px 10px 42px;
  font-size: .9rem; color: var(--text);
  outline: none; transition: border-color .2s;
}
.search-input:focus { border-color: var(--primary); }
.search-icon {
  position: absolute; left: 28px; top: 50%; transform: translateY(-50%);
  color: var(--text-light); font-size: 20px !important;
  pointer-events: none;
}

/* =============================================
   KATEGORİ TABS (yatay scroll)
   ============================================= */
.kategori-tabs {
  display: flex; gap: 8px;
  padding: 12px 16px;
  overflow-x: auto; background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none; -ms-overflow-style: none;
}
.kategori-tabs::-webkit-scrollbar { display: none; }

.kategori-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 50px;
  font-size: .83rem; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
  background: var(--bg-card); color: var(--text-secondary);
  border: 1.5px solid var(--border);
  transition: all .18s; letter-spacing: -.01em;
}
.kategori-tab.active {
  background: var(--primary); color: #fff;
  border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
}

/* =============================================
   ANA SAYFA
   ============================================= */
.anasayfa-hero {
  background: var(--primary);
  padding: 20px 16px 28px;
  position: relative; overflow: hidden;
}
.anasayfa-hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 24px;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
}
.hero-hosgeldın {
  color: rgba(255,255,255,.7); font-size: .82rem; margin-bottom: 4px;
}
.hero-isletme {
  font-family: var(--font-display);
  color: #fff; font-size: 1.5rem; line-height: 1.2;
}
.hero-aciklama {
  color: rgba(255,255,255,.6); font-size: .82rem; margin-top: 6px;
}

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.section-link { color: var(--primary); font-size: .82rem; font-weight: 600; }

/* ÖNEÇIKANLAR GRİD (2 kolon) */
.one-cikanlar-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; padding: 0 16px 16px;
}
.one-cikan-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  position: relative;
}
.one-cikan-card:active { transform: scale(.97); }
.one-cikan-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  background: var(--border);
}
.one-cikan-badge {
  position: absolute; top: 8px; right: 8px;
}
.one-cikan-body { padding: 10px; }
.one-cikan-ad {
  font-weight: 700; font-size: .9rem;
  margin-bottom: 4px; line-height: 1.2;
}
.one-cikan-aciklama {
  font-size: .72rem; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 8px; line-height: 1.4;
}
.one-cikan-footer { display: flex; align-items: center; justify-content: space-between; }
.one-cikan-fiyat { color: var(--accent); font-weight: 700; font-size: .9rem; }
.add-btn {
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700;
}

/* =============================================
   MENÜ LİSTESİ (tek kolon, yatay kart)
   ============================================= */
.urun-list { padding: 8px 16px; display: flex; flex-direction: column; gap: 10px; }

.urun-list-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex; gap: 12px; padding: 12px;
  cursor: pointer;
  transition: transform .15s;
  position: relative; overflow: hidden;
}
.urun-list-card:active { transform: scale(.98); }
.urun-list-img-wrap { position: relative; flex-shrink: 0; }
.urun-list-img {
  width: 90px; height: 90px; border-radius: var(--radius-sm);
  object-fit: cover; background: var(--border);
}
.urun-list-badge { position: absolute; top: 4px; left: 4px; }
.urun-list-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.urun-list-ad { font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.urun-list-aciklama {
  font-size: .78rem; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.4; flex: 1;
}
.urun-list-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.urun-list-fiyat { color: var(--accent); font-weight: 700; font-size: .95rem; }
.urun-list-rating { font-size: .72rem; color: var(--text-muted); display: flex; align-items: center; gap: 3px; }
.star-icon { color: var(--warning); font-size: 13px !important; }

/* =============================================
   ÜRÜN DETAY SAYFASI
   ============================================= */
.urun-detay-page { background: var(--bg); }
.urun-detay-header {
  position: relative;
}
.urun-detay-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  background: var(--border);
}
.urun-detay-back {
  position: absolute; top: 12px; left: 12px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.urun-detay-body {
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: -20px; position: relative;
  padding: 20px 16px;
  min-height: 60vh;
}
.urun-detay-ad {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700; margin-bottom: 4px;
}
.urun-detay-fiyat { color: var(--accent); font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.urun-detay-aciklama { color: var(--text-muted); font-size: .875rem; line-height: 1.6; margin-bottom: 20px; }

.detay-section-title { font-weight: 700; font-size: .95rem; margin-bottom: 10px; }

/* Porsiyon seçim (tab-stili) */
.porsiyon-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.porsiyon-tab {
  flex: 1; min-width: 80px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 8px; text-align: center; cursor: pointer;
  transition: all .2s;
}
.porsiyon-tab .tab-ad { font-weight: 600; font-size: .85rem; }
.porsiyon-tab .tab-alt { font-size: .72rem; color: var(--text-muted); }
.porsiyon-tab.active {
  background: var(--primary); border-color: var(--primary);
  color: #fff;
}
.porsiyon-tab.active .tab-alt { color: rgba(255,255,255,.7); }

/* Ekstra seçim (checkbox listesi) */
.ekstra-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; }
.ekstra-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.ekstra-item:last-child { border-bottom: none; }
.ekstra-left { display: flex; align-items: center; gap: 10px; }
.ekstra-emoji { font-size: 1.2rem; }
.ekstra-ad { font-size: .9rem; font-weight: 500; }
.ekstra-right { display: flex; align-items: center; gap: 10px; }
.ekstra-fiyat { color: var(--accent); font-size: .875rem; font-weight: 600; }
.ekstra-checkbox {
  width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; flex-shrink: 0;
}
.ekstra-checkbox.checked {
  background: var(--primary); border-color: var(--primary);
}
.ekstra-checkbox.checked::after {
  content: '✓'; color: #fff; font-size: .8rem; font-weight: 700;
}

/* Adet seçici */
.adet-secici {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.adet-secici label { font-weight: 700; font-size: .95rem; }
.adet-kontroler {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg); border-radius: var(--radius-lg);
  padding: 4px 8px; border: 1.5px solid var(--border);
}
.adet-btn {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: var(--primary);
}
.adet-val { font-weight: 700; font-size: 1rem; min-width: 24px; text-align: center; }

/* Not input */
.not-input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  font-size: .9rem; resize: none; outline: none;
  background: var(--bg); margin-bottom: 20px;
  transition: border-color .2s;
}
.not-input:focus { border-color: var(--primary); }

/* Sepete ekle sticky button */
.sepete-ekle-bar {
  position: sticky; bottom: 0;
  padding: 12px 16px; background: var(--bg-card);
  border-top: 1px solid var(--border);
}

/* =============================================
   MASA SEÇİMİ
   ============================================= */
.masalar-page { padding: 16px; }
.masalar-page-title {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700; margin-bottom: 4px;
}
.masalar-page-sub { color: var(--text-muted); font-size: .875rem; margin-bottom: 16px; }

/* Bölüm tabs */
.bolum-tabs {
  display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: none; margin-bottom: 16px; padding-bottom: 4px;
}
.bolum-tabs::-webkit-scrollbar { display: none; }
.bolum-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius-lg);
  font-size: .85rem; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
  background: var(--bg-card); color: var(--text);
  border: 1.5px solid var(--border);
  transition: all .2s;
}
.bolum-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Masa grid */
.masa-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px; margin-bottom: 80px;
}
.masa-kart {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  border: 2px solid var(--border);
  cursor: pointer; position: relative;
  transition: all .2s; display: flex; flex-direction: column; gap: 6px;
}
.masa-kart:active { transform: scale(.97); }
.masa-kart.bos { border-color: #BBF7D0; background: #F0FDF4; }
.masa-kart.dolu { border-color: #FCA5A5; background: #FEF2F2; cursor: not-allowed; opacity: .85; }
.masa-kart.secili { background: var(--primary); border-color: var(--primary); color: #fff; }

.masa-kart-ust {
  display: flex; align-items: center; justify-content: space-between;
}
.masa-icon-wrap {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.masa-kart.bos .masa-icon-wrap { background: #DCFCE7; }
.masa-kart.dolu .masa-icon-wrap { background: #FEE2E2; }
.masa-kart.secili .masa-icon-wrap { background: rgba(255,255,255,.2); }
.masa-icon { font-size: 20px !important; color: #16A34A; }
.masa-kart.dolu .masa-icon { color: #DC2626; }
.masa-kart.secili .masa-icon { color: #fff; }

.masa-durum-badge {
  font-size: .68rem; font-weight: 600; padding: 3px 8px;
  border-radius: 20px;
}
.masa-durum-badge.bos { background: #DCFCE7; color: #166534; }
.masa-durum-badge.dolu { background: #FEE2E2; color: #991B1B; }

.masa-ad { font-weight: 700; font-size: .92rem; }
.masa-kart.secili .masa-ad { color: #fff; }
.masa-tutar { font-size: .78rem; color: var(--text-muted); font-weight: 500; }
.masa-kart.dolu .masa-tutar { color: var(--danger); }

.masa-secili-check {
  position: absolute; top: 6px; right: 6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px !important; color: #fff;
}

/* Devam et sticky button */
.masalar-footer {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  padding: 12px 16px; background: var(--bg-card);
  border-top: 1px solid var(--border);
}

/* =============================================
   SEPET SAYFASI
   ============================================= */
.sepet-page { padding: 16px; }
.sepet-title {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.sepet-back-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}

.sepet-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.sepet-kart {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 12px; display: flex; gap: 12px;
  box-shadow: var(--shadow-sm);
}
.sepet-kart-img {
  width: 80px; height: 80px; border-radius: var(--radius-sm);
  object-fit: cover; background: var(--border); flex-shrink: 0;
}
.sepet-kart-body { flex: 1; min-width: 0; }
.sepet-kart-ad { font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.sepet-kart-aciklama { font-size: .75rem; color: var(--text-muted); margin-bottom: 6px; }
.sepet-ekstralar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.sepet-ekstra-tag {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 2px 8px;
  font-size: .68rem; color: var(--text-muted);
}
.sepet-kart-footer { display: flex; align-items: center; justify-content: space-between; }
.sepet-kart-adet { display: flex; align-items: center; gap: 8px; }
.sepet-adet-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 700; color: var(--text);
}
.sepet-adet-val { font-weight: 700; font-size: .9rem; }
.sepet-kart-fiyat { color: var(--accent); font-weight: 700; }
.sepet-sil-btn { color: var(--danger); padding: 4px; }

/* Özet kutu */
.sepet-ozet {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.ozet-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .875rem; }
.ozet-row:last-child { margin-bottom: 0; }
.ozet-row.toplam { font-weight: 700; font-size: 1rem; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }
.ozet-row.toplam .ozet-val { color: var(--accent); font-size: 1.1rem; }

/* Masa info */
.masa-info-chip {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 12px 14px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.masa-info-left { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.masa-degistir-btn {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 5px 10px;
  font-size: .78rem; font-weight: 600;
}

/* Sipariş notu */
.siparis-not-wrap { background: var(--bg-card); border-radius: var(--radius-md); padding: 14px; margin-bottom: 80px; box-shadow: var(--shadow-sm); }
.siparis-not-label { font-weight: 600; font-size: .875rem; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.siparis-not-input {
  width: 100%; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: .875rem; resize: none; outline: none; background: var(--bg);
  transition: border-color .2s;
}
.siparis-not-input:focus { border-color: var(--primary); }
.not-counter { text-align: right; font-size: .72rem; color: var(--text-light); margin-top: 4px; }

.sepet-footer {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  padding: 12px 16px; background: var(--bg-card);
  border-top: 1px solid var(--border);
}

/* Boş sepet */
.bos-sepet {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 32px; text-align: center; gap: 12px;
}
.bos-sepet-icon { font-size: 64px !important; color: var(--border); }
.bos-sepet h3 { font-size: 1.1rem; font-weight: 700; }
.bos-sepet p { color: var(--text-muted); font-size: .875rem; }

/* =============================================
   SİPARİŞ DURUMU
   ============================================= */
.siparis-durumu-page { padding: 16px; }
.siparis-durumu-page .back-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.siparis-durumu-page .page-title {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700; margin-bottom: 16px;
}

.siparis-basarili-kart {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px 16px; text-align: center;
  margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.siparis-check-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  color: #fff; font-size: 28px !important;
}
.siparis-basarili-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.siparis-basarili-sub { color: var(--text-muted); font-size: .875rem; margin-bottom: 12px; }
.siparis-masa-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--border); border-radius: 20px;
  padding: 6px 14px; font-size: .875rem; font-weight: 600;
}

/* Progress steps */
.siparis-progress-kart {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.siparis-no { font-size: .82rem; color: var(--text-muted); margin-bottom: 4px; }
.siparis-tarih { font-size: .78rem; color: var(--text-light); margin-bottom: 16px; }

.progress-steps {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; margin-bottom: 16px;
}
.progress-steps::before {
  content: ''; position: absolute;
  top: 20px; left: 20px; right: 20px; height: 2px;
  background: var(--border); z-index: 0;
}
.progress-line {
  position: absolute; top: 20px; left: 20px; height: 2px;
  background: var(--primary); z-index: 1;
  transition: width .4s;
}
.step-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; z-index: 2; flex: 1;
}
.step-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px !important; color: var(--text-light);
}
.step-item.done .step-icon { background: var(--primary); border-color: var(--primary); color: #fff; }
.step-item.active .step-icon { background: var(--bg-card); border-color: var(--primary); color: var(--primary); }
.step-label { font-size: .62rem; color: var(--text-muted); text-align: center; font-weight: 500; }
.step-time { font-size: .58rem; color: var(--text-light); }
.step-item.done .step-label { color: var(--primary); font-weight: 600; }

.tahmin-sure {
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 10px; text-align: center; font-size: .85rem;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.tahmin-sure strong { color: var(--accent); }

/* Sipariş özet */
.siparis-ozet-kart {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 14px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.siparis-ozet-header {
  display: flex; justify-content: space-between;
  font-weight: 700; margin-bottom: 12px;
}
.ozet-urun-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.ozet-urun-row:last-child { border-bottom: none; }
.ozet-urun-img { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; background: var(--border); flex-shrink: 0; }
.ozet-urun-ad { flex: 1; font-size: .875rem; font-weight: 500; }
.ozet-urun-adet { font-size: .78rem; color: var(--text-muted); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; }
.ozet-urun-fiyat { color: var(--accent); font-weight: 700; font-size: .875rem; }
.ozet-toplam { display: flex; justify-content: space-between; margin-top: 10px; font-weight: 700; padding-top: 10px; border-top: 1px solid var(--border); }
.ozet-toplam-val { color: var(--accent); font-size: 1rem; }

.siparis-mesaj {
  background: #F0FDF4; border-radius: var(--radius-md);
  padding: 12px 14px; margin-bottom: 80px;
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: #166534;
}

.siparis-footer {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  padding: 12px 16px; background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex; gap: 10px;
}
.siparis-footer .btn-secondary { flex: 1; }
.siparis-footer .btn-primary { flex: 1.5; }

/* =============================================
   TOAST BİLDİRİM
   ============================================= */
.toast-container {
  position: fixed; top: calc(var(--header-h) + 8px);
  left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 440px;
  z-index: 9000; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--text); color: #fff;
  border-radius: var(--radius-md); padding: 12px 16px;
  font-size: .875rem; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-lg); pointer-events: all;
  animation: slideDown .25s ease;
}
.toast.success { background: var(--primary); }
.toast.error   { background: var(--danger); }
.toast.warning { background: var(--warning); color: var(--text); }
@keyframes slideDown { from { opacity:0; transform:translateY(-12px); } to { opacity:1; transform:none; } }

/* =============================================
   GENEL YARDIMCI SINIFLAR
   ============================================= */
.mt-16 { margin-top: 16px; }
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 8px;
}
.page-header h2 {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
}
.yenile-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
}
.back-btn {
  position: absolute; top: 12px; left: 12px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); z-index: 10;
}
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 32px; text-align: center; gap: 12px;
}
.empty-state .material-icons-round { font-size: 56px !important; color: var(--border); }
.empty-state p { color: var(--text-muted); font-size: .9rem; }

/* Loading dots */
.loading-dots {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 40px;
}
.loading-dots span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
  animation: dot-bounce .8s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: .16s; }
.loading-dots span:nth-child(3) { animation-delay: .32s; }
@keyframes dot-bounce { 0%,80%,100% { transform:scale(.8); opacity:.5; } 40% { transform:scale(1.1); opacity:1; } }

/* =============================================
   ANA SAYFA (anasayfa.js sınıfları)
   ============================================= */
.anasayfa-wrap { padding-bottom: 16px; }
.hero-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 28px 20px 40px;
  position: relative;
}
.hero-gradient::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 24px; background: var(--bg); border-radius: 24px 24px 0 0;
}
.hero-banner { position: relative; width: 100%; height: 200px; overflow: hidden; }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px 20px;
}
.hero-banner-overlay h2 { color: #fff; font-size: 1.3rem; font-weight: 700; margin: 0; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.hero-banner-overlay p  { color: rgba(255,255,255,.85); font-size: .82rem; margin: 3px 0 0; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.hero-text h2 {
  font-family: var(--font-display); color: #fff;
  font-size: 1.6rem; font-weight: 700; line-height: 1.2; margin-bottom: 4px;
}
.hero-text p { color: rgba(255,255,255,.7); font-size: .875rem; }
/* Masa seçim banner */
.masa-secim-banner {
  margin: 14px 16px 6px;
  background: var(--bg-card);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; transition: transform .15s, box-shadow .15s;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.masa-secim-banner:active { transform: scale(.98); }
.masa-secim-ikon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.masa-secim-ikon .material-icons-round { color: #fff; font-size: 22px !important; }
.masa-secim-metin { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.masa-secim-baslik { font-weight: 700; font-size: .95rem; color: var(--primary); }
.masa-secim-alt { font-size: .75rem; color: var(--text-muted); }
.masa-secim-ok { color: var(--primary); font-size: 18px !important; flex-shrink: 0; }

/* Kategoriler */
.section-block { margin-bottom: 4px; }
.kategori-scroll {
  display: flex; gap: 10px; padding: 4px 16px 12px;
  overflow-x: auto; scrollbar-width: none;
}
.kategori-scroll::-webkit-scrollbar { display: none; }
.kategori-chip {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 16px; min-width: 80px;
  background: var(--bg-card); border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  font-size: .78rem; font-weight: 600; flex-shrink: 0;
  transition: all .18s; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.kategori-chip img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.kategori-chip .material-icons-round { font-size: 26px !important; color: var(--primary); }
.kategori-chip:active { background: var(--primary); color: #fff; border-color: var(--primary); transform: scale(.96); }
.kategori-chip:active .material-icons-round { color: #fff; }
.urun-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; padding: 0 16px 8px;
}
.urun-kart {
  background: var(--bg-card); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
  cursor: pointer; transition: transform .15s;
}
.urun-kart:active { transform: scale(.97); }
.urun-kart-resim {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: var(--border);
}
.urun-kart-resim img { width: 100%; height: 100%; object-fit: cover; }
.urun-kart-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
}
.urun-kart-placeholder .material-icons-round { font-size: 36px !important; color: var(--text-light); }
.urun-badge-wrap { position: absolute; top: 6px; left: 6px; }
.urun-kart-bilgi { padding: 8px 10px; }
.urun-kart-ad { font-weight: 700; font-size: .82rem; display: block; margin-bottom: 3px; line-height: 1.3; }
.urun-kart-fiyat {
  color: var(--primary);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: -.01em;
  margin-top: 4px;
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
}

/* =============================================
   MENU PAGE (menu.js sınıfları)
   ============================================= */
.menu-wrap { display: flex; flex-direction: column; }
.menu-sticky-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.menu-search-bar {
  padding: 12px 16px 8px;
  background: var(--bg-card);
  display: flex; align-items: center; gap: 8px;
}
.menu-search-bar .material-icons-round { color: var(--text-light); position: absolute; left: 28px; pointer-events: none; }
.menu-search-bar {position: relative;}
.menu-search-bar input {
  flex: 1; background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 50px; padding: 10px 16px 10px 40px;
  font-size: .875rem; outline: none; transition: border-color .2s;
  width: 100%;
}
.menu-search-bar input:focus { border-color: var(--primary); background: #fff; }
.kategori-tabs-wrap {
  background: var(--bg-card);
}
.urun-listesi { padding: 8px 16px 20px; display: flex; flex-direction: column; gap: 10px; }

/* Ürün satırı — resim solda */
.urun-satir {
  background: var(--bg-card); border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.11), 0 1px 3px rgba(0,0,0,.06);
  display: flex; gap: 14px; padding: 12px;
  cursor: pointer; transition: transform .15s, box-shadow .15s;
  align-items: center; position: relative;
  border: 1px solid rgba(0,0,0,.04);
}
.urun-satir:active { transform: scale(.985); box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.urun-satir.sepette { border-left: 3px solid var(--primary); }

/* Resim — sol */
.urun-satir-resim {
  position: relative; width: 92px; height: 92px; flex-shrink: 0; order: -1;
}
.urun-satir-resim img {
  width: 100%; height: 100%; border-radius: 12px; object-fit: cover;
}
.urun-satir-placeholder {
  width: 100%; height: 100%; border-radius: 12px;
  background: #F0EDE8; display: flex; align-items: center; justify-content: center;
}
.urun-satir-placeholder .material-icons-round { font-size: 32px !important; color: #C4B89A; }

/* Bilgi — orta */
.urun-satir-bilgi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.urun-satir-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; font-weight: 700; padding: 2px 8px;
  border-radius: 20px; width: fit-content; margin-bottom: 2px;
}
.urun-satir-ad {
  font-weight: 700; font-size: 1rem; line-height: 1.3;
  letter-spacing: -.015em; color: var(--text);
}
.urun-satir-aciklama {
  font-size: .78rem; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.45;
}
.urun-satir-alt { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.fiyat-eski {
  font-size: .78rem; color: var(--text-light);
  text-decoration: line-through; text-decoration-thickness: 1.5px;
  font-weight: 500;
}
.urun-satir-fiyat {
  color: var(--primary); font-weight: 800;
  font-size: 1rem; letter-spacing: -.02em;
}

/* + butonu — sağ, büyük yeşil kare */
.urun-ekle-btn {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,.18);
  align-self: flex-end; margin-bottom: 0;
  position: static;
}
.urun-ekle-btn .material-icons-round { font-size: 22px !important; }

/* Sepette adet badge — resim üstünde */
.urun-sepet-adet-badge {
  position: absolute; bottom: 4px; right: 4px;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; box-shadow: var(--shadow-sm);
}

.sepet-item-sagkol {
  display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0;
}
.sepet-item-duzenle {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
}
.sepet-item-duzenle .material-icons-round { font-size: 14px !important; }

/* =============================================
   ÜRÜN DETAY (urun.js sınıfları)
   ============================================= */
.urun-detay-wrap { position: relative; padding-bottom: 100px; }
.urun-detay-resim {
  position: relative; width: 100%; aspect-ratio: 4/3;
  background: var(--border); overflow: hidden;
}
.urun-detay-resim img { width: 100%; height: 100%; object-fit: cover; }
.urun-detay-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  min-height: 200px;
}
.urun-detay-placeholder .material-icons-round { font-size: 64px !important; color: var(--text-light); }
.urun-detay-badge { position: absolute; bottom: 12px; left: 12px; }
.urun-detay-bilgi {
  background: var(--bg-card); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: -20px; position: relative; padding: 20px 16px 12px;
}
.urun-detay-ad { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.urun-detay-aciklama { color: var(--text-muted); font-size: .875rem; line-height: 1.6; margin-bottom: 10px; }
.urun-detay-fiyat-wrap { display: flex; align-items: center; gap: 10px; }
.urun-detay-fiyat { color: var(--accent); font-size: 1.3rem; font-weight: 700; }

/* Ekstra gruplar */
.ekstra-grup { padding: 0 16px 8px; }
.ekstra-grup-baslik {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 0 8px;
  font-weight: 700; font-size: .95rem;
  border-top: 1px solid var(--border);
}
.zorunlu-badge {
  background: #FEE2E2; color: var(--danger);
  font-size: .65rem; font-weight: 600; padding: 2px 8px; border-radius: 20px;
}
.max-badge {
  background: var(--bg); color: var(--text-muted);
  font-size: .65rem; font-weight: 600; padding: 2px 8px; border-radius: 20px;
  border: 1px solid var(--border);
}
.ekstra-secenekler { display: flex; flex-direction: column; gap: 2px; }
.ekstra-radio-item, .ekstra-check-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  cursor: pointer; margin-bottom: 4px; transition: all .15s;
}
.ekstra-radio-item input, .ekstra-check-item input { display: none; }
.ekstra-radio-item.selected, .ekstra-check-item.selected {
  border-color: var(--primary); background: rgba(27,58,45,.05);
}
.ekstra-radio-label, .ekstra-check-label { font-size: .875rem; font-weight: 500; flex: 1; }
.ekstra-fiyat { color: var(--accent); font-size: .82rem; font-weight: 600; }

/* Not alanı */
.urun-not-wrap { padding: 8px 16px 12px; }
.urun-not-wrap label { font-weight: 600; font-size: .875rem; display: block; margin-bottom: 6px; }
.urun-not-wrap textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: .875rem; resize: none; outline: none; background: var(--bg);
  transition: border-color .2s;
}
.urun-not-wrap textarea:focus { border-color: var(--primary); }

/* Alt bar */
.urun-detay-alt {
  position: fixed; bottom: var(--nav-h); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 12px 16px; display: flex; gap: 12px; align-items: center;
}
.adet-kontrol {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 6px 10px;
}
.adet-btn {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.adet-btn .material-icons-round { font-size: 18px !important; }
.adet-sayi { font-weight: 700; font-size: 1rem; min-width: 20px; text-align: center; }
.btn-sepete-ekle {
  flex: 1; background: var(--primary); color: #fff;
  border-radius: var(--radius-lg); padding: 13px 16px;
  font-size: .9rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: opacity .2s;
}
.btn-sepete-ekle:active { opacity: .85; }

/* =============================================
   SEPET PAGE (sepet-page.js sınıfları)
   ============================================= */
.sepet-wrap { padding: 16px; padding-bottom: 24px; }
.sepet-baslik {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.sepet-baslik h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.sepet-temizle-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--danger);
}
.masa-uyari {
  background: #FFFBEB; border: 1.5px solid var(--warning);
  border-radius: var(--radius-md); padding: 12px 14px;
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: .875rem; font-weight: 600; color: #92400E; margin-bottom: 12px;
}
.masa-uyari .material-icons-round:last-child { margin-left: auto; }
.sepet-not-bilgi {
  background: #EFF6FF; border: 1.5px solid #BFDBFE;
  border-radius: var(--radius-md); padding: 12px 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: .875rem; color: #1E40AF; margin-bottom: 12px;
}
.sepet-not-bilgi .material-icons-round { font-size: 20px; flex-shrink: 0; }
.sepet-listesi { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.sepet-item {
  background: var(--bg-card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); display: flex; gap: 10px; padding: 12px; align-items: flex-start;
}
.sepet-item-resim { width: 70px; height: 70px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.sepet-item-bilgi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sepet-item-ad { font-weight: 700; font-size: .9rem; }
.sepet-item-ekstra { font-size: .72rem; color: var(--text-muted); }
.sepet-item-not { font-size: .72rem; color: var(--text-muted); }
.sepet-item-fiyat { color: var(--primary); font-weight: 700; font-size: .9rem; margin-top: 4px; background: var(--accent-light); padding: 2px 8px; border-radius: 6px; display: inline-block; }
.sepet-item-adet {
  display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0;
}
.sepet-item-adet button {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text);
}
.sepet-item-adet button .material-icons-round { font-size: 15px !important; }
.sepet-item-adet span { font-weight: 700; font-size: .9rem; }
.sepet-ozet {
  background: var(--bg-card); border-radius: var(--radius-md);
  padding: 14px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.ozet-satir { display: flex; justify-content: space-between; font-size: .875rem; padding: 4px 0; }
.ozet-satir.toplam {
  font-weight: 700; font-size: 1rem;
  border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px;
}
.ozet-satir.toplam span:last-child { color: var(--accent); font-size: 1.1rem; }
.btn-siparis-ver {
  width: 100%; background: var(--primary); color: #fff;
  border-radius: var(--radius-lg); padding: 15px;
  font-size: 1rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 14px; transition: opacity .2s;
}
.btn-siparis-ver:active { opacity: .85; }
.btn-siparis-ver:disabled { opacity: .5; }
.sepet-not-wrap {
  background: var(--bg-card); border-radius: var(--radius-md);
  padding: 14px; box-shadow: var(--shadow-sm);
}
.sepet-not-wrap label { font-weight: 600; font-size: .875rem; display: block; margin-bottom: 8px; }
.sepet-not-wrap textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: .875rem; resize: none; outline: none; background: var(--bg);
  transition: border-color .2s;
}
.sepet-not-wrap textarea:focus { border-color: var(--primary); }

/* =============================================
   SİPARİŞ PAGE (siparis.js sınıfları)
   ============================================= */
.siparis-wrap { padding: 16px; padding-bottom: 24px; }
.siparis-durum-banner {
  border-radius: var(--radius-lg); padding: 20px 16px;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.durum-bekliyor     { background: #FFFBEB; border: 1.5px solid var(--warning); }
.durum-hazirlaniyor { background: #EDE9FE; border: 1.5px solid #7C3AED; }
.durum-hazir        { background: #DCFCE7; border: 1.5px solid var(--success); }
.durum-teslim       { background: #DBEAFE; border: 1.5px solid #3B82F6; }
.durum-tamamlandi   { background: var(--bg-card); border: 1.5px solid var(--border); }
.durum-iptal        { background: #FEE2E2; border: 1.5px solid var(--danger); }
.siparis-durum-icon { font-size: 36px !important; }
.durum-bekliyor     .siparis-durum-icon { color: var(--warning); }
.durum-hazirlaniyor .siparis-durum-icon { color: #7C3AED; }
.durum-hazir        .siparis-durum-icon { color: var(--success); }
.durum-teslim       .siparis-durum-icon { color: #3B82F6; }
.durum-tamamlandi   .siparis-durum-icon { color: var(--text-muted); }
.durum-iptal        .siparis-durum-icon { color: var(--danger); }
.siparis-durum-label { font-weight: 700; font-size: 1.05rem; }
.siparis-durum-no { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.siparis-kalemler {
  background: var(--bg-card); border-radius: var(--radius-md);
  padding: 14px; box-shadow: var(--shadow-sm); margin-bottom: 14px;
}
.siparis-kalemler h3 { font-weight: 700; font-size: .95rem; margin-bottom: 10px; }
.siparis-kalem {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border); gap: 8px;
}
.siparis-kalem:last-child { border-bottom: none; padding-bottom: 0; }
.siparis-kalem-bilgi { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.siparis-kalem-ad { font-weight: 600; font-size: .9rem; }
.siparis-kalem-ekstra { font-size: .72rem; color: var(--text-muted); }
.siparis-kalem-not { font-size: .72rem; color: var(--text-muted); }
.siparis-kalem-durum {
  font-size: .68rem; font-weight: 600; padding: 2px 8px;
  border-radius: 20px; background: var(--bg); display: inline-block; margin-top: 2px;
}
.kalem-hazir { background: #DCFCE7; color: #166534; }
.kalem-hazirlaniyor { background: #EDE9FE; color: #5B21B6; }
.siparis-kalem-sag { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.siparis-kalem-adet { font-size: .78rem; color: var(--text-muted); }
.siparis-kalem-fiyat { color: var(--accent); font-weight: 700; font-size: .9rem; }
.siparis-toplam {
  background: var(--bg-card); border-radius: var(--radius-md);
  padding: 14px; box-shadow: var(--shadow-sm); margin-bottom: 14px;
  display: flex; justify-content: space-between; font-weight: 700; font-size: 1.05rem;
}
.siparis-toplam span:last-child { color: var(--accent); }

/* =============================================
   ÜRÜN DETAY — ud- prefix (urun.js)
   ============================================= */
.ud-wrap { padding-bottom: 120px; }

.ud-resim-wrap { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--border); }
.ud-resim { width: 100%; height: 100%; object-fit: cover; display: block; }
.ud-resim-placeholder {
  width: 100%; height: 100%; min-height: 220px;
  display: flex; align-items: center; justify-content: center; background: var(--border);
}
.ud-resim-placeholder .material-icons-round { font-size: 72px !important; color: var(--text-light); }

.ud-back-btn {
  position: absolute; top: 14px; left: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.92); box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); z-index: 10;
}
.ud-back-btn .material-icons-round { font-size: 18px !important; }

.ud-badge { position: absolute; bottom: 14px; left: 14px; }

.ud-body {
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: -22px; position: relative;
  padding: 20px 16px 8px;
}

.ud-ad {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700;
  line-height: 1.25; margin-bottom: 6px; color: var(--text);
}

.ud-aciklama {
  font-size: .875rem; color: var(--text-muted);
  line-height: 1.6; margin-bottom: 12px;
}

.ud-fiyat-satir { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.ud-fiyat-eski {
  font-size: .9rem;
  color: var(--text-light);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  font-weight: 500;
}
.ud-fiyat       { font-size: 1.35rem; font-weight: 700; color: var(--accent); }

/* Ekstra gruplar */
.ud-ekstra-grup {
  border-top: 1px solid var(--border); padding: 14px 0 6px;
}
.ud-ekstra-baslik {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.ud-ekstra-grup-ad { font-weight: 700; font-size: .95rem; color: var(--text); }
.ud-ekstra-baslik-right { display: flex; gap: 6px; }
.ud-tag {
  font-size: .65rem; font-weight: 600; padding: 3px 9px;
  border-radius: 20px; border: 1.5px solid;
}
.ud-tag-porsiyon { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.ud-tag-zorunlu  { border-color: var(--danger); color: var(--danger); background: #FEE2E2; }

.ud-ekstra-list { display: flex; flex-direction: column; gap: 6px; }

.ud-ekstra-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-md);
  border: 1.5px solid var(--border); cursor: pointer;
  background: var(--bg-card); transition: all .15s;
  user-select: none;
}
.ud-ekstra-item.secili { border-color: var(--primary); background: rgba(27,58,45,.04); }
.ud-ekstra-item:active { opacity: .8; }

.ud-radio, .ud-check {
  width: 22px; height: 22px; flex-shrink: 0;
  border: 2px solid var(--border); transition: all .15s;
  display: flex; align-items: center; justify-content: center;
}
.ud-radio { border-radius: 50%; }
.ud-check { border-radius: 6px; }
.ud-radio.on { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 4px #fff; }
.ud-check.on { border-color: var(--primary); background: var(--primary); }
.ud-check.on .material-icons-round { font-size: 14px !important; color: #fff; }

.ud-ekstra-ad   { flex: 1; font-size: .875rem; font-weight: 500; color: var(--text); }
.ud-ekstra-fiyat { font-size: .82rem; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* Not alanı */
.ud-not-wrap { padding: 14px 0 6px; border-top: 1px solid var(--border); margin-top: 6px; }
.ud-not-label {
  display: flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: .875rem; margin-bottom: 8px; color: var(--text);
}
.ud-not-label .material-icons-round { font-size: 18px !important; color: var(--text-muted); }
.ud-not-input {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-md);
  padding: 10px 14px; font-size: .875rem; resize: none; outline: none;
  background: var(--bg); transition: border-color .2s; color: var(--text);
}
.ud-not-input:focus { border-color: var(--primary); }

/* Alt sticky bar */
.ud-alt-bar {
  position: fixed; bottom: var(--nav-h);
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 12px 16px; display: flex; align-items: center; gap: 12px;
  z-index: 50; box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}
.ud-adet {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 7px 12px; flex-shrink: 0;
}
.ud-adet-btn { display: flex; align-items: center; justify-content: center; color: var(--primary); }
.ud-adet-btn .material-icons-round { font-size: 20px !important; }
.ud-adet-sayi { font-weight: 700; font-size: 1rem; min-width: 22px; text-align: center; }
.ud-sepet-btn {
  flex: 1; background: var(--primary); color: #fff;
  border-radius: var(--radius-lg); padding: 13px 14px;
  font-size: .9rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: opacity .2s;
}
.ud-sepet-btn:active { opacity: .82; }
.ud-sepet-btn:disabled { opacity: .5; }
.ud-sepet-fiyat { font-size: .85rem; opacity: .85; margin-left: 4px; }

/* =============================================
   SİPARİŞ DURUM — sp- prefix (siparis.js)
   ============================================= */
.sp-wrap { padding: 0 0 100px; }

.sp-page-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
}
.sp-page-header h2 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.sp-back, .sp-refresh {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.sp-back .material-icons-round, .sp-refresh .material-icons-round { font-size: 20px !important; }

/* Başarı kartı */
.sp-basari-kart {
  margin: 0 16px 14px;
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 28px 20px 22px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.sp-check-daire {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.sp-check-daire .material-icons-round { font-size: 32px !important; color: #fff; }
.sp-sparkle { color: var(--accent); font-size: .85rem; letter-spacing: 8px; margin-bottom: 8px; }
.sp-basari-title {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  margin-bottom: 6px; color: var(--text);
}
.sp-basari-sub { font-size: .875rem; color: var(--text-muted); margin-bottom: 14px; }
.sp-masa-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--border); border-radius: 20px;
  padding: 7px 16px; font-size: .875rem; font-weight: 600;
  color: var(--text);
}
.sp-masa-chip .material-icons-round { font-size: 16px !important; color: var(--primary); }

/* İlerleme kartı */
.sp-ilerleme-kart {
  margin: 0 16px 14px;
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 18px 16px; box-shadow: var(--shadow-sm);
}
.sp-siparis-no  { font-weight: 700; font-size: .95rem; margin-bottom: 2px; }
.sp-siparis-tarih { font-size: .78rem; color: var(--text-muted); margin-bottom: 20px; }

.sp-adimlar-wrap { position: relative; }
.sp-adimlar-cizgi {
  position: absolute; top: 19px; left: 22px; right: 22px;
  height: 2px; background: var(--border); z-index: 0;
}
.sp-adimlar-cizgi-dolu {
  height: 100%; background: var(--primary);
  transition: width .5s ease; min-width: 0;
}
.sp-adimlar {
  display: flex; justify-content: space-between;
  position: relative; z-index: 1;
}
.sp-adim {
  display: flex; flex-direction: column; align-items: center;
  gap: 7px; flex: 1;
}
.sp-adim-ikon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
}
.sp-adim-ikon .material-icons-round { font-size: 18px !important; color: var(--text-light); }
.sp-adim.done .sp-adim-ikon  { background: var(--primary); border-color: var(--primary); }
.sp-adim.done .sp-adim-ikon .material-icons-round { color: #fff; }
.sp-adim.active .sp-adim-ikon { background: var(--bg-card); border-color: var(--primary); border-width: 2.5px; }
.sp-adim.active .sp-adim-ikon .material-icons-round { color: var(--primary); }
.sp-adim-label { font-size: .62rem; color: var(--text-muted); text-align: center; font-weight: 500; line-height: 1.3; }
.sp-adim.done .sp-adim-label, .sp-adim.active .sp-adim-label { color: var(--primary); font-weight: 600; }

/* Özet kartı */
.sp-ozet-kart {
  margin: 0 16px 14px;
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 16px; box-shadow: var(--shadow-sm);
}
.sp-ozet-baslik {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: .95rem; margin-bottom: 14px;
}
.sp-ozet-sayi {
  font-size: .78rem; color: var(--text-muted); font-weight: 500;
  background: var(--bg); border-radius: 20px; padding: 3px 10px;
}
.sp-ozet-urunler { display: flex; flex-direction: column; }
.sp-ozet-urun {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.sp-ozet-urun:last-child { border-bottom: none; }
.sp-ozet-urun-sol { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.sp-ozet-urun-ad  { font-weight: 600; font-size: .9rem; }
.sp-ozet-urun-ekstra { font-size: .72rem; color: var(--text-muted); }
.sp-ozet-urun-not    { font-size: .72rem; color: var(--text-muted); }

/* Ürün durum badge */
.sp-urun-durum-badge {
  display: inline-block; font-size: .65rem; font-weight: 600;
  padding: 2px 9px; border-radius: 20px; margin-top: 3px;
}
.badge-bekliyor     { background: #FEF3C7; color: #92400E; }
.badge-hazirlaniyor { background: #EDE9FE; color: #5B21B6; }
.badge-hazir        { background: #DCFCE7; color: #166534; }
.badge-iptal        { background: #FEE2E2; color: var(--danger); }

.sp-ozet-urun-sag { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.sp-ozet-adet-badge {
  font-size: .72rem; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px;
}
.sp-ozet-fiyat { color: var(--accent); font-weight: 700; font-size: .9rem; }

.sp-ozet-toplam {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 1rem;
  border-top: 1.5px solid var(--border); margin-top: 8px; padding-top: 12px;
}
.sp-ozet-toplam-fiyat { color: var(--accent); font-size: 1.1rem; }

/* Ödeme / kapatış kartı */
.sp-odeme-kart {
  margin: 0 16px 14px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
}
.sp-odeme-satir {
  display: flex; align-items: center; gap: 10px;
  font-size: .88rem; color: var(--text-secondary);
}
.sp-odeme-icon { font-size: 18px !important; flex-shrink: 0; color: var(--text-muted); }
.sp-odeme-icon.odendi { color: #059669; }
.sp-odeme-icon.iptal  { color: var(--danger); }

/* Mesaj bandı */
.sp-mesaj {
  margin: 0 16px 14px;
  background: #F0FDF4; border-radius: var(--radius-md);
  padding: 12px 14px; display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: #166534; line-height: 1.5;
}
.sp-mesaj .material-icons-round { font-size: 18px !important; flex-shrink: 0; }

/* Alt butonlar */
.sp-alt-butonlar {
  display: flex; gap: 10px; padding: 0 16px;
}
.sp-btn-secondary {
  flex: 1; background: var(--bg-card); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 13px; font-size: .9rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .2s;
}
.sp-btn-secondary:active { background: var(--border); }
.sp-btn-primary {
  flex: 1.4; background: var(--primary); color: #fff;
  border-radius: var(--radius-lg); padding: 13px;
  font-size: .9rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: opacity .2s;
}
.sp-btn-primary:active { opacity: .85; }

/* MASALAR PAGE */
.masalar-wrap { padding: 16px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (min-width: 480px) {
  #app { box-shadow: 0 0 40px rgba(0,0,0,.12); }
}
