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46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>VOGUE | Trendy Fashion</title>
  <script src="https://cdn.tailwindcss.com"></script>
  <script src="https://unpkg.com/react@18/umd/react.development.js"></script>
  <script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
  <script src="https://unpkg.com/@babel/standalone/babel.min.js"></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=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');
    
    :root {
      --primary: #111827;
      --secondary: #f43f5e;
      --accent: #e5e7eb;
    }
    
    body {
      font-family: 'Montserrat', sans-serif;
      background-color: #f9fafb;
    }
    
    .title-font {
      font-family: 'Playfair Display', serif;
    }
    
    .hero-gradient {
      background: linear-gradient(135deg, rgba(17,24,39,0.9) 0%, rgba(244,63,94,0.7) 100%);
    }
    
    .product-card:hover .product-actions {
      opacity: 1;
      transform: translateY(0);
    }
    
    .product-actions {
      transition: all 0.3s ease;
      opacity: 0;
      transform: translateY(10px);
    }
    
    .nav-link::after {
      content: '';
      display: block;
      width: 0;
      height: 2px;
      background: var(--secondary);
      transition: width 0.3s;
    }
    
    .nav-link:hover::after {
      width: 100%;
    }
    
    .dropdown:hover .dropdown-menu {
      display: block;
    }
    
    .cart-item-enter {
      opacity: 0;
      transform: translateX(-100px);
    }
    
    .cart-item-enter-active {
      opacity: 1;
      transform: translateX(0);
      transition: all 300ms ease-in;
    }
    
    .cart-item-exit {
      opacity: 1;
      transform: translateX(0);
    }
    
    .cart-item-exit-active {
      opacity: 0;
      transform: translateX(100px);
      transition: all 300ms ease-in;
    }
  </style>
