File size: 52,761 Bytes
3ed4d75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e855e5e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3ed4d75
 
 
 
 
 
 
 
 
e855e5e
3ed4d75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e855e5e
 
ca7232a
eca9216
3ed4d75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e855e5e
eca9216
3ed4d75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e855e5e
eca9216
3ed4d75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e855e5e
eca9216
3ed4d75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e855e5e
eca9216
3ed4d75
 
 
 
 
 
 
 
 
 
 
e855e5e
3ed4d75
 
 
 
 
 
 
 
 
 
 
 
 
 
e855e5e
ca7232a
eca9216
3ed4d75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e855e5e
eca9216
3ed4d75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e855e5e
eca9216
3ed4d75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e855e5e
eca9216
3ed4d75
 
 
 
 
 
 
 
 
 
 
 
e855e5e
3ed4d75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ca7232a
 
 
3ed4d75
e855e5e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3ed4d75
 
 
 
e855e5e
 
 
 
 
3ed4d75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e855e5e
3ed4d75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e855e5e
 
 
 
 
 
3ed4d75
e855e5e
 
 
 
 
3ed4d75
e855e5e
 
 
 
 
3ed4d75
 
e855e5e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3ed4d75
e855e5e
3ed4d75
 
 
 
 
e855e5e
 
 
 
 
 
 
3ed4d75
 
 
 
 
e855e5e
 
3ed4d75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ca7232a
3ed4d75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ca7232a
3ed4d75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e855e5e
 
 
 
 
3ed4d75
e855e5e
 
 
 
 
 
 
 
 
 
 
 
 
 
3ed4d75
 
 
e855e5e
3ed4d75
 
 
 
 
 
 
e855e5e
 
 
 
 
 
 
 
 
3ed4d75
e855e5e
 
 
 
 
 
 
 
