import { useState } from 'react'; import { ShoppingCart, Menu, X, ChevronRight } from 'lucide-react'; export default function ClothingStore() { const [isCartOpen, setIsCartOpen] = useState(false); const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false); const [cart, setCart] = useState([]); const products = [ { id: 1, name: "Classic White T-Shirt", price: 29.99, image: "https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80" }, { id: 2, name: "Denim Jeans", price: 79.99, image: "https://images.unsplash.com/photo-1542272604-787c3835535d?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80" }, { id: 3, name: "Summer Dress", price: 89.99, image: "https://images.unsplash.com/photo-1595777457583-95e059d581b8?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80" }, { id: 4, name: "Leather Jacket", price: 199.99, image: "https://images.unsplash.com/photo-1551028719-00167b16eac5?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80" } ]; const addToCart = (product) => { setCart([...cart, product]); }; const removeFromCart = (productId) => { setCart(cart.filter((item, index) => index !== productId)); }; const total = cart.reduce((sum, item) => sum + item.price, 0); return (
{/* Navigation */} {/* Mobile Menu */} {isMobileMenuOpen && (
Home Shop About Contact
)} {/* Hero Section */}
Hero background

Summer Collection

Discover the latest trends in fashion

{/* Products Grid */}

Featured Products

{products.map((product) => (
{product.name}

{product.name}

${product.price}

))}
{/* Shopping Cart Sidebar */} {isCartOpen && (
setIsCartOpen(false)} />

Shopping Cart

{cart.length === 0 ? (

Your cart is empty

) : (
    {cart.map((item, index) => (
  • {item.name}

    {item.name}

    ${item.price}

  • ))}
)}

Subtotal

${total.toFixed(2)}

Shipping and taxes calculated at checkout.

)}
); }