/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --color-primary: #ffb703;
    --color-primary-hover: #e6a500;
    --color-bg-light: #ffffff;
    --color-bg-dark: #1a1a1a;
    --color-bg-admin: #f4f4f9;
    --color-text-main: #222222;
    --color-text-muted: #666666;
    --color-text-light: #f5f5f5;
    --color-border: #e0e0e0;
    --color-danger: #ff4d4d;
    --color-danger-hover: #cc0000;
    --max-width: 1000px;
    --transition-speed: 0.3s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(--color-bg-light); color: var(--color-text-main); line-height: 1.6; overflow-x: hidden; }

/* =========================================
   2. REUSABLE COMPONENTS
   ========================================= */
.btn { padding: 12px 30px; background-color: var(--color-primary); color: #111; text-decoration: none; font-weight: bold; border: none; font-size: 16px; border-radius: 4px; transition: transform var(--transition-speed), background-color var(--transition-speed); display: inline-block; cursor: pointer; }
.btn:hover { background-color: var(--color-primary-hover); transform: translateY(-2px); }
.w-100 { width: 100%; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 5px; }
.form-group input, .form-group select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-family: inherit; }
.border-box { border: 2px dashed #ccc; padding: 15px; border-radius: 8px; background-color: #fafafa; }
.border-box input[type="file"] { background-color: white; border: 1px solid #ddd; cursor: pointer; }

/* =========================================
   3. LAYOUT: HEADER & FOOTER
   ========================================= */
.navbar { position: fixed; top: 0; width: 100%; background-color: rgba(255, 255, 255, 0.98); padding: 15px 50px; display: flex; justify-content: space-between; align-items: center; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 65px; width: auto; object-fit: contain; transition: transform var(--transition-speed), filter var(--transition-speed); }
.logo-img:hover { transform: scale(1.05); filter: drop-shadow(0 4px 6px rgba(255, 183, 3, 0.4)); }

/* MENÜ LİNKLERİ VE HİZALAMA */
.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--color-text-main); text-decoration: none; font-weight: 500; transition: color var(--transition-speed); }
.nav-links a:hover { color: var(--color-primary); }

