-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfrost-surge.html
More file actions
697 lines (610 loc) · 30.9 KB
/
frost-surge.html
File metadata and controls
697 lines (610 loc) · 30.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Morph Shop</title>
<link rel="Icon" href="assets/favicon.ico"/>
<link href="https://fonts.cdnfonts.com/css/agnostic" rel="stylesheet">
<link href="https://fonts.cdnfonts.com/css/lemonmilk?styles=18118,18119,18123" rel="stylesheet">
<link rel="stylesheet" href="product-style.css">
<!-- Note: Ensure 'style.css' contains your product styles, or change back to 'product-style.css' if separate -->
</head>
<body>
<main>
<section id="heroSection">
<!-- Navigation Header -->
<header>
<div class="navigation">
<nav>
<ul class="nav-links">
<li><a href="index.html">Home</a></li>
<li><a href="flavor.html">Flavor</a></li>
<li><a href="shop.html">Shop</a></li>
</ul>
</nav>
<img href="index.html" class="logo" src="assets/logo.png" alt="Morph Logo" />
<nav>
<ul class="nav-links">
<li><a href="story.html">Story</a></li>
<li><a href="media.html">Media</a></li>
<li><a href="contacts.html">Contacts</a></li>
</ul>
</nav>
</div>
<ul class="nav-btns">
<li><a href="404.html"><img class="cart-icon" src="assets/cart_icon.png" alt="Cart" /></a></li>
<li><a href="#"><img src="assets/cunrty_icon.png" alt="UK" /></a></li>
</ul>
<!-- Mobile Menu Toggle -->
<div class="burger-menu">
<div class="line1"></div>
<div class="line2"></div>
<div class="line3"></div>
</div>
<!-- Mobile Navigation Menu -->
<div class="mobile-nav">
<a href="index.html">Home</a>
<a href="shop.html">Shop</a>
<a href="story.html">Story</a>
<a href="media.html">Media</a>
<a href="contacts.html">Contact</a>
</div>
<script>
const burgerMenu = document.querySelector('.burger-menu');
const mobileNav = document.querySelector('.mobile-nav');
burgerMenu.addEventListener('click', () => {
mobileNav.classList.toggle('open');
burgerMenu.classList.toggle('toggle');
});
</script>
</header>
<!-- Main Product Display -->
<section class="product_item hidden-scroll">
<div>
<img class="product_img hidden-scroll" id="mainProductImage" src="assets/frost_surge_img.png" alt="Frost Surge">
</div>
<div>
<div class="rating hidden-scroll">
<img class="star" src="assets/star.png" alt="My Stars">
<img class="star" src="assets/star.png" alt="My Stars">
<img class="star" src="assets/star.png" alt="My Stars">
<img class="star" src="assets/star.png" alt="My Stars">
<img class="star" src="assets/star.png" alt="My Stars">
<h5>1k reviews</h5>
</div>
<div class="product_info hidden-scroll">
<h1>Frost Surge</h1>
<h3 class="flavor_name frost-surge">Glacier mint</h3>
<ul>
<li>Glacier mint - 500ML</li>
<hr/>
<li>160 mg caffeine</li>
<hr/>
<li>B-vitamins</li>
</ul>
<div class="buttons hidden-scroll">
<button class="main_btn1">Buy Now</button>
<button class="main_btn2">Find in Store</button>
</div>
</div>
<div class="product_imgs hidden-scroll">
<img class="product_thumb hidden-scroll" src="assets/product_img_fs_4.png" data-full-src="assets/frost_surge_img.png" alt="Front">
<img class="product_thumb hidden-scroll" src="assets/product_img_fs_1.png" data-full-src="assets/Frosy surge side.png" alt="Side">
<img class="product_thumb hidden-scroll" src="assets/product_img_fs_3.png" data-full-src="assets/Frosy surge back.png" alt="Back">
<img class="product_thumb hidden-scroll" src="assets/product_img_fs_2.png" data-full-src="assets/frost_surge_ad_img.png" alt="UGC">
</div>
</div>
</section>
</section>
<!-- Product Benefits Grid -->
<section class="benefits hidden-scroll">
<div class="ben FS ben1 hidden-scroll">
<img class="product_thumb" src="assets/power.png" alt="Power">
<h2>Power</h2>
</div>
<div class="ben FS ben2 hidden-scroll">
<img class="product_thumb" src="assets/focus.png" alt="Focus">
<h2>Focus</h2>
</div>
<div class="ben FS ben3 hidden-scroll">
<img class="product_thumb" src="assets/flavor.png" alt="Flavor">
<h2>Flavor</h2>
</div>
<div class="ben FS ben4 hidden-scroll">
<img class="product_thumb" src="assets/no_crash.png" alt="No Crash">
<h2>No Crash</h2>
</div>
</section>
<!-- Product Information Tabs -->
<section class="info_sections">
<div class="info_tabs hidden-scroll">
<button class="info_tab_btn active" data-tab="reviews">CUSTOMER REVIEWS</button>
<button class="info_tab_btn" data-tab="faq">FAQ</button>
<button class="info_tab_btn" data-tab="nutrition">NUTRITION FACTS</button>
</div>
<!-- Tab 1: Customer Reviews -->
<div id="reviews" class="info_content active hidden-scroll">
<div class="reviews_summary">
<div class="overall_rating">
<h2>4.6</h2>
<div class="stars_overall">
<img src="assets/star.png" alt="star">
<img src="assets/star.png" alt="star">
<img src="assets/star.png" alt="star">
<img src="assets/star.png" alt="star">
<img src="assets/star.png" alt="star">
</div>
<p>BASED ON 1K REVIEWS</p>
</div>
<div class="rating_breakdown hidden-scroll">
<div class="rating_row">
<span>5</span>
<img src="assets/star.png" alt="star">
<div class="progress_bar">
<div class="progress_fill" style="width: 75%;"></div>
</div>
</div>
<div class="rating_row hidden-scroll">
<span>4</span>
<img src="assets/star.png" alt="star">
<div class="progress_bar">
<div class="progress_fill" style="width: 60%;"></div>
</div>
</div>
<div class="rating_row hidden-scroll">
<span>3</span>
<img src="assets/star.png" alt="star">
<div class="progress_bar">
<div class="progress_fill" style="width: 40%;"></div>
</div>
</div>
<div class="rating_row hidden-scroll">
<span>2</span>
<img src="assets/star.png" alt="star">
<div class="progress_bar">
<div class="progress_fill" style="width: 20%;"></div>
</div>
</div>
<div class="rating_row hidden-scroll">
<span>1</span>
<img src="assets/star.png" alt="star">
<div class="progress_bar">
<div class="progress_fill" style="width: 10%;"></div>
</div>
</div>
</div>
<div class="review_actions hidden-scroll">
<button class="make_review_btn">MAKE A REVIEW</button>
</div>
</div>
<div class="all_reviews hidden-scroll">
<button class="toggle_reviews_btn hidden-scroll">
READ REVIEWS <img class="arrow_icon" src="assets/up_arrow.png" alt="toggle reviews">
</button>
<div class="clear"></div>
<div class="individual_reviews_container collapsed hidden-scroll" >
<div class="individual_review hidden-scroll">
<div class="reviewer_info hidden-scroll">
<img class="profile_pic" src="assets/profile_pic_1.png" alt="Jordan Miller">
<div class="reviewer_details">
<div class="reviewer_stars">
<img src="assets/star.png" alt="star">
<img src="assets/star.png" alt="star">
<img src="assets/star.png" alt="star">
<img src="assets/star.png" alt="star">
<img src="assets/star.png" alt="star">
</div>
<span class="reviewer_name">JORDAN MILLER</span>
</div>
</div>
<div class="review_text">
<h4>DW I COULD RUN THE WHOLE NIGHT</h4>
<p>LOREM IPSUM DOLOR SIT AMET, CONSECTETUR. ID NULLAM VITAE SEMPER ID MORBI. JUSTO SIT ALIQUET TELLUS ARCU MI PROIN.</p>
</div>
<span class="review_date">7/23/2025</span>
</div>
<div class="individual_review hidden-scroll">
<div class="reviewer_info hidden-scroll">
<img class="profile_pic hidden-scroll" src="assets/profile_pic_2.png" alt="Maurice">
<div class="reviewer_details">
<div class="reviewer_stars">
<img src="assets/star.png" alt="star">
<img src="assets/star.png" alt="star">
<img src="assets/star.png" alt="star">
<img src="assets/star.png" alt="star">
</div>
<span class="reviewer_name">MAURICE</span>
</div>
</div>
<div class="review_text">
<h4>WON THE COD CHAMPIONSHIP ON A FROST SURGE</h4>
<p>LOREM IPSUM DOLOR SIT AMET, CONSECTETUR. ID NULLAM VITAE SEMPER ID MORBI. JUSTO SIT ALIQUET TELLUS ARCU MI PROIN.</p>
</div>
<span class="review_date">7/12/2025</span>
</div>
<div class="individual_review hidden-scroll">
<div class="reviewer_info hidden-scroll">
<img class="profile_pic" src="assets/profile_pic_3.png" alt="Helja">
<div class="reviewer_details">
<div class="reviewer_stars">
<img src="assets/star.png" alt="star">
<img src="assets/star.png" alt="star">
<img src="assets/star.png" alt="star">
</div>
<span class="reviewer_name">HELJA</span>
</div>
</div>
<div class="review_text">
<h4>FELT THE SURGE</h4>
<p>LOREM IPSUM DOLOR SIT AMET, CONSECTETUR. ID NULLAM VITAE SEMPER ID MORBI. JUSTO SIT ALIQUET TELLUS ARCU MI PROIN.</p>
</div>
<span class="review_date">7/30/2025</span>
</div>
<div class="individual_review hidden-scroll">
<div class="reviewer_info hidden-scroll">
<img class="profile_pic" src="assets/profile_pic_4.png" alt="Bustaras">
<div class="reviewer_details">
<div class="reviewer_stars">
<img src="assets/star.png" alt="star">
<img src="assets/star.png" alt="star">
</div>
<span class="reviewer_name">BUSTARAS</span>
</div>
</div>
<div class="review_text">
<h4>IDK, IM ALWAYS THIS WAY</h4>
<p>LOREM IPSUM DOLOR SIT AMET, CONSECTETUR. ID NULLAM VITAE SEMPER ID MORBI. JUSTO SIT ALIQUET TELLUS ARCU MI PROIN.</p>
</div>
<span class="review_date">7/2/2025</span>
</div>
</div>
</div>
</div>
<!-- Tab 2: FAQ -->
<div id="faq" class="info_content hidden-scroll">
<div class="faq_section_container hidden-scroll">
<div class="faq_questions_column hidden-scroll">
<h2 class="faq_main_title">FREQUENTLY ASKED QUESTIONS</h2>
<div class="faq_item hidden-scroll">
<button class="faq_question hidden-scroll">
<span>HOW MANY MG CAFFEINE PER CAN?</span>
<img src="assets/plus_icon.png" alt="Toggle Answer" class="faq_toggle_icon">
</button>
<div class="faq_answer hidden-scroll">
<p>EACH 500 ML CAN CONTAINS 160 MG OF CAFFEINE THE PERFECT BALANCE TO FUEL FOCUS AND ENERGY WITHOUT OVERWHELMING YOUR SYSTEM.</p>
</div>
</div>
<div class="faq_item">
<button class="faq_question hidden-scroll">
<span>CAN I CANCEL MY SUBSCRIPTION?</span>
<img src="assets/plus_icon.png" alt="Toggle Answer" class="faq_toggle_icon">
</button>
<div class="faq_answer hidden-scroll">
<p>Yes, you can cancel your subscription at any time through your account settings or by contacting our support team.</p>
</div>
</div>
<div class="faq_item">
<button class="faq_question hidden-scroll">
<span>IS MORPH SUGAR-FREE?</span>
<img src="assets/plus_icon.png" alt="Toggle Answer" class="faq_toggle_icon">
</button>
<div class="faq_answer hidden-scroll ">
<p>Yes, Morph is completely sugar-free, sweetened with natural alternatives to provide great taste without the added sugars.</p>
</div>
</div>
<div class="faq_item">
<button class="faq_question hidden-scroll">
<span>WHERE CAN I BUY MORPH?</span>
<img src="assets/plus_icon.png" alt="Toggle Answer" class="faq_toggle_icon">
</button>
<div class="faq_answer hidden-scroll">
<p>Morph can be purchased directly from our website or through select retail partners. Check our "Store Locator" for a list of physical locations.</p>
</div>
</div>
<div class="faq_item">
<button class="faq_question hidden-scroll">
<span>IS MORPH SAFE TO DRINK DAILY?</span>
<img src="assets/plus_icon.png" alt="Toggle Answer" class="faq_toggle_icon">
</button>
<div class="faq_answer hidden-scroll">
<p>When consumed in moderation, Morph is safe for daily consumption. Please consult with a healthcare professional if you have any concerns.</p>
</div>
</div>
</div>
<div class="faq_contact_column hidden-scroll">
<div class="faq_contact_card hidden-scroll">
<img src="assets/speech_icon.png" alt="Speech bubble icon" class="speech_icon">
<h4>DO YOU HAVE MORE QUESTIONS?</h4>
<p>END-TO-END PAYMENTS AND FINANCIAL MANAGEMENT IN A SINGLE SOLUTION. MEET THE RIGHT PLATFORM TO HELP REALIZE.</p>
<button class="direct_mail_btn">SHOOT A DIRECT MAIL</button>
</div>
</div>
</div>
</div>
<!-- Tab 3: Nutrition -->
<div id="nutrition" class="info_content">
<div class="nutrition_facts_container hidden-scroll">
<img src="assets/nutrition_facts.png" alt="Nutrition Facts Label for Morph" class="nutrition_facts_image">
</div>
</div>
</section>
<!-- Cross-Sell Section -->
<section class="shop-section hidden-scroll">
<div class="shop-heading">
<h2 class="section-title">You might also like</h2>
</div>
<div class="flavor-cards-container">
<div class="flavor-card hidden-scroll">
<div class="can-wrapper">
<a href="frost-surge.html"><img src="assets/frost_surge_img.png" href="frost-surge.html" alt="Morph Frost Surge Energy Drink Can" class="flavor-can"></a>
<button class="add-button"><img src="assets/add_to_cart_unadded.png" alt="Add to Cart"></button>
</div>
<h3 class="flavor-name frost-surge">FROST SURGE</h3>
<p class="flavor-description">GLACIER MINT</p>
<a href="frost-surge.html"><button class="learn-more-button" >LEARN MORE</button></a>
</div>
<div class="flavor-card hidden-scroll">
<div class="can-wrapper">
<a href="solar-blaze.html"><img src="assets/solar_blaze_img.png" alt="Morph Solar Blaze Energy Drink Can" class="flavor-can"></a>
<button class="add-button"><img src="assets/add_to_cart_unadded.png" alt="Add to Cart"></button>
</div>
<h3 class="flavor-name solar-blaze">SOLAR BLAZE</h3>
<p class="flavor-description">PASSIONATE PASSIONFRUIT</p>
<button class="learn-more-button">LEARN MORE</button>
</div>
<div class="flavor-card hidden-scroll">
<div class="can-wrapper">
<a href="night-shift.html"><img src="assets/night_shift_img.png" alt="Morph Night Shift Energy Drink Can" class="flavor-can"></a>
<button class="add-button"><img src="assets/add_to_cart_unadded.png" alt="Add to Cart"></button>
</div>
<h3 class="flavor-name night-shift">NIGHT SHIFT</h3>
<p class="flavor-description">ELECTRIC LIME</p>
<button class="learn-more-button">LEARN MORE</button>
</div>
</div>
</section>
<!-- Site Footer -->
<footer>
<div class="footer-container hidden-scroll" data-delay="0">
<!-- Brand Information -->
<div class="footer-col footer-col-about">
<img href="index.html" src="assets/footer_logo.png" alt="Morph Energy Logo" class="footer-logo hidden-scroll" data-delay="100">
<p class="footer-description hidden-scroll" data-delay="200">
MORPH ENERGY DRINKS. BOLD FLAVORS BUILT FOR CREATORS, GAMERS AND NIGHT-OWLS. LIMITED DROPS & SUBSCRIPTIONS AVAILABLE.
</p>
<div class="social-icons hidden-scroll" data-delay="300">
<a href="#" aria-label="Instagram"><img src="assets/instagram_icon.png" alt="Instagram" class="social-icon"></a>
<a href="#" aria-label="Facebook"><img src="assets/facebook_icon.png" alt="Facebook" class="social-icon"></a>
<a href="#" aria-label="TikTok"><img src="assets/tiktok_icon.png" alt="TikTok" class="social-icon"></a>
<a href="#" aria-label="X (Twitter)"><img src="assets/x_icon.png" alt="X (Twitter)" class="social-icon"></a>
<a href="#" aria-label="Twitch"><img src="assets/twich_icon.png" alt="Twitch" class="social-icon"></a>
</div>
<div class="contact-info hidden-scroll" data-delay="400">
<h4>CONTACT INFO</h4>
<p>SUPPORT@MORPHENERGY.COM</p>
<p>ADDRESS: 123 STREET, LONDON, UK</p>
</div>
</div>
<!-- Footer Links -->
<div class="footer-col footer-col-links">
<div class="footer-nav-group hidden-scroll" data-delay="500">
<h4>STORE</h4>
<ul>
<li><a href="flavor.html">FLAVORS</a></li>
<li><a href="shop.html">SHOP</a></li>
</ul>
</div>
<div class="footer-nav-group hidden-scroll" data-delay="600">
<h4>ABOUT</h4>
<ul>
<li><a href="story.html">OUR STORY</a></li>
<li><a href="media.html">MEDIA</a></li>
</ul>
</div>
<div class="footer-nav-group hidden-scroll" data-delay="700">
<h4>SUPPORT</h4>
<ul>
<li><a href="404.html">FAQ</a></li>
<li><a href="contacts.html">CONTACT</a></li>
</ul>
</div>
<div class="footer-nav-group hidden-scroll" data-delay="800">
<h4>LEGAL</h4>
<ul>
<li><a href="404.html">PRIVACY POLICY</a></li>
<li><a href="404.html">TERMS & CONDITIONS</a></li>
<li><a href="404.html">RESPONSIBLE USE</a></li>
</ul>
</div>
<!-- Newsletter Signup -->
<div class="footer-col footer-col-newsletter">
<h4 class="hidden-scroll" data-delay="900">NEWSLETTER</h4>
<div class="newsletter-form">
<input type="email" placeholder="ENTER YOUR EMAIL" class="newsletter-input hidden-scroll" data-delay="1000">
<p class="newsletter-description hidden-scroll" data-delay="1100">SUBSCRIBE TO RECEIVE UPDATES, ACCESS TO EXCLUSIVE DEALS AND MORE</p>
<button class="subscribe-button hidden-scroll" data-delay="1200">SUBSCRIBE</button>
</div>
</div>
</div>
</div>
<!-- Copyright -->
<div class="footer-bottom hidden-scroll" data-delay="1300">
<p>© 2025 MORPH ENERGY. ALL RIGHTS RESERVED.</p>
</div>
</footer>
<!-- Header & Navigation Logic -->
<script>
document.addEventListener('DOMContentLoaded', function() {
const header = document.querySelector('header');
header.classList.add('show-header');
const cartIcon = document.querySelector('.cart-icon');
window.addEventListener('scroll', function() {
const scrollPosition = window.scrollY;
if (scrollPosition > 50) {
header.classList.add('scrolled');
cartIcon.src = 'assets/cart_icon_dark.png';
} else {
header.classList.remove('scrolled');
cartIcon.src = 'assets/cart_icon.png';
}
});
const navLinks = document.querySelectorAll('.nav-links a');
const currentPath = window.location.pathname.split('/').pop();
navLinks.forEach(link => {
const linkPath = link.href.split('/').pop();
if (currentPath === linkPath) {
link.classList.add('active');
} else {
link.classList.remove('active');
}
if (currentPath === '' && linkPath === 'index.html') {
link.classList.add('active');
}
});
const addButtons = document.querySelectorAll('.add-button');
addButtons.forEach(button => {
const buttonImage = button.querySelector('img');
button.dataset.added = 'false';
button.addEventListener('click', function() {
let isAddedToCart = (button.dataset.added === 'true');
if (isAddedToCart) {
button.style.background = 'linear-gradient(to bottom, #f9f9f9, #4FB1A8)';
buttonImage.src = 'assets/add_to_cart_unadded.png';
buttonImage.alt = 'Add to Cart';
button.dataset.added = 'false';
} else {
button.style.background = 'linear-gradient(to bottom, #4FB1A8, #f9f9f9)';
buttonImage.src = 'assets/add_to_cart_added.png';
buttonImage.alt = 'Item Added';
button.dataset.added = 'true';
}
});
});
});
</script>
<!-- Product Image Gallery Logic -->
<script>
document.addEventListener('DOMContentLoaded', function() {
const mainProductImage = document.getElementById('mainProductImage');
if (mainProductImage) {
const thumbnails = document.querySelectorAll('.product_imgs .product_thumb');
thumbnails.forEach(function(thumbnail) {
thumbnail.addEventListener('click', function() {
const fullImageUrl = this.getAttribute('data-full-src');
mainProductImage.src = fullImageUrl;
});
});
} else {
console.error("Error: Main product image with ID 'mainProductImage' not found!");
}
});
</script>
<!-- Product Information Tabs & FAQ Logic -->
<script>
document.addEventListener('DOMContentLoaded', function() {
// Tab Switching
const infoTabButtons = document.querySelectorAll('.info_tab_btn');
const infoContentSections = document.querySelectorAll('.info_content');
infoTabButtons.forEach(button => {
button.addEventListener('click', function() {
infoTabButtons.forEach(btn => btn.classList.remove('active'));
this.classList.add('active');
const targetTabId = this.getAttribute('data-tab');
infoContentSections.forEach(section => {
section.classList.remove('active');
section.style.animation = 'none';
section.offsetHeight;
section.style.animation = '';
});
const targetSection = document.getElementById(targetTabId);
if (targetSection) {
targetSection.classList.add('active');
}
});
});
// Reviews Expansion
const toggleReviewsBtn = document.querySelector('.toggle_reviews_btn');
const individualReviewsContainer = document.querySelector('.individual_reviews_container');
const arrowIcon = toggleReviewsBtn ? toggleReviewsBtn.querySelector('.arrow_icon') : null;
if (toggleReviewsBtn && individualReviewsContainer && arrowIcon) {
toggleReviewsBtn.addEventListener('click', function() {
individualReviewsContainer.classList.toggle('collapsed');
this.classList.toggle('expanded');
if (this.classList.contains('expanded')) {
arrowIcon.src = 'assets/down_arrow.png';
arrowIcon.alt = 'hide reviews';
} else {
arrowIcon.src = 'assets/up_arrow.png';
arrowIcon.alt = 'read reviews';
}
});
individualReviewsContainer.style.maxHeight = individualReviewsContainer.scrollHeight + 'px';
individualReviewsContainer.style.opacity = 1;
toggleReviewsBtn.classList.add('expanded');
arrowIcon.src = 'assets/down_arrow.png';
}
// FAQ Accordion
const faqQuestions = document.querySelectorAll('.faq_question');
faqQuestions.forEach(question => {
question.addEventListener('click', function() {
const faqItem = this.closest('.faq_item');
const faqAnswer = faqItem.querySelector('.faq_answer');
const toggleIcon = this.querySelector('.faq_toggle_icon');
this.classList.toggle('active');
faqAnswer.classList.toggle('active');
if (faqAnswer.classList.contains('active')) {
faqAnswer.style.height = 'auto';
} else {
faqAnswer.style.height = '0';
}
});
});
});
</script>
<!-- Scroll Animation Logic -->
<script>
document.addEventListener('DOMContentLoaded', function() {
// Generic Scroll Reveal
const scrollRevealElements = document.querySelectorAll('.hidden-scroll');
const observerOptions = {
root: null,
rootMargin: '0px',
threshold: 0.2
};
const observer = new IntersectionObserver((entries, observer) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('show-scroll');
observer.unobserve(entry.target);
}
});
}, observerOptions);
scrollRevealElements.forEach(el => {
observer.observe(el);
});
// Footer Specific Reveal with Delay
const footerRevealElements = document.querySelectorAll('footer .hidden-scroll');
const footerObserverOptions = {
root: null,
rootMargin: '0px',
threshold: 0.1
};
const footerObserver = new IntersectionObserver((entries, observer) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
const delay = parseInt(entry.target.dataset.delay) || 0;
setTimeout(() => {
entry.target.classList.add('show-scroll');
observer.unobserve(entry.target);
}, delay);
}
});
}, footerObserverOptions);
footerRevealElements.forEach(el => {
footerObserver.observe(el);
});
});
</script>
</body>
</html>