/* GENEL VE FONT AYARLARI */
:root {
    --primary-color: #d70060;
    --primary-dark: #b50051;
    --accent-color: #D4AF37;
    --bg-light: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.08);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --sheet-max-h: min(92dvh, 92vh);
    --touch-min: 48px;
}

html {
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: 'Outfit', 'Roboto', sans-serif; margin: 0; padding: 0; background-color: var(--bg-light); color: var(--text-main); line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}
body.sidebar-open,
body.modal-detail-open,
body.modal-open {
    overflow: hidden;
    touch-action: none;
}
a { text-decoration: none; color: inherit; }

/* WiFi — yan menü altı (kategori listesinin altında, her zaman görünür) */
.sidebar-wifi-wrap {
    flex-shrink: 0;
    margin-top: auto;
    padding: 14px 16px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #121212;
}
.sidebar-wifi-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.92em;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}
.wifi-sidebar-wrap--has-data .sidebar-wifi-btn {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(215, 0, 96, 0.22);
}
.wifi-sidebar-wrap--empty .sidebar-wifi-btn {
    background: #f5f6f8;
    color: #636e72;
    border: 1px dashed #d0d4dc;
}
.wifi-sidebar-wrap--empty .sidebar-wifi-btn i {
    color: var(--text-muted);
}

.wifi-empty-message {
    margin: 0;
    padding: 8px 4px;
    font-size: 0.95em;
    line-height: 1.55;
    color: var(--text-muted);
    text-align: center;
}

/* HEADER BÖLÜMÜ */
.main-header {
    display: flex; justify-content: space-between; align-items: center;
    background-color: var(--primary-color); color: #fff; padding: 12px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); 
    position: sticky; top: 0; z-index: 1000;
}
.restaurant-name { font-size: 1.1em; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.menu-icon, .profile-icon { font-size: 1.3em; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s; }
.menu-icon:active { background: rgba(255,255,255,0.1); }

/* --- STATİK BAŞLIK ALANI --- */
.static-hero-section {
    padding: 60px 20px; margin: 0; background-color: var(--card-bg); color: #fff; text-align: center;
    background-size: cover; background-position: center; position: relative;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    min-height: 160px;
}
.static-hero-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}
.static-hero-section h1, .static-hero-section p { position: relative; z-index: 2; margin: 0; }
.static-hero-section h1 { font-size: 2em; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.static-hero-section p { font-size: 1em; opacity: 0.9; margin-top: 5px; }

.wifi-hero-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    font-family: inherit;
    font-size: 0.9em;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
}
.wifi-hero-btn:active {
    transform: scale(0.98);
}
.wifi-hero-btn[hidden] {
    display: none !important;
}

.wifi-search-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border: none;
    border-radius: 12px;
    background: var(--primary-color);
    color: #fff;
    font-family: inherit;
    font-size: 0.85em;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(215, 0, 96, 0.25);
    -webkit-tap-highlight-color: transparent;
}
.wifi-search-chip[hidden] {
    display: none !important;
}
.wifi-search-chip-label {
    white-space: nowrap;
}

.footer-wifi-wrap {
    width: 100%;
    max-width: 360px;
    margin: 16px auto 0;
}
.footer-wifi-wrap[hidden] {
    display: none !important;
}
.footer-wifi-card {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
    color: #fff;
}
.footer-wifi-title {
    margin: 0 0 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-wifi-line {
    margin: 6px 0;
    font-size: 0.9em;
    cursor: pointer;
}
.footer-wifi-line strong {
    font-weight: 800;
    letter-spacing: 0.03em;
}
.footer-wifi-line--pass strong {
    color: #ffd6e8;
}
.footer-wifi-open {
    margin-top: 10px;
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

/* WiFi sheet — sidebar (3000) üstünde, tam ekran genişliği */
.wifi-modal.bottom-modal {
    z-index: 4100;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    margin: 0;
}
body.wifi-modal-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 4050;
    backdrop-filter: blur(4px);
    pointer-events: auto;
}
.wifi-modal .modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.wifi-modal-content {
    padding: 8px 16px 20px;
}
.wifi-modal-hint {
    margin: 0 0 12px;
    font-size: 0.85em;
    color: var(--text-muted);
}
.wifi-modal-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wifi-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #f8f9fa;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.wifi-info-row--highlight {
    background: rgba(215, 0, 96, 0.06);
    border-color: rgba(215, 0, 96, 0.2);
}
.wifi-info-row:active {
    background: #f0f1f5;
}
.wifi-info-label {
    flex: 0 0 auto;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    min-width: 52px;
}
.wifi-info-value {
    flex: 1 1 auto;
    font-size: 1em;
    font-weight: 700;
    color: var(--text-main);
    word-break: break-all;
}
.wifi-info-row--highlight .wifi-info-value {
    color: var(--primary-color);
    font-size: 1.1em;
    letter-spacing: 0.04em;
}
.wifi-info-copy {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.95em;
}

