File size: 31,383 Bytes
33f418f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 | <!DOCTYPE html>
<html lang="en" class="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Nexa Pro Wireless Earbuds | Immersive Sound Experience</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
.floating { animation: float 3s ease-in-out infinite; }
.zoom-hover { transition: transform 0.3s ease; }
.zoom-hover:hover { transform: scale(1.05); }
.dark .dark-invert { filter: invert(1); }
.chatbot-container {
transform: translateY(100%);
transition: transform 0.3s ease;
}
.chatbot-container.open {
transform: translateY(0);
}
.product-option.selected {
box-shadow: 0 0 0 2px #3b82f6;
}
.floating-buttons {
transition: transform 0.3s ease, opacity 0.3s ease;
}
.floating-buttons.hidden {
transform: translateY(100%);
opacity: 0;
}
</style>
</head>
<body class="bg-gray-50 text-gray-900 dark:bg-gray-900 dark:text-gray-100 transition-colors duration-300">
<!-- Header -->
<header class="sticky top-0 z-50 bg-white/80 dark:bg-gray-900/80 backdrop-blur-md border-b border-gray-200 dark:border-gray-800">
<div class="container mx-auto px-4 py-3 flex justify-between items-center">
<a href="#" class="text-2xl font-bold">NEXA</a>
<div class="flex items-center space-x-4">
<button id="theme-toggle" class="p-2 rounded-full hover:bg-gray-200 dark:hover:bg-gray-700">
<i class="fas fa-moon dark:hidden"></i>
<i class="fas fa-sun hidden dark:block"></i>
</button>
<a href="#" class="p-2 rounded-full hover:bg-gray-200 dark:hover:bg-gray-700">
<i class="fas fa-shopping-cart"></i>
</a>
</div>
</div>
</header>
<main class="container mx-auto px-4 py-8">
<!-- Hero Section -->
<section class="grid grid-cols-1 lg:grid-cols-2 gap-12 mb-16">
<div class="relative">
<div class="sticky top-24">
<!-- 3D Product View -->
<div class="aspect-square bg-gradient-to-br from-blue-50 to-purple-50 dark:from-gray-800 dark:to-gray-700 rounded-2xl overflow-hidden relative">
<img src="https://images.unsplash.com/photo-1590658268037-6bf12165a8df?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80"
alt="Nexa Pro Wireless Earbuds"
class="w-full h-full object-contain floating">
<button class="absolute top-4 right-4 bg-white dark:bg-gray-800 p-2 rounded-full shadow-md hover:bg-gray-100 dark:hover:bg-gray-700">
<i class="fas fa-rotate text-gray-700 dark:text-gray-300"></i>
</button>
</div>
<!-- Thumbnail Gallery -->
<div class="flex justify-center mt-6 space-x-3">
<button class="w-16 h-16 rounded-lg overflow-hidden border border-gray-200 dark:border-gray-700 hover:border-blue-500">
<img src="https://images.unsplash.com/photo-1590658268037-6bf12165a8df?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=200&q=80"
alt="Nexa Pro Black" class="w-full h-full object-cover">
</button>
<button class="w-16 h-16 rounded-lg overflow-hidden border border-gray-200 dark:border-gray-700 hover:border-blue-500">
<img src="https://images.unsplash.com/photo-1572569511254-d8f925fe2cbb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=200&q=80"
alt="Nexa Pro White" class="w-full h-full object-cover">
</button>
<button class="w-16 h-16 rounded-lg overflow-hidden border border-gray-200 dark:border-gray-700 hover:border-blue-500">
<img src="https://images.unsplash.com/photo-1613040809024-b4ef7ba99bc3?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=200&q=80"
alt="Nexa Pro Case" class="w-full h-full object-cover">
</button>
</div>
</div>
</div>
<div>
<div class="mb-6">
<span class="inline-block px-3 py-1 bg-blue-100 dark:bg-blue-900 text-blue-600 dark:text-blue-200 rounded-full text-sm font-medium">Bestseller</span>
</div>
<h1 class="text-4xl md:text-5xl font-bold mb-3">Nexa Pro Wireless Earbuds</h1>
<p class="text-xl text-gray-600 dark:text-gray-400 mb-6">Immersive 3D Sound with Active Noise Cancellation</p>
<div class="flex items-center mb-8">
<div class="flex text-yellow-400 mr-3">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star-half-alt"></i>
</div>
<span class="text-gray-600 dark:text-gray-400">4.8 (12,457 reviews) • 50,000+ sold</span>
</div>
<div class="mb-8">
<div class="flex items-end mb-2">
<span class="text-3xl font-bold">$179.99</span>
<span class="ml-3 text-lg text-gray-500 line-through">$199.99</span>
<span class="ml-2 px-2 py-1 bg-green-100 dark:bg-green-900 text-green-800 dark:text-green-200 rounded text-sm font-medium">10% OFF</span>
</div>
<p class="text-green-600 dark:text-green-400 font-medium">
<i class="fas fa-bolt"></i> 37 units left at this price!
</p>
</div>
<!-- Color Selection -->
<div class="mb-8">
<h3 class="text-lg font-semibold mb-3">Color</h3>
<div class="flex space-x-3">
<button class="product-option w-12 h-12 rounded-full bg-gray-900 border-2 border-gray-300 selected"
data-color="black"
title="Matte Black"></button>
<button class="product-option w-12 h-12 rounded-full bg-gray-200 border-2 border-gray-300"
data-color="white"
title="Pearl White"></button>
<button class="product-option w-12 h-12 rounded-full bg-blue-600 border-2 border-gray-300"
data-color="blue"
title="Ocean Blue"></button>
<button class="product-option w-12 h-12 rounded-full bg-purple-500 border-2 border-gray-300"
data-color="purple"
title="Lavender Purple"></button>
</div>
</div>
<!-- Features -->
<div class="mb-8">
<h3 class="text-lg font-semibold mb-3">Key Features</h3>
<ul class="space-y-3">
<li class="flex items-start">
<i class="fas fa-volume-up text-blue-500 mt-1 mr-3"></i>
<span>Active Noise Cancellation with 40dB reduction</span>
</li>
<li class="flex items-start">
<i class="fas fa-clock text-blue-500 mt-1 mr-3"></i>
<span>30-hour battery life with wireless charging case</span>
</li>
<li class="flex items-start">
<i class="fas fa-tint text-blue-500 mt-1 mr-3"></i>
<span>IPX7 waterproof rating (submersible up to 1m)</span>
</li>
<li class="flex items-start">
<i class="fas fa-microphone text-blue-500 mt-1 mr-3"></i>
<span>6-mic array with AI-powered voice isolation</span>
</li>
<li class="flex items-start">
<i class="fas fa-bluetooth text-blue-500 mt-1 mr-3"></i>
<span>Bluetooth 5.3 with multi-point connectivity</span>
</li>
</ul>
</div>
<!-- CTA Buttons -->
<div class="flex flex-col sm:flex-row space-y-3 sm:space-y-0 sm:space-x-3 mb-8">
<button class="flex-1 bg-blue-600 hover:bg-blue-700 text-white py-4 px-6 rounded-lg font-medium transition-colors flex items-center justify-center">
<i class="fas fa-shopping-cart mr-2"></i> Add to Cart
</button>
<button class="flex-1 bg-gray-900 hover:bg-gray-800 dark:bg-gray-100 dark:hover:bg-gray-200 dark:text-gray-900 text-white py-4 px-6 rounded-lg font-medium transition-colors flex items-center justify-center">
<i class="fas fa-bolt mr-2"></i> Buy Now
</button>
</div>
<!-- Trust Badges -->
<div class="border-t border-gray-200 dark:border-gray-800 pt-6">
<div class="flex flex-wrap items-center justify-center gap-4">
<div class="flex items-center text-sm">
<i class="fas fa-shield-alt text-blue-500 mr-2"></i>
<span>2-year warranty</span>
</div>
<div class="flex items-center text-sm">
<i class="fas fa-truck text-blue-500 mr-2"></i>
<span>Free shipping</span>
</div>
<div class="flex items-center text-sm">
<i class="fas fa-undo text-blue-500 mr-2"></i>
<span>30-day returns</span>
</div>
<div class="flex items-center text-sm">
<i class="fas fa-leaf text-green-500 mr-2"></i>
<span>Eco-friendly materials</span>
</div>
</div>
</div>
</div>
</section>
<!-- User Reviews Section -->
<section class="mb-16">
<h2 class="text-2xl font-bold mb-8">What Our Customers Say</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-8">
<!-- Review Cards -->
<div class="bg-white dark:bg-gray-800 p-6 rounded-xl shadow-sm hover:shadow-md transition-shadow">
<div class="flex items-center mb-4">
<div class="w-10 h-10 rounded-full bg-gray-300 mr-3 overflow-hidden">
<img src="https://randomuser.me/api/portraits/women/43.jpg" alt="User" class="w-full h-full object-cover">
</div>
<div>
<h4 class="font-medium">Sarah J.</h4>
<div class="flex text-yellow-400 text-sm">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
</div>
</div>
<p class="text-gray-600 dark:text-gray-400">"The noise cancellation is incredible! I can't hear anything on my subway commute. Battery life lasts me all week with moderate use."</p>
</div>
<div class="bg-white dark:bg-gray-800 p-6 rounded-xl shadow-sm hover:shadow-md transition-shadow">
<div class="flex items-center mb-4">
<div class="w-10 h-10 rounded-full bg-gray-300 mr-3 overflow-hidden">
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User" class="w-full h-full object-cover">
</div>
<div>
<h4 class="font-medium">Michael T.</h4>
<div class="flex text-yellow-400 text-sm">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star-half-alt"></i>
</div>
</div>
</div>
<p class="text-gray-600 dark:text-gray-400">"Best earbuds I've owned. The sound quality is studio-level and they fit perfectly during workouts. Only wish the case was a bit smaller."</p>
</div>
<div class="bg-white dark:bg-gray-800 p-6 rounded-xl shadow-sm hover:shadow-md transition-shadow">
<div class="flex items-center mb-4">
<div class="w-10 h-10 rounded-full bg-gray-300 mr-3 overflow-hidden">
<img src="https://randomuser.me/api/portraits/women/65.jpg" alt="User" class="w-full h-full object-cover">
</div>
<div>
<h4 class="font-medium">Jessica L.</h4>
<div class="flex text-yellow-400 text-sm">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
</div>
</div>
<p class="text-gray-600 dark:text-gray-400">"The microphone quality is amazing for calls. My colleagues say I sound clearer than when I use my laptop mic. Worth every penny!"</p>
</div>
</div>
<!-- User Photos Gallery -->
<h3 class="text-xl font-semibold mb-6">Customer Photos</h3>
<div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4">
<div class="aspect-square rounded-xl overflow-hidden zoom-hover">
<img src="https://images.unsplash.com/photo-1590658268037-6bf12165a8df?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80"
alt="Customer photo" class="w-full h-full object-cover cursor-zoom-in">
</div>
<div class="aspect-square rounded-xl overflow-hidden zoom-hover">
<img src="https://images.unsplash.com/photo-1572569511254-d8f925fe2cbb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80"
alt="Customer photo" class="w-full h-full object-cover cursor-zoom-in">
</div>
<div class="aspect-square rounded-xl overflow-hidden zoom-hover">
<img src="https://images.unsplash.com/photo-1613040809024-b4ef7ba99bc3?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80"
alt="Customer photo" class="w-full h-full object-cover cursor-zoom-in">
</div>
<div class="aspect-square rounded-xl overflow-hidden zoom-hover">
<img src="https://images.unsplash.com/photo-1505740420928-5e560c06d30e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80"
alt="Customer photo" class="w-full h-full object-cover cursor-zoom-in">
</div>
</div>
</section>
<!-- Tech Specs Section -->
<section class="mb-16">
<h2 class="text-2xl font-bold mb-8">Technical Specifications</h2>
<div class="bg-white dark:bg-gray-800 rounded-xl shadow-sm overflow-hidden">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 divide-y md:divide-y-0 md:divide-x divide-gray-200 dark:divide-gray-700">
<div class="p-6">
<h3 class="font-semibold mb-4">Audio</h3>
<ul class="space-y-3 text-gray-600 dark:text-gray-400">
<li class="flex justify-between">
<span>Driver Size</span>
<span class="font-medium">11mm dynamic</span>
</li>
<li class="flex justify-between">
<span>Frequency Response</span>
<span class="font-medium">20Hz - 40kHz</span>
</li>
<li class="flex justify-between">
<span>ANC Reduction</span>
<span class="font-medium">Up to 40dB</span>
</li>
<li class="flex justify-between">
<span>Codecs</span>
<span class="font-medium">AAC, SBC, LDAC</span>
</li>
</ul>
</div>
<div class="p-6">
<h3 class="font-semibold mb-4">Battery</h3>
<ul class="space-y-3 text-gray-600 dark:text-gray-400">
<li class="flex justify-between">
<span>Earbuds</span>
<span class="font-medium">8 hours (ANC on)</span>
</li>
<li class="flex justify-between">
<span>With Case</span>
<span class="font-medium">30 hours total</span>
</li>
<li class="flex justify-between">
<span>Charging</span>
<span class="font-medium">Qi wireless / USB-C</span>
</li>
<li class="flex justify-between">
<span>Fast Charge</span>
<span class="font-medium">15 min = 2 hours</span>
</li>
</ul>
</div>
<div class="p-6">
<h3 class="font-semibold mb-4">Connectivity</h3>
<ul class="space-y-3 text-gray-600 dark:text-gray-400">
<li class="flex justify-between">
<span>Bluetooth</span>
<span class="font-medium">5.3</span>
</li>
<li class="flex justify-between">
<span>Range</span>
<span class="font-medium">Up to 30m</span>
</li>
<li class="flex justify-between">
<span>Multi-point</span>
<span class="font-medium">2 devices</span>
</li>
<li class="flex justify-between">
<span>Latency</span>
<span class="font-medium">60ms (gaming mode)</span>
</li>
</ul>
</div>
</div>
</div>
</section>
<!-- FAQ Section -->
<section class="mb-16">
<h2 class="text-2xl font-bold mb-8">Frequently Asked Questions</h2>
<div class="space-y-4">
<div class="border border-gray-200 dark:border-gray-700 rounded-xl overflow-hidden">
<button class="faq-toggle w-full flex justify-between items-center p-5 hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors">
<span class="text-left font-medium">How does the active noise cancellation work?</span>
<i class="fas fa-chevron-down transition-transform"></i>
</button>
<div class="faq-content px-5 pb-5 hidden">
<p class="text-gray-600 dark:text-gray-400">
The Nexa Pro earbuds use hybrid active noise cancellation with both feedforward and feedback microphones to detect and cancel external noise. Our proprietary algorithm processes sound waves in real-time to generate inverse waves that cancel out ambient noise up to 40dB, perfect for travel or noisy environments.
</p>
</div>
</div>
<div class="border border-gray-200 dark:border-gray-700 rounded-xl overflow-hidden">
<button class="faq-toggle w-full flex justify-between items-center p-5 hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors">
<span class="text-left font-medium">Are these earbuds sweatproof?</span>
<i class="fas fa-chevron-down transition-transform"></i>
</button>
<div class="faq-content px-5 pb-5 hidden">
<p class="text-gray-600 dark:text-gray-400">
Yes! The Nexa Pro earbuds have an IPX7 waterproof rating, meaning they can withstand immersion in up to 1 meter of water for 30 minutes. They're perfect for workouts, running in the rain, or even accidental drops in water. The charging case is IPX4 rated for splash resistance.
</p>
</div>
</div>
<div class="border border-gray-200 dark:border-gray-700 rounded-xl overflow-hidden">
<button class="faq-toggle w-full flex justify-between items-center p-5 hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors">
<span class="text-left font-medium">What's included in the box?</span>
<i class="fas fa-chevron-down transition-transform"></i>
</button>
<div class="faq-content px-5 pb-5 hidden">
<p class="text-gray-600 dark:text-gray-400">
Your Nexa Pro purchase includes: the wireless earbuds, charging case, USB-C charging cable, 3 sizes of silicone ear tips (S/M/L), quick start guide, warranty information, and our sustainability pledge. The premium edition also includes a vegan leather carrying case.
</p>
</div>
</div>
</div>
</section>
</main>
<!-- Floating CTA for Mobile -->
<div class="fixed bottom-0 left-0 right-0 bg-white dark:bg-gray-900 shadow-lg p-4 z-40 floating-buttons hidden md:hidden">
<div class="container mx-auto flex space-x-3">
<button class="flex-1 bg-blue-600 hover:bg-blue-700 text-white py-3 px-4 rounded-lg font-medium transition-colors flex items-center justify-center">
<i class="fas fa-shopping-cart mr-2"></i> Add to Cart
</button>
<button class="flex-1 bg-gray-900 hover:bg-gray-800 dark:bg-gray-100 dark:hover:bg-gray-200 dark:text-gray-900 text-white py-3 px-4 rounded-lg font-medium transition-colors flex items-center justify-center">
<i class="fas fa-bolt mr-2"></i> Buy Now
</button>
</div>
</div>
<!-- AI Chatbot -->
<div class="fixed bottom-6 right-6 z-50">
<button id="chatbot-toggle" class="w-14 h-14 bg-blue-600 hover:bg-blue-700 rounded-full shadow-lg flex items-center justify-center text-white">
<i class="fas fa-robot text-xl"></i>
</button>
<div class="chatbot-container fixed bottom-24 right-6 w-80 bg-white dark:bg-gray-800 rounded-xl shadow-xl overflow-hidden border border-gray-200 dark:border-gray-700">
<div class="bg-blue-600 text-white p-4 flex justify-between items-center">
<h3 class="font-medium">Nexa AI Assistant</h3>
<button class="chatbot-close text-white">
<i class="fas fa-times"></i>
</button>
</div>
<div class="p-4 h-60 overflow-y-auto">
<div class="mb-4">
<div class="bg-gray-100 dark:bg-gray-700 rounded-lg p-3 max-w-[80%] inline-block">
<p class="text-gray-800 dark:text-gray-200">Hi there! I'm Nexa, your AI shopping assistant. How can I help you with the Nexa Pro earbuds today?</p>
</div>
</div>
</div>
<div class="p-4 border-t border-gray-200 dark:border-gray-700">
<div class="relative">
<input type="text" placeholder="Ask a question..." class="w-full bg-gray-100 dark:bg-gray-700 rounded-full py-2 px-4 pr-10 focus:outline-none">
<button class="absolute right-2 top-1/2 transform -translate-y-1/2 text-blue-600 dark:text-blue-400">
<i class="fas fa-paper-plane"></i>
</button>
</div>
</div>
</div>
</div>
<script>
// Dark mode toggle
const themeToggle = document.getElementById('theme-toggle');
const html = document.documentElement;
themeToggle.addEventListener('click', () => {
html.classList.toggle('dark');
localStorage.setItem('theme', html.classList.contains('dark') ? 'dark' : 'light');
});
// Set initial theme from localStorage
if (localStorage.getItem('theme') === 'dark' ||
(!localStorage.getItem('theme') && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
html.classList.add('dark');
} else {
html.classList.remove('dark');
}
// Color selection
const colorOptions = document.querySelectorAll('.product-option');
colorOptions.forEach(option => {
option.addEventListener('click', () => {
colorOptions.forEach(opt => opt.classList.remove('selected'));
option.classList.add('selected');
// In a real implementation, you would update the product image here
});
});
// FAQ accordion
const faqToggles = document.querySelectorAll('.faq-toggle');
faqToggles.forEach(toggle => {
toggle.addEventListener('click', () => {
const content = toggle.nextElementSibling;
const icon = toggle.querySelector('i');
content.classList.toggle('hidden');
icon.classList.toggle('rotate-180');
});
});
// Chatbot toggle
const chatbotToggle = document.getElementById('chatbot-toggle');
const chatbotContainer = document.querySelector('.chatbot-container');
const chatbotClose = document.querySelector('.chatbot-close');
chatbotToggle.addEventListener('click', () => {
chatbotContainer.classList.toggle('open');
});
chatbotClose.addEventListener('click', () => {
chatbotContainer.classList.remove('open');
});
// Floating CTA on scroll
const floatingButtons = document.querySelector('.floating-buttons');
let lastScrollPosition = 0;
window.addEventListener('scroll', () => {
const currentScrollPosition = window.pageYOffset;
if (currentScrollPosition > 300) {
floatingButtons.classList.remove('hidden');
if (currentScrollPosition > lastScrollPosition) {
// Scrolling down
floatingButtons.classList.add('hidden');
} else {
// Scrolling up
floatingButtons.classList.remove('hidden');
}
} else {
floatingButtons.classList.add('hidden');
}
lastScrollPosition = currentScrollPosition;
});
// Simulate stock counter
const stockCounter = document.querySelector('.text-green-600');
let stockCount = 37;
setInterval(() => {
if (stockCount > 0 && Math.random() > 0.7) {
stockCount--;
stockCounter.innerHTML = `<i class="fas fa-bolt"></i> ${stockCount} units left at this price!`;
if (stockCount < 10) {
stockCounter.classList.add('animate-pulse');
}
}
}, 30000);
</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=ProEarner/myfirst" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |