codebyjerry's picture
Initial DeepSite commit
5a4691d verified
Raw History Blame Contribute Delete
29.2 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LUMINA | Modern Creative E-Commerce</title>
<meta name="description" content="Discover modern fashion, creative merchandise, and lifestyle products at LUMINA. Shop the latest trends with free shipping.">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/lucide@latest"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@500;700&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: {
50: '#fff7ed',
100: '#ffedd5',
200: '#fed7aa',
300: '#fdba74',
400: '#fb923c',
500: '#f97316',
600: '#ea580c',
},
creative: {
50: '#f0f9ff',
500: '#0ea5e9',
600: '#0284c7',
900: '#0c4a6e',
}
},
fontFamily: {
sans: ['Inter', 'sans-serif'],
display: ['Space Grotesk', 'sans-serif'],
},
animation: {
'float': 'float 6s ease-in-out infinite',
'slide-up': 'slideUp 0.6s ease-out forwards',
'fade-in': 'fadeIn 0.5s ease-out forwards',
},
keyframes: {
float: {
'0%, 100%': { transform: 'translateY(0px)' },
'50%': { transform: 'translateY(-20px)' },
},
slideUp: {
'0%': { opacity: '0', transform: 'translateY(30px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
fadeIn: {
'0%': { opacity: '0' },
'100%': { opacity: '1' },
}
}
}
}
}
</script>
<style>
* { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; }
.glass-nav {
background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(20px);
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.text-gradient {
background: linear-gradient(135deg, #f97316, #0ea5e9);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.card-hover {
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover:hover {
transform: translateY(-8px);
box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}
.cart-slide {
transform: translateX(100%);
transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-slide.open {
transform: translateX(0);
}
.category-pill.active {
background: #f97316;
color: white;
}
.blob {
position: absolute;
filter: blur(80px);
opacity: 0.4;
animation: float 8s ease-in-out infinite;
}
.reveal {
opacity: 0;
transform: translateY(40px);
transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
opacity: 1;
transform: translateY(0);
}
.shimmer {
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
background-size: 200% 100%;
animation: shimmer 2s infinite;
}
@keyframes shimmer {
0% { background-position: -200% 0; }
100% { background-position: 200% 0; }
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
</style>
</head>
<body class="bg-gray-50 text-gray-900 overflow-x-hidden">
<!-- Navigation -->
<nav id="navbar" class="fixed w-full z-50 transition-all duration-300 bg-white/80 backdrop-blur-md border-b border-gray-100">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex items-center justify-between h-16 lg:h-20">
<!-- Logo -->
<a href="index.html" class="flex items-center gap-2 group">
<div class="w-10 h-10 bg-gradient-to-br from-primary-500 to-creative-500 rounded-xl flex items-center justify-center transform group-hover:rotate-12 transition-transform shadow-lg shadow-primary-500/20">
<i data-lucide="sparkles" class="w-6 h-6 text-white"></i>
</div>
<span class="font-display text-2xl font-bold tracking-tight">LUMINA</span>
</a>
<!-- Desktop Menu -->
<div class="hidden lg:flex items-center gap-8">
<a href="products.html?category=all" class="text-sm font-medium text-gray-600 hover:text-primary-600 transition-colors">Shop All</a>
<a href="products.html?category=clothing" class="text-sm font-medium text-gray-600 hover:text-primary-600 transition-colors">Clothing</a>
<a href="products.html?category=merch" class="text-sm font-medium text-gray-600 hover:text-primary-600 transition-colors">Merch</a>
<a href="products.html?category=accessories" class="text-sm font-medium text-gray-600 hover:text-primary-600 transition-colors">Accessories</a>
<a href="#new" class="text-sm font-medium text-primary-600 font-semibold">New Arrivals</a>
</div>
<!-- Icons -->
<div class="flex items-center gap-4">
<button class="hidden sm:flex p-2 hover:bg-gray-100 rounded-lg transition-colors" aria-label="Search">
<i data-lucide="search" class="w-5 h-5 text-gray-600"></i>
</button>
<a href="cart.html" class="relative p-2 hover:bg-gray-100 rounded-lg transition-colors" aria-label="Cart">
<i data-lucide="shopping-bag" class="w-5 h-5 text-gray-600"></i>
<span id="cartBadge" class="absolute -top-1 -right-1 w-5 h-5 bg-primary-500 text-white text-xs font-bold rounded-full flex items-center justify-center opacity-0 transition-opacity">0</span>
</a>
<button id="mobileMenuBtn" class="lg:hidden p-2 hover:bg-gray-100 rounded-lg transition-colors" aria-label="Menu">
<i data-lucide="menu" class="w-6 h-6 text-gray-600"></i>
</button>
</div>
</div>
</div>
<!-- Mobile Menu -->
<div id="mobileMenu" class="lg:hidden hidden bg-white border-t border-gray-100 absolute w-full shadow-xl">
<div class="px-4 py-6 space-y-4">
<a href="products.html?category=all" class="block text-gray-600 hover:text-primary-600 font-medium py-2">Shop All</a>
<a href="products.html?category=clothing" class="block text-gray-600 hover:text-primary-600 font-medium py-2">Clothing</a>
<a href="products.html?category=merch" class="block text-gray-600 hover:text-primary-600 font-medium py-2">Merch</a>
<a href="products.html?category=accessories" class="block text-gray-600 hover:text-primary-600 font-medium py-2">Accessories</a>
<a href="#new" class="block text-primary-600 font-semibold py-2">New Arrivals</a>
</div>
</div>
</nav>
<!-- Hero Section -->
<section class="relative min-h-screen flex items-center pt-20 overflow-hidden">
<!-- Background Elements -->
<div class="blob w-96 h-96 bg-primary-300 rounded-full -top-20 -left-20"></div>
<div class="blob w-96 h-96 bg-creative-300 rounded-full bottom-0 right-0 animation-delay-2000"></div>
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12 lg:py-20 relative z-10">
<div class="grid lg:grid-cols-2 gap-12 items-center">
<div class="reveal">
<div class="inline-flex items-center gap-2 bg-white/80 backdrop-blur-sm border border-gray-200 rounded-full px-4 py-2 mb-6 shadow-sm">
<span class="w-2 h-2 bg-green-500 rounded-full animate-pulse"></span>
<span class="text-sm font-medium text-gray-600">Free shipping on orders over ₹2,500</span>
</div>
<h1 class="font-display text-5xl sm:text-6xl lg:text-7xl font-bold leading-tight mb-6">
Wear Your <br>
<span class="text-gradient">Creativity</span>
</h1>
<p class="text-lg text-gray-600 mb-8 max-w-lg leading-relaxed">
Discover curated fashion, exclusive merchandise, and lifestyle products designed for the modern creative. Express yourself with our bold, contemporary collections.
</p>
<div class="flex flex-col sm:flex-row gap-4">
<a href="products.html" class="inline-flex items-center justify-center gap-2 bg-primary-500 hover:bg-primary-600 text-white px-8 py-4 rounded-xl font-semibold transition-all shadow-lg shadow-primary-500/25 hover:shadow-xl hover:shadow-primary-500/30 transform hover:-translate-y-0.5">
Explore Collection
<i data-lucide="arrow-right" class="w-5 h-5"></i>
</a>
<a href="#trending" class="inline-flex items-center justify-center gap-2 bg-white hover:bg-gray-50 text-gray-900 border-2 border-gray-200 px-8 py-4 rounded-xl font-semibold transition-all hover:border-gray-300">
View Trending
</a>
</div>
<div class="flex items-center gap-6 mt-10 pt-8 border-t border-gray-200">
<div class="text-center">
<div class="text-2xl font-bold text-gray-900">50K+</div>
<div class="text-sm text-gray-500">Happy Customers</div>
</div>
<div class="w-px h-12 bg-gray-200"></div>
<div class="text-center">
<div class="text-2xl font-bold text-gray-900">2000+</div>
<div class="text-sm text-gray-500">Products</div>
</div>
<div class="w-px h-12 bg-gray-200"></div>
<div class="text-center">
<div class="text-2xl font-bold text-gray-900">4.9</div>
<div class="text-sm text-gray-500">Rating</div>
</div>
</div>
</div>
<div class="relative reveal" style="transition-delay: 0.2s">
<div class="grid grid-cols-2 gap-4">
<div class="space-y-4 mt-8">
<div class="bg-white rounded-2xl p-4 shadow-xl shadow-gray-200/50 card-hover">
<img src="http://static.photos/people/320x240/45" alt="Fashion" class="w-full h-64 object-cover rounded-xl mb-4">
<h3 class="font-semibold text-gray-900">Summer Collection</h3>
<p class="text-sm text-gray-500">From ₹1,299</p>
</div>
<div class="bg-gradient-to-br from-primary-500 to-orange-400 rounded-2xl p-6 text-white shadow-xl shadow-primary-500/30">
<div class="text-3xl font-bold mb-2">40% OFF</div>
<p class="text-sm opacity-90 mb-4">On all streetwear this week</p>
<a href="products.html" class="inline-flex items-center gap-2 text-sm font-semibold bg-white/20 backdrop-blur-sm px-4 py-2 rounded-lg hover:bg-white/30 transition-colors">
Shop Now <i data-lucide="arrow-right" class="w-4 h-4"></i>
</a>
</div>
</div>
<div class="space-y-4">
<div class="bg-white rounded-2xl p-4 shadow-xl shadow-gray-200/50 card-hover">
<img src="http://static.photos/technology/320x240/67" alt="Tech Accessories" class="w-full h-48 object-cover rounded-xl mb-4">
<h3 class="font-semibold text-gray-900">Tech Gear</h3>
<p class="text-sm text-gray-500">Premium accessories</p>
</div>
<div class="bg-white rounded-2xl p-4 shadow-xl shadow-gray-200/50 card-hover">
<img src="http://static.photos/minimal/320x240/89" alt="Minimalist" class="w-full h-56 object-cover rounded-xl mb-4">
<h3 class="font-semibold text-gray-900">Minimalist Edit</h3>
<p class="text-sm text-gray-500">Clean designs</p>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Categories Section -->
<section class="py-20 bg-white">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-12 reveal">
<h2 class="font-display text-3xl sm:text-4xl font-bold mb-4">Shop by Category</h2>
<p class="text-gray-600 max-w-2xl mx-auto">Explore our carefully curated collections designed for every aspect of your creative lifestyle.</p>
</div>
<div class="grid grid-cols-2 md:grid-cols-4 gap-4 sm:gap-6 reveal">
<a href="products.html?category=clothing" class="group relative overflow-hidden rounded-2xl aspect-square">
<img src="http://static.photos/fashion/640x360/101" alt="Clothing" class="w-full h-full object-cover transition-transform duration-500 group-hover:scale-110">
<div class="absolute inset-0 bg-gradient-to-t from-black/60 to-transparent flex items-end p-6">
<div>
<h3 class="text-white font-bold text-lg mb-1">Clothing</h3>
<p class="text-white/80 text-sm">Streetwear & Essentials</p>
</div>
</div>
</a>
<a href="products.html?category=merch" class="group relative overflow-hidden rounded-2xl aspect-square">
<img src="http://static.photos/workspace/640x360/102" alt="Merch" class="w-full h-full object-cover transition-transform duration-500 group-hover:scale-110">
<div class="absolute inset-0 bg-gradient-to-t from-black/60 to-transparent flex items-end p-6">
<div>
<h3 class="text-white font-bold text-lg mb-1">Merch</h3>
<p class="text-white/80 text-sm">Limited Drops</p>
</div>
</div>
</a>
<a href="products.html?category=accessories" class="group relative overflow-hidden rounded-2xl aspect-square">
<img src="http://static.photos/technology/640x360/103" alt="Accessories" class="w-full h-full object-cover transition-transform duration-500 group-hover:scale-110">
<div class="absolute inset-0 bg-gradient-to-t from-black/60 to-transparent flex items-end p-6">
<div>
<h3 class="text-white font-bold text-lg mb-1">Accessories</h3>
<p class="text-white/80 text-sm">Bags, Tech & More</p>
</div>
</div>
</a>
<a href="products.html?category=lifestyle" class="group relative overflow-hidden rounded-2xl aspect-square">
<img src="http://static.photos/indoor/640x360/104" alt="Lifestyle" class="w-full h-full object-cover transition-transform duration-500 group-hover:scale-110">
<div class="absolute inset-0 bg-gradient-to-t from-black/60 to-transparent flex items-end p-6">
<div>
<h3 class="text-white font-bold text-lg mb-1">Lifestyle</h3>
<p class="text-white/80 text-sm">Home & Decor</p>
</div>
</div>
</a>
</div>
</div>
</section>
<!-- Featured Products -->
<section id="trending" class="py-20 bg-gray-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex flex-col sm:flex-row justify-between items-start sm:items-center mb-12 gap-4 reveal">
<div>
<h2 class="font-display text-3xl sm:text-4xl font-bold mb-2">Trending Now</h2>
<p class="text-gray-600">Most loved products this week</p>
</div>
<a href="products.html" class="inline-flex items-center gap-2 text-primary-600 font-semibold hover:text-primary-700 transition-colors">
View All <i data-lucide="arrow-right" class="w-4 h-4"></i>
</a>
</div>
<div class="grid grid-cols-2 md:grid-cols-4 gap-4 sm:gap-6 reveal" id="featuredProducts">
<!-- Products will be loaded by JS -->
</div>
</div>
</section>
<!-- New Arrivals Banner -->
<section id="new" class="py-20 bg-white">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="relative rounded-3xl overflow-hidden bg-gradient-to-r from-creative-900 to-creative-600 text-white p-8 sm:p-12 lg:p-16 reveal">
<div class="absolute top-0 right-0 w-64 h-64 bg-white/10 rounded-full blur-3xl"></div>
<div class="absolute bottom-0 left-0 w-96 h-96 bg-primary-500/20 rounded-full blur-3xl"></div>
<div class="relative z-10 grid lg:grid-cols-2 gap-8 items-center">
<div>
<span class="inline-block bg-white/20 backdrop-blur-sm text-white text-sm font-semibold px-4 py-2 rounded-full mb-6">New Collection 2024</span>
<h2 class="font-display text-3xl sm:text-4xl lg:text-5xl font-bold mb-4">The Creative Studio Line</h2>
<p class="text-lg text-white/80 mb-8 max-w-lg">Designed for creators, by creators. Premium apparel and accessories that move with your creative flow.</p>
<div class="flex flex-wrap gap-4">
<a href="products.html?collection=studio" class="bg-white text-creative-900 px-6 py-3 rounded-xl font-semibold hover:bg-gray-100 transition-colors inline-flex items-center gap-2">
Explore Collection <i data-lucide="arrow-right" class="w-4 h-4"></i>
</a>
<a href="products.html" class="border-2 border-white/30 text-white px-6 py-3 rounded-xl font-semibold hover:bg-white/10 transition-colors">
View Lookbook
</a>
</div>
</div>
<div class="relative">
<img src="http://static.photos/fashion/640x360/105" alt="New Collection" class="rounded-2xl shadow-2xl shadow-black/20">
<div class="absolute -bottom-4 -right-4 bg-white text-gray-900 p-4 rounded-xl shadow-xl">
<div class="flex items-center gap-3">
<div class="w-12 h-12 bg-primary-100 rounded-lg flex items-center justify-center">
<i data-lucide="zap" class="w-6 h-6 text-primary-600"></i>
</div>
<div>
<div class="text-sm font-bold">Limited Edition</div>
<div class="text-xs text-gray-500">Only 100 pieces</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Features -->
<section class="py-20 bg-gray-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="grid grid-cols-2 md:grid-cols-4 gap-6 reveal">
<div class="text-center p-6">
<div class="w-14 h-14 bg-primary-100 rounded-2xl flex items-center justify-center mx-auto mb-4">
<i data-lucide="truck" class="w-7 h-7 text-primary-600"></i>
</div>
<h3 class="font-semibold text-gray-900 mb-2">Free Shipping</h3>
<p class="text-sm text-gray-500">On orders over ₹2,500</p>
</div>
<div class="text-center p-6">
<div class="w-14 h-14 bg-creative-100 rounded-2xl flex items-center justify-center mx-auto mb-4">
<i data-lucide="refresh-cw" class="w-7 h-7 text-creative-600"></i>
</div>
<h3 class="font-semibold text-gray-900 mb-2">Easy Returns</h3>
<p class="text-sm text-gray-500">30-day return policy</p>
</div>
<div class="text-center p-6">
<div class="w-14 h-14 bg-purple-100 rounded-2xl flex items-center justify-center mx-auto mb-4">
<i data-lucide="shield-check" class="w-7 h-7 text-purple-600"></i>
</div>
<h3 class="font-semibold text-gray-900 mb-2">Secure Payment</h3>
<p class="text-sm text-gray-500">100% secure checkout</p>
</div>
<div class="text-center p-6">
<div class="w-14 h-14 bg-green-100 rounded-2xl flex items-center justify-center mx-auto mb-4">
<i data-lucide="headphones" class="w-7 h-7 text-green-600"></i>
</div>
<h3 class="font-semibold text-gray-900 mb-2">24/7 Support</h3>
<p class="text-sm text-gray-500">Dedicated support team</p>
</div>
</div>
</div>
</section>
<!-- Newsletter -->
<section class="py-20 bg-white border-t border-gray-100">
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center reveal">
<div class="w-16 h-16 bg-gradient-to-br from-primary-500 to-creative-500 rounded-2xl flex items-center justify-center mx-auto mb-6 shadow-lg shadow-primary-500/20">
<i data-lucide="mail" class="w-8 h-8 text-white"></i>
</div>
<h2 class="font-display text-3xl sm:text-4xl font-bold mb-4">Join the Creative Club</h2>
<p class="text-gray-600 mb-8 max-w-lg mx-auto">Subscribe for exclusive drops, early access to sales, and creative inspiration delivered to your inbox.</p>
<form id="newsletterForm" class="flex flex-col sm:flex-row gap-4 max-w-md mx-auto">
<input type="email" placeholder="Enter your email" required class="flex-1 px-6 py-4 border border-gray-200 rounded-xl focus:outline-none focus:border-primary-500 focus:ring-2 focus:ring-primary-500/20 transition-all">
<button type="submit" class="bg-gray-900 hover:bg-gray-800 text-white px-8 py-4 rounded-xl font-semibold transition-colors inline-flex items-center justify-center gap-2 whitespace-nowrap">
Subscribe <i data-lucide="send" class="w-4 h-4"></i>
</button>
</form>
<p class="text-sm text-gray-400 mt-4">No spam, unsubscribe anytime. Join 50,000+ creatives.</p>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-900 text-white pt-16 pb-8">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-8 mb-12">
<div class="col-span-2">
<div class="flex items-center gap-2 mb-6">
<div class="w-10 h-10 bg-gradient-to-br from-primary-500 to-creative-500 rounded-xl flex items-center justify-center">
<i data-lucide="sparkles" class="w-6 h-6 text-white"></i>
</div>
<span class="font-display text-2xl font-bold">LUMINA</span>
</div>
<p class="text-gray-400 mb-6 max-w-sm">Modern e-commerce for the creative generation. Quality products, bold designs, seamless shopping experience.</p>
<div class="flex gap-4">
<a href="#" class="w-10 h-10 bg-white/10 rounded-lg flex items-center justify-center hover:bg-primary-500 transition-colors">
<i data-lucide="instagram" class="w-5 h-5"></i>
</a>
<a href="#" class="w-10 h-10 bg-white/10 rounded-lg flex items-center justify-center hover:bg-primary-500 transition-colors">
<i data-lucide="twitter" class="w-5 h-5"></i>
</a>
<a href="#" class="w-10 h-10 bg-white/10 rounded-lg flex items-center justify-center hover:bg-primary-500 transition-colors">
<i data-lucide="facebook" class="w-5 h-5"></i>
</a>
</div>
</div>
<div>
<h4 class="font-semibold mb-4">Shop</h4>
<ul class="space-y-3 text-sm text-gray-400">
<li><a href="products.html?category=all" class="hover:text-white transition-colors">All Products</a></li>
<li><a href="products.html?category=clothing" class="hover:text-white transition-colors">Clothing</a></li>
<li><a href="products.html?category=merch" class="hover:text-white transition-colors">Merchandise</a></li>
<li><a href="products.html?category=accessories" class="hover:text-white transition-colors">Accessories</a></li>
<li><a href="products.html?category=new" class="hover:text-white transition-colors">New Arrivals</a></li>
</ul>
</div>
<div>
<h4 class="font-semibold mb-4">Support</h4>
<ul class="space-y-3 text-sm text-gray-400">
<li><a href="#" class="hover:text-white transition-colors">Help Center</a></li>
<li><a href="#" class="hover:text-white transition-colors">Shipping Info</a></li>
<li><a href="#" class="hover:text-white transition-colors">Returns</a></li>
<li><a href="#" class="hover:text-white transition-colors">Order Status</a></li>
<li><a href="#" class="hover:text-white transition-colors">Contact Us</a></li>
</ul>
</div>
<div>
<h4 class="font-semibold mb-4">Company</h4>
<ul class="space-y-3 text-sm text-gray-400">
<li><a href="#" class="hover:text-white transition-colors">About Us</a></li>
<li><a href="#" class="hover:text-white transition-colors">Careers</a></li>
<li><a href="#" class="hover:text-white transition-colors">Press</a></li>
<li><a href="#" class="hover:text-white transition-colors">Sustainability</a></li>
<li><a href="#" class="hover:text-white transition-colors">Privacy Policy</a></li>
</ul>
</div>
</div>
<div class="border-t border-white/10 pt-8 flex flex-col md:flex-row justify-between items-center gap-4">
<p class="text-gray-400 text-sm">© 2024 LUMINA. All rights reserved.</p>
<div class="flex items-center gap-4">
<div class="flex gap-2">
<div class="w-10 h-6 bg-white/10 rounded"></div>
<div class="w-10 h-6 bg-white/10 rounded"></div>
<div class="w-10 h-6 bg-white/10 rounded"></div>
</div>
</div>
</div>
</div>
</footer>
<!-- Toast Notification -->
<div id="toast" class="fixed bottom-8 right-8 bg-gray-900 text-white px-6 py-4 rounded-xl shadow-2xl flex items-center gap-3 transform translate-y-20 opacity-0 transition-all duration-300 z-50">
<i data-lucide="check-circle" class="w-5 h-5 text-green-400"></i>
<span id="toastMessage">Added to cart!</span>
</div>
<script src="script.js"></script>
<script>
// Initialize featured products
document.addEventListener('DOMContentLoaded', () => {
lucide.createIcons();
const featuredContainer = document.getElementById('featuredProducts');
const featured = products.slice(0, 8);
featuredContainer.innerHTML = featured.map(product => `
<div class="group bg-white rounded-2xl overflow-hidden shadow-sm hover:shadow-xl transition-all duration-300 border border-gray-100">
<a href="product-detail.html?id=${product.id}" class="relative block overflow-hidden aspect-square bg-gray-100">
<img src="${product.image}" alt="${product.name}" class="w-full h-full object-cover transition-transform duration-500 group-hover:scale-110">
${product.badge ? `<span class="absolute top-3 left-3 bg-primary-500 text-white text-xs font-bold px-3 py-1 rounded-full">${product.badge}</span>` : ''}
<div class="absolute inset-0 bg-black/0 group-hover:bg-black/10 transition-colors flex items-center justify-center opacity-0 group-hover:opacity-100">
<span class="bg-white text-gray-900 px-4 py-2 rounded-full text-sm font-semibold shadow-lg transform translate-y-4 group-hover:translate-y-0 transition-transform">Quick View</span>
</div>
</a>
<div class="p-4">
<div class="flex items-start justify-between mb-2">
<div>
<p class="text-xs text-gray-500 mb-1">${product.category}</p>
<h3 class="font-semibold text-gray-900 line-clamp-1">${product.name}</h3>
</div>
</div>
<div class="flex items-center justify-between">
<div>
<span class="text-lg font-bold text-gray-900">₹${product.price.toLocaleString()}</span>
${product.oldPrice ? `<span class="text-sm text-gray-400 line-through ml-2">₹${product.oldPrice.toLocaleString()}</span>` : ''}
</div>
<button onclick="addToCart(${product.id})" class="w-10 h-10 bg-gray-100 hover:bg-primary-500 hover:text-white rounded-lg flex items-center justify-center transition-colors">
<i data-lucide="plus" class="w-5 h-5"></i>
</button>
</div>
</div>
</div>
`).join('');
lucide.createIcons();
updateCartBadge();
initScrollReveal();
});
// Mobile menu
document.getElementById('mobileMenuBtn').addEventListener('click', () => {
const menu = document.getElementById('mobileMenu');
menu.classList.toggle('hidden');
});
// Newsletter form
document.getElementById('newsletterForm').addEventListener('submit', (e) => {
e.preventDefault();
showToast('Welcome to the Creative Club! Check your inbox for a surprise. 🎉');
e.target.reset();
});
// Scroll reveal
function initScrollReveal() {
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('visible');
}
});
}, { threshold: 0.1 });
document.querySelectorAll('.reveal').forEach(el => observer.observe(el));
}
</script>
<script src="https://deepsite.hf.co/deepsite-badge.js"></script>
</body>
</html>