File size: 75,966 Bytes
34d86e1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49f6861
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6c128a6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34d86e1
 
 
6c128a6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34d86e1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49f6861
 
34d86e1
49f6861
34d86e1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49f6861
 
34d86e1
49f6861
34d86e1
 
 
 
 
 
49f6861
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6c128a6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49f6861
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34d86e1
 
 
 
 
 
 
 
 
 
 
 
 
6c128a6
 
 
34d86e1
 
 
 
 
 
 
 
 
 
 
 
6c128a6
 
 
34d86e1
 
 
 
 
 
 
 
 
6c128a6
 
 
34d86e1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6c128a6
34d86e1
 
 
6c128a6
 
34d86e1
6c128a6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49f6861
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34d86e1
 
 
49f6861
 
 
 
 
 
 
 
34d86e1
 
 
49f6861
34d86e1
49f6861
 
 
 
34d86e1
49f6861
6c128a6
49f6861
 
34d86e1
49f6861
 
 
34d86e1
49f6861
 
 
 
 
6c128a6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49f6861
 
 
6c128a6
 
 
 
 
49f6861
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6c128a6
49f6861
 
 
 
 
 
 
 
 
 
6c128a6
 
49f6861
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6c128a6
 
 
 
 
 
 
 
 
 
 
 
49f6861
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6c128a6
49f6861
 
 
 
 
 
 
 
 
 
 
 
 
 
6c128a6
 
 
49f6861
 
 
 
 
 
 
 
 
 
 
6c128a6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49f6861
 
 
 
 
 
 
 
 
 
6c128a6
49f6861
 
 
 
 
 
 
6c128a6
49f6861
 
 
 
 
 
 
6c128a6
49f6861
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6c128a6
49f6861
 
 
 
 
6c128a6
49f6861
 
 
 
 
 
 
 
34d86e1
 
49f6861
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6c128a6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49f6861
 
6c128a6
 
 
49f6861
6c128a6
49f6861
 
 
 
 
 
 
 
 
 
6c128a6
49f6861
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6c128a6
49f6861
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34d86e1
49f6861
 
 
 
34d86e1
49f6861
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34d86e1
49f6861
 
 
34d86e1
49f6861
 
 
 