/* --- ARAMA VE FİLTRELEME BÖLÜMÜ --- */
.search-and-filter-section {
    display: flex; align-items: center; gap: 8px; padding: 12px 15px; background-color: var(--glass-bg);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    position: -webkit-sticky;
    position: sticky; 
    top: var(--header-height, 60px);
    z-index: 900;
}
.search-bar {
    flex-grow: 1; display: flex; align-items: center; background-color: #f1f2f6;
    border-radius: 12px; padding: 10px 16px; margin-right: 12px;
    border: 1px solid transparent; transition: all 0.2s;
}
.search-bar:focus-within { background: #fff; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(215, 0, 96, 0.1); }
.search-bar i { color: var(--text-muted); margin-right: 12px; font-size: 0.9em; }
.search-bar input { border: none; background: transparent; width: 100%; font-size: 0.95em; outline: none; color: var(--text-main); }
.filter-btn {
    width: 44px; height: 44px; display: flex; justify-content: center; align-items: center;
    background-color: #fff; color: var(--text-main); border-radius: 12px; font-size: 1.1em;
    cursor: pointer; box-shadow: var(--shadow-soft); border: 1px solid #eee;
}

/* --- YATAY KATEGORİLER VE STICKY AYARLARI --- */
.categories-section {
    position: -webkit-sticky;
    position: sticky; 
    top: calc(var(--header-height, 60px) + var(--search-height, 60px));
    z-index: 800; 
    background-color: var(--bg-light);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    min-height: 60px; 
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.categories-section.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); 
}
.category-horizontal-scroll {
    display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 0 15px; gap: 10px;
    scrollbar-width: none;
}
.category-horizontal-scroll::-webkit-scrollbar { display: none; }
.category-horizontal-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* Kategori Kartı Stili (Küçük ve Yatay Kaydırmalı) */
/* Kategori Kartı Stili (Modern Tasarım) */
.category-card {
    flex-shrink: 0; 
    min-width: 80px;
    width: auto;
    height: 42px; 
    background-color: var(--card-bg); 
    border-radius: 25px; 
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); 
    cursor: pointer; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    border: 1px solid rgba(0,0,0,0.06);
    padding: 0 18px;
}
.category-card:active { transform: scale(0.92); }
.category-card img { display: none; } 
.category-card p {
    margin: 0; font-weight: 700; font-size: 0.8em; color: var(--text-main);
    white-space: nowrap;
    text-transform: uppercase; letter-spacing: 0.8px;
}

/* Seçili Kategori Stili (Modern Pill) */
.category-card.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(215, 0, 96, 0.25);
    transform: translateY(-1px);
}
.category-card.active p {
    color: #fff;
}

/* --- KATEGORİ LİSTELEME VE ÜRÜNLER --- */
.all-products-list-section { padding: 5px 15px 30px; }