</head>
<body>
  <div id="root"></div>

  <script type="text/babel">
    const { useState, useEffect } = React;

    // App Component
    function App() {
      const [currentPage, setCurrentPage] = useState('home');
      const [cartItems, setCartItems] = useState([]);
      const [isCartOpen, setIsCartOpen] = useState(false);
      const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
      const [searchQuery, setSearchQuery] = useState('');
      
      // Sample products data
      const products = [
        { id: 1, name: 'Elegant Evening Dress', price: 129.99, category: 'dresses', image: 'https://images.unsplash.com/photo-1539109136881-3be0616acf4b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80', featured: true },
        { id: 2, name: 'Classic Denim Jacket', price: 89.99, category: 'jackets', image: 'https://images.unsplash.com/photo-1591047139829-d91aecb6caea?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=736&q=80', featured: true },
        { id: 3, name: 'Casual Summer T-Shirt', price: 29.99, category: 'tops', image: 'https://images.unsplash.com/photo-1527719327859-c6ce80353573?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=684&q=80' },
        { id: 4, name: 'Slim Fit Jeans', price: 59.99, category: 'pants', image: 'https://images.unsplash.com/photo-1473966968600-fa801b869a1a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80' },
        { id: 5, name: 'Leather Crossbody Bag', price: 79.99, category: 'accessories', image: 'https://images.unsplash.com/photo-1590874103328-eac38a683ce7?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=738&q=80', featured: true },
        { id: 6, name: 'Comfy Sneakers', price: 99.99, category: 'shoes', image: 'https://images.unsplash.com/photo-1600269452121-1f5d1415f5b1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=715&q=80' },
        { id: 7, name: 'Silk Blouse', price: 49.99, category: 'tops', image: 'https://images.unsplash.com/photo-1581044777550-4cfa60707c03?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=686&q=80' },
        { id: 8, name: 'Wool Winter Coat', price: 199.99, category: 'jackets', image: 'https://images.unsplash.com/photo-1551232864-3f0890e580d9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80' },
      ];
      
      const featuredProducts = products.filter(product => product.featured);
      
      // Add to cart function
      const addToCart = (product) => {
        setCartItems(prevItems => {
          const existingItem = prevItems.find(item => item.id === product.id);
          if (existingItem) {
            return prevItems.map(item =>
              item.id === product.id ? { ...item, quantity: item.quantity + 1 } : item
            );
          }
          return [...prevItems, { ...product, quantity: 1 }];
        });
      };
      
      // Remove from cart function
      const removeFromCart = (productId) => {
        setCartItems(prevItems => prevItems.filter(item => item.id !== productId));
      };
      
      // Update quantity function
      const updateQuantity = (productId, newQuantity) => {
        if (newQuantity < 1) return;
        setCartItems(prevItems =>
          prevItems.map(item =>
            item.id === productId ? { ...item, quantity: newQuantity } : item
          )
        );
      };
      
      // Calculate total
      const cartTotal = cartItems.reduce(
        (total, item) => total + item.price * item.quantity,
        0
      );
      
      // Filter products based on search query
      const filteredProducts = products.filter(product =>
        product.name.toLowerCase().includes(searchQuery.toLowerCase())
      );
      
      // Render page based on currentPage state
      const renderPage = () => {
        switch (currentPage) {
          case 'home':
            return <HomePage products={featuredProducts} addToCart={addToCart} />;
          case 'shop':
            return <ShopPage products={filteredProducts} addToCart={addToCart} searchQuery={searchQuery} setSearchQuery={setSearchQuery} />;
          case 'about':
            return <AboutPage />;
          case 'contact':
            return <ContactPage />;
          case 'cart':
            return <CartPage cartItems={cartItems} removeFromCart={removeFromCart} updateQuantity={updateQuantity} cartTotal={cartTotal} />;
          default:
            return <HomePage products={featuredProducts} addToCart={addToCart} />;
        }
      };
      
      return (
        <div className="min-h-screen flex flex-col">
          {/* Navigation */}
          <Navigation 
            currentPage={currentPage} 
            setCurrentPage={setCurrentPage} 
            cartItems={cartItems} 
            setIsCartOpen={setIsCartOpen} 
            isMobileMenuOpen={isMobileMenuOpen}
            setIsMobileMenuOpen={setIsMobileMenuOpen}
          />
          
          {/* Main Content */}
          <main className="flex-grow">
            {renderPage()}
          </main>
          
          {/* Footer */}
          <Footer setCurrentPage={setCurrentPage} />
          
          {/* Shopping Cart Sidebar */}
          {isCartOpen && (
            <CartSidebar 
              cartItems={cartItems} 
              removeFromCart={removeFromCart} 
              updateQuantity={updateQuantity} 
              cartTotal={cartTotal}
              setIsCartOpen={setIsCartOpen}
              setCurrentPage={setCurrentPage}
            />
          )}
        </div>
      );
    }
    
    // Navigation Component
    function Navigation({ currentPage, setCurrentPage, cartItems, setIsCartOpen, isMobileMenuOpen, setIsMobileMenuOpen }) {
      const cartItemCount = cartItems.reduce((total, item) => total + item.quantity, 0);
      
      return (
        <header className="bg-white shadow-sm sticky top-0 z-50">
          <div className="container mx-auto px-4 py-4">
            <div className="flex justify-between items-center">
              {/* Logo */}
              <div className="flex items-center">
                <button 
                  onClick={() => setCurrentPage('home')}
                  className="text-2xl font-bold title-font text-gray-900 hover:text-rose-500 transition-colors"
                >
                  VOGUE
                </button>
              </div>
              
              {/* Desktop Navigation */}
              <nav className="hidden md:flex space-x-8">
                <button 
                  onClick={() => setCurrentPage('home')}
                  className={`nav-link py-2 px-1 font-medium ${currentPage === 'home' ? 'text-rose-500' : 'text-gray-700 hover:text-gray-900'}`}
                >
                  Home
                </button>
                
                <div className="dropdown relative">
                  <button 
                    className={`nav-link py-2 px-1 font-medium ${currentPage === 'shop' ? 'text-rose-500' : 'text-gray-700 hover:text-gray-900'}`}
                  >
                    Shop
                  </button>
                  <div className="dropdown-menu absolute hidden mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-50">
                    <button 
                      onClick={() => setCurrentPage('shop')}
                      className="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 w-full text-left"
                    >
                      All Products
                    </button>
                    <button className="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 w-full text-left">
                      New Arrivals
                    </button>
                    <button className="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 w-full text-left">
                      Best Sellers
                    </button>
                  </div>
                </div>
                
                <button 
                  onClick={() => setCurrentPage('about')}
                  className={`nav-link py-2 px-1 font-medium ${currentPage === 'about' ? 'text-rose-500' : 'text-gray-700 hover:text-gray-900'}`}
                >
                  About
                </button>
                
                <button 
                  onClick={() => setCurrentPage('contact')}
                  className={`nav-link py-2 px-1 font-medium ${currentPage === 'contact' ? 'text-rose-500' : 'text-gray-700 hover:text-gray-900'}`}
                >
                  Contact
                </button>
              </nav>
              
              {/* Mobile Menu Button */}
              <div className="md:hidden flex items-center">
                <button 
                  onClick={() => setIsCartOpen(true)}
                  className="p-2 text-gray-700 hover:text-rose-500 relative"
                >
                  <i className="fas fa-shopping-bag text-xl"></i>
                  {cartItemCount > 0 && (
                    <span className="absolute -top-1 -right-1 bg-rose-500 text-white text-xs font-bold rounded-full h-5 w-5 flex items-center justify-center">
                      {cartItemCount}
                    </span>
                  )}
                </button>
                <button 
                  onClick={() => setIsMobileMenuOpen(!isMobileMenuOpen)}
                  className="p-2 text-gray-700 hover:text-rose-500 ml-2"
                >
                  <i className={`fas ${isMobileMenuOpen ? 'fa-times' : 'fa-bars'} text-xl`}></i>
                </button>
              </div>
              
              {/* Desktop Icons */}
              <div className="hidden md:flex items-center space-x-4">
                <button className="p-2 text-gray-700 hover:text-rose-500">
                  <i className="fas fa-search text-xl"></i>
                </button>
                <button className="p-2 text-gray-700 hover:text-rose-500">
                  <i className="fas fa-user text-xl"></i>
                </button>
                <button 
                  onClick={() => setIsCartOpen(true)}
                  className="p-2 text-gray-700 hover:text-rose-500 relative"
                >
                  <i className="fas fa-shopping-bag text-xl"></i>
                  {cartItemCount > 0 && (
                    <span className="absolute -top-1 -right-1 bg-rose-500 text-white text-xs font-bold rounded-full h-5 w-5 flex items-center justify-center">
                      {cartItemCount}
                    </span>
                  )}
                </button>
              </div>
            </div>
            
            {/* Mobile Menu */}
            {isMobileMenuOpen && (
              <div className="md:hidden mt-4 pb-4">
                <div className="flex flex-col space-y-2">
                  <button 
                    onClick={() => {
                      setCurrentPage('home');
                      setIsMobileMenuOpen(false);
                    }}
                    className={`py-2 px-4 font-medium ${currentPage === 'home' ? 'text-rose-500' : 'text-gray-700'}`}
                  >
                    Home
                  </button>
                  <button 
                    onClick={() => {
                      setCurrentPage('shop');
                      setIsMobileMenuOpen(false);
                    }}
                    className={`py-2 px-4 font-medium ${currentPage === 'shop' ? 'text-rose-500' : 'text-gray-700'}`}
                  >
                    Shop
                  </button>
                  <button 
                    onClick={() => {
                      setCurrentPage('about');
                      setIsMobileMenuOpen(false);
                    }}
                    className={`py-2 px-4 font-medium ${currentPage === 'about' ? 'text-rose-500' : 'text-gray-700'}`}
                  >
                    About
                  </button>
                  <button 
                    onClick={() => {
                      setCurrentPage('contact');
                      setIsMobileMenuOpen(false);
                    }}
                    className={`py-2 px-4 font-medium ${currentPage === 'contact' ? 'text-rose-500' : 'text-gray-700'}`}
                  >
                    Contact
                  </button>
                </div>
              </div>
            )}
          </div>
        </header>
      );
    }
    
    // Home Page Component
    function HomePage({ products, addToCart }) {
      return (
        <div>
          {/* Hero Section */}
          <section className="relative h-screen flex items-center justify-center bg-gray-900 overflow-hidden">
            <div className="absolute inset-0 hero-gradient"></div>
            <div className="absolute inset-0 bg-[url('https://images.unsplash.com/photo-1483985988355-763728e1935b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80')] bg-cover bg-center opacity-30"></div>
            
            <div className="container mx-auto px-4 relative z-10 text-center">
              <h1 className="text-4xl md:text-6xl lg:text-7xl font-bold text-white title-font mb-6">
                Discover Your Style
              </h1>
              <p className="text-xl md:text-2xl text-gray-200 mb-8 max-w-3xl mx-auto">
                Elevate your wardrobe with our latest collection of trendy and timeless fashion pieces.
              </p>
              <button 
                onClick={() => {}}
                className="bg-rose-500 hover:bg-rose-600 text-white font-bold py-3 px-8 rounded-full text-lg transition-colors shadow-lg"
              >
                Shop Now
              </button>
            </div>
            
            <div className="absolute bottom-10 left-0 right-0 flex justify-center">
              <a href="#featured" className="text-white animate-bounce">
                <i className="fas fa-chevron-down text-2xl"></i>
              </a>
            </div>
          </section>
          
          {/* Featured Products */}
          <section id="featured" className="py-16 bg-white">
            <div className="container mx-auto px-4">
              <div className="text-center mb-12">
                <h2 className="text-3xl md:text-4xl font-bold text-gray-900 title-font mb-4">
                  Featured Collection
                </h2>
                <p className="text-gray-600 max-w-2xl mx-auto">
                  Our carefully curated selection of this season's must-have pieces
                </p>
              </div>
              
              <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
                {products.map(product => (
                  <ProductCard 
                    key={product.id} 
                    product={product} 
                    addToCart={addToCart} 
                  />
                ))}
              </div>
              
              <div className="text-center mt-12">
                <button 
                  onClick={() => {}}
                  className="border-2 border-gray-900 hover:bg-gray-900 hover:text-white text-gray-900 font-bold py-3 px-8 rounded-full text-lg transition-colors"
                >
                  View All Products
                </button>
              </div>
            </div>
          </section>
          
          {/* Banner Section */}
          <section className="py-16 bg-gray-100">
            <div className="container mx-auto px-4">
              <div className="bg-white rounded-xl shadow-lg overflow-hidden">
                <div className="md:flex">
                  <div className="md:w-1/2 p-12 flex flex-col justify-center">
                    <h2 className="text-3xl font-bold text-gray-900 title-font mb-4">
                      Summer Sale
                    </h2>
                    <p className="text-gray-600 mb-6">
                      Up to 50% off on selected items. Limited time offer. Don't miss out!
                    </p>
                    <button 
                      onClick={() => {}}
                      className="bg-gray-900 hover:bg-rose-500 text-white font-bold py-3 px-8 rounded-full text-lg transition-colors self-start"
                    >
                      Shop Sale
                    </button>
                  </div>
                  <div className="md:w-1/2">
                    <img 
                      src="https://images.unsplash.com/photo-1551232864-3f0890e580d9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80" 
                      alt="Summer Sale" 
                      className="w-full h-full object-cover"
                    />
                  </div>
                </div>
              </div>
            </div>
          </section>
          
          {/* Categories Section */}
          <section className="py-16 bg-white">
            <div className="container mx-auto px-4">
              <div className="text-center mb-12">
                <h2 className="text-3xl md:text-4xl font-bold text-gray-900 title-font mb-4">
                  Shop by Category
                </h2>
                <p className="text-gray-600 max-w-2xl mx-auto">
                  Find your perfect style in our diverse range of categories
                </p>
              </div>
              
              <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6">
                <CategoryCard 
                  title="Dresses" 
                  image="https://images.unsplash.com/photo-1539109136881-3be0616acf4b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80" 
                />
                <CategoryCard 
                  title="Tops" 
                  image="https://images.unsplash.com/photo-1527719327859-c6ce80353573?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=684&q=80" 
                />
                <CategoryCard 
                  title="Jackets" 
                  image="https://images.unsplash.com/photo-1591047139829-d91aecb6caea?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=736&q=80" 
                />
                <CategoryCard 
                  title="Accessories" 
                  image="https://images.unsplash.com/photo-1590874103328-eac38a683ce7?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=738&q=80" 
                />
              </div>
            </div>
          </section>
          
          {/* Testimonials */}
          <section className="py-16 bg-gray-100">
            <div className="container mx-auto px-4">
              <div className="text-center mb-12">
                <h2 className="text-3xl md:text-4xl font-bold text-gray-900 title-font mb-4">
                  What Our Customers Say
                </h2>
                <p className="text-gray-600 max-w-2xl mx-auto">
                  Don't just take our word for it - hear from our satisfied customers
                </p>
              </div>
              
              <div className="grid grid-cols-1 md:grid-cols-3 gap-8">
                <TestimonialCard 
                  quote="The quality of the dress I purchased exceeded my expectations. It's now my favorite piece in my wardrobe!" 
                  author="Sarah Johnson" 
                  role="Fashion Blogger" 
                />
                <TestimonialCard 
                  quote="Fast shipping and excellent customer service. I'll definitely be shopping here again." 
                  author="Michael Chen" 
                  role="Stylist" 
                />
                <TestimonialCard 
                  quote="I love the unique designs and attention to detail. These pieces always get me compliments!" 
                  author="Emma Rodriguez" 
                  role="Influencer" 
                />
              </div>
            </div>
          </section>
          
          {/* Newsletter */}
          <section className="py-16 bg-gray-900 text-white">
            <div className="container mx-auto px-4">
              <div className="max-w-4xl mx-auto text-center">
                <h2 className="text-3xl md:text-4xl font-bold title-font mb-4">
                  Join Our Newsletter
                </h2>
                <p className="text-gray-300 mb-8 max-w-2xl mx-auto">
                  Subscribe to get exclusive offers, styling tips, and early access to new collections
                </p>
                
                <div className="flex flex-col sm:flex-row gap-4 max-w-md mx-auto">
                  <input 
                    type="email" 
                    placeholder="Your email address" 
                    className="flex-grow px-4 py-3 rounded-full text-gray-900 focus:outline-none focus:ring-2 focus:ring-rose-500"
                  />
                  <button className="bg-rose-500 hover:bg-rose-600 font-bold py-3 px-6 rounded-full transition-colors">
                    Subscribe
                  </button>
                </div>
              </div>
            </div>
          </section>
        </div>
      );
    }
    
    // Shop Page Component
    function ShopPage({ products, addToCart, searchQuery, setSearchQuery }) {
      const [selectedCategory, setSelectedCategory] = useState('all');
      
      const categories = [
        { id: 'all', name: 'All Products' },
        { id: 'dresses', name: 'Dresses' },
        { id: 'tops', name: 'Tops' },
        { id: 'jackets', name: 'Jackets' },
        { id: 'pants', name: 'Pants' },
        { id: 'shoes', name: 'Shoes' },
        { id: 'accessories', name: 'Accessories' },
      ];
      
      const filteredProducts = selectedCategory === 'all' 
        ? products 
        : products.filter(product => product.category === selectedCategory);
      
      return (
        <div className="py-12 bg-white">
          <div className="container mx-auto px-4">
            <div className="flex flex-col md:flex-row justify-between items-start md:items-center mb-8">
              <h1 className="text-3xl md:text-4xl font-bold text-gray-900 title-font mb-4 md:mb-0">
                Our Collection
              </h1>
              
              <div className="w-full md:w-auto">
                <div className="relative">
                  <input 
                    type="text" 
                    placeholder="Search products..." 
                    value={searchQuery}
                    onChange={(e) => setSearchQuery(e.target.value)}
                    className="w-full md:w-64 px-4 py-2 border border-gray-300 rounded-full focus:outline-none focus:ring-2 focus:ring-rose-500 focus:border-transparent"
                  />
                  <i className="fas fa-search absolute right-3 top-3 text-gray-400"></i>
                </div>
              </div>
            </div>
            
            <div className="flex flex-col md:flex-row gap-8">
              {/* Filters */}
              <div className="md:w-1/4">
                <div className="bg-gray-50 p-6 rounded-lg shadow-sm">
                  <h3 className="font-bold text-lg text-gray-900 mb-4">Categories</h3>
                  <ul className="space-y-2">
                    {categories.map(category => (
                      <li key={category.id}>
                        <button 
                          onClick={() => setSelectedCategory(category.id)}
                          className={`w-full text-left px-3 py-2 rounded-md ${selectedCategory === category.id ? 'bg-rose-100 text-rose-600' : 'text-gray-700 hover:bg-gray-100'}`}
                        >
                          {category.name}
                        </button>
                      </li>
                    ))}
                  </ul>
                  
                  <h3 className="font-bold text-lg text-gray-900 mt-6 mb-4">Price</h3>
                  <div className="space-y-4">
                    <div className="flex items-center">
                      <input type="checkbox" id="price1" className="h-4 w-4 text-rose-500 focus:ring-rose-500 border-gray-300 rounded" />
                      <label htmlFor="price1" className="ml-2 text-gray-700">$0 - $50</label>
                    </div>
                    <div className="flex items-center">
                      <input type="checkbox" id="price2" className="h-4 w-4 text-rose-500 focus:ring-rose-500 border-gray-300 rounded" />
                      <label htmlFor="price2" className="ml-2 text-gray-700">$50 - $100</label>
                    </div>
                    <div className="flex items-center">
                      <input type="checkbox" id="price3" className="h-4 w-4 text-rose-500 focus:ring-rose-500 border-gray-300 rounded" />
                      <label htmlFor="price3" className="ml-2 text-gray-700">$100+</label>
                    </div>
                  </div>
                  
                  <h3 className="font-bold text-lg text-gray-900 mt-6 mb-4">Size</h3>
                  <div className="grid grid-cols-3 gap-2">
                    {['XS', 'S', 'M', 'L', 'XL', 'XXL'].map(size => (
                      <button 
                        key={size}
                        className="border border-gray-300 hover:border-rose-500 hover:text-rose-500 text-gray-700 py-1 px-3 rounded-md text-center"
                      >
                        {size}
                      </button>
                    ))}
                  </div>
                  
                  <button className="mt-6 w-full bg-rose-500 hover:bg-rose-600 text-white font-bold py-2 px-4 rounded-md transition-colors">
                    Apply Filters
                  </button>
                </div>
              </div>
              
              {/* Products */}
              <div className="md:w-3/4">
                <div className="flex justify-between items-center mb-6">
                  <p className="text-gray-600">
                    Showing {filteredProducts.length} products
                  </p>
                  <div className="flex items-center">
                    <span className="text-gray-600 mr-2">Sort by:</span>
                    <select className="border border-gray-300 rounded-md px-3 py-1 focus:outline-none focus:ring-2 focus:ring-rose-500 focus:border-transparent">
                      <option>Featured</option>
                      <option>Price: Low to High</option>
                      <option>Price: High to Low</option>
                      <option>Newest</option>
                      <option>Best Selling</option>
                    </select>
                  </div>
                </div>
                
                {filteredProducts.length > 0 ? (
                  <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
                    {filteredProducts.map(product => (
                      <ProductCard 
                        key={product.id} 
                        product={product} 
                        addToCart={addToCart} 
                      />
                    ))}
                  </div>
                ) : (
                  <div className="text-center py-12">
                    <i className="fas fa-search text-5xl text-gray-300 mb-4"></i>
                    <h3 className="text-xl font-bold text-gray-700 mb-2">No products found</h3>
                    <p className="text-gray-500">Try adjusting your search or filter criteria</p>
                  </div>
                )}
                
                {/* Pagination */}
                {filteredProducts.length > 0 && (
                  <div className="mt-12 flex justify-center">
                    <nav className="flex items-center space-x-2">
                      <button className="px-3 py-1 rounded-md border border-gray-300 text-gray-500 hover:bg-gray-100">
                        <i className="fas fa-chevron-left"></i>
                      </button>
                      <button className="px-3 py-1 rounded-md bg-rose-500 text-white">1</button>
                      <button className="px-3 py-1 rounded-md border border-gray-300 text-gray-700 hover:bg-gray-100">2</button>
                      <button className="px-3 py-1 rounded-md border border-gray-300 text-gray-700 hover:bg-gray-100">3</button>
                      <span className="px-2 text-gray-500">...</span>
                      <button className="px-3 py-1 rounded-md border border-gray-300 text-gray-700 hover:bg-gray-100">8</button>
                      <button className="px-3 py-1 rounded-md border border-gray-300 text-gray-500 hover:bg-gray-100">
                        <i className="fas fa-chevron-right"></i>
                      </button>
                    </nav>
                  </div>
                )}
              </div>
            </div>
          </div>
        </div>
      );
    }
    
    // About Page Component
    function AboutPage() {
      return (
        <div className="py-16 bg-white">
          <div className="container mx-auto px-4">
            <div className="text-center mb-12">
              <h1 className="text-3xl md:text-4xl font-bold text-gray-900 title-font mb-4">
                Our Story
              </h1>
              <p className="text-gray-600 max-w-3xl mx-auto">
                Discover the passion and dedication behind our brand
              </p>
            </div>
            
            <div className="flex flex-col lg:flex-row gap-12 items-center mb-16">
              <div className="lg:w-1/2">
                <img 
                  src="https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" 
                  alt="Our Team" 
                  className="w-full h-auto rounded-lg shadow-lg"
                />
              </div>
              <div className="lg:w-1/2">
                <h2 className="text-2xl font-bold text-gray-900 mb-6">Who We Are</h2>
                <p className="text-gray-600 mb-4">
                  Founded in 2015, VOGUE began as a small boutique with a big vision: to bring high-quality, 
                  fashion-forward clothing to everyone. Our founder, Alexandra Bennett, started with just 
                  a handful of designs and a passion for sustainable fashion.
                </p>
                <p className="text-gray-600 mb-4">
                  Today, we've grown into a global brand with a commitment to ethical production, 
                  timeless designs, and exceptional customer service. Each piece in our collection 
                  is carefully crafted with attention to detail and a focus on sustainability.
                </p>
                <p className="text-gray-600">
                  We believe fashion should be both beautiful and responsible, which is why we work 
                  with certified factories and use eco-friendly materials whenever possible.
                </p>
              </div>
            </div>
            
            <div className="flex flex-col lg:flex-row-reverse gap-12 items-center mb-16">
              <div className="lg:w-1/2">
                <img 
                  src="https://images.unsplash.com/photo-1521747116042-5a810fda9664?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" 
                  alt="Our Process" 
                  className="w-full h-auto rounded-lg shadow-lg"
                />
              </div>
              <div className="lg:w-1/2">
                <h2 className="text-2xl font-bold text-gray-900 mb-6">Our Process</h2>
                <p className="text-gray-600 mb-4">
                  Every VOGUE piece begins with inspiration from global trends, art, and architecture. 
                  Our design team sketches hundreds of concepts before selecting the best to develop 
                  into prototypes.
                </p>
                <p className="text-gray-600 mb-4">
                  We work with skilled artisans who bring decades of experience to ensure each garment 
                  meets our high standards. From fabric selection to final stitching, every step is 
                  meticulously overseen by our quality control team.
                </p>
                <p className="text-gray-600">
                  Our commitment to slow fashion means we produce in small batches to minimize waste 
                  and ensure each piece receives the attention it deserves.
                </p>
              </div>
            </div>
            
            <div className="bg-gray-100 rounded-xl p-8 md:p-12 mb-16">
              <h2 className="text-2xl font-bold text-gray-900 mb-6 text-center">Our Values</h2>
              <div className="grid grid-cols-1 md:grid-cols-3 gap-8">
                <ValueCard 
                  icon="fas fa-leaf" 
                  title="Sustainability" 
                  description="We prioritize eco-friendly materials and ethical production methods to minimize our environmental impact." 
                />
                <ValueCard 
                  icon="fas fa-star" 
                  title="Quality" 
                  description="Every piece is crafted with premium materials and exceptional attention to detail for lasting wear." 
                />
                <ValueCard 
                  icon="fas fa-heart" 
                  title="Community" 
                  description="We support local artisans and give back to organizations that empower women in the fashion industry." 
                />
              </div>
            </div>
            
            <div className="text-center">
              <h2 className="text-2xl font-bold text-gray-900 mb-6">Meet The Team</h2>
              <p className="text-gray-600 max-w-3xl mx-auto mb-8">
                Our talented team of designers, stylists, and customer service professionals are 
                dedicated to bringing you the best fashion experience.
              </p>
              
              <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8">
                <TeamMember 
                  name="Alexandra Bennett" 
                  role="Founder & CEO" 
                  image="https://images.unsplash.com/photo-1573496359142-b8d87734a5cd?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=688&q=80" 
                />
                <TeamMember 
                  name="Marcus Chen" 
                  role="Creative Director" 
                  image="https://images.unsplash.com/photo-1560250097-0b93528c311a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80" 
                />
                <TeamMember 
                  name="Sophia Rodriguez" 
                  role="Head Designer" 
                  image="https://images.unsplash.com/photo-1580489944761-15a19d654956?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=761&q=80" 
                />
                <TeamMember 
                  name="James Wilson" 
                  role="Customer Experience" 
                  image="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80" 
                />
              </div>
            </div>
          </div>
        </div>
      );
    }
    
    // Contact Page Component
    function ContactPage() {
      const [formData, setFormData] = useState({
        name: '',
        email: '',
        subject: '',
        message: ''
      });
      
      const handleChange = (e) => {
        const { name, value } = e.target;
        setFormData(prev => ({
          ...prev,
          [name]: value
        }));
      };
      
      const handleSubmit = (e) => {
        e.preventDefault();
        alert('Thank you for your message! We will get back to you soon.');
        setFormData({
          name: '',
          email: '',
          subject: '',
          message: ''
        });
      };
      
      return (
        <div className="py-16 bg-white">
          <div className="container mx-auto px-4">
            <div className="text-center mb-12">
              <h1 className="text-3xl md:text-4xl font-bold text-gray-900 title-font mb-4">
                Get In Touch
              </h1>
              <p className="text-gray-600 max-w-3xl mx-auto">
                Have questions or feedback? We'd love to hear from you!
              </p>
            </div>
            
            <div className="flex flex-col lg:flex-row gap-12">
              <div className="lg:w-1/2">
                <div className="bg-gray-50 p-8 rounded-lg shadow-sm">
                  <h2 className="text-2xl font-bold text-gray-900 mb-6">Send Us a Message</h2>
                  <form onSubmit={handleSubmit}>
                    <div className="mb-4">
                      <label htmlFor="name" className="block text-gray-700 font-medium mb-2">Name</label>
                      <input 
                        type="text" 
                        id="name" 
                        name="name" 
                        value={formData.name}
                        onChange={handleChange}
                        className="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-rose-500 focus:border-transparent" 
                        required 
                      />
                    </div>
                    
                    <div className="mb-4">
                      <label htmlFor="email" className="block text-gray-700 font-medium mb-2">Email</label>
                      <input 
                        type="email" 
                        id="email" 
                        name="email" 
                        value={formData.email}
                        onChange={handleChange}
                        className="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-rose-500 focus:border-transparent" 
                        required 
                      />
                    </div>
                    
                    <div className="mb-4">
                      <label htmlFor="subject" className="block text-gray-700 font-medium mb-2">Subject</label>
                      <input 
                        type="text" 
                        id="subject" 
                        name="subject" 
                        value={formData.subject}
                        onChange={handleChange}
                        className="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-rose-500 focus:border-transparent" 
                        required 
                      />
                    </div>
                    
                    <div className="mb-6">
                      <label htmlFor="message" className="block text-gray-700 font-medium mb-2">Message</label>
                      <textarea 
                        id="message" 
                        name="message" 
                        rows="5" 
                        value={formData.message}
                        onChange={handleChange}
                        className="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-rose-500 focus:border-transparent" 
                        required
                      ></textarea>
                    </div>
                    
                    <button 
                      type="submit" 
                      className="w-full bg-rose-500 hover:bg-rose-600 text-white font-bold py-3 px-4 rounded-md transition-colors"
                    >
                      Send Message
                    </button>
                  </form>
                </div>
              </div>
              
              <div className="lg:w-1/2">
                <div className="bg-gray-50 p-8 rounded-lg shadow-sm h-full">
                  <h2 className="text-2xl font-bold text-gray-900 mb-6">Contact Information</h2>
                  
                  <div className="space-y-6">
                    <div className="flex items-start">
                      <div className="bg-rose-100 p-3 rounded-full mr-4">
                        <i className="fas fa-map-marker-alt text-rose-500"></i>
                      </div>
                      <div>
                        <h3 className="font-bold text-gray-900 mb-1">Our Location</h3>
                        <p className="text-gray-600">123 Fashion Avenue, Suite 456<br />New York, NY 10001</p>
                      </div>
                    </div>
                    
                    <div className="flex items-start">
                      <div className="bg-rose-100 p-3 rounded-full mr-4">
                        <i className="fas fa-phone-alt text-rose-500"></i>
                      </div>
                      <div>
                        <h3 className="font-bold text-gray-900 mb-1">Phone</h3>
                        <p className="text-gray-600">+1 (555) 123-4567<br />Mon-Fri, 9am-6pm EST</p>
                      </div>
                    </div>
                    
                    <div className="flex items-start">
                      <div className="bg-rose-100 p-3 rounded-full mr-4">
                        <i className="fas fa-envelope text-rose-500"></i>
                      </div>
                      <div>
                        <h3 className="font-bold text-gray-900 mb-1">Email</h3>
                        <p className="text-gray-600">hello@voguefashion.com<br />support@voguefashion.com</p>
                      </div>
                    </div>
                  </div>
                  
                  <div className="mt-8">
                    <h3 className="font-bold text-gray-900 mb-4">Follow Us</h3>
                    <div className="flex space-x-4">
                      <a href="#" className="bg-gray-200 hover:bg-rose-500 hover:text-white text-gray-700 p-3 rounded-full transition-colors">
                        <i className="fab fa-facebook-f"></i>
                      </a>
                      <a href="#" className="bg-gray-200 hover:bg-rose-500 hover:text-white text-gray-700 p-3 rounded-full transition-colors">
                        <i className="fab fa-twitter"></i>
                      </a>
                      <a href="#" className="bg-gray-200 hover:bg-rose-500 hover:text-white text-gray-700 p-3 rounded-full transition-colors">
                        <i className="fab fa-instagram"></i>
                      </a>
                      <a href="#" className="bg-gray-200 hover:bg-rose-500 hover:text-white text-gray-700 p-3 rounded-full transition-colors">
                        <i className="fab fa-pinterest-p"></i>
                      </a>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      );
    }
    
    // Cart Page Component
    function CartPage({ cartItems, removeFromCart, updateQuantity, cartTotal }) {
      return (
        <div className="py-16 bg-white">
          <div className="container mx-auto px-4">
            <h1 className="text-3xl md:text-4xl font-bold text-gray-900 title-font mb-8">
              Your Shopping Cart
            </h1>
            
            {cartItems.length > 0 ? (
              <div className="flex flex-col lg:flex-row gap-8">
                <div className="lg:w-2/3">
                  <div className="bg-gray-50 rounded-lg shadow-sm overflow-hidden">
                    <div className="hidden md:grid grid-cols-12 bg-gray-100 p-4 font-bold text-gray-700">
                      <div className="col-span-5">Product</div>
                      <div className="col-span-2 text-center">Price</div>
                      <div className="col-span-3 text-center">Quantity</div>
                      <div className="col-span-2 text-right">Total</div>
                    </div>
                    
                    <div className="divide-y divide-gray-200">
                      {cartItems.map(item => (
                        <div key={item.id} className="grid grid-cols-1 md:grid-cols-12 p-4 items-center">
                          <div className="col-span-5 flex items-center mb-4 md:mb-0">
                            <img 
                              src={item.image} 
                              alt={item.name} 
                              className="w-20 h-20 object-cover rounded-md mr-4"
                            />
                            <div>
                              <h3 className="font-medium text-gray-900">{item.name}</h3>
                              <button 
                                onClick={() => removeFromCart(item.id)}
                                className="text-rose-500 hover:text-rose-700 text-sm mt-1"
                              >
                                Remove
                              </button>
                            </div>
                          </div>
                          
                          <div className="col-span-2 text-center text-gray-700 mb-4 md:mb-0">
                            ${item.price.toFixed(2)}
                          </div>
                          
                          <div className="col-span-3 flex justify-center mb-4 md:mb-0">
                            <div className="flex items-center border border-gray-300 rounded-md">
                              <button 
                                onClick={() => updateQuantity(item.id, item.quantity - 1)}
                                className="px-3 py-1 text-gray-600 hover:bg-gray-100"
                              >
                                -
                              </button>
                              <input 
                                type="number" 
                                value={item.quantity} 
                                onChange={(e) => updateQuantity(item.id, parseInt(e.target.value))}
                                className="w-12 text-center border-0 focus:ring-0"
                                min="1"
                              />
                              <button 
                                onClick={() => updateQuantity(item.id, item.quantity + 1)}
                                className="px-3 py-1 text-gray-600 hover:bg-gray-100"
                              >
                                +
                              </button>
                            </div>
                          </div>
                          
                          <div className="col-span-2 text-right font-medium text-gray-900">
                            ${(item.price * item.quantity).toFixed(2)}
                          </div>
                        </div>
                      ))}
                    </div>
                  </div>
                  
                  <div className="mt-6 flex justify-between items-center">
                    <button className="text-gray-600 hover:text-rose-500 font-medium">
                      <i className="fas fa-arrow-left mr-2"></i> Continue Shopping
                    </button>
                    <button className="text-gray-600 hover:text-rose-500 font-medium">
                      Update Cart
                    </button>
                  </div>
                </div>
                
                <div className="lg:w-1/3">
                  <div className="bg-gray-50 p-6 rounded-lg shadow-sm">
                    <h2 className="text-xl font-bold text-gray-900 mb-6">Order Summary</h2>
                    
                    <div className="space-y-4 mb-6">
                      <div className="flex justify-between">
                        <span className="text-gray-600">Subtotal</span>
                        <span className="text-gray-900 font-medium">${cartTotal.toFixed(2)}</span>
                      </div>
                      <div className="flex justify-between">
                        <span className="text-gray-600">Shipping</span>
                        <span className="text-gray-900 font-medium">$5.99</span>
                      </div>
                      <div className="flex justify-between">
                        <span className="text-gray-600">Tax</span>
                        <span className="text-gray-900 font-medium">${(cartTotal * 0.08).toFixed(2)}</span>
                      </div>
                      <div className="border-t border-gray-200 pt-4 flex justify-between">
                        <span className="text-lg font-bold text-gray-900">Total</span>
                        <span className="text-lg font-bold text-gray-900">
                          ${(cartTotal + 5.99 + (cartTotal * 0.08)).toFixed(2)}
                        </span>
                      </div>
                    </div>
                    
                    <button className="w-full bg-rose-500 hover:bg-rose-600 text-white font-bold py-3 px-4 rounded-md transition-colors mb-4">
                      Proceed to Checkout
                    </button>
                    
                    <div className="text-center text-sm text-gray-500">
                      <p>or</p>
                      <button className="mt-2 text-rose-500 hover:text-rose-700 font-medium">
                        Check out with PayPal
                      </button>
                    </div>
                    
                    <div className="mt-6">
                      <h3 className="font-bold text-gray-900 mb-2">Promo Code</h3>
                      <div className="flex">
                        <input 
                          type="text" 
                          placeholder="Enter promo code" 
                          className="flex-grow px-4 py-2 border border-gray-300 rounded-l-md focus:outline-none focus:ring-2 focus:ring-rose-500 focus:border-transparent"
                        />
                        <button className="bg-gray-900 hover:bg-rose-500 text-white px-4 py-2 rounded-r-md transition-colors">
                          Apply
                        </button>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            ) : (
              <div className="text-center py-12">
                <i className="fas fa-shopping-bag text-5xl text-gray-300 mb-4"></i>
                <h3 className="text-xl font-bold text-gray-700 mb-2">Your cart is empty</h3>
                <p className="text-gray-500 mb-6">Looks like you haven't added anything to your cart yet</p>
                <button className="bg-rose-500 hover:bg-rose-600 text-white font-bold py-3 px-8 rounded-full text-lg transition-colors">
                  Continue Shopping
                </button>
              </div>
            )}
          </div>
        </div>
      );
    }
    
    // Cart Sidebar Component
    function CartSidebar({ cartItems, removeFromCart, updateQuantity, cartTotal, setIsCartOpen, setCurrentPage }) {
      const cartItemCount = cartItems.reduce((total, item) => total + item.quantity, 0);
      
      return (
        <div className="fixed inset-0 z-50 overflow-hidden">
          <div className="absolute inset-0 bg-gray-500 bg-opacity-75 transition-opacity" onClick={() => setIsCartOpen(false)}></div>
          
          <div className="fixed inset-y-0 right-0 max-w-full flex">
            <div className="w-screen max-w-md">
              <div className="h-full flex flex-col bg-white shadow-xl">
                <div className="flex-1 py-6 overflow-y-auto px-4 sm:px-6">
                  <div className="flex items-start justify-between">
                    <h2 className="text-lg font-medium text-gray-900">Shopping cart</h2>
                    <button 
                      onClick={() => setIsCartOpen(false)}
                      className="p-2 text-gray-400 hover:text-gray-500"
                    >
                      <i className="fas fa-times text-xl"></i>
                    </button>
                  </div>
                  
                  <div className="mt-8">
                    <div className="flow-root">
                      {cartItemCount > 0 ? (
                        <ul className="-my-6 divide-y divide-gray-200">
                          {cartItems.map(item => (
                            <li key={item.id} className="py-6 flex">
                              <div className="flex-shrink-0 w-24 h-24 border border-gray-200 rounded-md overflow-hidden">
                                <img 
                                  src={item.image} 
                                  alt={item.name} 
                                  className="w-full h-full object-cover object-center"
                                />
                              </div>
                              
                              <div className="ml-4 flex-1 flex flex-col">
                                <div>
                                  <div className="flex justify-between text-base font-medium text-gray-900">
                                    <h3>{item.name}</h3>
                                    <p className="ml-4">${(item.price * item.quantity).toFixed(2)}</p>
                                  </div>
                                </div>
                                
                                <div className="flex-1 flex items-end justify-between text-sm">
                                  <div className="flex items-center border border-gray-300 rounded-md">
                                    <button 
                                      onClick={() => updateQuantity(item.id, item.quantity - 1)}
                                      className="px-2 py-1 text-gray-600 hover:bg-gray-100"
                                    >
                                      -
                                    </button>
                                    <span className="px-2">{item.quantity}</span>
                                    <button 
                                      onClick={() => updateQuantity(item.id, item.quantity + 1)}
                                      className="px-2 py-1 text-gray-600 hover:bg-gray-100"
                                    >
                                      +
                                    </button>
                                  </div>
                                  
                                  <button 
                                    onClick={() => removeFromCart(item.id)}
                                    className="font-medium text-rose-500 hover:text-rose-700"
                                  >
                                    Remove
                                  </button>
                                </div>
                              </div>
                            </li>
                          ))}
                        </ul>
                      ) : (
                        <div className="text-center py-12">
                          <i className="fas fa-shopping-bag text-4xl text-gray-300 mb-4"></i>
                          <h3 className="text-lg font-medium text-gray-700 mb-2">Your cart is empty</h3>
                          <p className="text-gray-500">Start adding some items to your cart</p>
                        </div>
                      )}
                    </div>
                  </div>
                </div>
                
                {cartItemCount > 0 && (
                  <div className="border-t border-gray-200 py-6 px-4 sm:px-6">
                    <div className="flex justify-between text-base font-medium text-gray-900 mb-4">
                      <p>Subtotal</p>
                      <p>${cartTotal.toFixed(2)}</p>
                    </div>
                    <p className="mt-0.5 text-sm text-gray-500 mb-6">
                      Shipping and taxes calculated at checkout.
                    </p>
                    <button 
                      onClick={() => {
                        setIsCartOpen(false);
                        setCurrentPage('cart');
                      }}
                      className="w-full bg-rose-500 hover:bg-rose-600 text-white font-bold py-3 px-4 rounded-md transition-colors mb-4"
                    >
                      Checkout
                    </button>
                    <div className="flex justify-center text-sm text-gray-500">
                      <p>
                        or{' '}
                        <button 
                          onClick={() => setIsCartOpen(false)}
                          className="text-rose-500 hover:text-rose-700 font-medium"
                        >
                          Continue Shopping
                        </button>
                      </p>
                    </div>
                  </div>
                )}
              </div>
            </div>
          </div>
        </div>
      );
    }
    
    // Footer Component
    function Footer({ setCurrentPage }) {
      return (
        <footer className="bg-gray-900 text-white pt-16 pb-8">
          <div className="container mx-auto px-4">
            <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 mb-12">
              <div>
                <h3 className="text-xl font-bold title-font mb-4">VOGUE</h3>
                <p className="text-gray-400 mb-4">
                  Elevating your style with timeless fashion pieces since 2015.
                </p>
                <div className="flex space-x-4">
                  <a href="#" className="text-gray-400 hover:text-white transition-colors">
                    <i className="fab fa-facebook-f"></i>
                  </a>
                  <a href="#" className="text-gray-400 hover:text-white transition-colors">
                    <i className="fab fa-twitter"></i>
                  </a>
                  <a href="#" className="text-gray-400 hover:text-white transition-colors">
                    <i className="fab fa-instagram"></i>
                  </a>
                  <a href="#" className="text-gray-400 hover:text-white transition-colors">
                    <i className="fab fa-pinterest-p"></i>
                  </a>
                </div>
              </div>
              
              <div>
                <h4 className="text-lg font-bold mb-4">Shop</h4>
                <ul className="space-y-2">
                  <li>
                    <button 
                      onClick={() => setCurrentPage('shop')}
                      className="text-gray-400 hover:text-white transition-colors"
                    >
                      All Products
                    </button>
                  </li>
                  <li>
                    <a href="#" className="text-gray-400 hover:text-white transition-colors">New Arrivals</a>
                  </li>
                  <li>
                    <a href="#" className="text-gray-400 hover:text-white transition-colors">Best Sellers</a>
                  </li>
                  <li>
                    <a href="#" className="text-gray-400 hover:text-white transition-colors">Sale</a>
                  </li>
                </ul>
              </div>
              
              <div>
                <h4 className="text-lg font-bold mb-4">About</h4>
                <ul className="space-y-2">
                  <li>
                    <button 
                      onClick={() => setCurrentPage('about')}
                      className="text-gray-400 hover:text-white transition-colors"
                    >
                      Our Story
                    </button>
                  </li>
                  <li>
                    <a href="#" className="text-gray-400 hover:text-white transition-colors">Sustainability</a>
                  </li>
                  <li>
                    <a href="#" className="text-gray-400 hover:text-white transition-colors">Careers</a>
                  </li>
                  <li>
                    <a href="#" className="text-gray-400 hover:text-white transition-colors">Press</a>
                  </li>
                </ul>
              </div>
              
              <div>
                <h4 className="text-lg font-bold mb-4">Customer Service</h4>
                <ul className="space-y-2">
                  <li>
                    <button 
                      onClick={() => setCurrentPage('contact')}
                      className="text-gray-400 hover:text-white transition-colors"
                    >
                      Contact Us
                    </button>
                  </li>
                  <li>
                    <a href="#" className="text-gray-400 hover:text-white transition-colors">FAQs</a>
                  </li>
                  <li>
                    <a href="#" className="text-gray-400 hover:text-white transition-colors">Shipping & Returns</a>
                  </li>
                  <li>
                    <a href="#" className="text-gray-400 hover:text-white transition-colors">Size Guide</a>
                  </li>
                </ul>
              </div>
            </div>
            
            <div className="border-t border-gray-800 pt-8">
              <div className="flex flex-col md:flex-row justify-between items-center">
                <p className="text-gray-400 mb-4 md:mb-0">
                  &copy; 2023 VOGUE. All rights reserved.
                </p>
                <div className="flex space-x-6">
                  <a href="#" className="text-gray-400 hover:text-white transition-colors">Privacy Policy</a>
                  <a href="#" className="text-gray-400 hover:text-white transition-colors">Terms of Service</a>
                  <a href="#" className="text-gray-400 hover:text-white transition-colors">Accessibility</a>
                </div>
              </div>
            </div>
          </div>
        </footer>
      );
    }
    
    // Product Card Component
    function ProductCard({ product, addToCart }) {
      return (
        <div className="product-card group relative bg-white rounded-lg shadow-sm overflow-hidden transition-all hover:shadow-lg">
          <div className="aspect-w-3 aspect-h-4 bg-gray-200 overflow-hidden">
            <img 
              src={product.image} 
              alt={product.name} 
              className="w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"
            />
          </div>
          
          <div className="p-4">
            <h3 className="text-lg font-medium text-gray-900 mb-1">{product.name}</h3>
            <p className="text-gray-900 font-bold">${product.price.toFixed(2)}</p>
          </div>
          
          <div className="product-actions absolute inset-x-0 bottom-0 p-4">
            <button 
              onClick={() => addToCart(product)}
              className="w-full bg-gray-900 hover:bg-rose-500 text-white font-medium py-2 px-4 rounded-md transition-colors"
            >
              Add to Cart
            </button>
          </div>
        </div>
      );
    }
    
    // Category Card Component
    function CategoryCard({ title, image }) {
      return (
        <div className="relative group overflow-hidden rounded-lg shadow-sm h-64">
          <img 
            src={image} 
            alt={title} 
            className="w-full h-full object-cover transition-transform duration-500 group-hover:scale-110"
          />
          <div className="absolute inset-0 bg-black bg-opacity-30 group-hover:bg-opacity-40 transition-all"></div>
          <div className="absolute inset-0 flex items-center justify-center">
            <h3 className="text-2xl font-bold text-white title-font">{title}</h3>
          </div>
        </div>
      );
    }
    
    // Testimonial Card Component
    function TestimonialCard({ quote, author, role }) {
      return (
        <div className="bg-white p-6 rounded-lg shadow-sm">
          <div className="mb-4">
            <i className="fas fa-quote-left text-rose-500 text-2xl"></i>
          </div>
          <p className="text-gray-700 mb-6">{quote}</p>
          <div className="flex items-center">
            <div className="bg-gray-200 w-10 h-10 rounded-full flex items-center justify-center mr-4">
              <i className="fas fa-user text-gray-500"></i>
            </div>
            <div>
              <p className="font-medium text-gray-900">{author}</p>
              <p className="text-gray-500 text-sm">{role}</p>
            </div>
          </div>
        </div>
      );
    }
    
    // Value Card Component
    function ValueCard({ icon, title, description }) {
      return (
        <div className="text-center">
          <div className="bg-rose-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
            <i className={`${icon} text-rose-500 text-2xl`}></i>
          </div>
          <h3 className="text-lg font-bold text-gray-900 mb-2">{title}</h3>
          <p className="text-gray-600">{description}</p>
        </div>
      );
    }
    
    // Team Member Card Component
    function TeamMember({ name, role, image }) {
      return (
        <div className="text-center">
          <div className="w-32 h-32 mx-auto mb-4 rounded-full overflow-hidden border-4 border-white shadow-lg">
            <img 
              src={image} 
              alt={name} 
              className="w-full h-full object-cover"
            />
          </div>
          <h3 className="text-lg font-bold text-gray-900">{name}</h3>
          <p className="text-gray-600">{role}</p>
        </div>
      );
    }

    // Render the app
    ReactDOM.render(<App />, document.getElementById('root'));
  </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=bd3a/test777" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>