ca7232a
 
 
e855e5e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ca7232a
3ed4d75
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>PharmaHub | Your Trusted Pharmacy</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=Poppins:wght@300;400;500;600;700&display=swap');
        
        body {
            font-family: 'Poppins', sans-serif;
            scroll-behavior: smooth;
        }
        
        .hero-gradient {
            background: linear-gradient(135deg, #2c6834 0%, #3f7344 50%, #5d9245 100%);
        }
        
        .product-card {
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            border: 1px solid rgba(0,0,0,0.1);
        }
        
        .product-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 14px 28px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.08);
            border-color: rgba(93, 146, 69, 0.3);
        }
        
        .testimonial-card {
            transition: all 0.3s ease;
        }
        
        .testimonial-card:hover {
            transform: scale(1.03);
        }
        
        .nav-link::after {
            content: '';
            display: block;
            width: 0;
            height: 2px;
            background: #3B82F6;
            transition: width 0.3s;
        }
        
        .nav-link:hover::after {
            width: 100%;
            background: #5d9245;
        }
        
        .cart-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background-color: #5d9245;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }
        
        .mobile-menu {
            max-height: 0;
            overflow: hidden;
            transition: all 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
            opacity: 0;
            transform: translateY(-20px);
        }
        
        .mobile-menu.open {
            max-height: 500px;
            opacity: 1;
            transform: translateY(0);
        }
        
        /* Animation for featured products */
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0px); }
        }
        
        .floating {
            animation: float 3s ease-in-out infinite;
        }
        /* Loading animation */
        .loader {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #5d9245;
            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">
    <!-- Image Prompts Configuration -->
    <script type="application/json" id="imagePromptsConfig">
        {
            "hero": "https://static.photos/medical/800x600/1",
            "productImages": [
                "https://static.photos/medical/400x300/101",
                "https://static.photos/medical/400x300/102",
                "https://static.photos/medical/400x300/103",
                "https://static.photos/medical/400x300/104"
            ],
            "about": "https://static.photos/workspace/800x600/201",
            "testimonials": [
                "https://static.photos/people/48x48/301",
                "https://static.photos/people/48x48/302",
                "https://static.photos/people/48x48/303"
            ],
            "categories": {
                "medical": "medical",
                "workspace": "workspace",
                "people": "people"
            },
            "placeholder": "https://static.photos/abstract/100x100"
        }
    </script>

    <!-- Header/Navigation -->
    <header class="bg-white shadow-sm sticky top-0 z-50">
        <div class="container mx-auto px-4 py-3 flex justify-between items-center">
            <div class="flex items-center">
                <a href="#" class="flex items-center">
                    <i class="fas fa-heartbeat text-blue-600 text-3xl mr-2"></i>
                    <span class="text-xl font-bold text-gray-800">PharmaCare</span>
                </a>
            </div>
<div class="hidden md:flex space-x-8">
                <a href="#home" class="nav-link text-gray-700 hover:text-blue-600 font-medium">Home</a>
                <a href="#products" class="nav-link text-gray-700 hover:text-blue-600 font-medium">Products</a>
                <a href="#about" class="nav-link text-gray-700 hover:text-blue-600 font-medium">About</a>
                <a href="#testimonials" class="nav-link text-gray-700 hover:text-blue-600 font-medium">Testimonials</a>
                <a href="#contact" class="nav-link text-gray-700 hover:text-blue-600 font-medium">Contact</a>
            </div>
            
            <div class="flex items-center space-x-4">
                <div class="relative">
                    <button id="cartButton" class="text-gray-700 hover:text-blue-600">
                        <i class="fas fa-shopping-cart text-xl"></i>
                        <span id="cartCount" class="cart-count hidden">0</span>
                    </button>
                </div>
                <button id="mobileMenuButton" class="md:hidden text-gray-700">
                    <i class="fas fa-bars text-xl"></i>
                </button>
            </div>
        </div>
        
        <!-- Mobile Menu -->
        <div id="mobileMenu" class="mobile-menu md:hidden bg-white w-full px-4">
            <div class="flex flex-col space-y-3 py-4">
                <a href="#home" class="text-gray-700 hover:text-blue-600 font-medium">Home</a>
                <a href="#products" class="text-gray-700 hover:text-blue-600 font-medium">Products</a>
                <a href="#about" class="text-gray-700 hover:text-blue-600 font-medium">About</a>
                <a href="#testimonials" class="text-gray-700 hover:text-blue-600 font-medium">Testimonials</a>
                <a href="#contact" class="text-gray-700 hover:text-blue-600 font-medium">Contact</a>
            </div>
        </div>
    </header>

    <!-- Hero Section -->
    <section id="home" class="bg-blue-900 text-white py-16 md:py-24">
        <div class="container mx-auto px-4 flex flex-col md:flex-row items-center">
            <div class="md:w-1/2 mb-10 md:mb-0">
                <h1 class="text-4xl md:text-5xl font-bold mb-4">Premium Pharmaceuticals Delivered Discreetly</h1>
                <p class="text-xl mb-8 opacity-90">FDA-approved medications including pain relief, anxiety treatment, and ED solutions.</p>
                <div class="flex flex-col sm:flex-row space-y-3 sm:space-y-0 sm:space-x-4">
                    <a href="#products" class="bg-white text-[#5d9245] hover:bg-gray-100 font-bold py-3 px-6 rounded-full text-center transition duration-300">Shop Now</a>
                    <a href="#about" class="border-2 border-white text-white hover:bg-white hover:text-[#5d9245] font-bold py-3 px-6 rounded-full text-center transition duration-300">Learn More</a>
                </div>
            </div>
            <div class="md:w-1/2 flex justify-center">
                    <img id="heroImage" src="" alt="Pharmaceutical products" class="rounded-xl shadow-2xl max-w-md w-full floating">
                </div>
</div>
    </section>

    <!-- Features Section -->
    <section class="bg-white py-16">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
                <div class="bg-gray-50 p-6 rounded-xl text-center">
                    <div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
                        <i class="fas fa-flask text-blue-600 text-2xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-2">Clinically Proven</h3>
                    <p class="text-gray-600">Our medications are developed following strict pharmaceutical standards and regulations.</p>
                </div>
                <div class="bg-gray-50 p-6 rounded-xl text-center">
                    <div class="bg-green-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
                        <i class="fas fa-leaf text-green-600 text-2xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-2">Natural Ingredients</h3>
                    <p class="text-gray-600">Premium quality, plant-based ingredients with no artificial additives.</p>
                </div>
                <div class="bg-gray-50 p-6 rounded-xl text-center">
                    <div class="bg-purple-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
                        <i class="fas fa-medal text-purple-600 text-2xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-2">Quality Guaranteed</h3>
                    <p class="text-gray-600">Third-party tested for purity and potency. 100% satisfaction guarantee.</p>
                </div>
            </div>
        </div>
    </section>

    <!-- Products Section -->
    <section id="products" class="py-16 bg-gray-50">
        <div class="container mx-auto px-4">
            <div class="text-center mb-12">
                <h2 class="text-3xl font-bold mb-4">Our Pharmaceutical Products</h2>
                <p class="text-gray-600 max-w-2xl mx-auto">Trusted medications and health products for various therapeutic needs.</p>
            </div>
            
            <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-8">
                <!-- Product 1 -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden product-card transition duration-300">
                    <div class="relative">
                        <img id="productImage1" src="" alt="Xanax" class="w-full h-48 object-contain bg-gray-100 p-4">
<span class="absolute top-2 right-2 bg-blue-500 text-white text-xs font-bold px-2 py-1 rounded-full">BESTSELLER</span>
                    </div>
                    <div class="p-6">
                        <h3 class="text-xl font-bold mb-2">Xanax (Alprazolam) 1mg</h3>
                        <p class="text-gray-600 text-sm mb-4">For anxiety and panic disorders. 30 tablets.</p>
                        <div class="flex justify-between items-center">
                            <span class="text-xl font-bold text-blue-600">$89.99</span>
                            <button class="add-to-cart bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-full text-sm font-medium transition duration-300" data-id="1" data-name="Xanax 1mg" data-price="89.99">
                                Add to Cart
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- Product 2 -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden product-card transition duration-300">
                    <div class="relative">
                        <img id="productImage2" src="" alt="Valium" class="w-full h-48 object-contain bg-gray-100 p-4">
</div>
                    <div class="p-6">
                        <h3 class="text-xl font-bold mb-2">Valium (Diazepam) 10mg</h3>
                        <p class="text-gray-600 text-sm mb-4">For anxiety, muscle spasms and seizures. 30 tablets.</p>
                        <div class="flex justify-between items-center">
                            <span class="text-xl font-bold text-blue-600">$79.99</span>
                            <button class="add-to-cart bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-full text-sm font-medium transition duration-300" data-id="2" data-name="Valium 10mg" data-price="79.99">
                                Add to Cart
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- Product 3 -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden product-card transition duration-300">
                    <div class="relative">
                        <img id="productImage3" src="" alt="Viagra" class="w-full h-48 object-contain bg-gray-100 p-4">
<span class="absolute top-2 right-2 bg-blue-500 text-white text-xs font-bold px-2 py-1 rounded-full">NEW</span>
                    </div>
                    <div class="p-6">
                        <h3 class="text-xl font-bold mb-2">Viagra (Sildenafil) 100mg</h3>
                        <p class="text-gray-600 text-sm mb-4">For erectile dysfunction. 4 tablets.</p>
                        <div class="flex justify-between items-center">
                            <span class="text-xl font-bold text-blue-600">$69.99</span>
                            <button class="add-to-cart bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-full text-sm font-medium transition duration-300" data-id="3" data-name="Viagra 100mg" data-price="69.99">
                                Add to Cart
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- Product 4 -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden product-card transition duration-300">
                    <div class="relative">
                        <img id="productImage4" src="" alt="Codeine" class="w-full h-48 object-contain bg-gray-100 p-4">
</div>
                    <div class="p-6">
                        <h3 class="text-xl font-bold mb-2">Codeine 30mg</h3>
                        <p class="text-gray-600 text-sm mb-4">For moderate to severe pain. 30 tablets.</p>
                        <div class="flex justify-between items-center">
                            <span class="text-xl font-bold text-blue-600">$99.99</span>
                            <button class="add-to-cart bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-full text-sm font-medium transition duration-300" data-id="4" data-name="Codeine 30mg" data-price="99.99">
                                Add to Cart
                            </button>
                        </div>
                    </div>
                </div>
</div>
            
            <div class="text-center mt-12">
                <a href="#" class="inline-block border-2 border-[#5d9245] text-[#5d9245] hover:bg-[#5d9245] hover:text-white font-bold py-3 px-8 rounded-full transition duration-300">
                    View All Products
                </a>
            </div>
        </div>
    </section>

    <!-- About Section -->
    <section id="about" class="py-16 bg-white">
        <div class="container mx-auto px-4">
            <div class="flex flex-col md:flex-row items-center">
                <div class="md:w-1/2 mb-10 md:mb-0 md:pr-10">
                    <img id="aboutImage" src="" alt="Our lab" class="rounded-xl shadow-lg w-full">
</div>
<div class="md:w-1/2">
                    <h2 class="text-3xl font-bold mb-6">Our Pharmaceutical Expertise</h2>
                    <p class="text-gray-600 mb-4">At PharmaCare, we are committed to providing high-quality medications that meet strict safety and efficacy standards.</p>
                    <p class="text-gray-600 mb-6">Our team of pharmacists and healthcare professionals ensures all products meet pharmaceutical-grade quality requirements.</p>
                    <div class="space-y-4">
                        <div class="flex items-start">
                            <div class="bg-blue-100 p-2 rounded-full mr-4">
                                <i class="fas fa-check text-blue-600"></i>
                            </div>
                            <div>
                                <h4 class="font-bold">Rigorous Testing</h4>
                                <p class="text-gray-600 text-sm">Every batch is third-party tested for purity and potency.</p>
                            </div>
                        </div>
                        <div class="flex items-start">
                            <div class="bg-blue-100 p-2 rounded-full mr-4">
                                <i class="fas fa-check text-blue-600"></i>
                            </div>
                            <div>
                                <h4 class="font-bold">Sustainable Sourcing</h4>
                                <p class="text-gray-600 text-sm">We partner with ethical suppliers who share our values.</p>
                            </div>
                        </div>
                        <div class="flex items-start">
                            <div class="bg-blue-100 p-2 rounded-full mr-4">
                                <i class="fas fa-check text-blue-600"></i>
                            </div>
                            <div>
                                <h4 class="font-bold">Transparent Formulas</h4>
                                <p class="text-gray-600 text-sm">No proprietary blends - you know exactly what you're taking.</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Testimonials Section -->
    <section id="testimonials" class="py-16 bg-gray-50">
        <div class="container mx-auto px-4">
            <div class="text-center mb-12">
                <h2 class="text-3xl font-bold mb-4">What Our Customers Say</h2>
                <p class="text-gray-600 max-w-2xl mx-auto">Thousands of people have experienced the NeuroFuel difference.</p>
            </div>
            
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
                <!-- Testimonial 1 -->
                <div class="bg-white p-6 rounded-xl shadow-sm testimonial-card">
                    <div class="flex items-center mb-4">
                        <img id="testimonialImage1" src="" alt="Sarah J." class="w-12 h-12 rounded-full mr-4">
<div>
                            <h4 class="font-bold">Sarah J.</h4>
                            <div class="flex text-yellow-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"></i>
                            </div>
                        </div>
                    </div>
                    <p class="text-gray-600">"Focus Fuel has completely transformed my workdays. I can power through tasks without the jitters I used to get from coffee. My productivity has never been higher!"</p>
                </div>
                
                <!-- Testimonial 2 -->
                <div class="bg-white p-6 rounded-xl shadow-sm testimonial-card">
                    <div class="flex items-center mb-4">
                        <img id="testimonialImage2" src="" alt="Michael T." class="w-12 h-12 rounded-full mr-4">
<div>
                            <h4 class="font-bold">Michael T.</h4>
                            <div class="flex text-yellow-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"></i>
                            </div>
                        </div>
                    </div>
                    <p class="text-gray-600">"As a medical student, Memory Boost has been a game-changer for my studies. I retain information better and feel more alert during long study sessions."</p>
                </div>
                
                <!-- Testimonial 3 -->
                <div class="bg-white p-6 rounded-xl shadow-sm testimonial-card">
                    <div class="flex items-center mb-4">
                        <img id="testimonialImage3" src="" alt="Priya K." class="w-12 h-12 rounded-full mr-4">
<div>
                            <h4 class="font-bold">Priya K.</h4>
                            <div class="flex text-yellow-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>
                        </div>
                    </div>
                    <p class="text-gray-600">"Stress Relief has helped me manage my anxiety naturally. I feel calmer and more centered without any drowsiness. It's become an essential part of my daily routine."</p>
                </div>
</div>
        </div>
    </section>

    <!-- Newsletter Section -->
    <section class="py-16 bg-blue-800 text-white">
        <div class="container mx-auto px-4 text-center">
            <h2 class="text-3xl font-bold mb-4">Join Our NeuroCommunity</h2>
            <p class="text-blue-100 max-w-2xl mx-auto mb-8">Subscribe to get exclusive offers, neuroscience tips, and early access to new products.</p>
            
            <form class="max-w-md mx-auto flex flex-col sm:flex-row gap-3">
                <input type="email" placeholder="Your email address" class="flex-grow px-4 py-3 rounded-full text-gray-800 focus:outline-none focus:ring-2 focus:ring-blue-300">
                <button type="submit" class="bg-white text-[#5d9245] hover:bg-gray-100 font-bold px-6 py-3 rounded-full transition duration-300">Subscribe</button>
            </form>
            
            <p class="text-blue-100 text-sm mt-4">We respect your privacy. Unsubscribe at any time.</p>
        </div>
    </section>

    <!-- Contact Section -->
    <section id="contact" class="py-16 bg-white">
        <div class="container mx-auto px-4">
            <div class="flex flex-col md:flex-row">
                <div class="md:w-1/2 mb-10 md:mb-0 md:pr-10">
                    <h2 class="text-3xl font-bold mb-6">Get In Touch</h2>
                    <p class="text-gray-600 mb-6">Have questions about our products or need recommendations? Our team is here to help.</p>
                    
                    <div class="space-y-6">
                        <div class="flex items-start">
                            <div class="bg-blue-100 p-3 rounded-full mr-4">
                                <i class="fas fa-envelope text-blue-600"></i>
                            </div>
                            <div>
                                <h4 class="font-bold">Email Us</h4>
                                <p class="text-gray-600">support@neurofuel.com</p>
                            </div>
                        </div>
                        
                        <div class="flex items-start">
                            <div class="bg-blue-100 p-3 rounded-full mr-4">
                                <i class="fas fa-phone text-blue-600"></i>
                            </div>
                            <div>
                                <h4 class="font-bold">Call Us</h4>
                                <p class="text-gray-600">(800) 555-0192</p>
                            </div>
                        </div>
                        
                        <div class="flex items-start">
                            <div class="bg-blue-100 p-3 rounded-full mr-4">
                                <i class="fas fa-map-marker-alt text-blue-600"></i>
                            </div>
                            <div>
                                <h4 class="font-bold">Visit Us</h4>
                                <p class="text-gray-600">123 Biohack Ave, San Francisco, CA 94107</p>
                            </div>
                        </div>
                    </div>
                    
                    <div class="mt-8 flex space-x-4">
                        <a href="#" class="bg-gray-100 hover:bg-gray-200 p-3 rounded-full transition duration-300">
                            <i class="fab fa-facebook-f text-blue-600"></i>
                        </a>
                        <a href="#" class="bg-gray-100 hover:bg-gray-200 p-3 rounded-full transition duration-300">
                            <i class="fab fa-twitter text-blue-400"></i>
                        </a>
                        <a href="#" class="bg-gray-100 hover:bg-gray-200 p-3 rounded-full transition duration-300">
                            <i class="fab fa-instagram text-purple-600"></i>
                        </a>
                        <a href="#" class="bg-gray-100 hover:bg-gray-200 p-3 rounded-full transition duration-300">
                            <i class="fab fa-linkedin-in text-blue-700"></i>
                        </a>
                    </div>
                </div>
                
                <div class="md:w-1/2">
                    <form class="bg-gray-50 p-6 rounded-xl shadow-sm">
                        <div class="mb-4">
                            <label for="name" class="block text-gray-700 font-medium mb-2">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-blue-500 focus:border-transparent">
                        </div>
                        
                        <div class="mb-4">
                            <label for="email" class="block text-gray-700 font-medium mb-2">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-blue-500 focus:border-transparent">
                        </div>
                        
                        <div class="mb-4">
                            <label for="subject" class="block text-gray-700 font-medium mb-2">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-blue-500 focus:border-transparent">
                        </div>
                        
                        <div class="mb-4">
                            <label for="message" class="block text-gray-700 font-medium mb-2">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-blue-500 focus:border-transparent"></textarea>
                        </div>
                        
                        <button type="submit" class="bg-[#5d9245] hover:bg-[#2c6834] text-white font-bold py-3 px-6 rounded-full transition duration-300 w-full">
                            Send Message
                        </button>
                    </form>
                </div>
            </div>
        </div>
    </section>

    <!-- Custom Order Form -->
    <section class="py-16 bg-[#f0f8ef]">
        <div class="container mx-auto px-4">
            <div class="max-w-3xl mx-auto bg-white rounded-xl shadow-md overflow-hidden">
                <div class="md:flex">
                    <div class="md:w-1/2 bg-green-100 p-8 flex items-center justify-center">
                        <div class="text-center">
                            <i class="fas fa-pills text-green-500 text-5xl mb-4"></i>
                            <h3 class="text-2xl font-bold text-gray-800 mb-2">Need a Special Order?</h3>
                            <p class="text-gray-600">Can't find what you're looking for? Our pharmacists can prepare custom medications just for you.</p>
                        </div>
                    </div>
                    <div class="md:w-1/2 p-8">
                        <h2 class="text-2xl font-bold text-gray-800 mb-6">Custom Medication Request</h2>
                        <form>
                            <div class="mb-4">
                                <label class="block text-gray-700 text-sm font-bold mb-2" for="name">Full Name</label>
                                <input class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500" type="text" id="name" placeholder="Your name">
                            </div>
                            <div class="mb-4">
                                <label class="block text-gray-700 text-sm font-bold mb-2" for="email">Email</label>
                                <input class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500" type="email" id="email" placeholder="your@email.com">
                            </div>
                            <div class="mb-4">
                                <label class="block text-gray-700 text-sm font-bold mb-2" for="request">Medication Details</label>
                                <textarea class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500" id="request" rows="4" placeholder="Describe your medication needs, dosage requirements, and any special instructions"></textarea>
                            </div>
                            <div class="mb-4">
                                <label class="block text-gray-700 text-sm font-bold mb-2" for="prescription">Prescription Upload</label>
                                <div class="border-2 border-dashed border-gray-300 rounded-md p-4 text-center">
                                    <i class="fas fa-file-upload text-green-500 text-2xl mb-2"></i>
                                    <p class="text-sm text-gray-600">Drag and drop your prescription here or click to browse</p>
                                    <input type="file" id="prescription" class="hidden">
                                </div>
                            </div>
                            <button type="submit" class="w-full bg-[#5d9245] hover:bg-[#2c6834] text-white font-bold py-3 px-4 rounded-md transition duration-300">
                                Submit Request
                            </button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="bg-blue-900 text-white py-12">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                <div>
                    <a href="#" class="flex items-center mb-6">
                        <i class="fas fa-prescription-bottle-alt text-[#5d9245] text-3xl mr-2"></i>
                        <span class="text-xl font-bold">PharmaHub</span>
                    </a>
                    <p class="text-gray-400">Your trusted source for quality pharmaceutical products and healthcare solutions.</p>
                </div>
                
                <div>
                    <h3 class="text-lg font-bold mb-4">Shop</h3>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">All Products</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Focus & Energy</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Memory & Learning</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Stress & Mood</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Bundles</a></li>
                    </ul>
                </div>
                
                <div>
                    <h3 class="text-lg font-bold mb-4">Company</h3>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">About Us</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Our Science</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Blog</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Careers</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Contact</a></li>
                    </ul>
                </div>
                
                <div>
                    <h3 class="text-lg font-bold mb-4">Support</h3>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">FAQ</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Shipping</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Returns</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Privacy Policy</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Terms of Service</a></li>
                    </ul>
                </div>
            </div>
            
            <div class="border-t border-gray-800 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center">
                <p class="text-gray-400 mb-4 md:mb-0">© 2023 NeuroFuel. All rights reserved.</p>
                <div class="flex space-x-6">
                    <a href="#" class="text-gray-400 hover:text-white transition duration-300">
                        <i class="fab fa-cc-visa text-2xl"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-white transition duration-300">
                        <i class="fab fa-cc-mastercard text-2xl"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-white transition duration-300">
                        <i class="fab fa-cc-amex text-2xl"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-white transition duration-300">
                        <i class="fab fa-cc-paypal text-2xl"></i>
                    </a>
                </div>
            </div>
        </div>
    </footer>

    <!-- Back to top button -->
    <button id="backToTop" class="fixed bottom-6 right-6 bg-[#5d9245] text-white w-12 h-12 rounded-full shadow-lg flex items-center justify-center opacity-0 invisible transition-all duration-300 hover:bg-[#3f7344]">
        <i class="fas fa-arrow-up"></i>
    </button>

    <!-- Shopping Cart Modal -->
    <div id="cartModal" class="fixed inset-0 z-50 hidden overflow-y-auto">
        <div class="flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
            <div class="fixed inset-0 transition-opacity" aria-hidden="true">
                <div class="absolute inset-0 bg-gray-500 opacity-75"></div>
            </div>
            
            <span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">&#8203;</span>
            
            <div class="inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full">
                <div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
                    <div class="flex justify-between items-center border-b pb-4 mb-4">
                        <h3 class="text-lg font-bold">Your Cart</h3>
                        <button id="closeCart" class="text-gray-500 hover:text-gray-700">
                            <i class="fas fa-times"></i>
                        </button>
                    </div>
                    
                    <div id="cartItems" class="max-h-96 overflow-y-auto">
                        <!-- Cart items will be added here dynamically -->
                        <p class="text-gray-500 text-center py-8">Your cart is empty</p>
                    </div>
                    
                    <div class="border-t mt-4 pt-4">
                        <div class="flex justify-between mb-2">
                            <span class="font-medium">Subtotal:</span>
                            <span id="cartSubtotal" class="font-bold">$0.00</span>
                        </div>
                        <p class="text-sm text-gray-500 mb-4">Shipping and taxes calculated at checkout</p>
                        
                        <div class="flex space-x-3">
                            <button id="continueShopping" class="flex-1 border-2 border-[#5d9245] text-[#5d9245] hover:bg-green-50 font-bold py-2 px-4 rounded-full transition duration-300">
                                Continue Shopping
                            </button>
                            <button id="checkoutButton" class="flex-1 bg-[#5d9245] hover:bg-[#2c6834] text-white font-bold py-2 px-4 rounded-full transition duration-300">
                                Checkout
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- Image Optimizer Component -->
    <script src="components/image-optimizer.js"></script>
    <script src="components/image-gallery.js"></script>
    <script>
        // Image Prompts Configuration Loader
        function loadImagePrompts() {
            try {
                const configElement = document.getElementById('imagePromptsConfig');
                if (!configElement) {
                    console.warn('Image prompts config not found');
                    return null;
                }
                
                const config = JSON.parse(configElement.textContent);
                console.log('Image prompts config loaded:', config);
                return config;
            } catch (error) {
                console.error('Failed to load image prompts:', error);
                return null;
            }
        }
        
        // Apply image prompts to all images
        function applyImagePrompts() {
            const config = loadImagePrompts();
            if (!config) return;
            
            // Apply hero image
            const heroImg = document.getElementById('heroImage');
            if (heroImg && config.hero) {
                heroImg.src = config.hero;
            }
            
            // Apply product images
            for (let i = 1; i <= 4; i++) {
                const img = document.getElementById(`productImage${i}`);
                if (img && config.productImages[i-1]) {
                    img.src = config.productImages[i-1];
                }
            }
            
            // Apply about image
            const aboutImg = document.getElementById('aboutImage');
            if (aboutImg && config.about) {
                aboutImg.src = config.about;
            }
            
            // Apply testimonial images
            for (let i = 1; i <= 3; i++) {
                const img = document.getElementById(`testimonialImage${i}`);
                if (img && config.testimonials[i-1]) {
                    img.src = config.testimonials[i-1];
                }
            }
        }
        
        // Mobile menu toggle
        const mobileMenuButton = document.getElementById('mobileMenuButton');
        const mobileMenu = document.getElementById('mobileMenu');
        
        if (mobileMenuButton && mobileMenu) {
            mobileMenuButton.addEventListener('click', () => {
                mobileMenu.classList.toggle('open');
            });
        }
        
        // Smooth scrolling for navigation links
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                
                const targetId = this.getAttribute('href');
                const targetElement = document.querySelector(targetId);
                
                if (targetElement) {
                    window.scrollTo({
                        top: targetElement.offsetTop - 80,
                        behavior: 'smooth'
                    });
                    
                    // Close mobile menu if open
                    if (mobileMenu) mobileMenu.classList.remove('open');
                }
            });
        });
        
        // Shopping cart functionality
        let cart = [];
        
        // Cart buttons
        const cartButton = document.getElementById('cartButton');
        const closeCart = document.getElementById('closeCart');
        const continueShopping = document.getElementById('continueShopping');
        const cartModal = document.getElementById('cartModal');
        const cartCount = document.getElementById('cartCount');
        const cartItems = document.getElementById('cartItems');
        const cartSubtotal = document.getElementById('cartSubtotal');
        const checkoutButton = document.getElementById('checkoutButton');
        
        // Add to cart buttons
        const addToCartButtons = document.querySelectorAll('.add-to-cart');
        
        // Toggle cart modal
        if (cartButton && cartModal) {
            cartButton.addEventListener('click', () => {
                cartModal.classList.remove('hidden');
                renderCart();
            });
        }
        
        if (closeCart) {
            closeCart.addEventListener('click', () => {
                cartModal.classList.add('hidden');
            });
        }
        
        if (continueShopping) {
            continueShopping.addEventListener('click', () => {
                cartModal.classList.add('hidden');
            });
        }
        
        // Add to cart functionality
        if (addToCartButtons.length > 0) {
            addToCartButtons.forEach(button => {
                button.addEventListener('click', () => {
                    const id = button.getAttribute('data-id');
                    const name = button.getAttribute('data-name');
                    const price = parseFloat(button.getAttribute('data-price'));
                    
                    // Check if item already exists in cart
                    const existingItem = cart.find(item => item.id === id);
                    
                    if (existingItem) {
                        existingItem.quantity += 1;
                    } else {
                        cart.push({
                            id,
                            name,
                            price,
                            quantity: 1
                        });
                    }
                    
                    updateCartCount();
                    renderCart();
                    
                    // Show cart modal
                    if (cartModal) cartModal.classList.remove('hidden');
                    
                    // Add animation to button
                    button.innerHTML = '<i class="fas fa-check mr-2"></i> Added';
                    button.classList.add('bg-green-600', 'hover:bg-green-700');
                    
                    setTimeout(() => {
                        button.innerHTML = 'Add to Cart';
                        button.classList.remove('bg-green-600', 'hover:bg-green-700');
                        button.classList.add('bg-blue-600', 'hover:bg-blue-700');
                    }, 2000);
                });
            });
        }
        
        // Update cart count in header
        function updateCartCount() {
            const totalItems = cart.reduce((total, item) => total + item.quantity, 0);
            
            if (cartCount) {
                if (totalItems > 0) {
                    cartCount.textContent = totalItems;
                    cartCount.classList.remove('hidden');
                } else {
                    cartCount.classList.add('hidden');
                }
            }
        }
        
        // Render cart items
        function renderCart() {
            if (!cartItems || !cartSubtotal || !checkoutButton) return;
            
            if (cart.length === 0) {
                cartItems.innerHTML = '<p class="text-gray-500 text-center py-8">Your cart is empty</p>';
                cartSubtotal.textContent = '$0.00';
                checkoutButton.disabled = true;
                checkoutButton.classList.add('opacity-50', 'cursor-not-allowed');
                return;
            }
            
            checkoutButton.disabled = false;
            checkoutButton.classList.remove('opacity-50', 'cursor-not-allowed');
            
            let itemsHTML = '';
            let subtotal = 0;
            
            cart.forEach(item => {
                const itemTotal = item.price * item.quantity;
                subtotal += itemTotal;
                
                itemsHTML += `
                    <div class="flex justify-between items-center py-4 border-b">
                        <div>
                            <h4 class="font-medium">${item.name}</h4>
                            <p class="text-gray-600 text-sm">${item.price.toFixed(2)}</p>
                        </div>
                        <div class="flex items-center">
                            <button class="decrease-quantity text-gray-500 hover:text-blue-600 px-2" data-id="${item.id}">
                                <i class="fas fa-minus"></i>
                            </button>
                            <span class="mx-2 w-8 text-center">${item.quantity}</span>
                            <button class="increase-quantity text-gray-500 hover:text-blue-600 px-2" data-id="${item.id}">
                                <i class="fas fa-plus"></i>
                            </button>
                            <button class="remove-item text-red-500 hover:text-red-700 ml-4" data-id="${item.id}">
                                <i class="fas fa-trash"></i>
                            </button>
                        </div>
                    </div>
                `;
            });
            
            cartItems.innerHTML = itemsHTML;
            cartSubtotal.textContent = `${subtotal.toFixed(2)}`;
            
            // Add event listeners to quantity buttons
            document.querySelectorAll('.decrease-quantity').forEach(button => {
                button.addEventListener('click', () => {
                    const id = button.getAttribute('data-id');
                    const item = cart.find(item => item.id === id);
                    
                    if (item.quantity > 1) {
                        item.quantity -= 1;
                    } else {
                        cart = cart.filter(item => item.id !== id);
                    }
                    
                    updateCartCount();
                    renderCart();
                });
            });
            
            document.querySelectorAll('.increase-quantity').forEach(button => {
                button.addEventListener('click', () => {
                    const id = button.getAttribute('data-id');
                    const item = cart.find(item => item.id === id);
                    item.quantity += 1;
                    
                    updateCartCount();
                    renderCart();
                });
            });
            
            document.querySelectorAll('.remove-item').forEach(button => {
                button.addEventListener('click', () => {
                    const id = button.getAttribute('data-id');
                    cart = cart.filter(item => item.id !== id);
                    
                    updateCartCount();
                    renderCart();
                });
            });
        }
        
        // Checkout button
        if (checkoutButton) {
            checkoutButton.addEventListener('click', () => {
                // Show loading state
                checkoutButton.innerHTML = '<div class="loader-small"></div> Processing...';
                checkoutButton.disabled = true;
                
                // Simulate API call
                setTimeout(() => {
                    alert('Thank you for your purchase! This is a demo site, no actual order will be placed.');
                    cart = [];
                    updateCartCount();
                    renderCart();
                    if (cartModal) cartModal.classList.add('hidden');
                    
                    // Reset button
                    checkoutButton.innerHTML = 'Checkout';
                    checkoutButton.disabled = false;
                }, 1500);
            });
        }
        
        // Close modal when clicking outside
        window.addEventListener('click', (e) => {
            if (cartModal && e.target === cartModal) {
                cartModal.classList.add('hidden');
            }
        });

        // Back to top button
        const backToTopButton = document.getElementById('backToTop');
        
        if (backToTopButton) {
            window.addEventListener('scroll', () => {
                if (window.pageYOffset > 300) {
                    backToTopButton.classList.remove('opacity-0', 'invisible');
                    backToTopButton.classList.add('opacity-100', 'visible');
                } else {
                    backToTopButton.classList.remove('opacity-100', 'visible');
                    backToTopButton.classList.add('opacity-0', 'invisible');
                }
            });
            
            backToTopButton.addEventListener('click', () => {
                window.scrollTo({
                    top: 0,
                    behavior: 'smooth'
                });
            });
        }
        
        // Image optimization initialization
        document.addEventListener('DOMContentLoaded', function() {
            // Apply image prompts from config
            applyImagePrompts();
            
            // Replace product images with optimized versions after they are loaded
            setTimeout(() => {
                const productImages = document.querySelectorAll('.product-card img');
                productImages.forEach(img => {
                    const parent = img.parentElement;
                    const alt = img.alt;
                    const src = img.src;
                    
                    if (src && src !== '' && typeof customElements !== 'undefined' && customElements.get('optimized-image')) {
                        // Create optimized image component
                        const optimizedImg = document.createElement('optimized-image');
                        optimizedImg.setAttribute('src', src);
                        optimizedImg.setAttribute('alt', alt);
                        optimizedImg.setAttribute('height', '200px');
                        optimizedImg.setAttribute('lazy', '');
                        
                        // Replace the original image
                        img.replaceWith(optimizedImg);
                    }
                });
            }, 100);
        });
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=steake/pharma-see" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>