/* Kategori Görseli */
.category-image-wrapper {
    width: 100%; border-radius: 16px; margin-bottom: 15px; 
    overflow: hidden; box-shadow: var(--shadow-soft);
    position: relative;
}
.category-image-wrapper img {
    width: 100%; height: 180px; object-fit: cover;
    display: block;
}
.category-image-wrapper h2 {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 40px 15px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff !important; margin: 0 !important;
    font-size: 1.2em !important;
}
/* --- SIDEBAR TASARIMI --- */
#sidebar {
    position: fixed; top: 0; left: 0; height: 100%; width: 280px; background-color: #121212; color: white;
    z-index: 3000; transform: translateX(-100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#sidebar.open { transform: translateX(0); }

.sidebar-header { padding: 20px; text-align: right; }
#sidebar-close-btn { font-size: 1.5em; color: var(--accent-color); cursor: pointer; }

.sidebar-profile {
    text-align: center; padding: 0 20px 30px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sidebar-profile i { font-size: 3.5rem; color: var(--primary-color); margin-bottom: 15px; display: block; }
.sidebar-profile h3 { margin: 0; font-size: 1.2em; font-weight: 800; color: #fff; }
.sidebar-profile p { font-size: 0.85em; color: #888; margin-top: 5px; }

#sidebar-nav {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0;
}
#sidebar .social-links-section {
    flex-shrink: 0;
    padding-bottom: calc(12px + var(--safe-bottom));
}
.sidebar-link {
    padding: 15px 25px; font-size: 1em; font-weight: 600; color: #eee; 
    transition: all 0.2s; border-left: 3px solid transparent;
}
.sidebar-link:active { background: rgba(255,255,255,0.05); border-left-color: var(--primary-color); color: var(--primary-color); }

.sidebar-social {
    display: flex; justify-content: center; gap: 15px; padding: 30px 20px;
}
.social-icon-link {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1em;
    transition: all 0.2s; border: 1px solid rgba(255,255,255,0.1);
}
.social-icon-link:active { background: var(--primary-color); transform: scale(1.1); }

body.sidebar-open::after {
    content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 2500; backdrop-filter: blur(4px);
}
.product-category-group {
  background: var(--card-bg);
  border-radius: 16px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.02);
}

.category-heading {
  font-size: 1.05em;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.category-heading::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.8em;
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-category-group.open .category-heading {
  color: var(--primary-color);
  background: rgba(215, 0, 96, 0.02);
  border-bottom: 1px solid rgba(215, 0, 96, 0.1);
}

.product-category-group.open .category-heading::after {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.products-list-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
  padding: 0 15px;
}

.product-category-group.open .products-list-container {
  max-height: 2500px;
  padding: 15px;
}

/* Ürün kartları (Modern Satır Yapısı) */
.product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 15px;
  transition: all 0.2s ease;
  border: 1px solid #f0f0f0;
}

.product-item:active {
  transform: scale(0.98);
  background-color: #f9f9f9;
}

.product-image-small {
  width: 75px;
  height: 75px;
  border-radius: 12px;
  overflow: hidden;
  margin-right: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-image-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-details {
  flex: 1;
}

.item-details h3 {
  margin: 0;
  font-size: 1em;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.item-details p {
  margin: 4px 0;
  font-size: 0.82em;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-details .price {
  font-size: 1.05em;
  font-weight: 800;
  color: var(--primary-color);
  margin-top: 4px;
}
/* Eğer görsel yoksa heading'i biraz yukarı çek */
.product-category-group:not(:has(.category-image-wrapper)) .category-heading {
  padding-top: 12px;   /* varsayılan padding'i azalt ya da ayarla */
  margin-top: 6px;
}
.product-category-group.no-image .category-heading {
  padding-top: 12px;
  margin-top: 6px;
}
/* Eğer kategori görseli yoksa başlığı biraz yukarı çek */
.product-category-group.no-image .category-heading {
  padding-top: 12px;
  margin-top: 6px;
}
/* --- KATEGORİ ÇUBUĞU KAYDIRMA STİLLERİ (.scrolled) --- */

/* 1. Kaydırıldığında ana barın (çubuğun) görünümü */
.categories-section.scrolled {
    transition: all 0.3s ease; /* Yumuşak bir geçiş efekti */
}

/* 2. Kaydırıldığında yatay kaydırma alanının ayarı */
.categories-section.scrolled .category-horizontal-scroll {
    gap: 8px; /* Butonlar arasındaki boşluğu azaltır */
    align-items: center; /* Butonları dikey olarak ortalar */
}

/* 3. Kaydırıldığında kategori kartlarının (yeni butonların) görünümü */
.categories-section.scrolled .category-card {
    /* Genişlik artık resme göre değil, içindeki yazıya göre otomatik ayarlanacak */
    width: auto; 
    height: auto;
    
    background-color: #f5f5f5; /* Buton arka plan rengi */
    border: 1px solid #ddd;
    border-radius: 20px; /* Yuvarlak (pill shape) buton şekli */
    box-shadow: none; /* Eski gölgeyi kaldırır */
    
    /* Eski 'column' (sütun) yapısını sıfırlar */
    flex-direction: row; 
    align-items: center;
    text-align: center;
    
    /* Geçişler */
    transition: background-color 0.2s, border-color 0.2s;
}

/* 4. Kaydırıldığında kartın içindeki GÖRSELİ GİZLE */
.categories-section.scrolled .category-card img {
    display: none;
}

/* 5. Kaydırıldığında kartın içindeki YAZIYI ayarla */
.categories-section.scrolled .category-card p {
    padding: 8px 15px; /* Butonun iç boşluğu (yazı etrafındaki) */
    font-size: 0.85em;
    font-weight: 600;
    color: #333;
    border: none; /* Eski border kalıntılarını temizler */
    transition: color 0.2s;
}

/* 6. Yazının altındaki altın rengi çizgiyi GİZLE */
.categories-section.scrolled .category-card p::after {
    display: none;
}

/* 7. Yeni butonlara fareyle üzerine gelme (hover) efekti */
.categories-section.scrolled .category-card:hover {
    background-color: #D4AF37; /* Ana tema rengi */
    border-color: #D4AF37;
    transform: none; /* Eski transform'u iptal et */
}

/* 8. Hover olduğunda butonun içindeki yazının rengini değiştir */
.categories-section.scrolled .category-card:hover p {
    color: #fff; /* Yazı rengini beyaz yap */
}



/* ============================
   FOOTER BÖLÜMÜ
   ============================ */

.main-footer {
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding: 60px 20px 30px;
    font-size: 0.9em;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo-or-name h4 {
    font-size: 1.5rem;
    margin: 0 0 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
}

.main-footer .social-links-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    border: none;
    padding: 0;
}

.main-footer .social-icon-link {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    margin: 0;
    margin-top: 0;
}

.footer-contact {
    margin-bottom: 30px;
    color: #999;
}

.footer-contact p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 25px;
    color: #666;
}
/* ============================
   ÜRÜN DETAY MODAL (TÜM SAYFA)
   ============================ */

/* --- ÜRÜN DETAY MODALI (PREMIUM TASARIM) --- */
.bottom-modal-detail {
    position: fixed;
    inset: 0;
    width: 100%;
    /* inset ile yükseklik — 100vh/dvh mobilde alt şeridi keser */
    background-color: #ffffff;
    z-index: 3500;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
    box-sizing: border-box;
    overflow: hidden;
}

.bottom-modal-detail.open {
    transform: translateY(0); 
}

/* Modal Üst Barı */
.modal-detail-header {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 20px; z-index: 100;
    background: transparent;
}

#modal-back-btn {
    width: 45px; height: 45px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-main); font-size: 1.2em;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer; transition: all 0.2s;
}
#modal-back-btn:active { transform: scale(0.9); }

/* Orta alan kayar; alt CTA viewport altına sabitlenir */
.bottom-modal-detail .modal-detail-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    /* Sabit footer yüksekliği + safe area */
    padding-bottom: calc(80px + var(--safe-bottom));
}
.bottom-modal-detail .modal-detail-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3510;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 16px calc(12px + var(--safe-bottom));
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.12);
}
.bottom-modal-detail .modal-detail-footer.is-hidden {
    display: none;
}

