/* Turuncu - Beyaz Kurumsal Renk Paleti */
:root {
    --bg-main: #fcfcfc;
    --bg-surface: #ffffff;
    --text-primary: #1c1917;
    --text-secondary: #78716c;
    --accent: #f97316; /* Mad Mac Canlı Turuncusu */
    --accent-light: #fff7ed;
    --border: #f1eeeb;
    --shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

body.dark-mode {
    --bg-main: #0c0a09;
    --bg-surface: #1c1917;
    --text-primary: #f5f5f4;
    --text-secondary: #a8a29e;
    --border: #2e2a28;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    padding-top: 195px; /* Kategori barının taşmaması için üst boşluk artırıldı */
}

/* Üst Sabit Bar */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: 65px;
    background-color: var(--bg-surface); display: flex;
    justify-content: space-between; align-items: center;
    padding: 0 16px; border-bottom: 1px solid var(--border); z-index: 100;
}
.nav-left { display: flex; align-items: center; gap: 12px; }
.menu-toggle { background: none; border: none; font-size: 24px; color: var(--text-primary); cursor: pointer; }
.logo img { height: 38px; width: auto; display: block; }
.welcome-text { font-weight: 600; font-size: 13px; color: var(--text-secondary); }
.instagram-icon { width: 22px; height: 22px; fill: var(--text-primary); transition: fill 0.2s; }
.instagram-icon:hover { fill: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.theme-toggle { background: none; border: none; font-size: 20px; cursor: pointer; }

/* BÜYÜTÜLMÜŞ KATEGORİ SLIDERI */
.scroll-category-wrapper {
    position: fixed; top: 65px; left: 0; width: 100%; height: 115px; /* Bir tık büyütüldü */
    background-color: var(--bg-surface); border-bottom: 1px solid var(--border);
    z-index: 99; overflow: hidden; display: flex; align-items: center;
}
.scroll-category-container {
    display: flex; gap: 14px; overflow-x: auto; padding: 10px 36px;
    white-space: nowrap; width: 100%; scroll-behavior: smooth;
}
.scroll-category-container::-webkit-scrollbar { display: none; }

.scroll-arrow {
    position: absolute; width: 30px; height: 30px; background: var(--bg-surface);
    border: 1px solid var(--border); border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 11px;
    color: var(--text-primary); cursor: pointer; z-index: 102; box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.left-arrow { left: 6px; }
.right-arrow { right: 6px; }

/* Görselli Kategori Kartları */
.cat-grid-card {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    text-decoration: none; color: var(--text-primary); width: 85px; flex-shrink: 0;
}
.cat-img-box {
    width: 60px; height: 60px; border-radius: 50%; overflow: hidden; /* Daire boyutları büyütüldü */
    border: 2px solid var(--border); transition: border-color 0.2s, transform 0.2s;
    background-color: var(--bg-main);
}
.cat-img-box img { width: 100%; height: 100%; object-fit: cover; }
.cat-card-title { font-size: 11px; font-weight: 700; text-align: center; white-space: normal; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-grid-card:hover .cat-img-box { border-color: var(--accent); transform: scale(1.05); }

/* Sol Açılır Menü (Sidebar) */
.sidebar {
    position: fixed; top: 0; left: -280px; width: 280px; height: 100%;
    background: var(--bg-surface); z-index: 1000; box-shadow: var(--shadow);
    transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1); padding: 20px;
    overflow-y: auto;
}
.sidebar.active { left: 0; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.sidebar-close { background: none; border: none; font-size: 28px; color: var(--text-secondary); cursor: pointer; }
.sidebar-menu { list-style: none; }
.sidebar-item a { 
    display: flex; align-items: center; gap: 14px; padding: 12px 6px; 
    color: var(--text-primary); text-decoration: none; font-weight: 700; 
    font-size: 13.5px; border-bottom: 1px solid var(--border); 
}
.sidebar-item a:hover { color: var(--accent); }

/* Sol Menü Dairesel Kategori Görsel Kutuları */
.sidebar-img-box {
    width: 32px; height: 32px; border-radius: 50%; overflow: hidden;
    border: 1px solid var(--border); flex-shrink: 0; background: var(--bg-main);
}
.sidebar-img-box img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); z-index: 999; display: none; }
.sidebar-overlay.active { display: block; }

/* Kapsayıcı ve Responsive Grid Düzeni */
.container { max-width: 1400px; margin: 0 auto; padding: 16px; }

/* CRITICAL FIX: Kategori geçişinin navbar altında kalmasını önleyen hizalama */
.section-title { 
    font-size: 1.3rem; font-weight: 800; margin: 28px 0 16px; 
    color: var(--text-primary); display: flex; align-items: center; gap: 8px;
    scroll-margin-top: 195px; /* Tıklanınca tam sınırda sıfırlanmasını sağlar */
}
.section-title::before { content: ''; display: inline-block; width: 4px; height: 16px; background: var(--accent); border-radius: 2px; }

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Mobilde tam yan yana 2 adet */
    gap: 12px;
}