34d86e1
49f6861
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6c128a6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>New Life Fashion - Premium Ladies Clothing in Nairobi</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Poppins:wght@300;400;600;700&display=swap');
        
        body {
            font-family: 'Poppins', sans-serif;
        }
        
        .heading-font {
            font-family: 'Playfair Display', serif;
        }
        
        .hero-image {
            background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1483985988355-763728e1935b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
            background-size: cover;
            background-position: center;
        }
        
        .product-card:hover .product-image {
            transform: scale(1.05);
            transition: transform 0.3s ease;
        }
        
        .product-image {
            transition: transform 0.3s ease;
        }
        
        .testimonial-card {
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .testimonial-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        }
        
        .nav-link {
            position: relative;
        }
        
        .nav-link:after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -2px;
            left: 0;
            background-color: #d1a054;
            transition: width 0.3s ease;
        }
        
        .nav-link:hover:after {
            width: 100%;
        }
        
        .mobile-menu {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
        }
        
        .mobile-menu.open {
            max-height: 500px;
        }

        /* Modal styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 100;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.4);
        }
        
        .modal-content {
            background-color: #fefefe;
            margin: 5% auto;
            padding: 20px;
            border: none;
            width: 90%;
            max-width: 500px;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            animation: modalopen 0.3s;
        }
        
        @keyframes modalopen {
            from {opacity: 0; transform: translateY(-50px);}
            to {opacity: 1; transform: translateY(0);}
        }
        
        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }
        
        .close:hover {
            color: black;
        }

        /* Cart styles */
        .cart-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background-color: #d1a054;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }

        /* Form styles */
        .form-group {
            margin-bottom: 1rem;
        }
        
        .form-control {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 1rem;
        }
        
        .form-control:focus {
            outline: none;
            border-color: #d1a054;
            box-shadow: 0 0 0 2px rgba(209, 160, 84, 0.2);
        }
        
        .btn {
            display: inline-block;
            background-color: #d1a054;
            color: white;
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 1rem;
            text-align: center;
            transition: background-color 0.3s;
        }
        
        .btn:hover {
            background-color: #b78a46;
        }
        
        .btn-block {
            display: block;
            width: 100%;
        }
        
        .text-danger {
            color: #dc3545;
            font-size: 0.875rem;
            margin-top: 0.25rem;
        }

        /* Notification */
        .notification {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background-color: #4CAF50;
            color: white;
            padding: 15px;
            border-radius: 5px;
            z-index: 1000;
            display: none;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        /* Admin panel */
        .admin-panel {
            position: fixed;
            top: 20px;
            left: 20px;
            z-index: 1000;
            background-color: #333;
            color: white;
            padding: 10px;
            border-radius: 5px;
            display: none;
        }

        /* Tabs */
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
        }
        
        .tab-button {
            padding: 10px 15px;
            background-color: #f1f1f1;
            border: none;
            cursor: pointer;
        }
        
        .tab-button.active {
            background-color: #d1a054;
            color: white;
        }

        /* Loading spinner */
        .loader {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #d1a054;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            animation: spin 1s linear infinite;
            margin: 20px auto;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Notification -->
    <div id="notification" class="notification"></div>

    <!-- Admin Panel (hidden by default) -->
    <div id="admin-panel" class="admin-panel">
        <button id="admin-login-btn" class="bg-amber-600 text-white px-3 py-1 rounded">Admin Login</button>
        <div id="admin-content" class="hidden mt-3 bg-white text-black p-4 rounded">
            <div class="flex border-b">
                <button class="tab-button active" onclick="openTab(event, 'products-tab')">Products</button>
                <button class="tab-button" onclick="openTab(event, 'collections-tab')">Collections</button>
                <button class="tab-button" onclick="openTab(event, 'orders-tab')">Orders</button>
            </div>
            
            <div id="products-tab" class="tab-content active">
                <h3 class="font-bold my-2">Add New Product</h3>
                <form id="add-product-form">
                    <div class="form-group">
                        <label>Product Name</label>
                        <input type="text" id="product-name" class="form-control" required>
                    </div>
                    <div class="form-group">
                        <label>Price (KSh)</label>
                        <input type="number" id="product-price" class="form-control" required>
                    </div>
                    <div class="form-group">
                        <label>Image URL</label>
                        <input type="url" id="product-image" class="form-control" required>
                    </div>
                    <div class="form-group">
                        <label>Category</label>
                        <select id="product-category" class="form-control" required>
                            <option value="dresses">Dresses</option>
                            <option value="tops">Tops</option>
                            <option value="skirts">Skirts</option>
                            <option value="accessories">Accessories</option>
                        </select>
                    </div>
                    <button type="submit" class="btn btn-block">Add Product</button>
                </form>
                
                <h3 class="font-bold my-2">Current Products</h3>
                <div id="products-list" class="space-y-2">
                    <!-- Products will be loaded here -->
                    <div class="loader"></div>
                </div>
            </div>
            
            <div id="collections-tab" class="tab-content">
                <h3 class="font-bold my-2">Add New Collection</h3>
                <form id="add-collection-form">
                    <div class="form-group">
                        <label>Collection Name</label>
                        <input type="text" id="collection-name" class="form-control" required>
                    </div>
                    <div class="form-group">
                        <label>Description</label>
                        <textarea id="collection-desc" class="form-control" rows="2" required></textarea>
                    </div>
                    <div class="form-group">
                        <label>Image URL</label>
                        <input type="url" id="collection-image" class="form-control" required>
                    </div>
                    <button type="submit" class="btn btn-block">Add Collection</button>
                </form>
                
                <h3 class="font-bold my-2">Current Collections</h3>
                <div id="collections-list" class="space-y-2">
                    <!-- Collections will be loaded here -->
                    <div class="loader"></div>
                </div>
            </div>
            
            <div id="orders-tab" class="tab-content">
                <h3 class="font-bold my-2">Recent Orders</h3>
                <div id="orders-list">
                    <!-- Orders will be loaded here -->
                    <div class="loader"></div>
                </div>
            </div>
            
            <button id="admin-logout" class="btn btn-block mt-4 bg-red-600 hover:bg-red-700">Logout</button>
        </div>
    </div>

    <!-- Top Bar -->
    <div class="bg-black text-white text-sm py-2 px-4">
        <div class="container mx-auto flex justify-between items-center">
            <div class="flex space-x-4">
                <span><i class="fas fa-phone-alt mr-1"></i> +254 712 345 678</span>
                <span><i class="fas fa-envelope mr-1"></i> [email protected]</span>
            </div>
            <div class="flex space-x-4">
                <a href="#" class="hover:text-amber-200"><i class="fab fa-facebook-f"></i></a>
                <a href="#" class="hover:text-amber-200"><i class="fab fa-instagram"></i></a>
                <a href="#" class="hover:text-amber-200"><i class="fab fa-twitter"></i></a>
            </div>
        </div>
    </div>

    <!-- Navigation -->
    <nav class="bg-white shadow-md sticky top-0 z-50">
        <div class="container mx-auto px-4 py-3 flex justify-between items-center">
            <!-- Logo -->
            <div class="flex items-center">
                <a href="#" class="flex items-center">
                    <i class="fas fa-tshirt text-3xl text-amber-600 mr-2"></i>
                    <span class="heading-font text-2xl font-bold">New Life Fashion</span>
                </a>
            </div>

            <!-- Desktop Menu -->
            <div class="hidden md:flex space-x-8">
                <a href="#" class="nav-link font-medium">Home</a>
                <a href="#shop" class="nav-link font-medium">Shop</a>
                <a href="#collections" class="nav-link font-medium">Collections</a>
                <a href="#about" class="nav-link font-medium">About</a>
                <a href="#contact" class="nav-link font-medium">Contact</a>
            </div>

            <!-- Icons -->
            <div class="hidden md:flex items-center space-x-6">
                <a href="#" class="hover:text-amber-600"><i class="fas fa-search"></i></a>
                <a href="#" id="user-icon" class="hover:text-amber-600"><i class="far fa-user"></i></a>
                <a href="#" id="cart-icon" class="hover:text-amber-600 relative">
                    <i class="fas fa-shopping-bag"></i>
                    <span id="cart-count" class="cart-count">0</span>
                </a>
            </div>

            <!-- Mobile Menu Button -->
            <button id="mobile-menu-button" class="md:hidden text-gray-800 focus:outline-none">
                <i class="fas fa-bars text-2xl"></i>
            </button>
        </div>

        <!-- Mobile Menu -->
        <div id="mobile-menu" class="mobile-menu md:hidden bg-white">
            <div class="px-4 py-3 space-y-4">
                <a href="#" class="block py-2 hover:text-amber-600">Home</a>
                <a href="#shop" class="block py-2 hover:text-amber-600">Shop</a>
                <a href="#collections" class="block py-2 hover:text-amber-600">Collections</a>
                <a href="#about" class="block py-2 hover:text-amber-600">About</a>
                <a href="#contact" class="block py-2 hover:text-amber-600">Contact</a>
                <div class="flex space-x-4 pt-2">
                    <a href="#" class="hover:text-amber-600"><i class="fas fa-search"></i></a>
                    <a href="#" id="mobile-user-icon" class="hover:text-amber-600"><i class="far fa-user"></i></a>
                    <a href="#" id="mobile-cart-icon" class="hover:text-amber-600 relative">
                        <i class="fas fa-shopping-bag"></i>
                        <span id="mobile-cart-count" class="cart-count">0</span>
                    </a>
                </div>
            </div>
        </div>
    </nav>

    <!-- Login Modal -->
    <div id="login-modal" class="modal">
        <div class="modal-content">
            <span class="close">&times;</span>
            <h2 class="heading-font text-2xl font-bold mb-6 text-center">Login to Your Account</h2>
            <form id="login-form">
                <div class="form-group">
                    <label for="login-email">Email</label>
                    <input type="email" id="login-email" class="form-control" required>
                </div>
                <div class="form-group">
                    <label for="login-password">Password</label>
                    <input type="password" id="login-password" class="form-control" required>
                </div>
                <button type="submit" class="btn btn-block">Login</button>
                <p class="text-center mt-4">Don't have an account? <a href="#" id="show-register" class="text-amber-600">Register here</a></p>
            </form>
        </div>
    </div>

    <!-- Register Modal -->
    <div id="register-modal" class="modal">
        <div class="modal-content">
            <span class="close">&times;</span>
            <h2 class="heading-font text-2xl font-bold mb-6 text-center">Create an Account</h2>
            <form id="register-form">
                <div class="form-group">
                    <label for="register-name">Full Name</label>
                    <input type="text" id="register-name" class="form-control" required>
                </div>
                <div class="form-group">
                    <label for="register-email">Email</label>
                    <input type="email" id="register-email" class="form-control" required>
                </div>
                <div class="form-group">
                    <label for="register-password">Password</label>
                    <input type="password" id="register-password" class="form-control" required>
                </div>
                <div class="form-group">
                    <label for="register-confirm">Confirm Password</label>
                    <input type="password" id="register-confirm" class="form-control" required>
                </div>
                <button type="submit" class="btn btn-block">Register</button>
                <p class="text-center mt-4">Already have an account? <a href="#" id="show-login" class="text-amber-600">Login here</a></p>
            </form>
        </div>
    </div>

    <!-- Admin Login Modal -->
    <div id="admin-login-modal" class="modal">
        <div class="modal-content">
            <span class="close">&times;</span>
            <h2 class="heading-font text-2xl font-bold mb-6 text-center">Admin Login</h2>
            <form id="admin-login-form">
                <div class="form-group">
                    <label for="admin-email">Email</label>
                    <input type="email" id="admin-email" class="form-control" required>
                </div>
                <div class="form-group">
                    <label for="admin-password">Password</label>
                    <input type="password" id="admin-password" class="form-control" required>
                </div>
                <button type="submit" class="btn btn-block">Login</button>
            </form>
        </div>
    </div>

    <!-- Cart Modal -->
    <div id="cart-modal" class="modal">
        <div class="modal-content">
            <span class="close">&times;</span>
            <h2 class="heading-font text-2xl font-bold mb-6">Your Shopping Cart</h2>
            <div id="cart-items" class="mb-4">
                <!-- Cart items will be displayed here -->
                <p class="text-center py-8">Your cart is empty</p>
            </div>
            <div class="border-t pt-4">
                <div class="flex justify-between mb-4">
                    <span class="font-bold">Subtotal:</span>
                    <span id="cart-subtotal">KSh 0</span>
                </div>
                <button id="checkout-btn" class="btn btn-block">Proceed to Checkout</button>
            </div>
        </div>
    </div>

    <!-- Checkout Modal -->
    <div id="checkout-modal" class="modal">
        <div class="modal-content">
            <span class="close">&times;</span>
            <h2 class="heading-font text-2xl font-bold mb-6">Checkout</h2>
            <form id="checkout-form">
                <div class="form-group">
                    <label for="checkout-name">Full Name</label>
                    <input type="text" id="checkout-name" class="form-control" required>
                </div>
                <div class="form-group">
                    <label for="checkout-email">Email</label>
                    <input type="email" id="checkout-email" class="form-control" required>
                </div>
                <div class="form-group">
                    <label for="checkout-phone">Phone Number</label>
                    <input type="tel" id="checkout-phone" class="form-control" required>
                </div>
                <div class="form-group">
                    <label for="checkout-address">Delivery Address</label>
                    <textarea id="checkout-address" class="form-control" rows="3" required></textarea>
                </div>
                <div class="form-group">
                    <label for="checkout-payment">Payment Method</label>
                    <select id="checkout-payment" class="form-control" required>
                        <option value="">Select payment method</option>
                        <option value="mpesa">M-Pesa</option>
                        <option value="card">Credit/Debit Card</option>
                        <option value="cash">Cash on Delivery</option>
                    </select>
                </div>
                <div class="border-t pt-4 mb-4">
                    <div class="flex justify-between mb-2">
                        <span>Subtotal:</span>
                        <span id="checkout-subtotal">KSh 0</span>
                    </div>
                    <div class="flex justify-between mb-2">
                        <span>Delivery Fee:</span>
                        <span>KSh 300</span>
                    </div>
                    <div class="flex justify-between font-bold text-lg">
                        <span>Total:</span>
                        <span id="checkout-total">KSh 0</span>
                    </div>
                </div>
                <button type="submit" class="btn btn-block">Place Order</button>
            </form>
        </div>
    </div>

    <!-- Order Confirmation Modal -->
    <div id="confirmation-modal" class="modal">
        <div class="modal-content">
            <span class="close">&times;</span>
            <div class="text-center py-8">
                <div class="text-green-500 text-5xl mb-4">
                    <i class="fas fa-check-circle"></i>
                </div>
                <h2 class="heading-font text-2xl font-bold mb-2">Order Confirmed!</h2>
                <p class="mb-6">Thank you for your purchase. Your order has been placed successfully.</p>
                <p class="font-bold mb-2">Order #<span id="order-number">12345</span></p>
                <p class="mb-6">We'll send you a confirmation email shortly.</p>
                <button id="continue-shopping" class="btn">Continue Shopping</button>
            </div>
        </div>
    </div>

    <!-- Hero Section -->
    <section class="hero-image text-white py-20 md:py-32">
        <div class="container mx-auto px-4 text-center">
            <h1 class="heading-font text-4xl md:text-6xl font-bold mb-4">Elevate Your Style</h1>
            <p class="text-xl md:text-2xl mb-8 max-w-2xl mx-auto">Discover Kenya's finest collection of ladies fashion at New Life Fashion in Ruiru</p>
            <a href="#shop" class="bg-amber-600 hover:bg-amber-700 text-white font-bold py-3 px-8 rounded-full inline-block transition duration-300">Shop Now</a>
        </div>
    </section>

    <!-- Featured Categories -->
    <section class="py-12 bg-white">
        <div class="container mx-auto px-4">
            <h2 class="heading-font text-3xl font-bold text-center mb-12">Shop By Category</h2>
            <div class="grid grid-cols-2 md:grid-cols-4 gap-6" id="categories-container">
                <!-- Categories will be loaded dynamically -->
                <div class="loader"></div>
            </div>
        </div>
    </section>

    <!-- Featured Products -->
    <section id="shop" class="py-16 bg-gray-50">
        <div class="container mx-auto px-4">
            <div class="flex justify-between items-center mb-12">
                <h2 class="heading-font text-3xl font-bold">Featured Products</h2>
                <a href="#" class="text-amber-600 hover:text-amber-700 font-medium">View All <i class="fas fa-arrow-right ml-1"></i></a>
            </div>
            
            <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-8" id="products-container">
                <!-- Products will be loaded dynamically -->
                <div class="loader"></div>
            </div>
        </div>
    </section>

    <!-- Seasonal Collection -->
    <section id="collections" class="py-16 bg-white">
        <div class="container mx-auto px-4">
            <h2 class="heading-font text-3xl font-bold text-center mb-12">Seasonal Collections</h2>
            
            <div class="grid grid-cols-1 md:grid-cols-2 gap-8 mb-12" id="collections-container">
                <!-- Collections will be loaded dynamically -->
                <div class="loader"></div>
            </div>
            
            <div class="text-center">
                <a href="#" class="border-2 border-black hover:bg-black hover:text-white font-bold py-3 px-8 rounded-full inline-block transition duration-300">View All Collections</a>
            </div>
        </div>
    </section>

    <!-- About Section -->
    <section id="about" class="py-16 bg-gray-50">
        <div class="container mx-auto px-4">
            <div class="flex flex-col md:flex-row items-center">
                <div class="md:w-1/2 mb-8 md:mb-0 md:pr-8">
                    <img src="https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="About New Life Fashion" class="rounded-lg shadow-lg w-full">
                </div>
                <div class="md:w-1/2">
                    <h2 class="heading-font text-3xl font-bold mb-6">Our Story</h2>
                    <p class="text-gray-700 mb-4">Founded in 2015, New Life Fashion has grown from a small boutique in Ruiru to one of Nairobi's most beloved destinations for women's fashion. Our journey began with a simple mission: to provide high-quality, stylish clothing at affordable prices.</p>
                    <p class="text-gray-700 mb-6">Today, we're proud to offer a carefully curated selection of clothing that combines international trends with African-inspired designs. Our team of fashion experts travels across the continent to source unique fabrics and designs that you won't find anywhere else.</p>
                    <div class="grid grid-cols-2 gap-4 mb-6">
                        <div class="flex items-center">
                            <div class="bg-amber-100 rounded-full p-3 mr-3">
                                <i class="fas fa-check-circle text-amber-600"></i>
                            </div>
                            <span class="font-medium">Quality Materials</span>
                        </div>
                        <div class="flex items-center">
                            <div class="bg-amber-100 rounded-full p-3 mr-3">
                                <i class="fas fa-check-circle text-amber-600"></i>
                            </div>
                            <span class="font-medium">Affordable Prices</span>
                        </div>
                        <div class="flex items-center">
                            <div class="bg-amber-100 rounded-full p-3 mr-3">
                                <i class="fas fa-check-circle text-amber-600"></i>
                            </div>
                            <span class="font-medium">Unique Designs</span>
                        </div>
                        <div class="flex items-center">
                            <div class="bg-amber-100 rounded-full p-3 mr-3">
                                <i class="fas fa-check-circle text-amber-600"></i>
                            </div>
                            <span class="font-medium">Ethical Sourcing</span>
                        </div>
                    </div>
                    <a href="#" class="bg-amber-600 hover:bg-amber-700 text-white font-bold py-3 px-8 rounded-full inline-block transition duration-300">Learn More</a>
                </div>
            </div>
        </div>
    </section>

    <!-- Testimonials -->
    <section class="py-16 bg-white">
        <div class="container mx-auto px-4">
            <h2 class="heading-font text-3xl font-bold text-center mb-12">What Our Customers Say</h2>
            
            <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
                <div class="testimonial-card bg-gray-50 rounded-lg p-6">
                    <div class="flex items-center mb-4">
                        <div class="flex text-amber-400 mr-2">
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                        </div>
                        <span class="text-gray-500 text-sm">2 weeks ago</span>
                    </div>
                    <p class="text-gray-700 mb-4">"The African print dress I bought is absolutely stunning! I've received so many compliments. The quality is excellent and the fit is perfect."</p>
                    <div class="flex items-center">
                        <img src="https://randomuser.me/api/portraits/women/32.jpg" alt="Grace M." class="w-10 h-10 rounded-full mr-3">
                        <div>
                            <h4 class="font-bold">Grace M.</h4>
                            <p class="text-gray-500 text-sm">Nairobi</p>
                        </div>
                    </div>
                </div>
                
                <div class="testimonial-card bg-gray-50 rounded-lg p-6">
                    <div class="flex items-center mb-4">
                        <div class="flex text-amber-400 mr-2">
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star-half-alt"></i>
                        </div>
                        <span class="text-gray-500 text-sm">1 month ago</span>
                    </div>
                    <p class="text-gray-700 mb-4">"I'm always impressed with the unique pieces at New Life Fashion. Their customer service is exceptional and they really understand style."</p>
                    <div class="flex items-center">
                        <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Sarah K." class="w-10 h-10 rounded-full mr-3">
                        <div>
                            <h4 class="font-bold">Sarah K.</h4>
                            <p class="text-gray-500 text-sm">Ruiru</p>
                        </div>
                    </div>
                </div>
                
                <div class="testimonial-card bg-gray-50 rounded-lg p-6">
                    <div class="flex items-center mb-4">
                        <div class="flex text-amber-400 mr-2">
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                        </div>
                        <span class="text-gray-500 text-sm">3 days ago</span>
                    </div>
                    <p class="text-gray-700 mb-4">"The denim jacket I ordered fits perfectly and is such great quality. Delivery was fast and the packaging was beautiful. Will definitely shop here again!"</p>
                    <div class="flex items-center">
                        <img src="https://randomuser.me/api/portraits/women/68.jpg" alt="Amina W." class="w-10 h-10 rounded-full mr-3">
                        <div>
                            <h4 class="font-bold">Amina W.</h4>
                            <p class="text-gray-500 text-sm">Thika</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Newsletter -->
    <section class="py-16 bg-amber-600 text-white">
        <div class="container mx-auto px-4 text-center">
            <h2 class="heading-font text-3xl font-bold mb-4">Join Our Newsletter</h2>
            <p class="text-xl mb-8 max-w-2xl mx-auto">Subscribe to get updates on new arrivals, special offers and fashion tips</p>
            <form class="max-w-md mx-auto flex">
                <input type="email" placeholder="Your email address" class="flex-grow px-4 py-3 rounded-l-lg focus:outline-none text-gray-900">
                <button type="submit" class="bg-black hover:bg-gray-900 px-6 py-3 rounded-r-lg font-bold transition duration-300">Subscribe</button>
            </form>
        </div>
    </section>

    <!-- Contact Section -->
    <section id="contact" class="py-16 bg-gray-50">
        <div class="container mx-auto px-4">
            <h2 class="heading-font text-3xl font-bold text-center mb-12">Visit Us</h2>
            
            <div class="flex flex-col md:flex-row">
                <div class="md:w-1/2 mb-8 md:mb-0 md:pr-8">
                    <div class="bg-white p-6 rounded-lg shadow-md h-full">
                        <h3 class="text-xl font-bold mb-4">Our Location</h3>
                        <div class="space-y-4">
                            <div class="flex items-start">
                                <i class="fas fa-map-marker-alt text-amber-600 mt-1 mr-3"></i>
                                <div>
                                    <h4 class="font-bold">Address</h4>
                                    <p class="text-gray-700">123 Fashion Street, Ruiru<br>Nairobi, Kenya</p>
                                </div>
                            </div>
                            <div class="flex items-start">
                                <i class="fas fa-phone-alt text-amber-600 mt-1 mr-3"></i>
                                <div>
                                    <h4 class="font-bold">Phone</h4>
                                    <p class="text-gray-700">+254 712 345 678</p>
                                </div>
                            </div>
                            <div class="flex items-start">
                                <i class="fas fa-envelope text-amber-600 mt-1 mr-3"></i>
                                <div>
                                    <h4 class="font-bold">Email</h4>
                                    <p class="text-gray-700">[email protected]</p>
                                </div>
                            </div>
                            <div class="flex items-start">
                                <i class="fas fa-clock text-amber-600 mt-1 mr-3"></i>
                                <div>
                                    <h4 class="font-bold">Opening Hours</h4>
                                    <p class="text-gray-700">Monday - Friday: 9:00 AM - 6:00 PM<br>Saturday: 9:00 AM - 4:00 PM<br>Sunday: Closed</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="md:w-1/2">
                    <div class="bg-white p-6 rounded-lg shadow-md h-full">
                        <h3 class="text-xl font-bold mb-4">Send Us a Message</h3>
                        <form>
                            <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
                                <div>
                                    <label for="name" class="block text-gray-700 mb-1">Name</label>
                                    <input type="text" id="name" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-amber-500">
                                </div>
                                <div>
                                    <label for="email" class="block text-gray-700 mb-1">Email</label>
                                    <input type="email" id="email" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-amber-500">
                                </div>
                            </div>
                            <div class="mb-4">
                                <label for="subject" class="block text-gray-700 mb-1">Subject</label>
                                <input type="text" id="subject" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-amber-500">
                            </div>
                            <div class="mb-4">
                                <label for="message" class="block text-gray-700 mb-1">Message</label>
                                <textarea id="message" rows="4" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-amber-500"></textarea>
                            </div>
                            <button type="submit" class="bg-amber-600 hover:bg-amber-700 text-white font-bold py-2 px-6 rounded-lg transition duration-300">Send Message</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="bg-black text-white py-12">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8 mb-8">
                <div>
                    <a href="#" class="flex items-center mb-4">
                        <i class="fas fa-tshirt text-3xl text-amber-600 mr-2"></i>
                        <span class="heading-font text-2xl font-bold">New Life Fashion</span>
                    </a>
                    <p class="text-gray-400">Your premier destination for stylish ladies fashion in Nairobi, Kenya.</p>
                    <div class="flex space-x-4 mt-4">
                        <a href="#" class="text-gray-400 hover:text-amber-400"><i class="fab fa-facebook-f"></i></a>
                        <a href="#" class="text-gray-400 hover:text-amber-400"><i class="fab fa-instagram"></i></a>
                        <a href="#" class="text-gray-400 hover:text-amber-400"><i class="fab fa-twitter"></i></a>
                        <a href="#" class="text-gray-400 hover:text-amber-400"><i class="fab fa-pinterest"></i></a>
                        </div>
                    </div>
                    
                    <div>
                        <h3 class="text-lg font-bold mb-4">Quick Links</h3>
                        <ul class="space-y-2">
                            <li><a href="#" class="text-gray-400 hover:text-amber-400">Home</a></li>
                            <li><a href="#shop" class="text-gray-400 hover:text-amber-400">Shop</a></li>
                            <li><a href="#collections" class="text-gray-400 hover:text-amber-400">Collections</a></li>
                            <li><a href="#about" class="text-gray-400 hover:text-amber-400">About Us</a></li>
                            <li><a href="#contact" class="text-gray-400 hover:text-amber-400">Contact</a></li>
                        </ul>
                    </div>
                    
                    <div>
                        <h3 class="text-lg font-bold mb-4">Customer Service</h3>
                        <ul class="space-y-2">
                            <li><a href="#" class="text-gray-400 hover:text-amber-400">My Account</a></li>
                            <li><a href="#" class="text-gray-400 hover:text-amber-400">Order Tracking</a></li>
                            <li><a href="#" class="text-gray-400 hover:text-amber-400">Wishlist</a></li>
                            <li><a href="#" class="text-gray-400 hover:text-amber-400">Shipping Policy</a></li>
                            <li><a href="#" class="text-gray-400 hover:text-amber-400">Returns & Exchanges</a></li>
                        </ul>
                    </div>
                    
                    <div>
                        <h3 class="text-lg font-bold mb-4">Contact Info</h3>
                        <ul class="space-y-2">
                            <li class="flex items-start">
                                <i class="fas fa-map-marker-alt text-amber-400 mt-1 mr-3"></i>
                                <span class="text-gray-400">123 Fashion Street, Ruiru, Nairobi</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-phone-alt text-amber-400 mt-1 mr-3"></i>
                                <span class="text-gray-400">+254 712 345 678</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-envelope text-amber-400 mt-1 mr-3"></i>
                                <span class="text-gray-400">[email protected]</span>
                            </li>
                        </ul>
                    </div>
                </div>
                
                <div class="border-t border-gray-800 pt-8">
                    <div class="flex flex-col md:flex-row justify-between items-center">
                        <p class="text-gray-400 mb-4 md:mb-0">© 2023 New Life Fashion. All rights reserved.</p>
                        <div class="flex space-x-6">
                            <a href="#" class="text-gray-400 hover:text-amber-400">Privacy Policy</a>
                            <a href="#" class="text-gray-400 hover:text-amber-400">Terms of Service</a>
                            <a href="#" class="text-gray-400 hover:text-amber-400">Sitemap</a>
                        </div>
                    </div>
                </div>
            </div>
        </footer>

        <!-- Back to Top Button -->
        <button id="back-to-top" class="fixed bottom-8 right-8 bg-amber-600 text-white rounded-full w-12 h-12 flex items-center justify-center shadow-lg hover:bg-amber-700 transition duration-300 hidden">
            <i class="fas fa-arrow-up"></i>
        </button>

        <script>
            // Initialize data if not exists
            if (!localStorage.getItem('cart')) {
                localStorage.setItem('cart', JSON.stringify([]));
            }

            if (!localStorage.getItem('users')) {
                localStorage.setItem('users', JSON.stringify([]));
            }

            if (!localStorage.getItem('orders')) {
                localStorage.setItem('orders', JSON.stringify([]));
            }

            if (!localStorage.getItem('products')) {
                // Default products
                const defaultProducts = [
                    {
                        id: "1",
                        name: "African Print Maxi Dress",
                        price: 2499,
                        image: "https://images.unsplash.com/photo-1572804013309-59a88b7e92f1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=746&q=80",
                        category: "dresses"
                    },
                    {
                        id: "2",
                        name: "Classic Denim Jacket",
                        price: 1899,
                        image: "https://images.unsplash.com/photo-1585487000160-6ebcfceb0d03?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=736&q=80",
                        category: "tops"
                    },
                    {
                        id: "3",
                        name: "Floral Midi Skirt",
                        price: 1299,
                        image: "https://images.unsplash.com/photo-1595341595379-cf2a3d574a3e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1473&q=80",
                        category: "skirts"
                    },
                    {
                        id: "4",
                        name: "Elegant Silk Blouse",
                        price: 2199,
                        image: "https://images.unsplash.com/photo-1520367445093-50dc08a59d9d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80",
                        category: "tops"
                    }
                ];
                localStorage.setItem('products', JSON.stringify(defaultProducts));
            }

            if (!localStorage.getItem('collections')) {
                // Default collections
                const defaultCollections = [
                    {
                        id: "1",
                        name: "Summer Vibes",
                        description: "Bright colors and lightweight fabrics for the sunny season",
                        image: "https://images.unsplash.com/photo-1551232864-3f0890e580d9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80"
                    },
                    {
                        id: "2",
                        name: "Winter Essentials",
                        description: "Cozy layers and warm fabrics to keep you stylish in the cold",
                        image: "https://images.unsplash.com/photo-1585487000160-6ebcfceb0d03?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=736&q=80"
                    }
                ];
                localStorage.setItem('collections', JSON.stringify(defaultCollections));
            }

            if (!localStorage.getItem('categories')) {
                // Default categories
                const defaultCategories = [
                    {
                        name: "Dresses",
                        image: "https://images.unsplash.com/photo-1551232864-3f0890e580d9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80"
                    },
                    {
                        name: "Tops",
                        image: "https://images.unsplash.com/photo-1591047139829-d91aecb6caea?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=736&q=80"
                    },
                    {
                        name: "Skirts",
                        image: "https://images.unsplash.com/photo-1595341888016-a392ef81b7de?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1479&q=80"
                    },
                    {
                        name: "Accessories",
                        image: "https://images.unsplash.com/photo-1525507119028-ed4c629a60a3?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=735&q=80"
                    }
                ];
                localStorage.setItem('categories', JSON.stringify(defaultCategories));
            }

            // Default admin credentials (in a real app, this would be server-side)
            const ADMIN_EMAIL = "[email protected]";
            const ADMIN_PASSWORD = "admin123";

            // Update cart count on page load
            updateCartCount();

            // Load dynamic content
            loadCategories();
            loadProducts();
            loadCollections();

            // Mobile Menu Toggle
            const mobileMenuButton = document.getElementById('mobile-menu-button');
            const mobileMenu = document.getElementById('mobile-menu');
            
            mobileMenuButton.addEventListener('click', () => {
                mobileMenu.classList.toggle('open');
                const icon = mobileMenuButton.querySelector('i');
                if (mobileMenu.classList.contains('open')) {
                    icon.classList.remove('fa-bars');
                    icon.classList.add('fa-times');
                } else {
                    icon.classList.remove('fa-times');
                    icon.classList.add('fa-bars');
                }
            });
            
            // Back to Top Button
            const backToTopButton = document.getElementById('back-to-top');
            
            window.addEventListener('scroll', () => {
                if (window.pageYOffset > 300) {
                    backToTopButton.classList.remove('hidden');
                } else {
                    backToTopButton.classList.add('hidden');
                }
            });
            
            backToTopButton.addEventListener('click', () => {
                window.scrollTo({ top: 0, behavior: 'smooth' });
            });
            
            // Smooth scrolling for anchor links
            document.querySelectorAll('a[href^="#"]').forEach(anchor => {
                anchor.addEventListener('click', function(e) {
                    e.preventDefault();
                    
                    const targetId = this.getAttribute('href');
                    if (targetId === '#') return;
                    
                    const targetElement = document.querySelector(targetId);
                    if (targetElement) {
                        targetElement.scrollIntoView({
                            behavior: 'smooth'
                        });
                        
                        // Close mobile menu if open
                        if (mobileMenu.classList.contains('open')) {
                            mobileMenu.classList.remove('open');
                            const icon = mobileMenuButton.querySelector('i');
                            icon.classList.remove('fa-times');
                            icon.classList.add('fa-bars');
                        }
                    }
                });
            });

            // Modal functionality
            const loginModal = document.getElementById('login-modal');
            const registerModal = document.getElementById('register-modal');
            const adminLoginModal = document.getElementById('admin-login-modal');
            const cartModal = document.getElementById('cart-modal');
            const checkoutModal = document.getElementById('checkout-modal');
            const confirmationModal = document.getElementById('confirmation-modal');

            const userIcon = document.getElementById('user-icon');
            const mobileUserIcon = document.getElementById('mobile-user-icon');
            const cartIcon = document.getElementById('cart-icon');
            const mobileCartIcon = document.getElementById('mobile-cart-icon');
            const checkoutBtn = document.getElementById('checkout-btn');
            const continueShoppingBtn = document.getElementById('continue-shopping');
            const adminLoginBtn = document.getElementById('admin-login-btn');
            const adminLogoutBtn = document.getElementById('admin-logout');

            const showLogin = document.getElementById('show-login');
            const showRegister = document.getElementById('show-register');

            const closeButtons = document.querySelectorAll('.close');

            // Open modals
            userIcon.addEventListener('click', (e) => {
                e.preventDefault();
                loginModal.style.display = 'block';
            });

            mobileUserIcon.addEventListener('click', (e) => {
                e.preventDefault();
                loginModal.style.display = 'block';
            });

            cartIcon.addEventListener('click', (e) => {
                e.preventDefault();
                updateCartModal();
                cartModal.style.display = 'block';
            });

            mobileCartIcon.addEventListener('click', (e) => {
                e.preventDefault();
                updateCartModal();
                cartModal.style.display = 'block';
            });

            checkoutBtn.addEventListener('click', (e) => {
                e.preventDefault();
                cartModal.style.display = 'none';
                updateCheckoutModal();
                checkoutModal.style.display = 'block';
            });

            continueShoppingBtn.addEventListener('click', (e) => {
                e.preventDefault();
                confirmationModal.style.display = 'none';
            });

            adminLoginBtn.addEventListener('click', (e) => {
                e.preventDefault();
                adminLoginModal.style.display = 'block';
            });

            adminLogoutBtn.addEventListener('click', (e) => {
                e.preventDefault();
                sessionStorage.removeItem('adminLoggedIn');
                document.getElementById('admin-content').classList.add('hidden');
                showNotification('Admin logged out successfully');
            });

            showLogin.addEventListener('click', (e) => {
                e.preventDefault();
                registerModal.style.display = 'none';
                loginModal.style.display = 'block';
            });

            showRegister.addEventListener('click', (e) => {
                e.preventDefault();
                loginModal.style.display = 'none';
                registerModal.style.display = 'block';
            });

            // Close modals
            closeButtons.forEach(button => {
                button.addEventListener('click', () => {
                    loginModal.style.display = 'none';
                    registerModal.style.display = 'none';
                    adminLoginModal.style.display = 'none';
                    cartModal.style.display = 'none';
                    checkoutModal.style.display = 'none';
                    confirmationModal.style.display = 'none';
                });
            });

            // Close when clicking outside modal
            window.addEventListener('click', (e) => {
                if (e.target === loginModal) {
                    loginModal.style.display = 'none';
                }
                if (e.target === registerModal) {
                    registerModal.style.display = 'none';
                }
                if (e.target === adminLoginModal) {
                    adminLoginModal.style.display = 'none';
                }
                if (e.target === cartModal) {
                    cartModal.style.display = 'none';
                }
                if (e.target === checkoutModal) {
                    checkoutModal.style.display = 'none';
                }
                if (e.target === confirmationModal) {
                    confirmationModal.style.display = 'none';
                }
            });

            // Admin login form submission
            document.getElementById('admin-login-form').addEventListener('submit', (e) => {
                e.preventDefault();
                
                const email = document.getElementById('admin-email').value;
                const password = document.getElementById('admin-password').value;
                
                if (email === ADMIN_EMAIL && password === ADMIN_PASSWORD) {
                    sessionStorage.setItem('adminLoggedIn', 'true');
                    adminLoginModal.style.display = 'none';
                    document.getElementById('admin-content').classList.remove('hidden');
                    showNotification('Admin login successful');
                } else {
                    alert('Invalid admin credentials');
                }
                
                document.getElementById('admin-login-form').reset();
            });

            // Check if admin is logged in
            if (sessionStorage.getItem('adminLoggedIn') === 'true') {
                document.getElementById('admin-content').classList.remove('hidden');
            }

            // Register form submission
            document.getElementById('register-form').addEventListener('submit', (e) => {
                e.preventDefault();
                
                const name = document.getElementById('register-name').value;
                const email = document.getElementById('register-email').value;
                const password = document.getElementById('register-password').value;
                const confirm = document.getElementById('register-confirm').value;
                
                if (password !== confirm) {
                    showNotification('Passwords do not match!', 'error');
                    return;
                }
                
                const users = JSON.parse(localStorage.getItem('users'));
                
                // Check if user already exists
                if (users.find(user => user.email === email)) {
                    showNotification('User with this email already exists!', 'error');
                    return;
                }
                
                // Add new user
                users.push({ name, email, password });
                localStorage.setItem('users', JSON.stringify(users));
                
                showNotification('Registration successful! Please login.');
                registerModal.style.display = 'none';
                loginModal.style.display = 'block';
                
                // Clear form
                document.getElementById('register-form').reset();
            });

            // Login form submission
            document.getElementById('login-form').addEventListener('submit', (e) => {
                e.preventDefault();
                
                const email = document.getElementById('login-email').value;
                const password = document.getElementById('login-password').value;
                
                const users = JSON.parse(localStorage.getItem('users'));
                const user = users.find(user => user.email === email && user.password === password);
                
                if (user) {
                    // Store current user in session
                    sessionStorage.setItem('currentUser', JSON.stringify(user));
                    
                    showNotification(`Welcome back, ${user.name}!`);
                    loginModal.style.display = 'none';
                    
                    // Update user icon to show logged in state
                    updateUserIcon();
                } else {
                    showNotification('Invalid email or password!', 'error');
                }
                
                // Clear form
                document.getElementById('login-form').reset();
            });

            // Checkout form submission
            document.getElementById('checkout-form').addEventListener('submit', (e) => {
                e.preventDefault();
                
                const name = document.getElementById('checkout-name').value;
                const email = document.getElementById('checkout-email').value;
                const phone = document.getElementById('checkout-phone').value;
                const address = document.getElementById('checkout-address').value;
                const payment = document.getElementById('checkout-payment').value;
                
                const cart = JSON.parse(localStorage.getItem('cart'));
                const subtotal = cart.reduce((sum, item) => sum + (item.price * item.quantity), 0);
                const total = subtotal + 300; // Add delivery fee
                
                // Create order
                const order = {
                    id: Date.now().toString(),
                    date: new Date().toISOString(),
                    customer: { name, email, phone, address },
                    paymentMethod: payment,
                    items: cart,
                    subtotal,
                    delivery: 300,
                    total,
                    status: 'Processing'
                };
                
                // Save order
                const orders = JSON.parse(localStorage.getItem('orders'));
                orders.push(order);
                localStorage.setItem('orders', JSON.stringify(orders));
                
                // Clear cart
                localStorage.setItem('cart', JSON.stringify([]));
                updateCartCount();
                
                // Show confirmation
                checkoutModal.style.display = 'none';
                document.getElementById('order-number').textContent = order.id;
                confirmationModal.style.display = 'block';
                
                // Clear form
                document.getElementById('checkout-form').reset();

                // Notify admin of new order
                if (sessionStorage.getItem('adminLoggedIn') === 'true') {
                    showNotification('New order received!', 'success');
                    loadOrders(); // Refresh orders list in admin panel
                }
            });

            // Add product form submission
            document.getElementById('add-product-form').addEventListener('submit', (e) => {
                e.preventDefault();
                
                const name = document.getElementById('product-name').value;
                const price = parseInt(document.getElementById('product-price').value);
                const image = document.getElementById('product-image').value;
                const category = document.getElementById('product-category').value;
                
                const newProduct = {
                    id: Date.now().toString(),
                    name,
                    price,
                    image,
                    category
                };
                
                // Add to products
                const products = JSON.parse(localStorage.getItem('products'));
                products.push(newProduct);
                localStorage.setItem('products', JSON.stringify(products));
                
                showNotification('Product added successfully!');
                document.getElementById('add-product-form').reset();
                loadProducts();
            });

            // Add collection form submission
            document.getElementById('add-collection-form').addEventListener('submit', (e) => {
                e.preventDefault();
                
                const name = document.getElementById('collection-name').value;
                const description = document.getElementById('collection-desc').value;
                const image = document.getElementById('collection-image').value;
                
                const newCollection = {
                    id: Date.now().toString(),
                    name,
                    description,
                    image
                };
                
                // Add to collections
                const collections = JSON.parse(localStorage.getItem('collections'));
                collections.push(newCollection);
                localStorage.setItem('collections', JSON.stringify(collections));
                
                showNotification('Collection added successfully!');
                document.getElementById('add-collection-form').reset();
                loadCollections();
            });

            // Add to cart functionality (delegated for dynamic products)
            document.addEventListener('click', function(e) {
                if (e.target && e.target.closest('.add-to-cart')) {
                    e.preventDefault();
                    const button = e.target.closest('.add-to-cart');
                    
                    const product = {
                        id: button.getAttribute('data-id'),
                        name: button.getAttribute('data-name'),
                        price: parseInt(button.getAttribute('data-price')),
                        image: button.getAttribute('data-image'),
                        quantity: 1
                    };
                    
                    addToCart(product);
                }
            });

            // Function to add item to cart
            function addToCart(product) {
                const cart = JSON.parse(localStorage.getItem('cart'));
                
                // Check if product already in cart
                const existingItem = cart.find(item => item.id === product.id);
                
                if (existingItem) {
                    existingItem.quantity += 1;
                } else {
                    cart.push(product);
                }
                
                localStorage.setItem('cart', JSON.stringify(cart));
                updateCartCount();
                
                // Show notification
                showNotification(`${product.name} added to cart!`);
            }

            // Function to update cart count
            function updateCartCount() {
                const cart = JSON.parse(localStorage.getItem('cart'));
                const count = cart.reduce((sum, item) => sum + item.quantity, 0);
                
                document.getElementById('cart-count').textContent = count;
                document.getElementById('mobile-cart-count').textContent = count;
            }

            // Function to update cart modal
            function updateCartModal() {
                const cart = JSON.parse(localStorage.getItem('cart'));
                const cartItems = document.getElementById('cart-items');
                const subtotal = cart.reduce((sum, item) => sum + (item.price * item.quantity), 0);
                
                document.getElementById('cart-subtotal').textContent = `KSh ${subtotal.toLocaleString()}`;
                
                if (cart.length === 0) {
                    cartItems.innerHTML = '<p class="text-center py-8">Your cart is empty</p>';
                    return;
                }
                
                let html = '';
                cart.forEach(item => {
                    html += `
                        <div class="flex items-center py-4 border-b">
                            <div class="w-20 h-20 bg-gray-100 rounded overflow-hidden mr-4">
                                <img src="${item.image}" alt="${item.name}" class="w-full h-full object-cover">
                            </div>
                            <div class="flex-grow">
                                <h4 class="font-medium">${item.name}</h4>
                                <div class="flex justify-between items-center mt-1">
                                    <span>KSh ${item.price.toLocaleString()}</span>
                                    <div class="flex items-center">
                                        <button class="decrease-quantity px-2 py-1 border rounded-l" data-id="${item.id}">-</button>
                                        <span class="px-3 py-1 border-t border-b">${item.quantity}</span>
                                        <button class="increase-quantity px-2 py-1 border rounded-r" data-id="${item.id}">+</button>
                                    </div>
                                </div>
                            </div>
                            <button class="remove-item ml-4 text-red-500" data-id="${item.id}">
                                <i class="fas fa-times"></i>
                            </button>
                        </div>
                    `;
                });
                
                cartItems.innerHTML = html;
                
                // Add event listeners to quantity buttons
                document.querySelectorAll('.increase-quantity').forEach(button => {
                    button.addEventListener('click', () => {
                        const id = button.getAttribute('data-id');
                        updateQuantity(id, 1);
                    });
                });
                
                document.querySelectorAll('.decrease-quantity').forEach(button => {
                    button.addEventListener('click', () => {
                        const id = button.getAttribute('data-id');
                        updateQuantity(id, -1);
                    });
                });
                
                // Add event listeners to remove buttons
                document.querySelectorAll('.remove-item').forEach(button => {
                    button.addEventListener('click', () => {
                        const id = button.getAttribute('data-id');
                        removeItem(id);
                    });
                });
            }

            // Function to update item quantity
            function updateQuantity(id, change) {
                const cart = JSON.parse(localStorage.getItem('cart'));
                const item = cart.find(item => item.id === id);
                
                if (item) {
                    item.quantity += change;
                    
                    // Remove if quantity is 0 or less
                    if (item.quantity <= 0) {
                        cart.splice(cart.indexOf(item), 1);
                    }
                    
                    localStorage.setItem('cart', JSON.stringify(cart));
                    updateCartCount();
                    updateCartModal();
                }
            }

            // Function to remove item from cart
            function removeItem(id) {
                const cart = JSON.parse(localStorage.getItem('cart'));
                const itemIndex = cart.findIndex(item => item.id === id);
                
                if (itemIndex !== -1) {
                    cart.splice(itemIndex, 1);
                    localStorage.setItem('cart', JSON.stringify(cart));
                    updateCartCount();
                    updateCartModal();
                }
            }

            // Function to update checkout modal
            function updateCheckoutModal() {
                const cart = JSON.parse(localStorage.getItem('cart'));
                const subtotal = cart.reduce((sum, item) => sum + (item.price * item.quantity), 0);
                const total = subtotal + 300; // Add delivery fee
                
                document.getElementById('checkout-subtotal').textContent = `KSh ${subtotal.toLocaleString()}`;
                document.getElementById('checkout-total').textContent = `KSh ${total.toLocaleString()}`;
                
                // If user is logged in, pre-fill their details
                const currentUser = JSON.parse(sessionStorage.getItem('currentUser'));
                if (currentUser) {
                    document.getElementById('checkout-name').value = currentUser.name;
                    document.getElementById('checkout-email').value = currentUser.email;
                }
            }

            // Function to update user icon based on login status
            function updateUserIcon() {
                const currentUser = JSON.parse(sessionStorage.getItem('currentUser'));
                const userIcon = document.getElementById('user-icon');
                const mobileUserIcon = document.getElementById('mobile-user-icon');
                
                if (currentUser) {
                    userIcon.innerHTML = `<i class="fas fa-user-check"></i>`;
                    mobileUserIcon.innerHTML = `<i class="fas fa-user-check"></i>`;
                } else {
                    userIcon.innerHTML = `<i class="far fa-user"></i>`;
                    mobileUserIcon.innerHTML = `<i class="far fa-user"></i>`;
                }
            }

            // Function to show notification
            function showNotification(message, type = 'success') {
                const notification = document.getElementById('notification');
                notification.textContent = message;
                notification.style.display = 'block';
                
                // Set color based on type
                if (type === 'error') {
                    notification.style.backgroundColor = '#dc3545';
                } else if (type === 'success') {
                    notification.style.backgroundColor = '#4CAF50';
                } else {
                    notification.style.backgroundColor = '#333';
                }
                
                // Hide after 3 seconds
                setTimeout(() => {
                    notification.style.display = 'none';
                }, 3000);
            }

            // Function to load categories
            function loadCategories() {
                const categoriesContainer = document.getElementById('categories-container');
                const categories = JSON.parse(localStorage.getItem('categories'));
                
                let html = '';
                categories.forEach(category => {
                    html += `
                        <a href="#" class="group relative overflow-hidden rounded-lg shadow-md">
                            <img src="${category.image}" alt="${category.name}" class="w-full h-48 md:h-64 object-cover group-hover:opacity-90 transition duration-300">
                            <div class="absolute inset-0 bg-black bg-opacity-40 flex items-center justify-center">
                                <h3 class="text-white text-xl font-bold">${category.name}</h3>
                            </div>
                        </a>
                    `;
                });
                
                categoriesContainer.innerHTML = html;
            }

            // Function to load products
            function loadProducts() {
                const productsContainer = document.getElementById('products-container');
                const products = JSON.parse(localStorage.getItem('products'));
                
                let html = '';
                products.forEach(product => {
                    html += `
                        <div class="product-card bg-white rounded-lg overflow-hidden shadow-md hover:shadow-lg transition duration-300">
                            <div class="relative overflow-hidden">
                                <img src="${product.image}" alt="${product.name}" class="product-image w-full h-64 object-cover">
                                <div class="absolute top-3 right-3">
                                    <span class="bg-amber-600 text-white text-xs font-bold px-2 py-1 rounded-full">NEW</span>
                                </div>
                            </div>
                            <div class="p-4">
                                <h3 class="font-semibold text-lg mb-1">${product.name}</h3>
                                <div class="flex items-center mb-2">
                                    <div class="flex text-amber-400">
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star-half-alt"></i>
                                    </div>
                                    <span class="text-gray-600 text-sm ml-2">(24)</span>
                                </div>
                                <div class="flex justify-between items-center">
                                    <span class="font-bold text-lg">KSh ${product.price.toLocaleString()}</span>
                                    <button class="add-to-cart bg-amber-600 hover:bg-amber-700 text-white rounded-full w-10 h-10 flex items-center justify-center" 
                                        data-id="${product.id}" 
                                        data-name="${product.name}" 
                                        data-price="${product.price}" 
                                        data-image="${product.image}">
                                        <i class="fas fa-shopping-cart"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    `;
                });
                
                productsContainer.innerHTML = html;
            }

            // Function to load collections
            function loadCollections() {
                const collectionsContainer = document.getElementById('collections-container');
                const collections = JSON.parse(localStorage.getItem('collections'));
                
                let html = '';
                collections.forEach
</html>