File size: 53,967 Bytes
a8ac40a
 
 
 
 
 
 
 
 
 
 
 
 
00d3c8f
a8ac40a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
00d3c8f
a8ac40a
 
00d3c8f
a8ac40a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>EACH Pricing Guide</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    <style>
        body {
            font-family: 'Inter', sans-serif;
            background-color: #4c1d95;
        }
        .scrollbar-hide::-webkit-scrollb ar {
            display: none;
        }
        .scrollbar-hide {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
        .fade-in {
            animation: fadeIn 0.3s ease-in-out;
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        .performance-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.875rem;
        }
        .performance-table th {
            background-color: #5B2C6F;
            color: white;
            padding: 0.5rem;
            text-align: center;
            font-weight: 600;
        }
        .performance-table td {
            padding: 0.375rem;
            border-bottom: 1px solid #5B2C6F;
        }
        .performance-table tr:nth-child(even) {
            background-color: #5B2C6F20;
        }
        .performance-table tr:hover {
            background-color: #5B2C6F40;
        }
        .text-green {
            color: #4ade80;
        }
        .text-red {
            color: #f87171;
        }
    </style>
</head>
<body class="min-h-screen p-4">
    <div id="app" class="max-w-4xl mx-auto">
        <!-- Header -->
        <div class="flex items-center justify-between bg-gradient-to-r from-purple-800 to-purple-600 p-4 rounded-lg mb-4 shadow-lg">
            <div class="flex items-center">
                <div class="mr-3">
                    <div class="flex flex-col shadow-lg">
                        <div class="bg-purple-900 w-16 h-10 flex items-center justify-center border-t border-l border-r border-purple-800">
                            <div class="text-white font-bold text-xl tracking-wide lowercase">each</div>
                        </div>
                        <div class="bg-gradient-to-b from-orange-500 to-orange-600 w-16 py-0.5 px-0.5 border-b border-l border-r border-orange-600">
                            <div class="text-white text-center leading-tight text-xs">
                                East Anglia's<br>Children's Hospices
                            </div>
                        </div>
                    </div>
                </div>
                <div>
                    <h1 class="text-3xl font-bold text-white">Pricing Guide</h1>
                    <p class="text-xs text-purple-300">Your complete brand pricing reference</p>
                </div>
            </div>
            <button id="settingsBtn" class="p-2 bg-purple-700 hover:bg-purple-500 rounded-full transition-colors shadow-md">
                <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-6 h-6 text-white">
                    <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"></path>
                    <circle cx="12" cy="12" r="3"></circle>
                </svg>
            </button>
        </div>

        <!-- Tabs -->
        <div class="flex space-x-2 items-center justify-start mb-4 overflow-x-auto pb-2 scrollbar-hide">
            <button id="categoriesTab" class="flex items-center justify-center transition-colors rounded-lg bg-purple-500 w-16 h-16 ring-2 ring-white shrink-0">
                <span class="text-4xl">👗</span>
            </button>
            <button id="sweTab" class="flex items-center justify-center transition-colors rounded-lg bg-purple-500 w-16 h-16 shrink-0">
                <span class="text-4xl">🤩</span>
            </button>
            <button id="ebayTab" class="flex items-center justify-center transition-colors rounded-lg bg-purple-600 w-16 h-16 shrink-0">
                <div class="flex items-center justify-center text-2xl font-bold">
                    <span class="text-red-600">e</span>
                    <span class="text-blue-600">b</span>
                    <span class="text-yellow-500">a</span>
                    <span class="text-green-600">y</span>
                </div>
            </button>
            <button id="doNotSellTab" class="flex items-center justify-center transition-colors rounded-lg bg-purple-500 w-16 h-16 shrink-0">
                <div class="rounded-full bg-red-600 w-12 h-12 flex items-center justify-center">
                    <div class="bg-white h-2 w-8 rounded-sm"></div>
                </div>
            </button>
            <button id="performanceTab" class="flex items-center justify-center transition-colors rounded-lg bg-purple-500 w-16 h-16 shrink-0">
                <span class="text-4xl">📊</span>
            </button>
        </div>

        <!-- Main Content -->
        <div id="contentContainer">
            <!-- Categories Section (default) -->
            <div id="categoriesSection" class="fade-in">
                <div class="relative mt-4">
                    <input id="searchInput" type="text" placeholder="Search brands or categories..." class="w-full bg-purple-600 rounded-lg p-3 pl-10 text-white placeholder-purple-300 focus:outline-none focus:ring-2 focus:ring-purple-400">
                    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-5 h-5 absolute left-3 top-3.5 text-purple-300">
                        <circle cx="11" cy="11" r="8"></circle>
                        <line x1="21" y1="21" x2="16.65" y2="16.65"></line>
                    </svg>
                </div>

                <div id="searchInfo" class="hidden bg-purple-800 p-3 rounded-lg mt-2"></div>

                <div id="categoriesContent" class="space-y-4 mt-4">
                    <div class="bg-purple-600 rounded-lg p-4 text-center space-y-4">
                        <div class="flex justify-center">
                            <span class="text-5xl">🏷️</span>
                        </div>
                        <h2 class="text-xl font-semibold">Welcome to the Pricing Guide</h2>
                        <p>Search for brand names or categories to find pricing information.</p>
                        <div class="bg-purple-700 rounded-lg p-3 text-sm">
                            <p class="font-medium mb-2">Search suggestions:</p>
                            <div class="flex flex-wrap gap-2 justify-center">
                                <button class="search-suggestion cursor-pointer bg-purple-500 hover:bg-purple-400 transition-colors rounded-full px-3 py-1" data-query="Ladies">Ladies</button>
                                <button class="search-suggestion cursor-pointer bg-purple-500 hover:bg-purple-400 transition-colors rounded-full px-3 py-1" data-query="Gold">Gold</button>
                                <button class="search-suggestion cursor-pointer bg-purple-500 hover:bg-purple-400 transition-colors rounded-full px-3 py-1" data-query="Men's">Men's</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Style With EACH Brands Section -->
            <div id="sweSection" class="hidden fade-in">
                <div class="bg-purple-600 rounded-lg p-4">
                    <div class="flex items-center mb-4">
                        <span class="text-2xl mr-2">🌟</span>
                        <h2 class="text-xl font-semibold">Style With EACH Brands</h2>
                    </div>
                    <div class="grid grid-cols-2 gap-3 md:grid-cols-3">
                        <div class="bg-purple-700 rounded-2xl px-4 py-3 text-center">Lucy & Yak</div>
                        <div class="bg-purple-700 rounded-2xl px-4 py-3 text-center">Football Shirts</div>
                        <div class="bg-purple-700 rounded-2xl px-4 py-3 text-center">Berghaus</div>
                        <div class="bg-purple-700 rounded-2xl px-4 py-3 text-center">Trainers</div>
                        <div class="bg-purple-700 rounded-2xl px-4 py-3 text-center">Kate Spade</div>
                        <div class="bg-purple-700 rounded-2xl px-4 py-3 text-center">Tour T-shirts</div>
                        <div class="bg-purple-700 rounded-2xl px-4 py-3 text-center">Whistles</div>
                        <div class="bg-purple-700 rounded-2xl px-4 py-3 text-center">Cowboy/Cowgirl Boots</div>
                        <div class="bg-purple-700 rounded-2xl px-4 py-3 text-center">Stone Island</div>
                        <div class="bg-purple-700 rounded-2xl px-4 py-3 text-center">Vintage/Rare T-shirts</div>
                        <div class="bg-purple-700 rounded-2xl px-4 py-3 text-center">Laura Ashley (Vintage only)</div>
                        <div class="bg-purple-700 rounded-2xl px-4 py-3 text-center">Dr. Martens Boots</div>
                    </div>
                </div>
            </div>

            <!-- eBay Section -->
            <div id="ebaySection" class="hidden fade-in">
                <div class="bg-purple-600 rounded-lg p-4">
                    <div class="flex items-center mb-4">
                        <div class="flex items-center text-3xl font-bold mr-3">
                            <span class="text-red-600">e</span>
                            <span class="text-blue-600">b</span>
                            <span class="text-yellow-500">a</span>
                            <span class="text-green-600">y</span>
                        </div>
                        <h2 class="text-xl font-semibold">eBay Reseller Guide</h2>
                    </div>

                    <!-- Gold Markings -->
                    <div class="bg-purple-700 rounded-lg p-4 mb-4">
                        <h3 class="font-semibold mb-3 flex items-center">
                            <span class="text-xl mr-2"></span>
                            Gold Hallmark Guide
                        </h3>
                        <div class="grid grid-cols-2 gap-3 md:grid-cols-3">
                            <div class="bg-purple-800 rounded-lg p-3">
                                <div class="font-medium text-yellow-300 mb-1">375</div>
                                <div class="text-sm">9 carat (37.5% pure)</div>
                            </div>
                            <div class="bg-purple-800 rounded-lg p-3">
                                <div class="font-medium text-yellow-300 mb-1">585</div>
                                <div class="text-sm">14 carat (58.5% pure)</div>
                            </div>
                            <div class="bg-purple-800 rounded-lg p-3">
                                <div class="font-medium text-yellow-300 mb-1">750</div>
                                <div class="text-sm">18 carat (75% pure)</div>
                            </div>
                            <div class="bg-purple-800 rounded-lg p-3">
                                <div class="font-medium text-yellow-300 mb-1">916</div>
                                <div class="text-sm">22 carat (91.6% pure)</div>
                            </div>
                            <div class="bg-purple-800 rounded-lg p-3">
                                <div class="font-medium text-yellow-300 mb-1">990</div>
                                <div class="text-sm">24 carat (99% pure)</div>
                            </div>
                            <div class="bg-purple-800 rounded-lg p-3">
                                <div class="font-medium text-yellow-300 mb-1">GF / RGP</div>
                                <div class="text-sm">Gold Filled / Rolled Gold</div>
                            </div>
                        </div>
                    </div>

                    <!-- Silver Markings -->
                    <div class="bg-purple-700 rounded-lg p-4 mb-4">
                        <h3 class="font-semibold mb-3 flex items-center">
                            <span class="text-xl mr-2">🥈</span>
                            Silver Hallmark Guide
                        </h3>
                        <div class="grid grid-cols-2 gap-3 md:grid-cols-3">
                            <div class="bg-purple-800 rounded-lg p-3">
                                <div class="font-medium text-gray-300 mb-1">925</div>
                                <div class="text-sm">Sterling Silver (92.5% pure)</div>
                            </div>
                            <div class="bg-purple-800 rounded-lg p-3">
                                <div class="font-medium text-gray-300 mb-1">800</div>
                                <div class="text-sm">80% Silver content</div>
                            </div>
                            <div class="bg-purple-800 rounded-lg p-3">
                                <div class="font-medium text-gray-300 mb-1">EPNS</div>
                                <div class="text-sm">Electroplated Nickel Silver</div>
                            </div>
                            <div class="bg-purple-800 rounded-lg p-3">
                                <div class="font-medium text-gray-300 mb-1">A1</div>
                                <div class="text-sm">Highest grade silver plate</div>
                            </div>
                        </div>
                    </div>

                    <!-- Toy Identification Guide -->
                    <div class="bg-purple-700 rounded-lg p-4 mb-4">
                        <h3 class="font-semibold mb-3 flex items-center">
                            <span class="text-xl mr-2">🧸</span>
                            Toy Identification Guide
                        </h3>

                        <div class="bg-purple-800 rounded-lg p-3 mb-2">
                            <div class="flex justify-between items-center">
                                <h4 class="font-medium">Key Value Indicators</h4>
                                <span class="text-xs bg-purple-600 px-2 py-1 rounded text-purple-300">Toy Guide</span>
                            </div>
                            <div class="grid grid-cols-1 md:grid-cols-2 gap-2 mt-2">
                                <div class="bg-purple-700 p-2 rounded text-sm">
                                    <span class="text-green-400 mr-1"></span>
                                    <strong>Pre-2000 Toys</strong> (70s-90s are best)
                                </div>
                                <div class="bg-purple-700 p-2 rounded text-sm">
                                    <span class="text-green-400 mr-1"></span>
                                    <strong>Factory Sealed</strong> (NIB/NOS)
                                </div>
                                <div class="bg-purple-700 p-2 rounded text-sm">
                                    <span class="text-green-400 mr-1"></span>
                                    <strong>Limited Editions</strong> & Exclusives
                                </div>
                                <div class="bg-purple-700 p-2 rounded text-sm">
                                    <span class="text-green-400 mr-1"></span>
                                    <strong>Original Star Wars</strong> (1977-1985)
                                </div>
                            </div>
                        </div>

                        <div class="flex text-sm mb-3">
                            <div class="bg-purple-800 p-2 rounded-l w-1/2">
                                <h5 class="font-medium mb-1">Check For:</h5>
                                <ul class="space-y-1 pl-1">
                                    <li><span class="text-purple-300 mr-1"></span>Year of Manufacture</li>
                                    <li><span class="text-purple-300 mr-1"></span>Country of Origin</li>
                                    <li><span class="text-purple-300 mr-1"></span>Model/Serial Numbers</li>
                                </ul>
                            </div>
                            <div class="bg-purple-800 p-2 rounded-r w-1/2">
                                <h5 class="font-medium mb-1">Avoid:</h5>
                                <ul class="space-y-1 pl-1">
                                    <li><span class="text-purple-300 mr-1"></span>Overproduced items</li>
                                    <li><span class="text-purple-300 mr-1"></span>Missing pieces</li>
                                    <li><span class="text-purple-300 mr-1"></span>Knockoffs/bootlegs</li>
                                </ul>
                            </div>
                        </div>

                        <div class="text-sm bg-purple-700 p-2 rounded-md flex">
                            <span class="text-yellow-300 mr-1">💡</span>
                            <span><strong>Pro Tip:</strong> Always check eBay Sold Listings to verify value before buying!</span>
                        </div>
                    </div>

                    <!-- Hidden Gems -->
                    <div class="bg-purple-700 rounded-lg p-4 mb-4">
                        <h3 class="font-semibold mb-3 flex items-center">
                            <span class="text-xl mr-2">💎</span>
                            Hidden Gems to Look For
                        </h3>
                        <div class="space-y-3">
                            <div class="bg-purple-800 rounded-lg p-3">
                                <h4 class="font-medium mb-1">Clothing Tags to Watch For</h4>
                                <div class="grid grid-cols-2 gap-2 md:grid-cols-3 text-sm">
                                    <div class="bg-purple-700 p-2 rounded-md">Burberry Nova Check</div>
                                    <div class="bg-purple-700 p-2 rounded-md">Vintage Levi's Red Tab</div>
                                    <div class="bg-purple-700 p-2 rounded-md">Nike ACG</div>
                                    <div class="bg-purple-700 p-2 rounded-md">Dead Stock Sportswear</div>
                                    <div class="bg-purple-700 p-2 rounded-md">Band Tour T-shirts</div>
                                    <div class="bg-purple-700 p-2 rounded-md">1990s Y2K Brands</div>
                                </div>
                            </div>

                            <div class="bg-purple-800 rounded-lg p-3">
                                <h4 class="font-medium mb-1">Collectible Items</h4>
                                <div class="grid grid-cols-2 gap-2 md:grid-cols-3 text-sm">
                                    <div class="bg-purple-700 p-2 rounded-md">Vintage Board Games</div>
                                    <div class="bg-purple-700 p-2 rounded-md">Retired LEGO Sets</div>
                                    <div class="bg-purple-700 p-2 rounded-md">First Edition Books</div>
                                    <div class="bg-purple-700 p-2 rounded-md">Vintage Comics</div>
                                    <div class="bg-purple-700 p-2 rounded-md">Film Cameras</div>
                                    <div class="bg-purple-700 p-2 rounded-md">Retro Video Games</div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- Seasonal Selling Calendar -->
                    <div class="bg-purple-700 rounded-lg p-4">
                        <h3 class="font-semibold mb-3 flex items-center">
                            <span class="text-xl mr-2">📅</span>
                            Seasonal Selling Guide
                        </h3>
                        <div class="grid grid-cols-2 gap-3 md:grid-cols-4">
                            <div class="bg-purple-800 rounded-lg p-2">
                                <h4 class="font-medium text-center border-b border-purple-600 pb-1 mb-2">Winter</h4>
                                <ul class="text-xs pl-3 list-disc">
                                    <li>Winter coats (Oct-Dec)</li>
                                    <li>Christmas items (Oct-Dec)</li>
                                    <li>Ski gear (Sep-Jan)</li>
                                    <li>Thermal clothing (Sept-Jan)</li>
                                </ul>
                            </div>
                            <div class="bg-purple-800 rounded-lg p-2">
                                <h4 class="font-medium text-center border-b border-purple-600 pb-1 mb-2">Spring</h4>
                                <ul class="text-xs pl-3 list-disc">
                                    <li>Garden tools (Feb-May)</li>
                                    <li>Easter items (Feb-Apr)</li>
                                    <li>Spring fashion (Jan-Apr)</li>
                                    <li>Wedding attire (Jan-May)</li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Do Not Sell Section -->
            <div id="doNotSellSection" class="hidden fade-in">
                <div class="bg-purple-600 rounded-lg p-4 space-y-6">
                    <div class="flex items-center mb-2">
                        <div class="rounded-full bg-red-600 w-12 h-12 flex items-center justify-center mr-3">
                            <div class="bg-white h-2 w-8 rounded-sm"></div>
                        </div>
                        <h2 class="text-xl font-semibold">Items Not For Sale</h2>
                    </div>

                    <div class="space-y-6">
                        <!-- Cannot sell anywhere section -->
                        <div>
                            <h3 class="text-lg font-medium mb-3 bg-red-600 px-3 py-1 rounded-md inline-block">
                                Items we cannot sell anywhere
                            </h3>
                            <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-3">
                                <div class="bg-purple-700 border border-red-500 rounded-lg px-3 py-2 text-center">VAPES</div>
                                <div class="bg-purple-700 border border-red-500 rounded-lg px-3 py-2 text-center">Bikes</div>
                                <div class="bg-purple-700 border border-red-500 rounded-lg px-3 py-2 text-center">Cots, Prams, High chairs, Stairgates</div>
                                <div class="bg-purple-700 border border-red-500 rounded-lg px-3 py-2 text-center">Roller-skates</div>
                                <div class="bg-purple-700 border border-red-500 rounded-lg px-3 py-2 text-center">Ironing boards with asbestos heat pads</div>
                                <div class="bg-purple-700 border border-red-500 rounded-lg px-3 py-2 text-center">Bike, riding or motorcycle helmets</div>
                                <div class="bg-purple-700 border border-red-500 rounded-lg px-3 py-2 text-center">Real fur coats</div>
                                <div class="bg-purple-700 border border-red-500 rounded-lg px-3 py-2 text-center">Inflatable water bands and rings</div>
                                <div class="bg-purple-700 border border-red-500 rounded-lg px-3 py-2 text-center">Candles without warning labels</div>
                                <div class="bg-purple-700 border border-red-500 rounded-lg px-3 py-2 text-center">Firearms, knives or weapons</div>
                                <div class="bg-purple-700 border border-red-500 rounded-lg px-3 py-2 text-center">Food or drink (including alcohol)</div>
                                <div class="bg-purple-700 border border-red-500 rounded-lg px-3 py-2 text-center">Offensive, sexist or racist items</div>
                                <div class="bg-purple-700 border border-red-500 rounded-lg px-3 py-2 text-center">Upholstered furniture without fire labels</div>
                                <div class="bg-purple-700 border border-red-500 rounded-lg px-3 py-2 text-center">Children's fancy dress costumes</div>
                                <div class="bg-purple-700 border border-red-500 rounded-lg px-3 py-2 text-center">TVs that are not flat screen</div>
                                <div class="bg-purple-700 border border-red-500 rounded-lg px-3 py-2 text-center">Used underwear</div>
                                <div class="bg-purple-700 border border-red-500 rounded-lg px-3 py-2 text-center">Toys without CE labels</div>
                                <div class="bg-purple-700 border border-red-500 rounded-lg px-3 py-2 text-center">Children's car seats</div>
                                <div class="bg-purple-700 border border-red-500 rounded-lg px-3 py-2 text-center">Items containing ivory</div>
                                <div class="bg-purple-700 border border-red-500 rounded-lg px-3 py-2 text-center">Electric blankets</div>
                                <div class="bg-purple-700 border border-red-500 rounded-lg px-3 py-2 text-center">Bassinets</div>
                            </div>
                        </div>

                        <!-- Manager's discretion section -->
                        <div>
                            <h3 class="text-lg font-medium mb-3 bg-orange-600 px-3 py-1 rounded-md inline-block">
                                Items we can only accept in shops at the Manager's discretion
                            </h3>
                            <p class="text-sm mb-3 text-purple-300">
                                If unsold these items must be disposed of locally, either through your recycler or your shop bin - please do not return to RDC
                            </p>
                            <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-3">
                                <div class="bg-purple-700 border border-orange-500 rounded-lg px-3 py-2 text-center">Computer screens</div>
                                <div class="bg-purple-700 border border-orange-500 rounded-lg px-3 py-2 text-center">Duvets</div>
                                <div class="bg-purple-700 border border-orange-500 rounded-lg px-3 py-2 text-center">Video or music cassettes</div>
                                <div class="bg-purple-700 border border-orange-500 rounded-lg px-3 py-2 text-center">Microwaves (RDC & Clacton only)</div>
                                <div class="bg-purple-700 border border-orange-500 rounded-lg px-3 py-2 text-center">Large Pictures and Photo frames</div>
                                <div class="bg-purple-700 border border-orange-500 rounded-lg px-3 py-2 text-center">Items containing gas or air canisters</div>
                                <div class="bg-purple-700 border border-orange-500 rounded-lg px-3 py-2 text-center">Mattresses</div>
                                <div class="bg-purple-700 border border-orange-500 rounded-lg px-3 py-2 text-center">Printers</div>
                                <div class="bg-purple-700 border border-orange-500 rounded-lg px-3 py-2 text-center">CD's and DVD's for culling</div>
                            </div>
                        </div>

                        <!-- Restricted items section -->
                        <div>
                            <h3 class="text-lg font-medium mb-3 bg-yellow-600 px-3 py-1 rounded-md inline-block">
                                Items must be in a cabinet & sold to over 18's
                            </h3>
                            <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-3">
                                <div class="bg-purple-700 border border-yellow-500 rounded-lg px-3 py-2 text-center">Knives, scissors & sharp kitchen utensils</div>
                                <div class="bg-purple-700 border border-yellow-500 rounded-lg px-3 py-2 text-center">Knitting needles</div>
                                <div class="bg-purple-700 border border-yellow-500 rounded-lg px-3 py-2 text-center">DVD's with 15 or 18 certificates</div>
                            </div>
                            <p class="text-sm mt-3 text-purple-300">
                                Knitting needles may be kept in the sorting room / behind the till. Check the age appropriateness of 15 or 18 certificates for DVD's (do not need to be kept in cabinet).
                            </p>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Performance Section -->
            <div id="performanceSection" class="hidden fade-in">
                <div class="bg-purple-600 rounded-lg p-4">
                    <div class="flex items-center mb-4">
                        <span class="text-2xl mr-2">📊</span>
                        <h2 class="text-xl font-semibold">South Region YTD (Week 7)</h2>
                    </div>
                    
                    <div class="overflow-x-auto">
                        <table class="performance-table">
                            <thead>
                                <tr>
                                    <th>Shop</th>
                                    <th>Actual (£)</th>
                                    <th>Budget (£)</th>
                                    <th>Δ vs Budget</th>
                                    <th>Last Year (£)</th>
                                    <th>Δ vs Last Year</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td class="text-center">ANGO</td>
                                    <td class="text-right">£16,516</td>
                                    <td class="text-right">£17,280</td>
                                    <td class="text-right text-red">–4.4%</td>
                                    <td class="text-right">£16,963</td>
                                    <td class="text-right text-red">–2.6%</td>
                                </tr>
                                <tr>
                                    <td class="text-center">CLAC</td>
                                    <td class="text-right">£27,196</td>
                                    <td class="text-right">£26,672</td>
                                    <td class="text-right text-green">+2.0%</td>
                                    <td class="text-right">£25,949</td>
                                    <td class="text-right text-green">+4.8%</td>
                                </tr>
                                <tr>
                                    <td class="text-center">COLC</td>
                                    <td class="text-right">£13,458</td>
                                    <td class="text-right">£13,737</td>
                                    <td class="text-right text-red">–2.0%</td>
                                    <td class="text-right">£12,531</td>
                                    <td class="text-right text-green">+7.4%</td>
                                </tr>
                                <tr>
                                    <td class="text-center">DOVE</td>
                                    <td class="text-right">£22,458</td>
                                    <td class="text-right">£22,975</td>
                                    <td class="text-right text-red">–2.3%</td>
                                    <td class="text-right">£20,974</td>
                                    <td class="text-right text-green">+7.1%</td>
                                </tr>
                                <tr>
                                    <td class="text-center">FELI</td>
                                    <td class="text-right">£23,035</td>
                                    <td class="text-right">£21,774</td>
                                    <td class="text-right text-green">+5.8%</td>
                                    <td class="text-right">£15,920</td>
                                    <td class="text-right text-green">+44.7%</td>
                                </tr>
                                <tr>
                                    <td class="text-center">FRAM</td>
                                    <td class="text-right">£21,671</td>
                                    <td class="text-right">£23,268</td>
                                    <td class="text-right text-red">–6.9%</td>
                                    <td class="text-right">£22,982</td>
                                    <td class="text-right text-red">–5.7%</td>
                                </tr>
                                <tr>
                                    <td class="text-center">FRIN</td>
                                    <td class="text-right">£23,754</td>
                                    <td class="text-right">£17,989</td>
                                    <td class="text-right text-green">+32.0%</td>
                                    <td class="text-right">£17,748</td>
                                    <td class="text-right text-green">+33.8%</td>
                                </tr>
                                <tr>
                                    <td class="text-center">HADL</td>
                                    <td class="text-right">£33,566</td>
                                    <td class="text-right">£32,773</td>
                                    <td class="text-right text-green">+2.4%</td>
                                    <td class="text-right">£33,918</td>
                                    <td class="text-right text-red">–1.0%</td>
                                </tr>
                                <tr>
                                    <td class="text-center">HALS</td>
                                    <td class="text-right">£12,431</td>
                                    <td class="text-right">£14,183</td>
                                    <td class="text-right text-red">–12.4%</td>
                                    <td class="text-right">£14,083</td>
                                    <td class="text-right text-red">–11.7%</td>
                                </tr>
                                <tr>
                                    <td class="text-center">IPSW</td>
                                    <td class="text-right">£11,992</td>
                                    <td class="text-right">£13,361</td>
                                    <td class="text-right text-red">–10.2%</td>
                                    <td class="text-right">£12,620</td>
                                    <td class="text-right text-red">–5.0%</td>
                                </tr>
                                <tr>
                                    <td class="text-center">LEIS</td>
                                    <td class="text-right">£14,649</td>
                                    <td class="text-right">£16,601</td>
                                    <td class="text-right text-red">–11.8%</td>
                                    <td class="text-right">£15,634</td>
                                    <td class="text-right text-red">–6.3%</td>
                                </tr>
                                <tr>
                                    <td class="text-center">MERE</td>
                                    <td class="text-right">£14,557</td>
                                    <td class="text-right">£15,472</td>
                                    <td class="text-right text-red">–5.9%</td>
                                    <td class="text-right">£15,030</td>
                                    <td class="text-right text-red">–3.1%</td>
                                </tr>
                                <tr>
                                    <td class="text-center">SAXM</td>
                                    <td class="text-right">£26,417</td>
                                    <td class="text-right">£25,624</td>
                                    <td class="text-right text-green">+3.1%</td>
                                    <td class="text-right">£24,936</td>
                                    <td class="text-right text-green">+5.9%</td>
                                </tr>
                                <tr>
                                    <td class="text-center">SUDB</td>
                                    <td class="text-right">£15,081</td>
                                    <td class="text-right">£14,690</td>
                                    <td class="text-right text-green">+2.7%</td>
                                    <td class="text-right">£14,327</td>
                                    <td class="text-right text-green">+5.3%</td>
                                </tr>
                                <tr>
                                    <td class="text-center">WOOD</td>
                                    <td class="text-right">£31,141</td>
                                    <td class="text-right">£33,837</td>
                                    <td class="text-right text-red">–8.0%</td>
                                    <td class="text-right">£31,718</td>
                                    <td class="text-right text-red">–1.8%</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    
                    <div class="mt-4 bg-purple-700 rounded-lg p-3">
                        <div class="flex items-center">
                            <span class="text-xl mr-2">📌</span>
                            <h3 class="font-medium">Key Takeaways</h3>
                        </div>
                        <div class="grid grid-cols-1 md:grid-cols-2 gap-3 mt-2">
                            <div class="bg-purple-800 p-2 rounded-md">
                                <div class="flex items-center">
                                    <span class="text-green-400 mr-2"></span>
                                    <span class="font-medium">Top Performers:</span>
                                </div>
                                <div class="text-sm mt-1">
                                    FRIN (+32.0% vs budget), FELI (+44.7% vs LY), CLAC (+4.8% vs LY)
                                </div>
                            </div>
                            <div class="bg-purple-800 p-2 rounded-md">
                                <div class="flex items-center">
                                    <span class="text-red-400 mr-2"></span>
                                    <span class="font-medium">Needs Attention:</span>
                                </div>
                                <div class="text-sm mt-1">
                                    HALS (-12.4% vs budget), LEIS (-11.8% vs budget), IPSW (-10.2% vs budget)
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- Footer -->
        <div class="mt-6 pt-4 border-t border-purple-600 text-center text-purple-300 text-xs">
            <p>© 2025 East Anglia's Children's Hospices</p>
            <p>
                <a href="#" class="text-purple-200 hover:text-white underline">www.each.org.uk</a>
            </p>
        </div>
    </div>

    <script>
        // Sample data
        const BRAND_CATEGORIES = {
            ladies: {
                name: 'Ladies (Sept 2023)',
                emoji: '👗',
                brands: [
                    'Atmosphere',
                    'BHS',
                    'Bon Marche',
                    'Cherokee',
                    'Damart',
                    'Evie',
                    'EWM',
                    'F & F',
                    'George',
                    'M & Co',
                    'New Look',
                    'Nutmeg',
                    'Papaya',
                    'Primark',
                    'Select',
                    'Shein',
                    'TU',
                    'ASOS'
                ],
                prices: {
                    'Blouses/Shirts (Basic)': 3.75,
                    'Blouses/Shirts (Standard)': 4.5,
                    'Blouses/Shirts (Standard+)': 4.95,
                    'T Shirts (Basic)': 2.5,
                    'T Shirts (Standard)': 3.75,
                    'T Shirts (Standard+)': 3.95
                }
            },
            ladiesGold: {
                name: 'Ladies Gold (Sept 2023)',
                emoji: '✨',
                brands: [
                    'Animal',
                    'Apricot',
                    'Billabong',
                    'FatFace',
                    'GAP',
                    'Mango',
                    'Oasis'
                ],
                prices: {
                    'Blouses/Shirts (Gold G1)': '£7.50 - £10.00',
                    'Blouses/Shirts (Gold G2)': '£10.00 - £15.00',
                    'Blouses/Shirts (Gold G3)': '£15.00+'
                }
            },
            mens: {
                name: "Men's (Sept 2023)",
                emoji: '👔',
                brands: [
                    'George',
                    'F&F',
                    'H&M Men',
                    'Next',
                    'River Island'
                ],
                prices: {
                    'Shirts Short (Basic)': 3.5,
                    'Shirts Short (Standard)': 4.5,
                    'Shirts Short (Standard+)': 4.75
                }
            }
        };

        // Convert categories to an array for easier filtering
        const categoryArray = Object.entries(BRAND_CATEGORIES).map(([key, category]) => ({
            id: key,
            ...category
        }));

        // DOM elements
        const categoriesTab = document.getElementById('categoriesTab');
        const sweTab = document.getElementById('sweTab');
        const ebayTab = document.getElementById('ebayTab');
        const doNotSellTab = document.getElementById('doNotSellTab');
        const performanceTab = document.getElementById('performanceTab');
        
        const categoriesSection = document.getElementById('categoriesSection');
        const sweSection = document.getElementById('sweSection');
        const ebaySection = document.getElementById('ebaySection');
        const doNotSellSection = document.getElementById('doNotSellSection');
        const performanceSection = document.getElementById('performanceSection');
        
        const searchInput = document.getElementById('searchInput');
        const searchInfo = document.getElementById('searchInfo');
        const categoriesContent = document.getElementById('categoriesContent');
        
        // Tab switching
        function showSection(section) {
            // Hide all sections
            categoriesSection.classList.add('hidden');
            sweSection.classList.add('hidden');
            ebaySection.classList.add('hidden');
            doNotSellSection.classList.add('hidden');
            performanceSection.classList.add('hidden');
            
            // Remove active state from all tabs
            categoriesTab.classList.remove('ring-2', 'ring-white');
            sweTab.classList.remove('ring-2', 'ring-white');
            ebayTab.classList.remove('ring-2', 'ring-white');
            doNotSellTab.classList.remove('ring-2', 'ring-white');
            performanceTab.classList.remove('ring-2', 'ring-white');
            
            // Show selected section and set active tab
            switch(section) {
                case 'categories':
                    categoriesSection.classList.remove('hidden');
                    categoriesTab.classList.add('ring-2', 'ring-white');
                    break;
                case 'swe':
                    sweSection.classList.remove('hidden');
                    sweTab.classList.add('ring-2', 'ring-white');
                    break;
                case 'ebay':
                    ebaySection.classList.remove('hidden');
                    ebayTab.classList.add('ring-2', 'ring-white');
                    break;
                case 'doNotSell':
                    doNotSellSection.classList.remove('hidden');
                    doNotSellTab.classList.add('ring-2', 'ring-white');
                    break;
                case 'performance':
                    performanceSection.classList.remove('hidden');
                    performanceTab.classList.add('ring-2', 'ring-white');
                    break;
            }
        }

        // Event listeners for tabs
        categoriesTab.addEventListener('click', () => showSection('categories'));
        sweTab.addEventListener('click', () => showSection('swe'));
        ebayTab.addEventListener('click', () => showSection('ebay'));
        doNotSellTab.addEventListener('click', () => showSection('doNotSell'));
        performanceTab.addEventListener('click', () => showSection('performance'));

        // Search functionality
        function renderPrice(price) {
            return typeof price === 'number' ? ${price.toFixed(2)}` : price;
        }

        function groupPrices(prices) {
            const groups = {};
            Object.entries(prices).forEach(([key, value]) => {
                const baseType = key.split(' (')[0];
                if (!groups[baseType]) groups[baseType] = [];
                groups[baseType].push({ key, value });
            });
            return groups;
        }

        function renderCategoryCard(category) {
            const priceGroups = groupPrices(category.prices);
            
            return `
                <div class="bg-purple-600 rounded-lg p-4 space-y-3">
                    <div class="flex items-center justify-between">
                        <div class="flex items-center">
                            <span class="text-2xl mr-2">${category.emoji}</span>
                            <h3 class="text-lg font-semibold">${category.name}</h3>
                        </div>
                    </div>

                    <div class="text-sm text-purple-200">
                        <div class="font-medium mb-1">Brands:</div>
                        <div class="max-h-32 overflow-y-auto scrollbar-hide">
                            ${category.brands.map(brand => `
                                <span class="inline-block bg-purple-700 rounded-full px-2 py-1 text-xs mr-1 mb-1">
                                    ${brand}
                                </span>
                            `).join('')}
                        </div>
                    </div>

                    <div class="grid grid-cols-1 md:grid-cols-2 gap-2">
                        ${Object.entries(priceGroups).slice(0, 4).map(([groupName, items]) => `
                            <div class="bg-purple-700 bg-opacity-50 p-2 rounded-md">
                                <div class="text-sm text-purple-200 font-medium mb-1">
                                    ${groupName}
                                </div>
                                ${items.slice(0, 2).map(({ key, value }) => {
                                    const splitKey = key.split(' (');
                                    const detailPart = splitKey[1] ? splitKey[1].replace(')', '') : '';
                                    return `
                                        <div class="text-sm flex justify-between">
                                            <span class="text-purple-200">${detailPart}</span>
                                            <span>${renderPrice(value)}</span>
                                        </div>
                                    `;
                                }).join('')}
                                ${items.length > 2 ? `
                                    <div class="text-purple-300 text-xs mt-1">
                                        + ${items.length - 2} more
                                    </div>
                                ` : ''}
                            </div>
                        `).join('')}
                    </div>
                </div>
            `;
        }

        function handleSearch() {
            const searchQuery = searchInput.value.trim().toLowerCase();
            
            if (!searchQuery) {
                searchInfo.classList.add('hidden');
                categoriesContent.innerHTML = `
                    <div class="bg-purple-600 rounded-lg p-4 text-center space-y-4">
                        <div class="flex justify-center">
                            <span class="text-5xl">🏷️</span>
                        </div>
                        <h2 class="text-xl font-semibold">Welcome to the Pricing Guide</h2>
                        <p>Search for brand names or categories to find pricing information.</p>
                        <div class="bg-purple-700 rounded-lg p-3 text-sm">
                            <p class="font-medium mb-2">Search suggestions:</p>
                            <div class="flex flex-wrap gap-2 justify-center">
                                <button class="search-suggestion cursor-pointer bg-purple-500 hover:bg-purple-400 transition-colors rounded-full px-3 py-1" data-query="Ladies">Ladies</button>
                                <button class="search-suggestion cursor-pointer bg-purple-500 hover:bg-purple-400 transition-colors rounded-full px-3 py-1" data-query="Gold">Gold</button>
                                <button class="search-suggestion cursor-pointer bg-purple-500 hover:bg-purple-400 transition-colors rounded-full px-3 py-1" data-query="Men's">Men's</button>
                            </div>
                        </div>
                    </div>
                `;
                
                // Reattach event listeners to suggestion buttons
                document.querySelectorAll('.search-suggestion').forEach(button => {
                    button.addEventListener('click', (e) => {
                        searchInput.value = e.target.dataset.query;
                        handleSearch();
                    });
                });
                
                return;
            }
            
            const filteredResults = categoryArray.filter((category) => {
                const nameMatches = category.name.toLowerCase().includes(searchQuery);
                const brandMatches = category.brands.some(brand => 
                    brand.toLowerCase().includes(searchQuery)
                );
                return nameMatches || brandMatches;
            });
            
            searchInfo.classList.remove('hidden');
            searchInfo.innerHTML = `
                <p>Searching for: ${searchQuery}</p>
                <p>Results: ${filteredResults.length}</p>
            `;
            
            if (filteredResults.length === 0) {
                categoriesContent.innerHTML = `
                    <div class="bg-purple-600 rounded-lg p-4 text-center">
                        <p>No categories or brands match your search.</p>
                    </div>
                `;
            } else {
                categoriesContent.innerHTML = filteredResults.slice(0, 2).map(category => 
                    renderCategoryCard(category)
                ).join('');
            }
        }

        // Event listeners
        searchInput.addEventListener('input', handleSearch);
        
        // Initialize suggestion buttons
        document.querySelectorAll('.search-suggestion').forEach(button => {
            button.addEventListener('click', (e) => {
                searchInput.value = e.target.dataset.query;
                handleSearch();
            });
        });

        // Settings button
        document.getElementById('settingsBtn').addEventListener('click', () => {
            alert('Settings functionality would go here');
        });

        // Initialize with categories section visible
        showSection('categories');
    </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=Stevensayer7/time" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>