.modal-detail-image-wrapper {
    width: 100%;
    height: min(36dvh, 280px);
    max-height: 40vh;
    position: relative;
    overflow: hidden;
    background: #eee;
    flex-shrink: 0;
}

.modal-detail-image-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
}

.modal-detail-image-wrapper::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 100px;
    background: linear-gradient(to top, #ffffff, transparent);
}

.modal-detail-info {
    padding: 30px 25px 20px;
    background: #ffffff;
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
    position: relative;
    min-height: auto;
}

.modal-detail-title-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 20px;
}

.modal-detail-info h2 {
    margin: 0; font-size: 1.7em; font-weight: 800; color: var(--text-main);
    line-height: 1.2; flex: 1; padding-right: 15px;
}

.modal-detail-price-badge {
    background: var(--primary-color);
    color: #fff; padding: 10px 18px; border-radius: 50px;
    font-weight: 800; font-size: 1.1em;
    box-shadow: 0 8px 20px rgba(215, 0, 96, 0.2);
    white-space: nowrap;
}

.modal-detail-description-title {
    font-size: 0.9em; font-weight: 800; text-transform: uppercase;
    color: var(--text-muted); letter-spacing: 1px; margin-bottom: 12px;
}

.modal-detail-info p {
    font-size: 1.05em; color: var(--text-muted); line-height: 1.8;
    margin: 0; font-weight: 400;
}

/* Sayfa Açılış Animasyonları İçin Hazırlık */
.modal-detail-info > * {
    opacity: 0; transform: translateY(20px);
    transition: all 0.5s ease forwards;
}

.bottom-modal-detail.open .modal-detail-info > * {
    opacity: 1; transform: translateY(0);
}

.bottom-modal-detail.open .modal-detail-info > *:nth-child(1) { transition-delay: 0.3s; }
.bottom-modal-detail.open .modal-detail-info > *:nth-child(2) { transition-delay: 0.4s; }
.bottom-modal-detail.open .modal-detail-info > *:nth-child(3) { transition-delay: 0.5s; }

/* body.modal-detail-open — üstteki genel kural ile birleşik */
/* ============================
   ALT MODAL (İçecekler, Sıralama / Filtre)
   body.sidebar-open::after z-index:2500 — panel bunun ÜSTÜNDE olmalı
   ============================ */
.bottom-modal {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2600;
    max-height: var(--sheet-max-h);
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
    transform: translateY(105%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
    padding-bottom: var(--safe-bottom);
    box-sizing: border-box;
}
.bottom-modal.open {
    transform: translateY(0);
}
.bottom-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}
.bottom-modal .modal-header h3 {
    margin: 0;
    font-size: 1.15em;
    font-weight: 700;
    color: var(--text-main, #1a1a1a);
}
.bottom-modal .modal-content {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
}

/* ============================
   FİLTRE MODALI STİLLERİ
   ============================ */

/* Filtre modalının içeriğine biraz boşluk ver */
#filter-modal .modal-content {
    padding: 15px;
}

/* Sıralama seçeneği butonu */
.filter-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 10px;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    box-sizing: border-box; /* padding'in genişliği etkilememesi için */
}

