-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
552 lines (517 loc) · 24.8 KB
/
index.html
File metadata and controls
552 lines (517 loc) · 24.8 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ShelfLife AI — Your Smart Fridge Guardian</title>
<meta name="description" content="ShelfLife AI: Track food freshness, reduce waste, prevent poisoning. SDG 12 — Built by Team Suerte, Kazakhstan." />
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🌿</text></svg>" />
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<!-- NAVIGATION -->
<nav class="nav">
<div class="nav-logo" onclick="navigate('home')">
<div class="nav-logo-mark">🌿</div>
<div class="nav-logo-text">Shelf<span>Life</span> AI</div>
</div>
<ul class="nav-links" id="navLinks">
<li><a data-page="home" href="#">Home</a></li>
<li><a data-page="about" href="#">About</a></li>
<li><a data-page="dashboard" href="#">Dashboard</a></li>
<li><a data-page="scan" href="#">Scan</a></li>
<li><a data-page="chat" href="#">AI Chat</a></li>
<li><a data-page="shopping" href="#">Shopping</a></li>
<li><a data-page="family" href="#">Family</a></li>
<li><a data-page="dashboard" href="#" class="nav-cta">Open Fridge</a></li>
</ul>
<div class="nav-hamburger" id="hamburger">
<span></span><span></span><span></span>
</div>
</nav>
<!-- HOME PAGE -->
<div class="page active" id="page-home">
<!-- HERO -->
<section class="hero">
<div class="hero-content">
<div class="hero-eyebrow">SDG 12 · Responsible Consumption</div>
<h1 class="hero-title">
<span class="outline">Never waste</span>
<span class="accent">food again.</span>
</h1>
<p class="hero-desc">ShelfLife AI is your virtual fridge guardian — tracking every item from purchase to expiry, alerting you before anything goes bad, and keeping your family safe from food poisoning.</p>
<div class="hero-actions">
<button class="btn btn-primary" onclick="navigate('dashboard')">Open My Fridge</button>
<button class="btn btn-ghost" onclick="navigate('scan')">Scan Receipt</button>
</div>
</div>
<div class="hero-visual">
<div class="fridge-card">
<div class="fridge-top">
<div class="fridge-top-title">My Fridge · 8 items</div>
<div class="fridge-top-meta">+4°C · LIVE</div>
</div>
<div class="fridge-body">
<div class="fridge-row">
<span class="fridge-row-name">🥚 Eggs</span>
<span class="fridge-row-days">14d left</span>
<div class="status-pip pip-green"></div>
</div>
<div class="fridge-row">
<span class="fridge-row-name">🥛 Milk</span>
<span class="fridge-row-days">4d left</span>
<div class="status-pip pip-green"></div>
</div>
<div class="fridge-row">
<span class="fridge-row-name">🍗 Chicken</span>
<span class="fridge-row-days">1d left!</span>
<div class="status-pip pip-amber"></div>
</div>
<div class="fridge-row">
<span class="fridge-row-name">🧀 Cheese</span>
<span class="fridge-row-days">Expired!</span>
<div class="status-pip pip-red"></div>
</div>
</div>
<div class="fridge-footer">
<div class="fridge-footer-stat">🟢 <span class="fridge-footer-num">6</span> fresh</div>
<div class="fridge-footer-stat">🟡 <span class="fridge-footer-num">1</span> soon</div>
<div class="fridge-footer-stat">🔴 <span class="fridge-footer-num">1</span> expired</div>
</div>
</div>
</div>
</section>
<!-- STATS -->
<div class="stats-strip">
<div class="stat-item">
<div class="stat-num" data-count="1300" data-suffix="M+">0</div>
<div class="stat-label">Tonnes of food wasted per year globally</div>
</div>
<div class="stat-item">
<div class="stat-num" data-count="600" data-suffix="M">0</div>
<div class="stat-label">People get food poisoning annually</div>
</div>
<div class="stat-item">
<div class="stat-num" data-count="30" data-suffix="%">0</div>
<div class="stat-label">Of all food produced goes to waste</div>
</div>
<div class="stat-item">
<div class="stat-num" data-count="940" data-suffix="B$">0</div>
<div class="stat-label">Annual economic cost of food waste</div>
</div>
</div>
<!-- FEATURES -->
<section class="features-section">
<div class="section-kicker">What We Do</div>
<h2 class="section-title">Every feature your<br>fridge deserves</h2>
<p class="section-sub">ShelfLife AI combines smart tracking, AI analysis, and family sharing into one powerful tool — free, private, and built for everyone.</p>
<div class="features-grid">
<div class="feature-cell">
<div class="feature-num">01</div>
<div class="feature-icon-wrap">📷</div>
<h3>Receipt Scanning</h3>
<p>Photograph your grocery receipt. AI extracts all items and estimates expiry dates automatically — no typing needed.</p>
</div>
<div class="feature-cell">
<div class="feature-num">02</div>
<div class="feature-icon-wrap">⏱️</div>
<h3>Expiry Countdowns</h3>
<p>Live countdown for every item. Color-coded freshness indicators alert you 48h before anything goes bad.</p>
</div>
<div class="feature-cell">
<div class="feature-num">03</div>
<div class="feature-icon-wrap">🗨️</div>
<h3>Smart AI Chat</h3>
<p>Talk naturally — "−1 egg", "finished the milk", "what's expiring?" The AI updates your inventory instantly.</p>
</div>
<div class="feature-cell">
<div class="feature-num">04</div>
<div class="feature-icon-wrap">🧬</div>
<h3>Additive Analyzer</h3>
<p>Scan any ingredient list. Flags 50+ concerning additives: E-numbers, trans fats, artificial dyes, allergens.</p>
</div>
<div class="feature-cell">
<div class="feature-num">05</div>
<div class="feature-icon-wrap">👨👩👧</div>
<h3>Family Sharing</h3>
<p>One fridge, whole family. Everyone sees live updates. Leave notes to protect your snacks from theft.</p>
</div>
<div class="feature-cell">
<div class="feature-num">06</div>
<div class="feature-icon-wrap">🛒</div>
<h3>Smart Shopping</h3>
<p>When items run out or expire, they auto-migrate to your shopping list — prioritized by urgency.</p>
</div>
</div>
</section>
<!-- HOW IT WORKS -->
<section class="how-section">
<div class="section-kicker">How It Works</div>
<h2 class="section-title">Four steps to a<br>zero-waste kitchen</h2>
<p class="section-sub">ShelfLife AI fits into your existing routine — no new habits needed.</p>
<div class="how-steps">
<div class="how-step">
<div class="how-step-num">01</div>
<h3>Shop normally</h3>
<p>Keep your receipt or just buy your groceries as usual.</p>
</div>
<div class="how-step">
<div class="how-step-num">02</div>
<h3>Snap a photo</h3>
<p>One photo of your receipt — AI recognizes everything instantly.</p>
</div>
<div class="how-step">
<div class="how-step-num">03</div>
<h3>Fridge populates</h3>
<p>All items appear with live expiry countdowns and status indicators.</p>
</div>
<div class="how-step">
<div class="how-step-num">04</div>
<h3>Stay ahead</h3>
<p>Get alerts before expiry. Chat to update quantities. Zero waste.</p>
</div>
</div>
</section>
<!-- SDG -->
<div class="sdg-section">
<div class="sdg-block">
<div class="num">12</div>
<div class="label">SDG</div>
</div>
<div class="sdg-content">
<h2>Supporting UN SDG 12:<br>Responsible Consumption & Production</h2>
<p>Every year, 1.3 billion tonnes of food is wasted while 828 million people go hungry. ShelfLife AI fights this directly — helping every household track, manage, and minimize food waste. Responsible consumption starts in your own kitchen.</p>
</div>
</div>
<!-- FOOTER -->
<footer>
<div>
<div class="footer-brand">🌿 ShelfLife AI</div>
<div class="footer-sub">Built by Team Suerte · Aktobe, Kazakhstan · Technovation Girls 2026</div>
</div>
<div class="footer-links">
<a href="#" onclick="navigate('about')">Team</a>
<a href="#" onclick="navigate('dashboard')">Dashboard</a>
<a href="#" onclick="navigate('scan')">Scan</a>
<a href="#" onclick="navigate('chat')">AI Chat</a>
</div>
</footer>
</div>
<!-- ABOUT PAGE -->
<div class="page" id="page-about">
<div class="inner-page">
<div class="page-header">
<div class="section-kicker" style="margin-bottom:0.5rem">Team Suerte</div>
<h1>Built by five students<br>from Aktobe, Kazakhstan</h1>
<p>Technovation Girls 2026 · SDG 12 — Responsible Consumption</p>
</div>
<div class="page-content">
<p style="color:var(--gray);line-height:1.8;max-width:640px;margin-bottom:0.5rem">
<em style="color:var(--white)">Suerte</em> — Spanish for "luck" — but our success is built on hard work, teamwork, and a genuine desire to solve a real problem. We're five students united by a mission to fight food waste and protect family health through technology.
</p>
<div class="team-grid">
<div class="team-card">
<div class="team-av" style="background:#3DBA6C">A</div>
<div class="team-name">Aruzhan</div>
<div class="team-role">Grade 10 · AIS<br>Team Lead</div>
</div>
<div class="team-card">
<div class="team-av" style="background:#4A90D9">I</div>
<div class="team-name">Inabat</div>
<div class="team-role">Grade 10 · NIS<br>Developer</div>
</div>
<div class="team-card">
<div class="team-av" style="background:#9B59B6">Z</div>
<div class="team-name">Zere</div>
<div class="team-role">Grade 10 · NIS<br>Designer</div>
</div>
<div class="team-card">
<div class="team-av" style="background:#E8A838">A</div>
<div class="team-name">Aigerim</div>
<div class="team-role">Grade 10 · NIS<br>Research</div>
</div>
<div class="team-card">
<div class="team-av" style="background:#E8504A">S</div>
<div class="team-name">Sapar</div>
<div class="team-role">Mentor · AIS<br>Advisor</div>
</div>
</div>
<div class="section-kicker" style="margin-bottom:0.75rem">The Problem</div>
<h2 class="section-title" style="font-size:1.75rem;margin-bottom:0.75rem">Why ShelfLife AI?</h2>
<p style="color:var(--gray);line-height:1.8;max-width:680px;margin-bottom:1rem">
Food poisoning from expired products is a daily danger — especially for busy families, students, and working professionals. Most households have no clear picture of what's in their fridge: what's expired, what's fresh, and what they're missing. This costs money, health, and contributes massively to food waste.
</p>
<p style="color:var(--gray);line-height:1.8;max-width:680px;margin-bottom:2rem">
ShelfLife AI turns any smartphone into a powerful fridge management system — complete with AI receipt scanning, expiry tracking, ingredient safety analysis, and family synchronization — addressing UN SDG 12 directly.
</p>
<div class="ethics-card">
<h3>Our Ethical Commitments</h3>
<ul class="ethics-list">
<li><div><strong>Privacy First</strong> — No food data or photos are stored externally without explicit consent</div></li>
<li><div><strong>Accessibility</strong> — Designed for all income levels; works fully offline without any paid API</div></li>
<li><div><strong>Transparent AI</strong> — Users always know when suggestions come from AI vs. confirmed data</div></li>
<li><div><strong>Zero Tracking</strong> — We never sell user consumption data to advertisers or third parties</div></li>
<li><div><strong>Health Accuracy</strong> — All ingredient safety warnings are sourced from EU, WHO, and FDA databases</div></li>
</ul>
</div>
</div>
</div>
</div>
<!-- DASHBOARD PAGE -->
<div class="page" id="page-dashboard">
<div class="inner-page">
<div class="page-header" style="display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem">
<div>
<h1>My Virtual Fridge</h1>
<p>Your food inventory — live & color-coded</p>
</div>
<div style="display:flex;gap:0.75rem">
<button class="btn btn-ghost" onclick="navigate('scan')">📷 Scan</button>
<button class="btn btn-primary" onclick="openModal('modal-add')">+ Add Item</button>
</div>
</div>
<div class="page-content">
<!-- KPIs -->
<div class="dash-kpis">
<div class="kpi-card">
<div class="kpi-icon green">🟢</div>
<div>
<div class="kpi-val" id="kpi-fresh">—</div>
<div class="kpi-label">Fresh items</div>
</div>
</div>
<div class="kpi-card">
<div class="kpi-icon amber">🟡</div>
<div>
<div class="kpi-val" id="kpi-soon">—</div>
<div class="kpi-label">Expiring soon</div>
</div>
</div>
<div class="kpi-card">
<div class="kpi-icon red">🔴</div>
<div>
<div class="kpi-val" id="kpi-exp">—</div>
<div class="kpi-label">Expired</div>
</div>
</div>
</div>
<!-- Toolbar -->
<div class="dash-toolbar">
<input class="search-input" id="dash-search" placeholder="Search items…" oninput="renderDashboard()" />
<div class="filter-tabs">
<button class="filter-tab active" onclick="setDashFilter('all',this)">All</button>
<button class="filter-tab" onclick="setDashFilter('fresh',this)">Fresh</button>
<button class="filter-tab" onclick="setDashFilter('soon',this)">Soon</button>
<button class="filter-tab" onclick="setDashFilter('expired',this)">Expired</button>
</div>
</div>
<!-- Grid -->
<div class="products-grid" id="products-grid"></div>
</div>
</div>
</div>
<!-- SCAN PAGE -->
<div class="page" id="page-scan">
<div class="inner-page">
<div class="page-header">
<h1>Scan & Analyze</h1>
<p>Upload a receipt, product, or ingredient label for AI analysis</p>
</div>
<div class="page-content" style="max-width:800px">
<!-- Tabs -->
<div class="scan-tabs">
<button class="scan-tab active" onclick="setScanTab('receipt',this)">🧾 Receipt</button>
<button class="scan-tab" onclick="setScanTab('product',this)">📦 Product</button>
<button class="scan-tab" onclick="setScanTab('ingredient',this)">🧬 Label</button>
</div>
<!-- Upload zone -->
<div class="upload-zone" id="upload-zone">
<img id="upload-preview" class="upload-preview" style="display:none" alt="Preview" />
<span class="upload-icon-big">📤</span>
<div class="upload-title" id="upload-title">Upload Receipt Photo</div>
<div class="upload-sub" id="upload-sub">Our smart AI detects food items and estimates expiry dates</div>
<button class="btn btn-ghost" onclick="event.stopPropagation(); document.getElementById('file-input').click()">Choose Image</button>
<input type="file" id="file-input" accept="image/*" style="display:none" onchange="handleFileUpload(event)" />
</div>
<!-- Result box -->
<div class="result-box" id="scan-result" style="display:none">
<h3>AI Analysis Results</h3>
<div id="scan-result-content"></div>
</div>
<!-- Ingredient checker -->
<div class="ingredient-box">
<div class="section-kicker" style="margin-bottom:0.75rem">Ingredient Safety Checker</div>
<h3 style="font-family:var(--font-display);font-size:1.15rem;font-weight:700;letter-spacing:-0.02em;margin-bottom:0.5rem">Check for harmful additives</h3>
<p style="font-size:0.85rem;color:var(--gray);margin-bottom:1rem">Paste a product's ingredient list — our local database checks 50+ concerning additives (E-numbers, dyes, preservatives) instantly. <strong style="color:var(--white)">Works 100% offline.</strong></p>
<textarea
class="textarea-field"
id="ingredient-input"
placeholder="e.g. Water, Sugar, E621, E250, Sodium Benzoate, Palm Oil, Artificial Colors (E102, E110)…"
></textarea>
<button class="btn btn-acid" onclick="analyzeIngredients()">🔬 Analyze Now</button>
<div id="ingredient-result" style="margin-top:1rem"></div>
</div>
</div>
</div>
</div>
<!-- AI CHAT PAGE -->
<div class="page" id="page-chat">
<div class="chat-wrap">
<div class="chat-header">
<h1>🌿 ShelfLife AI Chat</h1>
<p>Smart rule engine · Optional Groq free API · Updates fridge in real-time</p>
</div>
<div class="chat-messages" id="chat-messages"></div>
<div>
<div class="chat-chips">
<button class="chat-chip" onclick="useChip('-1 egg')">−1 egg</button>
<button class="chat-chip" onclick="useChip('finished milk')">finished milk</button>
<button class="chat-chip" onclick="useChip('almost out of cheese')">low on cheese</button>
<button class="chat-chip" onclick="useChip('what\'s expiring soon?')">what\'s expiring?</button>
<button class="chat-chip" onclick="useChip('what do I have?')">what\'s in fridge?</button>
<button class="chat-chip" onclick="useChip('what can I cook?')">recipe ideas</button>
</div>
<div class="chat-input-bar">
<textarea
class="chat-input"
id="chat-input"
placeholder="Type here… e.g. '-1 egg', 'finished milk', 'what\'s expiring?'"
rows="1"
></textarea>
<button class="btn btn-primary" onclick="sendChat()" style="padding:0.6rem 1.1rem">Send ↑</button>
</div>
</div>
</div>
</div>
<!-- SHOPPING PAGE -->
<div class="page" id="page-shopping">
<div class="inner-page">
<div class="page-header">
<h1>🛒 Shopping List</h1>
<p id="shop-count">— items to buy</p>
</div>
<div class="page-content" style="max-width:700px">
<div class="shop-add-row">
<input class="text-input" id="shop-input" placeholder="Add item to list…" />
<button class="btn btn-primary" onclick="addShopItem()">+ Add</button>
</div>
<div id="shopping-list"></div>
</div>
</div>
</div>
<!-- FAMILY PAGE -->
<div class="page" id="page-family">
<div class="inner-page">
<div class="page-header">
<h1>👨👩👧 Family Fridge</h1>
<p>Shared real-time fridge management</p>
</div>
<div class="page-content" style="max-width:750px">
<!-- Fridge info card -->
<div style="background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:1.25rem;margin-bottom:1.5rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap">
<div>
<div style="font-family:var(--font-display);font-size:1.05rem;font-weight:700;letter-spacing:-0.02em;margin-bottom:0.2rem">🏠 Suerte Family Fridge</div>
<div style="font-size:0.82rem;color:var(--gray)">Last updated 2 hours ago · 8 items tracked</div>
</div>
<span style="font-size:0.72rem;font-weight:700;background:var(--green-pale);color:var(--green-bright);padding:0.2rem 0.65rem;border-radius:100px;letter-spacing:0.05em;text-transform:uppercase">● Active</span>
</div>
<div class="section-kicker" style="margin-bottom:0.85rem">Members</div>
<div id="family-list"></div>
<div class="invite-panel">
<h3>Invite a Family Member</h3>
<p>Share your fridge so everyone stays in sync — no food eaten by mistake!</p>
<div class="invite-row">
<input class="text-input" id="invite-email" type="email" placeholder="email@address.com" />
<button class="btn btn-primary" onclick="sendInvite()">Send 📧</button>
</div>
<div style="margin-top:1.5rem">
<div style="font-size:0.78rem;color:var(--gray);margin-bottom:0.5rem">Or share invite code:</div>
<div class="invite-code">SUERTE-777</div>
</div>
</div>
<!-- Activity feed -->
<div style="margin-top:2rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:1.5rem">
<div class="section-kicker" style="margin-bottom:1rem">Recent Activity</div>
<div style="display:flex;flex-direction:column;gap:0.75rem">
<div style="display:flex;gap:0.75rem;align-items:center;font-size:0.85rem">
<span style="color:var(--gray-mid);font-family:var(--font-mono);font-size:0.72rem;min-width:46px">10:42</span>
<div class="member-av" style="width:28px;height:28px;border-radius:8px;font-size:0.7rem;font-weight:700;background:#3DBA6C;color:#0A0C0A;display:flex;align-items:center;justify-content:center;flex-shrink:0">A</div>
<span>Aruzhan added <strong>Eggs ×12</strong></span>
</div>
<div style="display:flex;gap:0.75rem;align-items:center;font-size:0.85rem">
<span style="color:var(--gray-mid);font-family:var(--font-mono);font-size:0.72rem;min-width:46px">09:15</span>
<div class="member-av" style="width:28px;height:28px;border-radius:8px;font-size:0.7rem;font-weight:700;background:#4A90D9;color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0">I</div>
<span>Inabat used last of <strong>Orange Juice</strong> → shopping list</span>
</div>
<div style="display:flex;gap:0.75rem;align-items:center;font-size:0.85rem">
<span style="color:var(--gray-mid);font-family:var(--font-mono);font-size:0.72rem;min-width:46px">08:30</span>
<div class="member-av" style="width:28px;height:28px;border-radius:8px;font-size:0.7rem;font-weight:700;background:#9B59B6;color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0">Z</div>
<span>Zere noted: <strong>"Yogurt is MINE 🙏"</strong></span>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- MODALS -->
<!-- Add Product -->
<div class="modal-backdrop" id="modal-add">
<div class="modal">
<div class="modal-head">
<span class="modal-title">+ Add to Fridge</span>
<button class="modal-x" onclick="closeModal('modal-add')">×</button>
</div>
<div class="form-group">
<label class="form-label">Name *</label>
<input class="form-input" id="add-name" placeholder="e.g. Whole Milk" />
</div>
<div class="form-row">
<div class="form-group">
<label class="form-label">Qty *</label>
<input class="form-input" id="add-qty" type="number" min="1" value="1" />
</div>
<div class="form-group">
<label class="form-label">Unit</label>
<input class="form-input" id="add-unit" placeholder="pcs, L, g…" />
</div>
</div>
<div class="form-group">
<label class="form-label">Expiry Date *</label>
<input class="form-input" id="add-expiry" type="date" />
</div>
<div class="form-group">
<label class="form-label">Category</label>
<select class="form-input" id="add-cat">
<option value="dairy">🥛 Dairy</option>
<option value="meat">🍗 Meat</option>
<option value="produce">🥬 Produce</option>
<option value="other">🍱 Other</option>
</select>
</div>
<div class="form-group">
<label class="form-label">Note (optional)</label>
<input class="form-input" id="add-note" placeholder='e.g. "My snack — hands off!"' />
</div>
<button class="btn btn-primary" style="width:100%;justify-content:center" onclick="addProduct()">Add to Fridge ✅</button>
</div>
</div>
<!-- Note Modal -->
<div class="modal-backdrop" id="modal-note">
<div class="modal">
<div class="modal-head">
<span class="modal-title">📝 Note — <span id="note-name-label"></span></span>
<button class="modal-x" onclick="closeModal('modal-note')">×</button>
</div>
<input type="hidden" id="note-id" />
<div class="form-group">
<label class="form-label">Your Note</label>
<textarea class="form-input" id="note-text" rows="3" placeholder='e.g. "Mine! Do not touch."' style="resize:vertical;border-radius:var(--r-md);padding:0.65rem 0.9rem;min-height:80px"></textarea>
</div>
<button class="btn btn-primary" style="width:100%;justify-content:center" onclick="saveNote()">Save Note 📌</button>
</div>
</div>
<!-- TOAST -->
<div class="toast-wrap" id="toast-wrap"></div>
<script src="js/app.js"></script>
</body>
</html>