/* Ürün Kartları */
.product-card { 
    background: var(--bg-surface); border-radius: 16px; border: 1px solid var(--border); 
    display: flex; flex-direction: column; overflow: hidden; cursor: pointer; 
    box-shadow: var(--shadow); transition: transform 0.2s, border-color 0.2s;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.card-img-wrapper { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background-color: var(--bg-main); }
.product-img { width: 100%; height: 100%; object-fit: cover; }

.product-info { padding: 12px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.product-title { font-size: 12.5px; font-weight: 700; line-height: 1.3; }

/* BELİRGİNLEŞTİRİLMİŞ FİYATLAR */
.product-price { font-weight: 800; color: var(--accent); font-size: 15px; }

/* Seçenekler Alanı (Sade / Tavuklu Bölümü) */
.opt-container { display: flex; flex-direction: column; gap: 4px; border-top: 1px dashed var(--border); padding-top: 6px; }
.opt-line { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; }
.o-name { color: var(--text-secondary); }
.o-price { color: var(--accent); font-weight: 800; font-size: 12.5px; }

/* Pratik Mini Listeler */
.mini-list-layout { display: flex; flex-direction: column; gap: 8px; }
.mini-row-item { 
    background: var(--bg-surface); border: 1px solid var(--border); padding: 14px 16px; 
    border-radius: 12px; display: flex; justify-content: space-between; font-weight: 700; font-size: 13.5px; 
}
.row-price { font-weight: 800; color: var(--accent); font-size: 14.5px; }
.drinks-wrapper-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.sub-list-title { font-size: 12px; color: var(--text-secondary); text-transform: uppercase; margin-bottom: 8px; }

/* Bilgisayar/Geniş Ekranlar (5'li Grid Dağılımı) */
@media (min-width: 1024px) {
    .grid { grid-template-columns: repeat(5, 1fr); gap: 20px; }
    .mini-list-layout, .drinks-wrapper-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .product-title { font-size: 14px; }
}

/* Detay Pop-up Ekranı (Modal) */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; padding: 16px; backdrop-filter: blur(2px); }
.modal.active { opacity: 1; pointer-events: auto; }
.modal-content { background: var(--bg-surface); width: 100%; max-width: 380px; border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-close { background: none; border: none; font-size: 24px; color: var(--text-secondary); cursor: pointer; }
.modal-img-container { width: 100%; height: 180px; border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.modal-img { width: 100%; height: 100%; object-fit: cover; }
.modal-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--accent); margin: 12px 0 6px; }
.modal-pill-container { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-pill { background: var(--accent-light); border: 1px solid var(--accent); color: var(--accent); padding: 4px 12px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.calorie-box { background: var(--bg-main); border-left: 4px solid var(--accent); color: var(--text-primary); padding: 10px; border-radius: 6px; font-size: 12px; font-weight: 700; margin-top: 14px; }