/* Butonun içindeki check (onay) ikonu */
.filter-option .fa-check {
    font-size: 0.9em;
    color: #D4AF37; /* Altın rengi */
    opacity: 0; /* Başlangıçta gizli */
    transition: opacity 0.2s;
}

/* AKTİF OLAN FİLTRE SEÇENEĞİ */
.filter-option.active {
    background-color: #fff;
    border-color: #D4AF37;
    color: #D4AF37;
}

/* Aktif seçenekte check ikonunu göster */
.filter-option.active .fa-check {
    opacity: 1;
}
/* full-screen-modal için yeni CSS (style.css dosyasına eklenecek) */

.full-screen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    height: 100vh;
    background: #ffffff;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
    display: flex;
    flex-direction: column;
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
    box-sizing: border-box;
}

.full-screen-modal.open {
    transform: translateY(0); /* Açıldığında ekranda */
}

.modal-search-header {
    display: flex;
    align-items: center;
    padding: 15px 15px 15px 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background: #fff;
}

#search-modal-back-btn {
    font-size: 1.5em;
    padding: 10px;
    cursor: pointer;
    color: #333;
}

.search-bar-modal-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 25px;
    padding: 8px 15px;
    margin-left: 10px;
}

.search-bar-modal-wrapper i {
    color: #aaa;
    margin-right: 10px;
}

#search-input-modal {
    border: none;
    outline: none;
    background: transparent;
    flex-grow: 1;
    font-size: 1em;
    padding: 0;
}

#search-clear-btn {
    margin-left: 10px;
    cursor: pointer;
}

.modal-search-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
}

.search-tip {
    text-align: center;
    color: #888;
    margin-top: 50px;
    font-size: 1.1em;
}

/* Ürün listesi görünümü için (mevcut product-item stillerini kullanacak) */
#search-results-container .product-item {
    margin-bottom: 10px;
}

/* ============================
   SEPET & SİPARİŞ
   ============================ */
.cart-trigger {
    position: relative;
}
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.7em;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: #fff;
    background: var(--primary-color, #d70060);
    border-radius: 10px;
}
/* Sepet: liste kayar, toplam + gönder sabit altta kalır */
#cart-modal.bottom-modal {
    max-height: var(--sheet-max-h);
    padding-bottom: 0;
}
#cart-modal .cart-modal-footer {
    flex-shrink: 0;
    padding: 12px 16px calc(12px + var(--safe-bottom));
    border-top: 1px solid #eee;
    background: #fff;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
}
#cart-modal .cart-modal-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow: hidden;
}
.cart-empty-msg {
    text-align: center;
    color: #888;
    padding: 24px 16px;
    margin: 0;
}
.cart-lines-list {
    list-style: none;
    margin: 0;
    padding: 8px 16px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.cart-line-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}
