-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.html
More file actions
608 lines (563 loc) · 31.5 KB
/
Copy pathadmin.html
File metadata and controls
608 lines (563 loc) · 31.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
<!doctype html>
<html lang="tr" data-theme="light">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Admin Panel | Picchio Cocktail</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..800;1,6..96,400..800&family=Cinzel:wght@400..800&family=Cormorant+Garamond:ital,wght@0,400..700;1,400..700&family=Inter:wght@300..800&family=Lora:ital,wght@0,400..700;1,400..700&family=Montserrat:wght@300..800&family=Outfit:wght@300..700&family=Playfair+Display:ital,wght@0,400..800;1,400..800&family=Plus+Jakarta+Sans:wght@400..800&family=Syne:wght@400..800&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="admin.css?v=16" />
<script>
window.onerror = function(msg, url, line, col, error) {
alert("JS HATASI: " + msg + "\nSatır: " + line);
return false;
};
window.addEventListener("unhandledrejection", function(e) {
alert("ASYNC HATASI: " + e.reason);
});
</script>
<script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js" defer></script>
</head>
<body>
<!-- ═══ GİRİŞ EKRANI ═══ -->
<div class="login-shell" id="loginShell">
<div class="login-card">
<p class="eyebrow">Picchio Cocktail</p>
<h1>Admin Panel</h1>
<p>Menü yönetim paneline giriş yapın.</p>
<label>
Şifre
<input type="password" id="loginPassword" placeholder="Şifrenizi girin" autocomplete="off" />
</label>
<button type="button" id="loginBtn">Giriş Yap</button>
<div class="error-msg" id="loginError" hidden>Şifre hatalı!</div>
</div>
</div>
<!-- ═══ ADMIN PANELİ ═══ -->
<div class="admin-shell" id="adminShell" hidden>
<!-- HEADER -->
<header class="admin-header">
<div class="admin-header-left">
<span class="brand-text">Picchio<em>Cocktail</em></span>
<span class="admin-badge">Admin</span>
</div>
<div class="admin-header-right">
<a href="index.html" target="_blank" class="btn btn-outline btn-sm">
<i data-lucide="external-link"></i> Menüyü Gör
</a>
<button class="btn btn-gold btn-sm" id="publishBtn">
<i data-lucide="cloud-upload"></i> Değişiklikleri Yayınla
</button>
<button class="btn btn-outline btn-sm" id="exportBtn">
<i data-lucide="download"></i> JSON İndir
</button>
<label class="btn btn-outline btn-sm import-label">
<i data-lucide="upload"></i> JSON Yükle
<input type="file" accept=".json" id="importFile" hidden />
</label>
<button class="btn btn-outline btn-sm btn-danger" id="logoutBtn">
<i data-lucide="log-out"></i> Çıkış
</button>
</div>
</header>
<!-- İSTATİSTİKLER -->
<div class="stats-row" id="statsRow">
<div class="stat-card">
<i data-lucide="layers"></i>
<div>
<strong id="statCategories">0</strong>
<span>Kategori</span>
</div>
</div>
<div class="stat-card">
<i data-lucide="utensils"></i>
<div>
<strong id="statItems">0</strong>
<span>Ürün</span>
</div>
</div>
<div class="stat-card">
<i data-lucide="star"></i>
<div>
<strong id="statFeatured">0</strong>
<span>Öne Çıkan</span>
</div>
</div>
</div>
<!-- ANA İÇERİK -->
<div class="admin-content">
<!-- SOL: KATEGORİ AĞACI -->
<aside class="sidebar" id="sidebar">
<div class="sidebar-head">
<h2>Kategoriler</h2>
<button class="btn btn-gold btn-sm" id="addRootCatBtn">
<i data-lucide="plus"></i> Ekle
</button>
<button class="btn btn-outline btn-sm" id="siteSettingsBtn" style="margin-left:auto">
<i data-lucide="settings"></i> Ayarlar
</button>
</div>
<div class="cat-tree" id="catTree"></div>
</aside>
<!-- SAĞ: DETAY PANELİ -->
<main class="detail-panel" id="detailPanel">
<div class="empty-state" id="emptyState">
<i data-lucide="mouse-pointer-click"></i>
<h3>Kategori Seçin</h3>
<p>Sol taraftan bir kategori seçerek ürünlerini görüntüleyin ve düzenleyin.</p>
</div>
<!-- KATEGORİ DÜZENLEME -->
<div id="categoryEditor" hidden>
<div class="editor-header">
<div>
<p class="eyebrow" id="editorBreadcrumb">Kategori</p>
<h2 id="editorTitle">—</h2>
</div>
<div class="editor-actions">
<button class="btn btn-outline btn-sm" id="addSubCatBtn">
<i data-lucide="folder-plus"></i> Alt Kategori
</button>
<button class="btn btn-gold btn-sm" id="addItemBtn">
<i data-lucide="plus"></i> Ürün Ekle
</button>
<button class="btn btn-outline btn-sm btn-danger" id="deleteCatBtn">
<i data-lucide="trash-2"></i> Sil
</button>
</div>
</div>
<!-- KATEGORİ FORMU -->
<details class="editor-section" open>
<summary>Kategori Bilgileri</summary>
<form class="form-grid" id="categoryForm">
<label>
<span>Kategori Adı (TR)</span>
<input type="text" name="name" required placeholder="Örn: Başlangıçlar" />
</label>
<label>
<span>Kategori Adı (EN)</span>
<input type="text" name="titleEn" placeholder="Örn: Starters" />
</label>
<label>
<span>Yan Metin (Fiyat vb.)</span>
<input type="text" name="sideText" placeholder="Örn: 1.500 ₺/kişi" />
</label>
<label>
<span>İç Not</span>
<input type="text" name="insideNote" placeholder="Örn: Minimum 2 kişi" />
</label>
<div class="form-actions">
<button type="submit" class="btn btn-gold">Kaydet</button>
</div>
</form>
</details>
<!-- ÜRÜN LİSTESİ -->
<div class="editor-section">
<div class="section-head">
<h3>Ürünler</h3>
<span class="item-count" id="itemCount">0 ürün</span>
</div>
<div class="items-list" id="itemsList"></div>
</div>
</div>
<!-- SİTE AYARLARI DÜZENLEME -->
<div id="settingsEditor" hidden>
<div class="editor-header">
<div>
<p class="eyebrow">Genel</p>
<h2>Site Ayarları</h2>
</div>
</div>
<form id="settingsForm" class="editor-section">
<details open>
<summary>Yazı Tipi & Font Ayarları (Menü Fontu)</summary>
<div class="form-grid">
<label class="full-width">
<span>Hazır Font Paketleri (Presets)</span>
<select id="fontPresetSelect" name="fontPreset">
<option value="playfair_inter">Playfair Display + Inter (Klasik & Lüks Kokteyl Bar - Varsayılan)</option>
<option value="cormorant_outfit">Cormorant Garamond + Outfit (Zarif & Şık Fine-Dining)</option>
<option value="cinzel_montserrat">Cinzel + Montserrat (Prestij & Modern Lüks)</option>
<option value="bodoni_jakarta">Bodoni Moda + Plus Jakarta Sans (Moda & İtalyan Tarzı)</option>
<option value="lora_inter">Lora + Inter (Sıcak & Samimi Bistro)</option>
<option value="syne_inter">Syne + Inter (Modern & Avangart Lounge)</option>
<option value="custom">Özel Font Seçimi (Aşağıdan Kendiniz Seçin)</option>
</select>
</label>
<label>
<span>Başlık Fontu (Headings)</span>
<select id="fontHeadingSelect" name="fontHeading">
<option value="'Playfair Display', Georgia, serif">Playfair Display (Serif - Lüks)</option>
<option value="'Cormorant Garamond', Georgia, serif">Cormorant Garamond (Serif - Zarif)</option>
<option value="'Cinzel', Georgia, serif">Cinzel (Caps - Prestij)</option>
<option value="'Bodoni Moda', Georgia, serif">Bodoni Moda (Serif - İtalyan)</option>
<option value="'Lora', Georgia, serif">Lora (Serif - Edebi)</option>
<option value="'Syne', sans-serif">Syne (Sans - Avangart)</option>
<option value="'Montserrat', sans-serif">Montserrat (Sans - Güçlü)</option>
<option value="'Inter', sans-serif">Inter (Sans - Modern)</option>
</select>
</label>
<label>
<span>Metin Fontu (Body)</span>
<select id="fontBodySelect" name="fontBody">
<option value="'Inter', system-ui, sans-serif">Inter (Modern & Temiz)</option>
<option value="'Outfit', system-ui, sans-serif">Outfit (Geometrik & Şık)</option>
<option value="'Montserrat', sans-serif">Montserrat (Dengeli)</option>
<option value="'Plus Jakarta Sans', sans-serif">Plus Jakarta Sans (Yumuşak Modern)</option>
<option value="'Lora', serif">Lora (Serif Metin)</option>
</select>
</label>
</div>
<div class="font-preview-box" style="margin-top: 16px; padding: 18px; border: 1px solid var(--border, rgba(255,255,255,0.1)); border-radius: 12px; background: rgba(0,0,0,0.2);">
<span style="font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold, #c8942f); display: block; margin-bottom: 6px;">Canlı Font Önizlemesi</span>
<h3 id="fontPreviewHeading" style="font-size: 26px; margin: 0 0 6px; font-weight: 700; transition: font-family 200ms ease;">Picchio Signature Kokteyller</h3>
<p id="fontPreviewBody" style="font-size: 14px; opacity: 0.8; margin: 0; transition: font-family 200ms ease;">Özel formüller, premium malzemeler — her gün taze hazırlanır. 449 ₺</p>
</div>
</details>
<details>
<summary>Renk Paleti</summary>
<div class="form-grid">
<label>
<span>Ana Renk (Wine)</span>
<input type="color" name="colorWine" id="colorWine" />
</label>
<label>
<span>Vurgu Rengi (Gold)</span>
<input type="color" name="colorGold" id="colorGold" />
</label>
</div>
</details>
<details>
<summary>Sistem Metinleri & Başlıklar</summary>
<div class="form-grid">
<label>
<span>Marka (1. Kelime)</span>
<input type="text" id="brandWord1" placeholder="Picchio" />
</label>
<label>
<span>Marka (2. Kelime - Eğik)</span>
<input type="text" id="brandWord2" placeholder="Cocktail" />
</label>
<label>
<span>Menü Linki (Header/Footer)</span>
<input type="text" id="navMenuInput" placeholder="Menü" />
</label>
<label>
<span>İletişim Linki (Header/Footer)</span>
<input type="text" id="navContactInput" placeholder="İletişim" />
</label>
<label>
<span>Rezervasyon Butonu (Header/Mobil)</span>
<input type="text" id="navReserveInput" placeholder="Rezervasyon" />
</label>
<label>
<span>Yükleniyor Metni</span>
<input type="text" id="loadingTextInput" placeholder="Menü hazırlanıyor..." />
</label>
<label class="full-width">
<span>Üst Marka Metni</span>
<input type="text" id="heroTaglineInput" placeholder="Premium Cocktail Bar" />
</label>
<label class="checkbox-label full-width">
<input type="checkbox" id="heroTaglineShowCheckbox" checked />
<span>Üst marka metnini göster</span>
</label>
<label class="full-width">
<span>Dijital Menü Üst Metni</span>
<input type="text" id="heroEyebrowInput" placeholder="Dijital Menü" />
</label>
<label class="checkbox-label full-width">
<input type="checkbox" id="heroEyebrowShowCheckbox" checked />
<span>Dijital menü metnini göster</span>
</label>
<label class="full-width">
<span>Ana Sayfa Başlık</span>
<input type="text" id="heroTitleInput" placeholder="Menü" />
</label>
<label class="full-width">
<span>Ana Sayfa Alt Başlık</span>
<input type="text" id="heroSubtitleInput" placeholder="Görüntülemek istediğiniz kategoriyi seçin." />
</label>
<label>
<span>İletişim Üst Etiket (Eyebrow)</span>
<input type="text" id="contactSubtitleInput" placeholder="İletişim" />
</label>
<label>
<span>İletişim Başlık</span>
<input type="text" id="contactTitleInput" placeholder="Rezervasyon & Bilgi" />
</label>
<label class="full-width">
<span>WhatsApp Buton Metni</span>
<input type="text" id="whatsappBtnInput" placeholder="WhatsApp" />
</label>
</div>
</details>
<details open>
<summary>İletişim, Konum & Çalışma Saatleri</summary>
<div class="form-grid">
<label>
<span>WhatsApp Numarası</span>
<input type="text" name="whatsappNum" id="whatsappNum" placeholder="+905001234567" />
</label>
<label>
<span>Telefon Numarası</span>
<input type="text" name="phoneNum" id="phoneNum" placeholder="+905001234567" />
</label>
<label class="full-width">
<span>Çalışma Saatleri</span>
<input type="text" name="workingHours" id="workingHoursInput" placeholder="Örn: Her gün 12:00 - 02:00" />
</label>
<label class="full-width">
<span>Açık Adres / Konum Bilgisi</span>
<input type="text" name="address" id="addressInput" placeholder="Örn: Bebek Mah. Cevdet Paşa Cad. No: 42, Beşiktaş / İstanbul" />
</label>
<label class="full-width">
<span>Google Maps / Harita Linki</span>
<input type="text" name="mapsUrl" id="mapsUrlInput" placeholder="Örn: https://maps.app.goo.gl/..." />
</label>
<label class="full-width">
<span>Instagram Linki</span>
<input type="text" id="instagramUrl" placeholder="https://instagram.com/picchio" />
</label>
</div>
</details>
<!-- AÇILIŞ GÖRSELİ / KARŞILAMA POPUP'I -->
<details open>
<summary>Açılış Görseli / Karşılama Popup’ı</summary>
<div class="form-grid">
<label class="checkbox-label full-width">
<input type="checkbox" id="openingPopupEnabled" checked />
<span>Popup Aktif (Müşterilere Göster)</span>
</label>
<label class="full-width">
<span>Görsel Yükle</span>
<input type="file" id="openingPopupImageFile" accept="image/*" />
</label>
<div class="full-width" style="display:flex; align-items:center; gap:12px; margin-top:4px;">
<img id="openingPopupImagePreview" style="max-height:140px; border-radius:8px; display:none; object-fit:contain; border:1px solid var(--border);" />
<button type="button" id="openingPopupImageRemoveBtn" class="btn-secondary" style="display:none; padding:6px 12px; font-size:12px; color:var(--wine); border:1px solid var(--wine); border-radius:4px;">Görseli Kaldır</button>
</div>
<label>
<span>Kapatma Butonu Konumu</span>
<select id="openingPopupClosePosition" style="width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; outline: none; background: white;">
<option value="right" selected>Sağ Üst (Right)</option>
<option value="left">Sol Üst (Left)</option>
</select>
</label>
<label>
<span>Gösterim Sıklığı</span>
<select id="openingPopupDisplayMode" style="width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; outline: none; background: white;">
<option value="every_visit">Her ziyarette</option>
<option value="once_per_session" selected>Oturumda bir kez</option>
<option value="once_per_day">Günde bir kez</option>
</select>
</label>
</div>
</details>
<div class="form-actions" style="margin-top: 24px;">
<button type="submit" class="btn btn-gold">Ayarları Kaydet</button>
</div>
</form>
</div>
</main>
</div>
<!-- ═══ ÜRÜN MODAL ═══ -->
<div class="modal-overlay" id="itemModal" hidden>
<div class="modal-card">
<div class="modal-header">
<h2 id="modalTitle">Yeni Ürün</h2>
<button class="modal-close" id="modalClose">×</button>
</div>
<form class="modal-body" id="itemForm">
<div class="form-grid">
<label class="full-width">
<span>Bulunduğu Kategori</span>
<select id="itemCategorySelect" name="targetCategoryPath" style="width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; outline: none; background: white;"></select>
</label>
<label>
<span>Ürün Adı (TR) *</span>
<input type="text" name="title" required placeholder="Örn: DANA CARPACCİO" />
</label>
<label>
<span>Ürün Adı (EN)</span>
<input type="text" name="titleEn" placeholder="Örn: BEEF CARPACCIO" />
</label>
<label class="full-width">
<span>Açıklama / İçerik (TR)</span>
<textarea name="description" rows="2" placeholder="Malzemeler, içindekiler veya açıklama..."></textarea>
</label>
<label class="full-width">
<span>Açıklama / İçerik (EN)</span>
<textarea name="descriptionEn" rows="2" placeholder="Ingredients or description..."></textarea>
</label>
<label class="full-width">
<span>İçindekiler / Karışım</span>
<textarea name="ingredients" rows="2" placeholder="Örn: London Dry Gin · Kuzu Kulağı · Lime Suyu · Vegan Foamer"></textarea>
</label>
<label class="full-width">
<span>Ürün Görseli (Opsiyonel)</span>
<input type="file" id="itemImageFile" accept="image/*" />
</label>
<div class="full-width" style="display:flex; align-items:center; gap:8px; margin-top:4px;">
<img id="itemImagePreview" style="max-height:100px; border-radius:8px; display:none; object-fit:cover;" />
<button type="button" id="itemImageRemoveBtn" class="btn-secondary" style="display:none; padding:6px 12px; font-size:12px; color:var(--wine); border:1px solid var(--wine); border-radius:4px;">Görseli Kaldır</button>
</div>
<label>
<span>Fiyat</span>
<input type="text" name="price" placeholder="Örn: 950 ₺" />
</label>
<label>
<span>Tat Notları</span>
<input type="text" name="tastesLike" placeholder="Virgülle ayırın: Gin, Lime, Nane" />
</label>
<label class="checkbox-label">
<input type="checkbox" name="featured" />
<span>Şefin Seçimi (Öne Çıkan)</span>
</label>
<!-- STOK & DAMGA AYARLARI -->
<div class="full-width" style="margin-top: 6px; padding: 14px; border: 1px solid var(--border, rgba(0,0,0,0.1)); border-radius: 10px; background: rgba(0,0,0,0.02);">
<h4 style="margin: 0 0 10px 0; font-size: 13px; font-weight: 700; color: var(--gold, #c8942f);">Stok & Damga Ayarları</h4>
<div class="form-grid">
<label class="checkbox-label full-width">
<input type="checkbox" name="inStock" id="itemInStockCheckbox" checked />
<span>Ürün stokta</span>
</label>
<label class="full-width">
<span>Stokta Yok / Damga Mesajı</span>
<input type="text" name="stockLabel" id="itemStockLabelInput" placeholder="STOKTA YOK" />
<small style="display:block; margin-top:2px; font-size:11px; color:#888;">Örn: STOKTA YOK, TÜKENDİ, GEÇİCİ OLARAK YOK, BUGÜN YOK</small>
</label>
<label class="checkbox-label">
<input type="checkbox" name="stockStampEnabled" id="itemStockStampEnabledCheckbox" checked />
<span>Çapraz Damga Göster</span>
</label>
<label class="checkbox-label">
<input type="checkbox" name="stockCardDimmed" id="itemStockCardDimmedCheckbox" checked />
<span>Kartı Soluk / Gri Yap</span>
</label>
<label>
<span>Damga Yazı Rengi</span>
<input type="color" name="stockStampTextColor" id="itemStockStampTextColorInput" value="#C44747" />
</label>
<label>
<span>Damga Çerçeve Rengi</span>
<input type="color" name="stockStampBorderColor" id="itemStockStampBorderColorInput" value="#C44747" />
</label>
<label>
<span>Damga Şeffaflığı (Opacity 0.1 - 1.0)</span>
<input type="number" step="0.01" min="0.1" max="1.0" name="stockStampOpacity" id="itemStockStampOpacityInput" value="0.52" placeholder="0.52" />
</label>
<label>
<span>Damga Boyutu</span>
<select name="stockStampSize" id="itemStockStampSizeSelect" style="width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; outline: none; background: white;">
<option value="small">Küçük (Small)</option>
<option value="medium" selected>Orta (Medium)</option>
<option value="large">Büyük (Large)</option>
</select>
</label>
<label class="full-width">
<span>Damga Arka Plan Rengi</span>
<input type="text" name="stockStampBackgroundColor" id="itemStockStampBackgroundColorInput" value="rgba(255,250,247,0.40)" placeholder="rgba(255,250,247,0.40)" />
</label>
</div>
</div>
</div>
<!-- BESİN DEĞERLERİ -->
<details class="nutrition-section" open>
<summary>Besin Değerleri & Alerjenler</summary>
<div class="form-grid">
<label>
<span>Porsiyon Notu</span>
<input type="text" name="portionNote" placeholder="Örn: 1 porsiyon" />
</label>
<label>
<span>Kalori (kcal)</span>
<input type="number" name="caloriesKcal" placeholder="340" />
</label>
<label>
<span>Kalori Durumu</span>
<select name="calorieStatus" style="width:100%; min-height:38px; padding:0 10px; border:1px solid var(--border); border-radius:var(--radius-sm);">
<option value="verified">Verified (Doğrulanmış)</option>
<option value="estimated">Estimated (Tahmini)</option>
<option value="not_applicable">Not Applicable (Gösterme)</option>
</select>
</label>
<label>
<span>Alerjen Durumu</span>
<select name="allergenStatus" style="width:100%; min-height:38px; padding:0 10px; border:1px solid var(--border); border-radius:var(--radius-sm);">
<option value="verified">Verified (Doğrulanmış Üretici)</option>
<option value="inferred">Inferred (Tahmini / Türetilmiş)</option>
<option value="needs_recipe">Needs Recipe (Reçete Bekliyor)</option>
<option value="needs_label">Needs Label (Etiket Bekliyor)</option>
<option value="not_applicable">Not Applicable (Gösterme)</option>
</select>
</label>
<label>
<span>Protein (g)</span>
<input type="number" name="proteinG" placeholder="24" />
</label>
<label>
<span>Karbonhidrat (g)</span>
<input type="number" name="carbsG" placeholder="8" />
</label>
<label>
<span>Yağ (g)</span>
<input type="number" name="fatG" placeholder="24" />
</label>
<label class="full-width">
<span>Alerjenler</span>
<div class="allergen-grid" id="allergenGrid">
<label class="chip-check"><input type="checkbox" name="allergen" value="milk" /><span>🥛 Süt</span></label>
<label class="chip-check"><input type="checkbox" name="allergen" value="gluten" /><span>🌾 Gluten</span></label>
<label class="chip-check"><input type="checkbox" name="allergen" value="egg" /><span>🥚 Yumurta</span></label>
<label class="chip-check"><input type="checkbox" name="allergen" value="fish" /><span>🐟 Balık</span></label>
<label class="chip-check"><input type="checkbox" name="allergen" value="shellfish" /><span>🦐 Kabuklu</span></label>
<label class="chip-check"><input type="checkbox" name="allergen" value="tree_nuts" /><span>🥜 Kuruyemiş</span></label>
<label class="chip-check"><input type="checkbox" name="allergen" value="peanuts" /><span>🥜 Yer fıstığı</span></label>
<label class="chip-check"><input type="checkbox" name="allergen" value="sesame" /><span>🌱 Susam</span></label>
<label class="chip-check"><input type="checkbox" name="allergen" value="soy" /><span>🫘 Soya</span></label>
<label class="chip-check"><input type="checkbox" name="allergen" value="sulfites" /><span>⚡ Sülfit</span></label>
<label class="chip-check"><input type="checkbox" name="allergen" value="alcohol" /><span>🍷 Alkol</span></label>
<label class="chip-check"><input type="checkbox" name="allergen" value="celery" /><span>🌿 Kereviz</span></label>
<label class="chip-check"><input type="checkbox" name="allergen" value="mustard" /><span>🟡 Hardal</span></label>
<label class="chip-check"><input type="checkbox" name="allergen" value="lupin" /><span>🌱 Acı bakla</span></label>
<label class="chip-check"><input type="checkbox" name="allergen" value="molluscs" /><span>🐚 Yumuşakça</span></label>
</div>
</label>
<label class="full-width">
<span>Eser Miktarda Bulunabilir</span>
<input type="text" name="mayContain" placeholder="Virgülle: milk, gluten, sesame" />
</label>
</div>
</details>
<div class="modal-footer">
<button type="button" class="btn btn-outline" id="modalCancelBtn">İptal</button>
<button type="submit" class="btn btn-gold">Kaydet</button>
</div>
</form>
</div>
</div>
<!-- ═══ KATEGORİYE TAŞIMA MODALI ═══ -->
<div class="modal-overlay" id="moveItemModal" hidden>
<div class="modal-card" style="max-width: 440px;">
<div class="modal-header">
<h2 id="moveModalTitle">Ürünü Başka Kategoriye Taşı</h2>
<button class="modal-close" id="moveModalClose">×</button>
</div>
<div class="modal-body" style="gap: 16px;">
<p style="margin: 0; font-size: 14px; font-weight: 600; color: var(--text);" id="moveModalItemName">—</p>
<label style="display: grid; gap: 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--text-mid);">
Hedef Kategori Seçin
<select id="quickMoveCategorySelect" style="width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; outline: none; background: white; margin-top: 4px;"></select>
</label>
<div class="modal-footer" style="margin-top: 12px; padding: 0;">
<button type="button" class="btn btn-outline" id="moveModalCancelBtn">İptal</button>
<button type="button" class="btn btn-gold" id="moveModalConfirmBtn">Kategoriye Taşı</button>
</div>
</div>
</div>
</div>
</div>
<script src="admin.js?v=16"></script>
</body>
</html>