File size: 33,129 Bytes
55fb16a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="th">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>WP WELLNET - แพลตฟอร์มฟื้นฟูสุขภาพ</title>
    <link rel="icon" type="image/x-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="style.css">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <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=Prompt:wght@300;400;500;600;700&display=swap" rel="stylesheet">
</head>
<body class="bg-gray-50 font-['Prompt']">
    <!-- Header -->
    <header class="fixed top-0 left-0 right-0 bg-white shadow-md z-50">
        <div class="flex items-center justify-between px-4 py-3">
            <div class="flex items-center space-x-2">
                <div class="w-8 h-8 bg-green-600 rounded-full flex items-center justify-center">
                    <span class="text-white font-bold text-sm">WP</span>
                </div>
                <span class="font-semibold text-gray-800">WELLNET</span>
            </div>
            <div class="flex items-center space-x-4">
                <button class="relative p-2">
                    <i data-feather="bell" class="w-5 h-5 text-gray-600"></i>
                    <span class="absolute top-1 right-1 w-2 h-2 bg-red-500 rounded-full"></span>
                </button>
                <button class="relative p-2">
                    <i data-feather="user" class="w-5 h-5 text-gray-600"></i>
                </button>
            </div>
        </div>
    </header>

    <!-- Main Content -->
    <main class="pt-16 pb-20 min-h-screen">
        <!-- Dashboard Section -->
        <section id="dashboard" class="page-section active px-4 py-6">
            <!-- User Summary Card -->
            <div class="bg-gradient-to-br from-green-500 to-green-600 rounded-2xl p-6 text-white mb-6 shadow-lg">
                <div class="flex items-center justify-between mb-4">
                    <div>
                        <h2 class="text-2xl font-bold mb-1">สวัสดีครับ/ค่ะ</h2>
                        <p class="text-green-100">วันนี้คุณดีขึ้นแล้ว 75%</p>
                    </div>
                    <div class="relative w-20 h-20">
                        <svg class="transform -rotate-90 w-20 h-20">
                            <circle cx="40" cy="40" r="35" stroke="#ffffff30" stroke-width="6" fill="none"></circle>
                            <circle cx="40" cy="40" r="35" stroke="#ffffff" stroke-width="6" fill="none" 
                                    stroke-dasharray="220" stroke-dashoffset="55" stroke-linecap="round"></circle>
                        </svg>
                        <span class="absolute inset-0 flex items-center justify-center text-xl font-bold">75%</span>
                    </div>
                </div>
                <div class="flex flex-wrap gap-2">
                    <span class="bg-white/20 px-3 py-1 rounded-full text-sm">เรอเปรี้ยว</span>
                    <span class="bg-white/20 px-3 py-1 rounded-full text-sm">แน่นอก</span>
                    <span class="bg-white/20 px-3 py-1 rounded-full text-sm">ปวดข้อ</span>
                </div>
            </div>

            <!-- Next Step Button -->
            <button class="w-full bg-blue-500 text-white rounded-xl p-4 mb-6 flex items-center justify-between shadow-lg hover:bg-blue-600 transition">
                <div class="text-left">
                    <p class="font-semibold">ขั้นตอนถัดไป</p>
                    <p class="text-sm opacity-90">ทานอาหารมื้อเช้าและวิตามิน</p>
                </div>
                <i data-feather="arrow-right" class="w-5 h-5"></i>
            </button>

            <!-- Quick Access Cards -->
            <div class="grid grid-cols-3 gap-3 mb-6">
                <div class="bg-white rounded-xl p-4 shadow-md text-center hover:shadow-lg transition cursor-pointer">
                    <div class="w-12 h-12 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-2">
                        <i data-feather="refresh-cw" class="w-6 h-6 text-green-600"></i>
                    </div>
                    <p class="text-xs font-medium text-gray-700">ฟื้นฟูวันนี้</p>
                </div>
                <div class="bg-white rounded-xl p-4 shadow-md text-center hover:shadow-lg transition cursor-pointer">
                    <div class="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-2">
                        <i data-feather="shopping-bag" class="w-6 h-6 text-blue-600"></i>
                    </div>
                    <p class="text-xs font-medium text-gray-700">สั่งซื้อซ้ำ</p>
                </div>
                <div class="bg-white rounded-xl p-4 shadow-md text-center hover:shadow-lg transition cursor-pointer">
                    <div class="w-12 h-12 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-2">
                        <i data-feather="clipboard" class="w-6 h-6 text-purple-600"></i>
                    </div>
                    <p class="text-xs font-medium text-gray-700">วัดอาการวันนี้</p>
                </div>
            </div>

            <!-- Today's Progress -->
            <div class="bg-white rounded-xl p-4 shadow-md">
                <h3 class="font-semibold text-gray-800 mb-3">ความคืบหน้าวันนี้</h3>
                <div class="space-y-3">
                    <div class="flex items-center justify-between">
                        <div class="flex items-center space-x-3">
                            <div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center">
                                <i data-feather="check" class="w-4 h-4 text-green-600"></i>
                            </div>
                            <span class="text-sm text-gray-700">ทานวิตามินเช้า</span>
                        </div>
                        <span class="text-xs text-green-600">เสร็จแล้ว</span>
                    </div>
                    <div class="flex items-center justify-between">
                        <div class="flex items-center space-x-3">
                            <div class="w-8 h-8 bg-gray-100 rounded-full flex items-center justify-center">
                                <i data-feather="clock" class="w-4 h-4 text-gray-400"></i>
                            </div>
                            <span class="text-sm text-gray-700">ออกกำลังกาย 30 นาที</span>
                        </div>
                        <span class="text-xs text-gray-500">รอดำเนินการ</span>
                    </div>
                    <div class="flex items-center justify-between">
                        <div class="flex items-center space-x-3">
                            <div class="w-8 h-8 bg-gray-100 rounded-full flex items-center justify-center">
                                <i data-feather="moon" class="w-4 h-4 text-gray-400"></i>
                            </div>
                            <span class="text-sm text-gray-700">พักผ่อน 8 ชั่วโมง</span>
                        </div>
                        <span class="text-xs text-gray-500">รอดำเนินการ</span>
                    </div>
                </div>
            </div>
        </section>

        <!-- Restoration Plan Section -->
        <section id="restoration" class="page-section px-4 py-6 hidden">
            <h2 class="text-xl font-bold text-gray-800 mb-4">แผนฟื้นฟู 30 วัน</h2>
            
            <!-- Progress Overview -->
            <div class="bg-white rounded-xl p-4 shadow-md mb-4">
                <div class="flex items-center justify-between mb-2">
                    <span class="text-sm text-gray-600">ความคืบหน้าทั้งหมด</span>
                    <span class="text-sm font-semibold text-green-600">วันที่ 15/30</span>
                </div>
                <div class="w-full bg-gray-200 rounded-full h-3">
                    <div class="bg-green-500 h-3 rounded-full" style="width: 50%"></div>
                </div>
            </div>

            <!-- Day List -->
            <div class="space-y-3 max-h-96 overflow-y-auto">
                <!-- Day 15 - Today -->
                <div class="bg-gradient-to-r from-green-50 to-green-100 rounded-xl p-4 border-2 border-green-300">
                    <div class="flex items-center justify-between mb-2">
                        <h3 class="font-semibold text-green-800">วันที่ 15 - วันนี้</h3>
                        <span class="bg-green-500 text-white text-xs px-2 py-1 rounded-full">กำลังดำเนินการ</span>
                    </div>
                    <div class="space-y-2 text-sm">
                        <div class="flex items-start space-x-2">
                            <i data-feather="sun" class="w-4 h-4 text-yellow-500 mt-0.5"></i>
                            <div>
                                <p class="font-medium">เช้า: วิตามิน GRD + อาหารอ่อน</p>
                                <p class="text-xs text-gray-600">08:00 - 09:00</p>
                            </div>
                        </div>
                        <div class="flex items-start space-x-2">
                            <i data-feather="sun" class="w-4 h-4 text-orange-500 mt-0.5"></i>
                            <div>
                                <p class="font-medium">กลางวัน: หลีกเลี่ยงอาหารหมักดอง</p>
                                <p class="text-xs text-gray-600">12:00 - 13:00</p>
                            </div>
                        </div>
                        <div class="flex items-start space-x-2">
                            <i data-feather="moon" class="w-4 h-4 text-purple-500 mt-0.5"></i>
                            <div>
                                <p class="font-medium">เย็น: พักผ่อน นอนหลับ 8 ชั่วโมง</p>
                                <p class="text-xs text-gray-600">22:00 - 06:00</p>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Day 14 -->
                <div class="bg-white rounded-xl p-4 shadow-md">
                    <div class="flex items-center justify-between mb-2">
                        <h3 class="font-semibold text-gray-800">วันที่ 14</h3>
                        <span class="bg-gray-500 text-white text-xs px-2 py-1 rounded-full">เสร็จสิ้น</span>
                    </div>
                    <div class="space-y-2 text-sm">
                        <div class="flex items-start space-x-2">
                            <i data-feather="check-circle" class="w-4 h-4 text-green-500 mt-0.5"></i>
                            <div>
                                <p class="font-medium">เช้า: วิตามิน URD + น้ำอุ่น</p>
                                <p class="text-xs text-gray-600">เสร็จสิ้น</p>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Day 16 -->
                <div class="bg-white rounded-xl p-4 shadow-md opacity-75">
                    <div class="flex items-center justify-between mb-2">
                        <h3 class="font-semibold text-gray-800">วันที่ 16</h3>
                        <span class="bg-gray-300 text-gray-600 text-xs px-2 py-1 rounded-full">รอดำเนินการ</span>
                    </div>
                    <div class="space-y-2 text-sm">
                        <div class="flex items-start space-x-2">
                            <i data-feather="circle" class="w-4 h-4 text-gray-400 mt-0.5"></i>
                            <div>
                                <p class="font-medium">เช้า: วิตามิน MAG-5 + ผลไม้</p>
                                <p class="text-xs text-gray-600">08:00 - 09:00</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Symptom Tracker Section -->
        <section id="symptom-tracker" class="page-section px-4 py-6 hidden">
            <h2 class="text-xl font-bold text-gray-800 mb-4">ติดตามอาการ</h2>
            
            <!-- Today's Input -->
            <div class="bg-white rounded-xl p-4 shadow-md mb-4">
                <h3 class="font-semibold text-gray-800 mb-3">บันทึกอาการวันนี้</h3>
                
                <div class="space-y-4">
                    <div>
                        <label class="text-sm text-gray-600 mb-2 block">ระดับอาการเรอเปรี้ยว</label>
                        <div class="flex justify-between items-center">
                            <span class="text-2xl">😞</span>
                            <input type="range" class="flex-1 mx-4" min="0" max="100" value="30" id="symptom1">
                            <span class="text-2xl">😊</span>
                        </div>
                    </div>
                    
                    <div>
                        <label class="text-sm text-gray-600 mb-2 block">ระดับอาการแน่นอก</label>
                        <div class="flex justify-between items-center">
                            <span class="text-2xl">😞</span>
                            <input type="range" class="flex-1 mx-4" min="0" max="100" value="40" id="symptom2">
                            <span class="text-2xl">😊</span>
                        </div>
                    </div>
                    
                    <div>
                        <label class="text-sm text-gray-600 mb-2 block">ระดับอาการปวดข้อ</label>
                        <div class="flex justify-between items-center">
                            <span class="text-2xl">😞</span>
                            <input type="range" class="flex-1 mx-4" min="0" max="100" value="60" id="symptom3">
                            <span class="text-2xl">😊</span>
                        </div>
                    </div>
                </div>
                
                <button class="w-full bg-green-500 text-white rounded-lg py-3 mt-4 font-medium hover:bg-green-600 transition">
                    บันทึกอาการ
                </button>
            </div>

            <!-- AI Suggestion -->
            <div class="bg-gradient-to-r from-blue-50 to-purple-50 rounded-xl p-4 border border-blue-200 mb-4">
                <div class="flex items-start space-x-3">
                    <div class="w-10 h-10 bg-blue-500 rounded-full flex items-center justify-center flex-shrink-0">
                        <i data-feather="cpu" class="w-5 h-5 text-white"></i>
                    </div>
                    <div>
                        <h4 class="font-semibold text-gray-800 mb-1">คำแนะนำจาก AI</h4>
                        <p class="text-sm text-gray-700">อาการดีขึ้นแล้วครับ! แนะนำให้ทานวิตามิน GRD ต่อเนื่อง และลดอาหารที่มีไขมันสูง ควรออกกำลังกายเบาๆ วันละ 20 นาที</p>
                    </div>
                </div>
            </div>

            <!-- History Timeline -->
            <div class="bg-white rounded-xl p-4 shadow-md">
                <h3 class="font-semibold text-gray-800 mb-3">ประวัติอาการ</h3>
                <div class="space-y-3">
                    <div class="flex items-start space-x-3">
                        <div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center flex-shrink-0">
                            <span class="text-xs font-semibold text-green-600">15</span>
                        </div>
                        <div class="flex-1">
                            <p class="text-sm font-medium">วันนี้</p>
                            <div class="flex items-center space-x-2 mt-1">
                                <span class="text-xs bg-yellow-100 text-yellow-700 px-2 py-0.5 rounded">เรอเปรี้ยว 30%</span>
                                <span class="text-xs bg-orange-100 text-orange-700 px-2 py-0.5 rounded">แน่นอก 40%</span>
                                <span class="text-xs bg-green-100 text-green-700 px-2 py-0.5 rounded">ปวดข้อ 60%</span>
                            </div>
                        </div>
                    </div>
                    
                    <div class="flex items-start space-x-3">
                        <div class="w-8 h-8 bg-gray-100 rounded-full flex items-center justify-center flex-shrink-0">
                            <span class="text-xs font-semibold text-gray-600">14</span>
                        </div>
                        <div class="flex-1">
                            <p class="text-sm font-medium">เมื่อวาน</p>
                            <div class="flex items-center space-x-2 mt-1">
                                <span class="text-xs bg-yellow-100 text-yellow-700 px-2 py-0.5 rounded">เรอเปรี้ยว 35%</span>
                                <span class="text-xs bg-orange-100 text-orange-700 px-2 py-0.5 rounded">แน่นอก 45%</span>
                                <span class="text-xs bg-green-100 text-green-700 px-2 py-0.5 rounded">ปวดข้อ 55%</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Product Section -->
        <section id="products" class="page-section px-4 py-6 hidden">
            <h2 class="text-xl font-bold text-gray-800 mb-4">สั่งซื้อผลิตภัณฑ์</h2>
            
            <!-- AI Recommendation -->
            <div class="bg-gradient-to-r from-purple-500 to-pink-500 rounded-xl p-4 text-white mb-4 shadow-lg">
                <div class="flex items-center space-x-2 mb-2">
                    <i data-feather="zap" class="w-5 h-5"></i>
                    <h3 class="font-semibold">คำแนะนำจาก AI</h3>
                </div>
                <p class="text-sm mb-3">จากอาการของคุณ แนะนำแพ็กเกจฟื้นฟูระบบทางเดินอาหาร</p>
                <div class="bg-white/20 rounded-lg p-3">
                    <p class="text-sm font-medium mb-1">แพ็กเกจพิเศษ: GRD + URD + MAG-5</p>
                    <p class="text-lg font-bold">฿1,990 <span class="text-sm line-through opacity-75">฿2,490</span></p>
                </div>
            </div>

            <!-- Product Grid -->
            <div class="space-y-4">
                <!-- Product 1 -->
                <div class="bg-white rounded-xl p-4 shadow-md">
                    <div class="flex space-x-4">
                        <img src="https://static.photos/health/100x100/1" alt="GRD" class="w-24 h-24 rounded-lg object-cover">
                        <div class="flex-1">
                            <h3 class="font-semibold text-gray-800">GRD - กรดเรือนร่ม</h3>
                            <p class="text-xs text-gray-600 mb-2">ช่วยลดอาการเรอเปรี้ยว ปรับสมดุลระบบทางเดินอาหาร</p>
                            <p class="text-lg font-bold text-green-600 mb-2">฿690</p>
                            <div class="flex items-center space-x-2">
                                <div class="flex items-center space-x-1 border rounded-lg px-2 py-1">
                                    <button class="text-gray-500 hover:text-gray-700" onclick="decreaseQuantity(1)">
                                        <i data-feather="minus" class="w-4 h-4"></i>
                                    </button>
                                    <span class="px-2 text-sm font-medium" id="qty-1">1</span>
                                    <button class="text-gray-500 hover:text-gray-700" onclick="increaseQuantity(1)">
                                        <i data-feather="plus" class="w-4 h-4"></i>
                                    </button>
                                </div>
                                <button class="bg-green-500 text-white px-4 py-1.5 rounded-lg text-sm font-medium hover:bg-green-600 transition">
                                    เพิ่มลงตะกร้า
                                </button>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Product 2 -->
                <div class="bg-white rounded-xl p-4 shadow-md">
                    <div class="flex space-x-4">
                        <img src="https://static.photos/health/100x100/2" alt="URD" class="w-24 h-24 rounded-lg object-cover">
                        <div class="flex-1">
                            <h3 class="font-semibold text-gray-800">URD - กรดยูริก</h3>
                            <p class="text-xs text-gray-600 mb-2">ลดอาการปวดข้อ บรรเทาอาการอักเสบ</p>
                            <p class="text-lg font-bold text-green-600 mb-2">฿890</p>
                            <div class="flex items-center space-x-2">
                                <div class="flex items-center space-x-1 border rounded-lg px-2 py-1">
                                    <button class="text-gray-500 hover:text-gray-700" onclick="decreaseQuantity(2)">
                                        <i data-feather="minus" class="w-4 h-4"></i>
                                    </button>
                                    <span class="px-2 text-sm font-medium" id="qty-2">1</span>
                                    <button class="text-gray-500 hover:text-gray-700" onclick="increaseQuantity(2)">
                                        <i data-feather="plus" class="w-4 h-4"></i>
                                    </button>
                                </div>
                                <button class="bg-green-500 text-white px-4 py-1.5 rounded-lg text-sm font-medium hover:bg-green-600 transition">
                                    เพิ่มลงตะกร้า
                                </button>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Product 3 -->
                <div class="bg-white rounded-xl p-4 shadow-md">
                    <div class="flex space-x-4">
                        <img src="https://static.photos/health/100x100/3" alt="MAG-5" class="w-24 h-24 rounded-lg object-cover">
                        <div class="flex-1">
                            <h3 class="font-semibold text-gray-800">MAG-5 - แม็กนีเซียม</h3>
                            <p class="text-xs text-gray-600 mb-2">ช่วยผ่อนคลายกล้ามเนื้อ บรรเทาอาการแน่นอก</p>
                            <p class="text-lg font-bold text-green-600 mb-2">฿590</p>
                            <div class="flex items-center space-x-2">
                                <div class="flex items-center space-x-1 border rounded-lg px-2 py-1">
                                    <button class="text-gray-500 hover:text-gray-700" onclick="decreaseQuantity(3)">
                                        <i data-feather="minus" class="w-4 h-4"></i>
                                    </button>
                                    <span class="px-2 text-sm font-medium" id="qty-3">1</span>
                                    <button class="text-gray-500 hover:text-gray-700" onclick="increaseQuantity(3)">
                                        <i data-feather="plus" class="w-4 h-4"></i>
                                    </button>
                                </div>
                                <button class="bg-green-500 text-white px-4 py-1.5 rounded-lg text-sm font-medium hover:bg-green-600 transition">
                                    เพิ่มลงตะกร้า
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Cart Summary -->
            <div class="fixed bottom-20 left-0 right-0 bg-white border-t shadow-lg p-4">
                <div class="flex items-center justify-between">
                    <div>
                        <p class="text-sm text-gray-600">ตะกร้า (3 รายการ)</p>
                        <p class="text-xl font-bold text-gray-800">฿2,170</p>
                    </div>
                    <button class="bg-green-500 text-white px-6 py-3 rounded-lg font-medium hover:bg-green-600 transition">
                        ชำระเงิน
                    </button>
                </div>
            </div>
        </section>

        <!-- Profile Section -->
        <section id="profile" class="page-section px-4 py-6 hidden">
            <h2 class="text-xl font-bold text-gray-800 mb-4">โปรไฟล์ของฉัน</h2>
            
            <!-- User Info Card -->
            <div class="bg-white rounded-xl p-4 shadow-md mb-4">
                <div class="flex items-center space-x-4 mb-4">
                    <div class="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center">
                        <i data-feather="user" class="w-8 h-8 text-green-600"></i>
                    </div>
                    <div>
                        <h3 class="font-semibold text-gray-800">สมชาย ใจดี</h3>
                        <p class="text-sm text-gray-600">สมาชิกตั้งแต่ มกราคม 2024</p>
                    </div>
                </div>
                <div class="grid grid-cols-3 gap-2 text-center">
                    <div class="bg-gray-50 rounded-lg p-2">
                        <p class="text-xl font-bold text-green-600">15</p>
                        <p class="text-xs text-gray-600">วันที่ผ่านไป</p>
                    </div>
                    <div class="bg-gray-50 rounded-lg p-2">
                        <p class="text-xl font-bold text-blue-600">75%</p>
                        <p class="text-xs text-gray-600">ดีขึ้นแล้ว</p>
                    </div>
                    <div class="bg-gray-50 rounded-lg p-2">
                        <p class="text-xl font-bold text-purple-600">4.8</p>
                        <p class="text-xs text-gray-600">คะแนนเฉลี่ย</p>
                    </div>
                </div>
            </div>

            <!-- Menu Items -->
            <div class="bg-white rounded-xl shadow-md overflow-hidden">
                <div class="divide-y">
                    <button class="w-full px-4 py-3 flex items-center justify-between hover:bg-gray-50 transition">
                        <div class="flex items-center space-x-3">
                            <i data-feather="user" class="w-5 h-5 text-gray-600"></i>
                            <span class="text-gray-700">ข้อมูลส่วนตัว</span>
                        </div>
                        <i data-feather="chevron-right" class="w-5 h-5 text-gray-400"></i>
                    </button>
                    <button class="w-full px-4 py-3 flex items-center justify-between hover:bg-gray-50 transition">
                        <div class="flex items-center space-x-3">
                            <i data-feather="package" class="w-5 h-5 text-gray-600"></i>
                            <span class="text-gray-700">ประวัติการสั่งซื้อ</span>
                        </div>
                        <i data-feather="chevron-right" class="w-5 h-5 text-gray-400"></i>
                    </button>
                    <button class="w-full px-4 py-3 flex items-center justify-between hover:bg-gray-50 transition">
                        <div class="flex items-center space-x-3">
                            <i data-feather="credit-card" class="w-5 h-5 text-gray-600"></i>
                            <span class="text-gray-700">ข้อมูลการชำระเงิน</span>
                        </div>
                        <i data-feather="chevron-right" class="w-5 h-5 text-gray-400"></i>
                    </button>
                    <button class="w-full px-4 py-3 flex items-center justify-between hover:bg-gray-50 transition">
                        <div class="flex items-center space-x-3">
                            <i data-feather="settings" class="w-5 h-5 text-gray-600"></i>
                            <span class="text-gray-700">การตั้งค่า</span>
                        </div>
                        <i data-feather="chevron-right" class="w-5 h-5 text-gray-400"></i>
                    </button>
                    <button class="w-full px-4 py-3 flex items-center justify-between hover:bg-gray-50 transition">
                        <div class="flex items-center space-x-3">
                            <i data-feather="log-out" class="w-5 h-5 text-gray-600"></i>
                            <span class="text-gray-700">ออกจากระบบ</span>
                        </div>
                        <i data-feather="chevron-right" class="w-5 h-5 text-gray-400"></i>
                    </button>
                </div>
            </div>
        </section>
    </main>

    <!-- Floating Agent Button -->
    <button class="fixed bottom-24 right-4 w-14 h-14 bg-blue-500 rounded-full shadow-lg flex items-center justify-center hover:bg-blue-600 transition z-40" onclick="openAgentChat()">
        <i data-feather="message-circle" class="w-6 h-6 text-white"></i>
    </button>

    <!-- Bottom Navigation -->
    <nav class="fixed bottom-0 left-0 right-0 bg-white border-t z-40">
        <div class="flex justify-around items-center py-2">
            <button class="nav-item flex flex-col items-center p-2 text-green-600" onclick="showSection('dashboard')">
                <i data-feather="home" class="w-5 h-5 mb-1"></i>
                <span class="text-xs">หน้าหลัก</span>
            </button>
            <button class="nav-item flex flex-col items-center p-2 text-gray-500" onclick="showSection('restoration')">
                <i data-feather="refresh-cw" class="w-5 h-5 mb-1"></i>
                <span class="text-xs">ฟื้นฟู</span>
            </button>
            <button class="nav-item flex flex-col items-center p-2 text-gray-500" onclick="showSection('symptom-tracker')">
                <i data-feather="activity" class="w-5 h-5 mb-1"></i>
                <span class="text-xs">ติดตาม</span>
            </button>
            <button class="nav-item flex flex-col items-center p-2 text-gray-500" onclick="showSection('products')">
                <i data-feather="shopping-bag" class="w-5 h-5 mb-1"></i>
                <span class="text-xs">สั่งซื้อ</span>
            </button>
            <button class="nav-item flex flex-col items-center p-2 text-gray-500" onclick="showSection('profile')">
                <i data-feather="user" class="w-5 h-5 mb-1"></i>
                <span class="text-xs">โปรไฟล์</span>
            </button>
        </div>
    </nav>

    <script src="script.js"></script>
    <script>feather.replace();</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>