/* ===== QR MENÜ CSS ===== */
:root {
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --bg: #f5f6fa;
    --card-bg: #ffffff;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --text-muted: #95a5a6;
    --border: #ecf0f1;
    --header-bg: #2c3e50;
    --cat-bar-bg: #ffffff;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.15);
    --price-color: #e74c3c;
    --radius: 14px;
}

[data-theme="dark"] {
    --bg: #1a1a2e;
    --card-bg: #16213e;
    --text: #eaeaea;
    --text-light: #a0a0b0;
    --text-muted: #6c6c80;
    --border: #2a2a4a;
    --header-bg: #0f0f23;
    --cat-bar-bg: #16213e;
    --shadow: 0 2px 12px rgba(0,0,0,0.3);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background 0.3s, color 0.3s;
    min-height: 100vh;
}

/* BANNER */
.campaign-banner {
    text-align: center;
    padding: 10px 16px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

/* HEADER */
.menu-header {
    background: var(--header-bg);
    padding: 14px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand { display: flex; align-items: center; gap: 12px; }

.header-logo {
    width: 48px; height: 48px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
}

.header-text h1 { color: white; font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.header-hours   { color: rgba(255,255,255,0.7); font-size: 0.78rem; }

.header-info {
    max-width: 900px;
    margin: 8px auto 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.header-info span, .header-info a { color: rgba(255,255,255,0.7); font-size: 0.82rem; text-decoration: none; }
.header-info a:hover { color: white; }

.theme-toggle {
    background: rgba(255,255,255,0.15);
    border: none; border-radius: 50%;
    width: 40px; height: 40px;
    font-size: 1.2rem; cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,0.25); transform: rotate(20deg); }

/* CATEGORY BAR */
.category-bar {
    background: var(--cat-bar-bg);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 72px; z-index: 99;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.category-slider {
    display: flex; gap: 8px;
    padding: 12px 16px;
    overflow-x: auto; scrollbar-width: none;
    max-width: 900px; margin: 0 auto;
}
.category-slider::-webkit-scrollbar { display: none; }

.cat-btn {
    flex-shrink: 0;
    padding: 8px 18px; border-radius: 24px;
    border: 2px solid var(--border);
    background: transparent; color: var(--text-light);
    font-size: 0.9rem; font-weight: 500;
    cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.cat-btn:hover { border-color: var(--primary); color: var(--primary); }
.cat-btn.active { background: var(--primary); border-color: var(--primary); color: white; box-shadow: 0 4px 12px rgba(231,76,60,0.3); }

/* MAIN */
.menu-main { max-width: 900px; margin: 0 auto; padding: 20px 16px; }

.category-section { margin-bottom: 36px; animation: fadeIn 0.3s ease; }
.category-section.hidden { display: none; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.category-title {
    font-size: 1.3rem; font-weight: 700; color: var(--text);
    margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 3px solid var(--primary); display: inline-block;
}

/* GRID */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

/* PRODUCT CARD */
.product-card {
    background: var(--card-bg); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer; position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* BADGE */
.product-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    padding: 4px 10px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.3px;
}
.badge-new      { background: #27ae60; color: white; }
.badge-featured { background: #f39c12; color: white; }

.product-image { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--border); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-image img { transform: scale(1.05); }

.no-image-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #f5f6fa, #ecf0f1);
}
[data-theme="dark"] .no-image-placeholder { background: linear-gradient(135deg, #1a1a2e, #16213e); }

.product-info { padding: 12px; }
.product-name { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 4px; line-height: 1.3; }
.product-desc {
    font-size: 0.8rem; color: var(--text-light); line-height: 1.4; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.product-price  { font-size: 1.05rem; font-weight: 700; color: var(--price-color); }
.product-cal    { font-size: 0.75rem; color: var(--text-muted); background: var(--border); padding: 2px 8px; border-radius: 10px; }

.empty-menu { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 1.1rem; }
.menu-footer { text-align: center; padding: 24px; color: var(--text-muted); font-size: 0.9rem; border-top: 1px solid var(--border); margin-top: 20px; }

/* ===== ÜRÜN DETAY MODAL ===== */
.product-modal {
    display: none; position: fixed; inset: 0; z-index: 500;
    background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
    align-items: flex-end; justify-content: center;
}
.product-modal.open { display: flex; animation: modalBgIn 0.25s ease; }
@keyframes modalBgIn { from { opacity: 0; } to { opacity: 1; } }

.product-modal-inner {
    background: var(--card-bg); width: 100%; max-width: 560px;
    max-height: 90vh; border-radius: 24px 24px 0 0;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-back-btn {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; gap: 6px;
    background: var(--card-bg); border: none;
    padding: 16px 20px 12px;
    font-size: 1rem; font-weight: 600; color: var(--text);
    cursor: pointer; width: 100%; text-align: left;
    border-bottom: 1px solid var(--border);
}
.modal-back-btn:hover { color: var(--primary); }

.modal-image-wrap { width: 100%; aspect-ratio: 4/3; background: var(--border); overflow: hidden; }
.modal-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.modal-image-wrap .modal-no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 5rem;
    background: linear-gradient(135deg, #f5f6fa, #ecf0f1);
}
[data-theme="dark"] .modal-image-wrap .modal-no-img { background: linear-gradient(135deg, #1a1a2e, #16213e); }

.modal-body { padding: 20px 24px 36px; }
.modal-category {
    display: inline-block;
    background: rgba(231,76,60,0.12); color: var(--primary);
    font-size: 0.8rem; font-weight: 600;
    padding: 4px 12px; border-radius: 20px;
    margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px;
}
.modal-name  { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.3; }
.modal-desc  { font-size: 0.95rem; color: var(--text-light); line-height: 1.7; margin-bottom: 20px; }
.modal-price { font-size: 1.8rem; font-weight: 800; color: var(--primary); margin-bottom: 16px; }
.modal-meta  { display: flex; flex-direction: column; gap: 12px; }

.modal-calories {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--border); padding: 6px 14px; border-radius: 20px;
    font-size: 0.9rem; color: var(--text-light); width: fit-content;
}
.modal-allergens-title { font-size: 0.85rem; font-weight: 600; color: var(--text-light); margin-bottom: 6px; }
.allergen-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.allergen-tag {
    background: #fff3cd; color: #856404;
    border: 1px solid #ffc107;
    padding: 3px 10px; border-radius: 12px;
    font-size: 0.8rem; font-weight: 500;
}
[data-theme="dark"] .allergen-tag { background: #3d2e00; color: #ffc107; border-color: #856404; }

/* RESPONSIVE */
@media (min-width: 600px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .product-name  { font-size: 1rem; }
    .product-info  { padding: 14px; }
    .product-modal { align-items: center; }
    .product-modal-inner { border-radius: 24px; max-height: 85vh; margin: 20px; }
}
@media (min-width: 900px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .menu-main { padding: 28px 20px; }
}
