        :root {
            --primary: #16A085;
            --primary-hover: #0284c7;
            --success: #22c55e;
            --bg: #f1f5f9;
            --card-bg: #ffffff;
            --text-main: #1e293b;
            --text-muted: #64748b;
            --border: #e2e8f0;
            --danger: #ef4444;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg);
            margin: 0;
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            min-height: 100vh;
        }

        .app-container {
            background: var(--card-bg);
            width: 100%;
            max-width: 600px;
            border-radius: 16px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.05);
            overflow: hidden;
            position: relative;
            padding-bottom: 80px;
        }

        .header {
            padding: 25px 20px;
            text-align: center;
            border-bottom: 1px solid var(--border);
        }

        .header h2 { margin: 0; color: var(--text-main); font-size: 20px; }
        .header p { margin: 8px 0 0 0; color: var(--text-muted); font-size: 14px; }

        .grid-container {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            padding: 20px;
        }

        .category-card {
            border: 2px solid var(--border);
            border-radius: 12px;
            padding: 20px 15px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .category-card:hover { border-color: var(--primary); background: #f0f9ff; }
        .category-card i { font-size: 28px; color: var(--primary); margin-bottom: 10px; }
        .category-card .title { font-weight: 600; color: var(--text-main); font-size: 14px; }

        .modal-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.5);
            display: none;
            justify-content: center;
            align-items: flex-end;
            z-index: 1000;
        }

        /* MODAL İÇİN YENİ DÜZEN: Esnek ve sabit alt/üst kısımlar */
        .modal-content {
            background: #fff;
            width: 100%;
            max-width: 600px;
            border-radius: 20px 20px 0 0;
            display: flex;
            flex-direction: column;
            max-height: 90vh;
            animation: slideUp 0.3s ease-out;
            overflow: hidden; /* Taşmayı engeller */
        }

        @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

        .modal-header {
            display: flex; justify-content: space-between; align-items: center;
            border-bottom: 1px solid var(--border); 
            padding: 20px;
            flex-shrink: 0; /* Başlık küçülmez, sabit kalır */
        }
        .modal-header h3 { margin: 0; font-size: 18px; color: var(--text-main); }
        .close-btn { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-muted); }

        #modal-body {
            padding: 20px;
            overflow-y: auto; /* Sadece gövde kısmı kaydırılabilir olur */
            flex-grow: 1; /* Kalan boşluğu kaplar */
        }

        .modal-footer {
            padding: 20px;
            border-top: 1px solid var(--border);
            background: #fff;
            flex-shrink: 0; /* Footer küçülmez, her zaman en altta sabit kalır */
        }

        .option-group { margin-bottom: 20px; }
        .option-title { font-weight: 600; font-size: 14px; margin-bottom: 10px; color: var(--text-muted); }
        
        .option-row {
            display: flex; justify-content: space-between; align-items: center;
            padding: 12px 15px; border: 1px solid var(--border); border-radius: 8px;
            margin-bottom: 10px; transition: all 0.2s; background: #fff;
        }
        .option-row.selected { border-color: var(--primary); background: #f0f9ff; }
        
        .counter-controls { display: flex; align-items: center; gap: 10px; }
        .counter-btn { width: 30px; height: 30px; border-radius: 5px; border: 1px solid var(--border); background: #fff; color: var(--primary); font-weight: bold; cursor: pointer; }
        .counter-val { width: 40px; text-align: center; border: 1px solid var(--border); border-radius: 4px; font-weight: 600; background: #fff; font-size: 15px; padding: 2px; }

        .quantity-box {
            display: flex; justify-content: space-between; align-items: center;
            background: #f8fafc; padding: 15px; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 15px;
        }
        .quantity-box span { font-weight: 600; }

        .add-to-cart-btn {
            width: 100%; padding: 15px; background: var(--primary); color: #fff; border: none;
            border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between;
            transition: background 0.2s;
        }
        .add-to-cart-btn:disabled { background: #cbd5e1; cursor: not-allowed; }

        .warning-text {
            color: var(--danger);
            font-size: 13px;
            font-weight: 600;
            text-align: center;
            margin-bottom: 10px;
            display: none;
        }

        .cart-bar {
            position: absolute; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border);
            padding: 15px 20px; display: none; justify-content: space-between; align-items: center; box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
        }
        .cart-bar .cart-info { font-weight: 600; color: var(--text-main); }
        .cart-bar button { background: var(--success); color: #fff; border: none; padding: 10px 20px; border-radius: 6px; font-weight: 600; cursor: pointer; }

        #summary-screen { display: none; padding: 20px; }
        .cart-item { background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 15px; margin-bottom: 10px; }
        .cart-item-title { font-weight: 600; margin-bottom: 5px; color: var(--text-main); }
        .cart-item-details { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
        .cart-item-bottom { display: flex; justify-content: space-between; font-weight: 600; }
        .delete-btn { color: #ef4444; background: none; border: none; cursor: pointer; }
                /* Body flex düzeninin tüm sayfayı kaydırmasını önleyen düzeltme */
        body {
            display: block !important;
            margin: 0;
            padding: 0;
        }

        /* Hesaplayıcı kutusunun sayfa ortasında düzgün durması için */
        .app-container {
            margin: 30px auto !important;
            position: relative;
        }

        /* Footer'ın her zaman en altı kaplamasını garanti eden kural */
        footer {
            clear: both;
            width: 100%;
            display: block;
            position: relative;
            z-index: 10;
        }

        /* Body flex düzeninin tüm sayfayı kaydırmasını önleyen düzeltme */
        body {
            display: block !important;
            margin: 0;
            padding: 0;
        }

        /* Hesaplayıcı kutusunun sayfa ortasında düzgün durması için */
        .app-container {
            margin: 30px auto !important;
            position: relative;
        }

        /* Footer'ın her zaman en altı kaplamasını garanti eden kural */
        footer {
            clear: both;
            width: 100%;
            display: block;
            position: relative;
            z-index: 10;
        }

        /* YENİ: Sepet barının ekranın en altına sabitlenmesi */
        .cart-bar {
            position: fixed !important; /* Ekranın altına yapışması için fixed yapıldı */
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            background: #fff;
            border-top: 1px solid var(--border);
            padding: 15px 20px;
            display: none;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 -4px 15px rgba(0,0,0,0.1); /* Yukarı doğru gölge */
            z-index: 900; /* Modal'ın altında, diğer her şeyin üstünde */
            box-sizing: border-box;
            border-radius: 0 0 16px 16px; /* Uygulamanın alt köşeleriyle uyumlu oval */
        }