.cart-line-item:last-child { border-bottom: none; }
.cart-line-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-name {
    font-weight: 600;
    font-size: 0.95em;
    margin: 0 0 4px;
}
.cart-line-options {
    font-size: 0.75em;
    color: #888;
    margin: 0;
}
.cart-line-price {
    font-weight: 700;
    color: var(--primary-color, #d70060);
    font-size: 0.9em;
}
.cart-line-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-line-qty button {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 1.1em;
    cursor: pointer;
}
.cart-line-qty span {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
}
.cart-line-remove {
    background: none;
    border: none;
    color: #999;
    font-size: 1.1em;
    cursor: pointer;
    padding: 8px;
}
.cart-footer {
    flex-shrink: 0;
    padding: 12px 16px calc(12px + var(--safe-bottom));
    border-top: 1px solid #eee;
    background: #fff;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
    z-index: 5;
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1.05em;
}
.cart-total-row strong {
    color: var(--primary-color, #d70060);
    font-size: 1.2em;
}
.btn-primary {
    width: 100%;
    min-height: var(--touch-min);
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    background: var(--primary-color, #d70060);
    color: #fff;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.btn-submit-order {
    font-size: 1.05em;
    letter-spacing: 0.02em;
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.modal-detail-footer .btn-add-to-cart,
.btn-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    min-height: 52px;
    height: auto;
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    background: var(--primary-color, #d70060);
    color: #fff;
    font-family: inherit;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-sizing: border-box;
    overflow: visible;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}
.modal-detail-footer .btn-add-to-cart:active {
    transform: scale(0.98);
}
/* Ürün seçenekleri — modal (Zorunlu / Ek) */
.product-options-panel {
    margin-top: 8px;
}
.product-options-root {
    padding-bottom: 8px;
}
.po-section-title {
    margin: 18px 0 10px;
    font-size: 0.95em;
    font-weight: 800;
}
.po-section-title--mandatory {
    color: #8b4513;
}
.po-section-title--extra {
    color: var(--primary-dark, #b50051);
}
.po-section-title--portion {
    color: #1565c0;
}
.po-group {
    margin-bottom: 12px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fff;
}
.po-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
}
.po-group--mandatory .po-group-head {
    background: #fff9e6;
}
.po-group--extra .po-group-head {
    background: rgba(215, 0, 96, 0.06);
}
.po-group--portion .po-group-head {
    background: rgba(21, 101, 192, 0.08);
}
.po-group-name {
    font-weight: 800;
    font-size: 0.95em;
    color: var(--text-main);
}
.po-badge {
    font-size: 0.68em;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.po-badge--required {
    background: #f5d76e;
    color: #5c4a00;
}
.po-badge--extra {
    background: rgba(215, 0, 96, 0.12);
    color: var(--primary-color);
}
.po-options-list {
    padding: 0 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.po-option-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    width: 100%;
}
.po-option-meta {
    font-size: 0.8em;
    font-weight: 500;
    color: #666;
    line-height: 1.35;
}
.po-option-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.po-option-row.selected {
    border-color: var(--primary-color);
    background: rgba(215, 0, 96, 0.06);
    box-shadow: 0 0 0 2px rgba(215, 0, 96, 0.15);
}
.po-option-name {
    font-weight: 700;
    font-size: 0.95em;
    color: var(--text-main);
}
.po-option-price {
    margin-top: 4px;
    font-size: 0.88em;
    font-weight: 700;
    color: var(--primary-color);
}
.po-option-item--extra {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
.po-option-item--extra .po-option-row {
    flex: 1;
    min-width: 0;
}
.po-option-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    align-self: center;
    padding: 4px;
    border-radius: 12px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
}
.po-option-item--extra .po-option-qty {
    display: flex;
}
.po-option-item--extra:not(.is-selected) .po-option-qty {
    opacity: 1;
}
.po-option-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #fff;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.po-option-qty-btn:active {
    transform: scale(0.96);
}
.po-option-qty-val {
    min-width: 1.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.95em;
}
.modal-detail-hero--compact .modal-detail-image-wrapper {
    height: min(28dvh, 200px);
    max-height: 32vh;
}
.modal-detail-info--options {
    padding-top: 20px;
}
.modal-detail-options-header h2 {
    margin: 0 0 4px;
    font-size: 1.5em;
    font-weight: 800;
}
.modal-detail-options-sub {
    margin: 0 0 12px;
    font-size: 0.9em;
    color: var(--text-muted);
}

.mandatory-groups-block {
    padding: 0 25px 16px;
}
.mandatory-group-title {
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
    margin: 12px 0 8px;
}
.mandatory-options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mandatory-option-chip {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.85em;
    cursor: pointer;
    background: #f5f5f5;
}
.mandatory-option-chip.selected {
    border-color: var(--primary-color, #d70060);
    background: rgba(215, 0, 96, 0.08);
    color: var(--primary-color, #d70060);
    font-weight: 600;
}
.order-success-modal .modal-content {
    padding: 32px 24px calc(24px + var(--safe-bottom));
    text-align: center;
}
.order-success-modal .btn-primary,
.order-success-modal .btn-order-track {
    width: 100%;
    margin-top: 10px;
}
.order-success-modal .btn-order-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    background: linear-gradient(135deg, #6a1b9a 0%, var(--primary-color) 100%);
}
.order-success-modal .btn-order-track[hidden] {
    display: none !important;
}
.order-success-icon {
    font-size: 3rem;
    color: #22c55e;
    margin-bottom: 12px;
}
.order-success-content h3 {
    margin: 0 0 8px;
}
.order-success-id {
    font-size: 0.85em;
    color: #888;
    margin: 8px 0 16px;
}
.cart-toast {
    position: fixed;
    bottom: calc(24px + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 4000;
    font-size: 0.9em;
    max-width: 90%;
    text-align: center;
}

.btn-go-cart-page {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* --- Servis tipi modal --- */
.service-type-modal-content {
    padding: 8px 16px 20px;
}
.service-type-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9em;
    margin: 0 0 16px;
}
.service-type-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    margin-bottom: 10px;
    border: 2px solid #eee;
    border-radius: 14px;
    background: #fff;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
}
.service-type-option i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(215, 0, 96, 0.1);
    color: var(--primary-color);
}
.service-type-option:active {
    border-color: var(--primary-color);
    background: rgba(215, 0, 96, 0.05);
}

/* --- Tam ekran sepet sayfası (referans: Kardo tarzı) --- */
.cart-page-view {
    position: fixed;
    inset: 0;
    z-index: 3800;
    background: #f3f4f8;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
}
.cart-page-view.open {
    transform: translateX(0);
}
body.cart-page-open {
    overflow: hidden;
}
.cart-page-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    padding-top: calc(12px + var(--safe-top));
    background: #fff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}
.cart-page-back {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: #f1f2f6;
    font-size: 1.1em;
    cursor: pointer;
}
.cart-page-title {
    font-size: 1.15em;
    font-weight: 700;
}
.cart-page-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px 8px;
}
.cart-summary-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #9b1b5c 55%, #6a1b9a 100%);
    border-radius: 20px;
    padding: 20px;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 12px 32px rgba(215, 0, 96, 0.25);
}
.cart-summary-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.cart-summary-label {
    margin: 0;
    font-size: 0.85em;
    opacity: 0.9;
}
.cart-summary-count {
    margin: 4px 0 0;
    font-size: 1.5em;
    font-weight: 800;
}
.cart-summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
}
.cart-summary-total-box {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 14px;
    padding: 14px 16px;
    text-align: center;
}
.cart-summary-amount {
    margin: 0;
    font-size: 1.75em;
    font-weight: 800;
}
.cart-summary-total-label {
    margin: 4px 0 0;
    font-size: 0.8em;
    opacity: 0.85;
}
.cart-section-title {
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 10px 4px;
    letter-spacing: 0.5px;
}
.cart-current-cart-title {
    margin-top: 4px;
}
.cart-submitted-orders-section {
    margin-bottom: 18px;
}
.cart-submitted-orders-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.submitted-order-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #22c55e;
}
.submitted-order-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.submitted-order-head strong {
    color: var(--primary-color);
    font-size: 1.05em;
}
.submitted-order-time {
    font-size: 0.85em;
    color: #888;
}
.submitted-order-meta {
    margin: 0 0 8px;
    font-size: 0.8em;
    color: var(--text-muted);
}
.submitted-order-ref {
    margin-left: 6px;
}
.submitted-order-paid {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    font-weight: 600;
    font-size: 0.85em;
}
.submitted-order-items {
    margin: 0;
    padding-left: 18px;
    font-size: 0.88em;
    color: var(--text-main);
}
.submitted-order-items li {
    margin-bottom: 4px;
}
.submitted-order-opt {
    color: #999;
    font-size: 0.9em;
}
.submitted-order-track {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #eee;
}
.submitted-order-qr-wrap {
    text-align: center;
    margin-bottom: 10px;
}
.submitted-order-qr-wrap img {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.submitted-order-track-actions {
    display: flex;
    gap: 8px;
}
.btn-submitted-qr,
.btn-submitted-track {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid #e8e8e8;
    background: #fafafa;
    color: var(--text-main);
}
.btn-submitted-track {
    border-color: var(--primary-color);
    background: rgba(215, 0, 96, 0.08);
    color: var(--primary-color);
}
.cart-page-footer--track {
    text-align: center;
}
.cart-track-footer-label {
    margin: 0 0 4px;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}
.cart-track-footer-ref {
    margin: 0 0 10px;
    font-size: 0.9em;
    color: var(--primary-color);
    font-weight: 700;
}
.cart-track-footer-qr img {
    display: block;
    margin: 0 auto 8px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.cart-track-qr-hint {
    margin: 0 0 12px;
    font-size: 0.82em;
    color: var(--text-muted);
}
.btn-cart-track-open {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-decoration: none;
}
.cart-page--track-mode .cart-summary-card {
    opacity: 0.92;
}
.cart-global-service {
    margin-bottom: 14px;
}
.cart-global-service-title {
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 8px 4px;
    letter-spacing: 0.5px;
}
.cart-global-service-chips {
    display: flex;
    gap: 8px;
}
.service-type-chip {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 12px;
    background: #fff;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
}
.service-type-chip.active {
    border-color: var(--primary-color);
    background: rgba(215, 0, 96, 0.08);
    color: var(--primary-color);
}
.cart-desk-warning {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff4e5;
    border: 1px solid #f0c36d;
    color: #7a4d00;
    font-size: 0.9rem;
    line-height: 1.45;
}
.cart-desk-warning[hidden] {
    display: none !important;
}
.cart-desk-warning i {
    margin-top: 2px;
    flex-shrink: 0;
}
.cart-desk-warning p {
    margin: 0;
}
.cart-order-note {
    margin: 0 0 14px;
}
.cart-order-note-label {
    display: block;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 8px 4px;
    letter-spacing: 0.5px;
}
.cart-order-note-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 0.95em;
    font-family: inherit;
    line-height: 1.4;
    resize: vertical;
    min-height: 72px;
    background: #fff;
    color: inherit;
}
.cart-order-note-input:focus {
    outline: none;
    border-color: var(--primary-color);
}
.product-detail-note-wrap {
    margin-top: 14px;
    width: 100%;
}
.product-detail-note-label,
.cart-line-note-label {
    display: block;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 6px 2px;
    letter-spacing: 0.4px;
}
.product-detail-note-input,
.cart-line-note-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 0.9em;
    font-family: inherit;
    line-height: 1.4;
    resize: vertical;
    min-height: 56px;
    background: #fff;
    color: inherit;
}
.product-detail-note-input:focus,
.cart-line-note-input:focus {
    outline: none;
    border-color: var(--primary-color);
}
.cart-line-note-label {
    margin-top: 10px;
}
.cart-page-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    color: #999;
}
.cart-page-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.cart-page-lines {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cart-page-line {
    background: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.cart-page-line-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.cart-page-line-name {
    margin: 0 0 4px;
    font-size: 1em;
    font-weight: 700;
    color: var(--text-main);
}
.cart-page-line-qty-label {
    margin: 0;
    font-size: 0.85em;
    color: var(--text-muted);
}
.cart-page-line-options {
    margin: 4px 0 0;
    font-size: 0.75em;
    color: #999;
}
.cart-page-line-price {
    font-weight: 800;
    color: var(--primary-color);
    white-space: nowrap;
    font-size: 1.05em;
}
.cart-line-service-type {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.cart-line-service-type .service-type-chip {
    flex: 1;
    padding: 8px;
    font-size: 0.8em;
}
.cart-line-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}
.cart-page-footer {
    flex-shrink: 0;
    padding: 12px 16px calc(12px + var(--safe-bottom));
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}
.cart-page-footer-total {
    text-align: center;
    margin: 0 0 10px;
    font-size: 0.95em;
    color: var(--text-muted);
}
.cart-page-footer-total strong {
    color: var(--primary-color);
    font-size: 1.15em;
}
.btn-cart-confirm,
.btn-cart-pay {
    width: 100%;
    min-height: var(--touch-min);
    border: none;
    border-radius: 14px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}
.btn-cart-confirm {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 20px rgba(215, 0, 96, 0.3);
}
.btn-cart-confirm:disabled,
.btn-cart-pay:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}
.btn-cart-pay {
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-cart-pay {
    margin-bottom: 0;
}
.cart-page-secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.btn-cart-secondary {
    min-height: var(--touch-min);
    padding: 12px 10px;
    border: none;
    border-radius: 14px;
    background: #f1f2f6;
    color: var(--text-main);
    font-size: 0.88em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
}
.btn-cart-secondary i {
    font-size: 1.15em;
    color: var(--primary-color);
}
.btn-cart-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-cart-secondary:active:not(:disabled) {
    background: #e8e9ed;
}

/* Ana menü — hesap iste (sol alt) / garson çağır (sağ alt) */
.menu-service-fabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 850;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    padding: 0 12px;
    pointer-events: none;
}
.menu-service-fabs[hidden] {
    display: none !important;
}
body.cart-page-open .menu-service-fabs,
body.menu-gate-active .menu-service-fabs {
    display: none !important;
}
.menu-service-fab {
    pointer-events: auto;
    flex: 0 1 auto;
    min-width: 108px;
    max-width: calc(50vw - 18px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}
.menu-service-fab--bill {
    margin-right: auto;
}
.menu-service-fab--waiter {
    margin-left: auto;
}

/* Küçük ekranlar — alt sheet ve CTA */
@media (max-width: 480px) {
    .bottom-modal {
        border-radius: 16px 16px 0 0;
        max-height: min(94dvh, 94vh);
    }
    #cart-modal .cart-line-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    #cart-modal .cart-line-qty {
        order: 3;
        width: 100%;
        justify-content: center;
        padding-top: 4px;
    }
    .modal-detail-image-wrapper {
        height: min(32dvh, 220px);
        max-height: 220px;
    }
    .bottom-modal-detail .modal-detail-content {
        padding-bottom: calc(76px + var(--safe-bottom));
    }
    .bottom-modal-detail .modal-detail-footer {
        padding: 10px 14px calc(10px + var(--safe-bottom));
    }
    .modal-detail-footer .btn-add-to-cart {
        min-height: 50px;
        font-size: 1rem;
    }
    .modal-detail-info {
        padding: 24px 18px 16px;
    }
    .mandatory-groups-block {
        padding: 0 18px 12px;
    }
    .cart-page-footer {
        padding: 10px 14px calc(10px + var(--safe-bottom));
    }
}

/* Menü yüklenemedi — tam ekran katman (gizliyken sayfa akışına girmesin) */
.menu-gate-block[hidden] {
    display: none !important;
}
body.menu-gate-active #sidebar,
body.menu-gate-active #main-content-wrapper,
body.menu-gate-active .main-footer {
    display: none !important;
}
.menu-gate-block:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 10000;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(24px + var(--safe-top)) 24px calc(24px + var(--safe-bottom));
    box-sizing: border-box;
    background: var(--bg-light);
}
.menu-gate-block__inner {
    text-align: center;
    max-width: 22rem;
}
.menu-gate-block__icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}
.menu-gate-block__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--text-main);
}
.menu-gate-block__text {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}