footer { background-color: var(--color-bg-dark); padding: 60px 20px 20px; color: var(--color-text-light); }
.footer-content { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 40px; }
.footer-section { flex: 1; min-width: 250px; }
.footer-section h3 { color: var(--color-primary); margin-bottom: 15px; }
.footer-section p { color: #bbb; margin-bottom: 10px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #333; color: #777; font-size: 0.9rem; }
.admin-link { color: #555; text-decoration: none; margin-left: 15px; transition: color var(--transition-speed); cursor: pointer; }
.admin-link:hover { color: var(--color-primary); }

/* =========================================
   4. PAGES: HOME (Hero & Menu)
   ========================================= */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('resim.png') center/cover; }
.hero-content h1 { font-size: 4rem; margin-bottom: 10px; color: var(--color-primary); letter-spacing: 2px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; color: var(--color-bg-light); }
.menu-section { padding: 100px 20px 80px; max-width: var(--max-width); margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; }
.divider { height: 3px; width: 60px; background-color: var(--color-primary); margin: 0 auto; }
.menu-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 40px; }
.tab-btn { background: transparent; border: 2px solid var(--color-primary); color: var(--color-text-main); padding: 10px 25px; font-size: 16px; font-weight: 600; cursor: pointer; border-radius: 30px; transition: all var(--transition-speed); }
.tab-btn:hover, .tab-btn.active { background-color: var(--color-primary); color: #111; }
.menu-content { display: none; animation: fadeIn 0.5s; }
.menu-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.menu-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--color-border); padding: 20px 0; }
.item-img { width: 100px; height: 100px; object-fit: cover; border-radius: 10px; border: 2px solid var(--color-border); }
.item-text-container { flex: 1; }
.item-info h3 { font-size: 1.4rem; margin-bottom: 5px; }
.item-info p { color: var(--color-text-muted); margin-bottom: 10px; }
.price { font-size: 1.3rem; font-weight: bold; color: #d19400; }

/* =========================================
   5. RESERVATION SECTION
   ========================================= */
.reservation-section { padding: 80px 20px; max-width: 800px; margin: 0 auto 100px; }
.reservation-container { background: #ffffff; border: 1px solid var(--color-border); padding: 40px; border-radius: 15px; box-shadow: 0 15px 35px rgba(0,0,0,0.08); }
.form-row { display: flex; gap: 20px; margin-bottom: 10px; }
@media(max-width: 600px) { .form-row { flex-direction: column; gap: 0; } }

/* =========================================
   6. PAGES: ADMIN DASHBOARD
   ========================================= */
.admin-body { background-color: var(--color-bg-admin); padding-top: 100px; }
.admin-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 20px; }
@media(max-width: 768px){ .admin-container { grid-template-columns: 1fr; } }
.full-width-card { grid-column: 1 / -1; }
.admin-card { background: var(--color-bg-light); padding: 30px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.admin-card h2 { color: var(--color-primary); margin-bottom: 20px; border-bottom: 2px solid var(--color-primary); padding-bottom: 10px; }
.admin-meal-list { max-height: 500px; overflow-y: auto; }
.admin-list-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; border-bottom: 1px solid #eee; }
.action-buttons { display: flex; gap: 10px; }
.edit-btn { background-color: #3498db; color: white; border: none; padding: 5px 15px; border-radius: 5px; cursor: pointer; transition: var(--transition-speed); }
.edit-btn:hover { background-color: #2980b9; }
.delete-btn { background-color: var(--color-danger); color: white; border: none; padding: 5px 15px; border-radius: 5px; cursor: pointer; transition: var(--transition-speed); }
.delete-btn:hover { background-color: var(--color-danger-hover); }

.admin-reservation-list { max-height: 400px; overflow-y: auto; }
.reservation-item { background-color: #fafafa; border: 1px solid #eee; border-radius: 5px; padding: 15px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.reservation-details strong { color: #111; font-size: 1.1rem; }
.reservation-details p { margin: 5px 0 0 0; color: #555; font-size: 0.95rem; }
.guest-badge { background: var(--color-primary); color: #111; padding: 2px 8px; border-radius: 12px; font-size: 0.8rem; font-weight: bold; margin-left: 10px; }

/* =========================================
   7. MODALS (Auth & Edit)
   ========================================= */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); display: none; align-items: center; justify-content: center; z-index: 2000; }
.modal-overlay.active { display: flex; }
.modal-content { background-color: var(--color-bg-light); padding: 30px; border-radius: 10px; width: 90%; max-width: 400px; position: relative; box-shadow: 0 5px 25px rgba(0,0,0,0.2); animation: slideDown 0.3s ease-out; }
@keyframes slideDown { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 24px; color: #999; cursor: pointer; }
.close-modal:hover { color: #333; }
.modal-tabs { display: flex; margin-bottom: 25px; border-bottom: 2px solid #eee; }
.modal-tab { flex: 1; background: none; border: none; padding: 10px; font-size: 16px; font-weight: bold; color: #888; cursor: pointer; transition: all var(--transition-speed); }
.modal-tab.active { color: var(--color-primary); border-bottom: 2px solid var(--color-primary); }
.modal-form { display: none; }
.modal-form.active { display: block; }
.modal-form h3 { margin-bottom: 20px; text-align: center; }

/* =========================================
   8. CART SYSTEM (Sepet Sistemi)
   ========================================= */
.add-to-cart-btn { background-color: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); padding: 6px 15px; border-radius: 20px; cursor: pointer; font-weight: bold; transition: all 0.3s; font-size: 0.9rem; }
.add-to-cart-btn:hover { background-color: var(--color-primary); color: #111; }

/* YENİ MENÜ İÇİ SEPET BUTONU */
.cart-nav-btn { 
    position: relative; 
    background-color: var(--color-primary); 
    color: #111; 
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 20px; 
    cursor: pointer; 
    transition: transform 0.3s; 
}
.cart-nav-btn:hover { transform: scale(1.1); }
.cart-badge { position: absolute; top: -5px; right: -5px; background-color: var(--color-danger); color: white; font-size: 12px; font-weight: bold; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* SEPET YAN PANELİ */
.cart-sidebar { position: fixed; top: 0; right: -400px; width: 100%; max-width: 350px; height: 100vh; background-color: var(--color-bg-light); box-shadow: -5px 0 25px rgba(0,0,0,0.2); z-index: 1001; transition: right 0.4s ease; display: flex; flex-direction: column; }
.cart-sidebar.active { right: 0; }
.cart-header { padding: 20px; border-bottom: 1px solid var(--color-border); display: flex; justify-content: space-between; align-items: center; }
.close-cart { font-size: 28px; cursor: pointer; color: var(--color-text-muted); }
.close-cart:hover { color: var(--color-danger); }
.cart-items { flex: 1; overflow-y: auto; padding: 20px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.cart-item-info h4 { font-size: 1rem; margin-bottom: 5px; color: var(--color-text-main); }
.cart-item-price { color: var(--color-primary); font-weight: bold; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; }
.qty-btn { background: #eee; border: none; padding: 2px 8px; cursor: pointer; border-radius: 3px; font-weight: bold; }
.cart-footer { padding: 20px; border-top: 1px solid var(--color-border); }
/* =========================================
   9. DAILY MENU (Günün Menüsü Sistemi)
   ========================================= */
.daily-menu-section {
    padding: 100px 20px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.daily-menu-container {
    display: flex;
    justify-content: center;
}

.daily-menu-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08); /* Hafif gölge */
    border: 1px solid var(--color-border);
    display: flex;
    max-width: 850px;
    width: 100%;
    position: relative;
    transition: transform 0.3s;
}

.daily-menu-card:hover {
    transform: translateY(-5px);
}

/* Şık İndirim Etiketi */
.discount-badge {
    position: absolute;
    top: 20px;
    left: -10px;
    background: var(--color-danger);
    color: white;
    padding: 8px 25px;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 4px 10px rgba(204, 0, 0, 0.3);
    z-index: 10;
}

/* Etiketin altındaki kıvrım efekti */
.discount-badge::before {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    border-top: 10px solid #990000;
    border-left: 10px solid transparent;
}

.daily-item-img {
    width: 45%;
    object-fit: cover;
}

.daily-item-info {
    padding: 40px;
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.daily-item-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--color-text-main);
}

.daily-item-info p {
    color: var(--color-text-muted);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.old-price {
    color: #999999;
    font-size: 1.3rem;
}

.new-price {
    color: var(--color-danger); /* Vurucu Kırmızı Renk */
    font-size: 2.2rem;
    font-weight: bold;
}

/* Mobilde Alt Alta Gösterme */
@media(max-width: 768px) {
    .daily-menu-card {
        flex-direction: column;
    }
    .daily-item-img {
        width: 100%;
        height: 250px;
    }
    .daily-item-info {
        width: 100%;
        padding: 30px 20px;
    }
}
/* =========================================
   9. DAILY MENU (Dinamik 5'li Kombinasyon)
   ========================================= */
.daily-menu-section { padding: 100px 20px 20px; max-width: var(--max-width); margin: 0 auto; }
.daily-menu-container { display: flex; justify-content: center; }

.daily-combo-card {
    background: #ffffff; border-radius: 15px; overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08); border: 1px solid var(--color-border);
    display: flex; flex-direction: column; max-width: 700px; width: 100%; position: relative; padding: 30px;
    transition: transform 0.3s;
}
.daily-combo-card:hover { transform: translateY(-5px); }

/* Şık İndirim Etiketi */
.daily-combo-card .discount-badge {
    position: absolute; top: 20px; left: -10px; background: var(--color-danger); color: white;
    padding: 8px 25px; font-weight: bold; letter-spacing: 1px; border-radius: 0 10px 10px 0;
    box-shadow: 2px 4px 10px rgba(204, 0, 0, 0.3); z-index: 10;
}
.daily-combo-card .discount-badge::before {
    content: ""; position: absolute; bottom: -10px; left: 0;
    border-top: 10px solid #990000; border-left: 10px solid transparent;
}

/* 5'li Yemek Listesi Satırları */
.daily-combo-list { margin: 40px 0 20px 0; display: flex; flex-direction: column; gap: 15px; }
.daily-combo-row { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px dashed #eee; }
.daily-combo-row:last-child { border-bottom: none; }
.daily-row-left { display: flex; align-items: center; gap: 15px; }
.daily-row-img { width: 50px; height: 50px; object-fit: cover; border-radius: 50%; border: 1px solid var(--color-border); }
.daily-row-tag { font-size: 0.75rem; font-weight: bold; background: #f0f0f0; padding: 2px 8px; border-radius: 10px; color: #555; text-transform: uppercase; }
.daily-row-name { font-weight: 600; color: var(--color-text-main); }

/* Fiyat ve Satın Alma Alanı */
.daily-combo-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 20px; border-top: 2px solid var(--color-border); flex-wrap: wrap; gap: 15px; }
.daily-combo-price-box { display: flex; flex-direction: column; }
.daily-combo-old-price { color: #999; font-size: 1.2rem; text-decoration: line-through; }
.daily-combo-new-price { color: var(--color-danger); font-size: 2rem; font-weight: bold; }
/* =========================================
   10. CUSTOMER AUTH & DROPDOWN
   ========================================= */
.nav-login-btn { background: transparent; border: 2px solid var(--color-primary); color: var(--color-text-main); padding: 5px 15px; border-radius: 20px; font-weight: bold; cursor: pointer; transition: 0.3s; margin-left: 15px; }
.nav-login-btn:hover { background: var(--color-primary); color: #111; }

.user-dropdown { position: relative; display: inline-block; margin-left: 15px; padding-bottom: 20px; }
.user-dropdown-btn { background: none; border: none; font-weight: 600; cursor: pointer; font-size: 16px; display: flex; align-items: center; gap: 5px; color: var(--color-text-main); }
.user-dropdown-content { display: none; position: absolute; right: 0; top: 100%; background-color: white; min-width: 180px; box-shadow: 0 8px 25px rgba(0,0,0,0.1); border-radius: 10px; overflow: hidden; z-index: 1000; }
.user-dropdown-content a { color: #333; padding: 12px 16px; text-decoration: none; display: block; font-size: 0.95rem; border-bottom: 1px solid #eee; transition: 0.3s; }
.user-dropdown-content a:last-child { border-bottom: none; color: var(--color-danger); }
.user-dropdown-content a:hover { background-color: #fdfdfd; padding-left: 20px; color: var(--color-primary); }
.user-dropdown-content a:last-child:hover { color: white; background: var(--color-danger); }
.user-dropdown:hover .user-dropdown-content { display: block; }

.customer-auth-card { padding: 40px !important; }
.auth-header { text-align: center; margin-bottom: 25px; }
.auth-header h2 { color: var(--color-primary); letter-spacing: 2px; font-size: 2rem; font-weight: 800; }
.customer-form { display: none; }
.customer-form.active { display: block; animation: fadeIn 0.4s; }
.auth-links { display: flex; justify-content: space-between; margin-top: 20px; font-size: 0.9rem; }
.auth-links a { color: #777; text-decoration: none; transition: 0.3s; font-weight: 500; }
.auth-links a:hover { color: var(--color-primary); }
/* =========================================
   11. PROFILE PAGE SPECIFIC STYLES
   ========================================= */
.profile-side-btn {
    width: 100%; text-align: left; background: transparent; border: none;
    padding: 12px 15px; font-size: 16px; font-weight: 600; cursor: pointer;
    border-radius: 5px; transition: 0.3s; color: var(--color-text-main);
}
.profile-side-btn:hover, .profile-side-btn.active {
    background-color: var(--color-primary); color: #111;
}
.profile-tab-content { display: none; }
.profile-tab-content.active { display: block; animation: fadeIn 0.4s; }

/* Sipariş Geçmişi Kart Tasarımı */
.order-history-item {
    background: #fafafa; border: 1px solid var(--color-border);
    border-radius: 8px; padding: 20px; margin-bottom: 15px;
}
.order-history-header {
    display: flex; justify-content: space-between; font-weight: bold;
    border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 10px;
    color: #555; font-size: 0.9rem;
}
.order-history-details { color: #222; font-size: 1.05rem; }
.order-history-total {
    text-align: right; font-weight: bold; color: var(--color-danger);
    font-size: 1.2rem; margin-top: 10px; border-top: 1px dashed #eee; padding-top: 10px;
}   
/* =========================================
   SEPET PANELI GEÇİŞ YUMUŞATMASI (FIX)
   ========================================= */
.cart-sidebar {
    position: fixed; top: 0; right: -400px; width: 400px; height: 100%;
    background-color: #fff; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 2000; display: flex; flex-direction: column;
    /* Kapanırken ve açılırken yumuşak (0.4 saniye) kayması için: */
    transition: right 0.4s ease-in-out, visibility 0.4s; 
    visibility: hidden;
}
.cart-sidebar.active {
    right: 0;
    visibility: visible;
}
/* =========================================
   12. CARTSIDEBAR SEPET PANELİ GEÇİŞ FIX
   ========================================= */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background-color: var(--color-bg-light);
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    /* Pürüzsüz kayarak açılıp kapanma animasyonu: */
    transition: right 0.4s ease-in-out, visibility 0.4s ease-in-out;
    visibility: hidden;
}

.cart-sidebar.active {
    right: 0;
    visibility: visible;
}
/* =========================================
   PROFESYONEL ADMİN MENÜ BUTONLARI
   ========================================= */
.admin-side-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px; /* Köşeleri yumuşatır */
    transition: all 0.3s ease; /* Pürüzsüz animasyon */
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 12px; /* İkon ile yazı arasına boşluk koyar */
    margin-bottom: 8px;
}

/* Fare üzerine geldiğinde (Hover) */
.admin-side-btn:hover {
    background-color: #f5f5f5;
    transform: translateX(6px); /* Sağ tarafa şık bir kayma efekti */
}

/* Buton seçiliyken / tıklandığında (Active) */
.admin-side-btn.active {
    background-color: var(--color-primary); /* Morsel Sarısı */
    color: #111;
    box-shadow: 0 4px 15px rgba(255, 183, 3, 0.4); /* Etrafına sarı bir parlama verir */
    transform: translateX(0);
}
/* =========================================
   13. FAVORITE BUTTON (Favorilere Ekle)
   ========================================= */
.fav-btn {
    background: transparent;
    border: 2px solid #ccc;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--transition-speed);
}
.fav-btn:hover {
    border-color: var(--color-danger);
    transform: scale(1.1);
}
/* =========================================
   14. MEAL DETAILS MODAL & BUTTON
   ========================================= */
.details-btn {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all var(--transition-speed);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}
.details-btn:hover {
    background-color: var(--color-primary);
    color: #111;
    transform: translateY(-2px);
}

/* Modern Cam Efektli Arka Plan */
.meal-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px); /* Cam efekti */
    display: none; align-items: center; justify-content: center;
    z-index: 3000; opacity: 0; transition: opacity 0.3s ease;
}
.meal-modal-overlay.active {
    display: flex; opacity: 1;
}

/* Modal Kartı */
.meal-modal-card {
    background: #fff; width: 90%; max-width: 400px;
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    transform: translateY(30px); transition: transform 0.3s ease;
    position: relative;
}
.meal-modal-overlay.active .meal-modal-card {
    transform: translateY(0);
}

/* Modal Başlık Kısmı */
.meal-modal-header {
    background: var(--color-primary); padding: 25px 20px;
    color: #111; text-align: center; position: relative;
}
.meal-modal-header h3 { margin: 0; font-size: 1.6rem; font-weight: 800;}
.close-meal-modal {
    position: absolute; top: 10px; right: 20px;
    font-size: 28px; cursor: pointer; color: #111; font-weight: bold;
    transition: transform 0.3s;
}
.close-meal-modal:hover { transform: scale(1.2); }

/* İçerik ve Detaylar */
.meal-modal-body { padding: 25px; }
.meal-stat-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px; padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
}
.meal-stat-label { font-weight: 600; color: #555; }
.meal-stat-value { color: var(--color-danger); font-weight: bold; font-size: 1.1rem;}

.meal-ingredients h4 { margin-bottom: 15px; color: #222; font-size: 1.1rem; }
.meal-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.ingredient-badge {
    background: #f1f3f5; color: #495057; padding: 6px 14px;
    border-radius: 20px; font-size: 0.85rem; font-weight: 600;
    border: 1px solid #e9ecef;
}
/* =========================================
   15. CHECKOUT PAGE (Ödeme Sayfası)
   ========================================= */
.checkout-wrapper {
    max-width: 1100px;
    margin: 100px auto 60px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.checkout-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid var(--color-border);
}

.checkout-card h2 {
    font-size: 1.5rem;
    color: var(--color-text-main);
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

/* Ödeme Seçenekleri Radyo Butonları */
.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.payment-option input {
    display: none; /* Gerçek radyo butonunu gizle */
}

.payment-box {
    border: 2px solid #eee;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.payment-box small {
    font-weight: normal;
    color: #888;
    margin-top: 5px;
}

/* Seçili olan ödeme kutusunun stili */
.payment-option input:checked + .payment-box {
    border-color: var(--color-primary);
    background-color: rgba(255, 183, 3, 0.05);
    color: #111;
    box-shadow: 0 4px 10px rgba(255, 183, 3, 0.15);
}

.credit-card-container {
    background: #fdfdfd;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
}

/* Sağ Taraf Sipariş Özeti */
.sticky-summary {
    position: sticky;
    top: 100px;
}

.summary-list {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.95rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #555;
}

.total-row {
    font-size: 1.4rem;
    font-weight: bold;
    color: #111;
}
.total-price {
    color: var(--color-danger);
}

@media(max-width: 850px) {
    .checkout-wrapper { grid-template-columns: 1fr; }
    .payment-methods { grid-template-columns: 1fr; }
}
/* =========================================
   16. MOBİL UYUMLULUK (Responsive Tasarım)
   ========================================= */

@media (max-width: 850px) {
    /* 1. Üst Menü (Navbar) Düzenlemesi */
    .navbar {
        padding: 15px 10px;
        flex-direction: column;
        gap: 12px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        font-size: 0.95rem;
    }
    .nav-login-btn {
        margin-left: 0;
        padding: 5px 10px;
    }
    .user-dropdown {
        margin-left: 0;
        padding-bottom: 0;
    }
    
    /* Navbar büyüdüğü için alt kısımları biraz aşağı itiyoruz */
    .admin-body, .checkout-wrapper {
        padding-top: 50px; 
    }
    
    /* 2. Ana Ekran (Hero) ve Başlıklar */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .section-title h2 {
        font-size: 2rem;
    }

    /* 3. Yemek Listesi ve Menüler (GÜNCELLENDİ) */
    .menu-item {
        flex-direction: column;
        text-align: center;
        align-items: center; /* İçeriği merkeze hizalar */
    }
    .item-img {
        width: 100%;
        height: 220px;
        max-width: 350px;
        flex-shrink: 0; /* Fotoğrafın ezilip kaybolmasını engeller! */
        margin-bottom: 15px; /* Altındaki yazıyla arasına boşluk koyar */
        object-fit: cover; /* Resmi orantılı keser */
    }
    .item-info div {
        justify-content: center; /* Butonları ortala */
    }

    /* 4. Günün Menüsü (GÜNCELLENDİ) */
    .daily-combo-row {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        align-items: center;
    }
    .daily-row-left {
        flex-direction: column;
        align-items: center;
    }
    .daily-row-img {
        width: 100px;
        height: 100px;
        flex-shrink: 0; /* Günün menüsündeki fotoların da ezilmesini engeller */
        margin-bottom: 5px;
    }
    .daily-combo-footer {
        flex-direction: column;
        gap: 15px;
    }

    /* 5. Sepet Yan Paneli (Telefonda Tam Ekran Açılır) */
    .cart-sidebar {
        width: 100%; 
        max-width: none;
        right: -100%;
    }

    /* 6. Profil Sayfası ve Admin Menüsü */
    .admin-container {
        display: flex;
        flex-direction: column;
    }
    .profile-sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }
    
    /* 7. Modal (Popup) Pencereler */
    .meal-modal-card, .modal-content {
        width: 95%;
        padding: 20px;
    }
}

/* Çok Küçük Ekranlı Telefonlar İçin Ekstra Düzenleme (Örn: iPhone SE) */
@media (max-width: 480px) {
    /* Kategoriler alt alta geçsin, butonlar tam genişlik olsun */
    .menu-tabs {
        flex-direction: column;
    }
    .tab-btn {
        width: 100%;
    }
    .cart-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .price {
        font-size: 1.5rem;
        margin-top: 10px;
    }
}
/* Fotoğrafları zorla göster */
.item-img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #f0f0f0; /* Resim yüklenene kadar gri kutu gösterir */
}