<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    <title>DIGIWAVES U.S.A. - WHOLESALE COMBO DEALS: (TOTAL OF 7 PIECES) The Super Durable Protective Jelly Glossy TPU Bumper With - OmniPocket Daily</title>
    
    <meta name="description" content="Discover handpicked Amazon finds, hourly trending deals, and smart items for your modern lifestyle at OmniPocket Daily.">
    
    <!-- LLM Crawler Discovery Link -->
    <link rel="alternate" type="text/plain" href="/llms.txt" title="LLM Context Guidelines">
    
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet">
    
    <link rel="stylesheet" href="/static/css/main.css">
    
    <style>
        
        body {
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: #fafbfc;
            
            padding-bottom: 70px; 
        }
        @media (min-width: 768px) {
            body {
                padding-bottom: 0px; 
            }
        }
    </style>
    <!-- Google tag (gtag.js) -->
        <script async src="https://www.googletagmanager.com/gtag/js?id=G-CF0MRSN5P5"></script>
        <script>
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());
        gtag('config', 'G-CF0MRSN5P5');
    </script>
</head>
<body class="bg-[#fafbfc] text-slate-800 antialiased">

    
    
    
    

    <header class="bg-[#0f172a]/95 text-white sticky top-0 z-[100] backdrop-blur-md border-b border-slate-800/80 shadow-sm">
        <div class="max-w-[1240px] px-4 py-4 mx-auto flex items-center justify-between">
            <a href="/" class="text-xl font-extrabold flex items-center gap-2 hover:text-amber-400 transition-all duration-200 tracking-tight">
                <span class="text-2xl transform hover:scale-110 transition-transform">📦</span> 
                <span class="bg-gradient-to-r from-amber-400 via-amber-300 to-amber-100 bg-clip-text text-transparent">OmniPocket</span> 
                <span class="text-slate-400 font-light text-sm hidden sm:inline border-l border-slate-700 pl-2 ml-1">Daily Finds</span>
            </a>
            
            <nav class="hidden md:flex items-center gap-8 text-sm font-semibold">
                <a href="/" class="text-slate-300 hover:text-amber-400 transition-colors py-1">Home</a>
                <a href="/list" class="text-amber-400 hover:text-amber-400 transition-colors py-1 flex items-center gap-1">
                    <span>🛍️</span> All Products
                </a>
                <a href="/about" class="text-slate-300 hover:text-amber-400 transition-colors py-1">About</a>
            </nav>
        </div>
    </header>

    <main class="max-w-[1240px] px-4 py-6 md:py-8 mx-auto">
        
<nav class="flex mb-4 text-xs text-gray-500" aria-label="Breadcrumb">
    <ol class="flex items-center space-x-2">
        <li><a href="/" class="hover:text-amber-600">Home</a></li>
        <li><span class="text-gray-300">/</span></li>
        <li><a href="/list" class="hover:text-amber-600">Products</a></li>
        <li><span class="text-gray-300">/</span></li>
        <li class="text-gray-900 font-medium truncate max-w-[200px]" title="DIGIWAVES U.S.A. - WHOLESALE COMBO DEALS: (TOTAL OF 7 PIECES) The Super Durable Protective Jelly Glossy TPU Bumper With">
            DIGIWAVES U.S.A. - WHOLESALE COMBO DEALS: (TOTAL OF 7 PIECES) The Super Durable Protective Jelly Glossy TPU Bumper With
        </li>
    </ol>
</nav>

<div class="bg-white rounded-xl shadow-sm border border-gray-100 p-6 mb-6" itemscope itemtype="https://schema.org/Product">
    <div class="flex flex-col md:flex-row gap-8">
        <div class="flex-1 max-w-md mx-auto flex flex-col items-center justify-center relative">
            <!-- Product image display container with clear boundary and color contrast -->
            <div class="w-full bg-[#f8fafc] border border-[#e2e8f0] rounded-2xl p-4 md:p-6 flex items-center justify-center relative shadow-xs mb-4" id="magnifier-container">
                
                <!-- Mobile Only Left Navigation Arrow -->
                <button class="absolute left-3 top-1/2 -translate-y-1/2 w-8 h-8 bg-slate-900/30 active:bg-slate-900/50 text-white rounded-full flex items-center justify-center text-sm font-bold cursor-pointer select-none transition-colors border border-white/10 shadow-xs z-[20] md:hidden" onclick="navigateModalImage(-1)">
                    &#10094;
                </button>
                

                <img src="https://m.media-amazon.com/images/I/41aroGlu87L.jpg" alt="DIGIWAVES U.S.A. - WHOLESALE COMBO DEALS: (TOTAL OF 7 PIECES) The Super Durable Protective Jelly Glossy TPU Bumper With" id="main-product-img" class="max-h-[360px] object-contain rounded-lg transition-all duration-150 md:cursor-zoom-in" onclick="openImageModal()" itemprop="image">
                
                
                <!-- Mobile Only Right Navigation Arrow -->
                <button class="absolute right-3 top-1/2 -translate-y-1/2 w-8 h-8 bg-slate-900/30 active:bg-slate-900/50 text-white rounded-full flex items-center justify-center text-sm font-bold cursor-pointer select-none transition-colors border border-white/10 shadow-xs z-[20] md:hidden" onclick="navigateModalImage(1)">
                    &#10095;
                </button>
                

                <!-- Magnifier Lens (Amazon style amber border & highlight) -->
                <div id="zoom-lens" class="absolute border border-[#F3D078] bg-[#F3D078]/10 cursor-crosshair hidden pointer-events-none z-[10] rounded shadow-xs"></div>
                
                <!-- Magnifier Zoom Result Window (placed next to container on desktop) -->
                <div id="zoom-window" class="absolute top-0 left-[105%] w-[420px] h-[420px] border border-slate-200 bg-white shadow-2xl overflow-hidden z-[999] hidden pointer-events-none rounded-lg">
                    <img id="zoom-result-img" src="https://m.media-amazon.com/images/I/41aroGlu87L.jpg" class="absolute max-w-none" style="width: 1000px; height: 1000px;">
                </div>
            </div>

            <!-- Gallery Thumbnails Grid -->
            
            <div class="flex flex-wrap gap-2 mt-4 justify-center w-full">
                
                    
                    <button class="w-12 h-12 border rounded-md overflow-hidden bg-white p-0.5 transition-all duration-200 hover:border-amber-500 focus:outline-none thumbnail-btn border-amber-500 ring-2 ring-amber-500/20"
                            data-large="https://m.media-amazon.com/images/I/41aroGlu87L.jpg"
                            onclick="switchMainImage(this)">
                        <img src="https://m.media-amazon.com/images/I/41aroGlu87L._SS40_.jpg" alt="thumbnail 1" class="w-full h-full object-contain">
                    </button>
                    
                
                    
                    <button class="w-12 h-12 border rounded-md overflow-hidden bg-white p-0.5 transition-all duration-200 hover:border-amber-500 focus:outline-none thumbnail-btn border-gray-200"
                            data-large="https://m.media-amazon.com/images/I/41aAVuRw1vL.jpg"
                            onclick="switchMainImage(this)">
                        <img src="https://m.media-amazon.com/images/I/41aAVuRw1vL._SS40_.jpg" alt="thumbnail 2" class="w-full h-full object-contain">
                    </button>
                    
                
                    
                    <button class="w-12 h-12 border rounded-md overflow-hidden bg-white p-0.5 transition-all duration-200 hover:border-amber-500 focus:outline-none thumbnail-btn border-gray-200"
                            data-large="https://m.media-amazon.com/images/I/41XxMB0s2aL.jpg"
                            onclick="switchMainImage(this)">
                        <img src="https://m.media-amazon.com/images/I/41XxMB0s2aL._SS40_.jpg" alt="thumbnail 3" class="w-full h-full object-contain">
                    </button>
                    
                
            </div>
            

            <a href="https://www.amazon.com/dp/B00IZUQ95C?tag=tmpyhtest-20&language=en_US&ref_=as_li_ss_tl" 
               target="_blank" 
               rel="nofollow sponsored noopener noreferrer"
               class="text-xs text-blue-600 font-medium mt-4 hover:underline block text-center">
                View all sizes / colors
            </a>
        </div>
        
        <div class="flex-[1.2] flex flex-col justify-start">
            <h1 class="text-xl md:text-2xl font-bold text-gray-900 leading-tight mb-2" itemprop="name">
                DIGIWAVES U.S.A. - WHOLESALE COMBO DEALS: (TOTAL OF 7 PIECES) The Super Durable Protective Jelly Glossy TPU Bumper With
            </h1>
            
            <div itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating" class="flex items-center gap-1.5 mb-4 text-sm select-none">
                <div class="relative flex text-slate-200 text-base tracking-tighter">
                    ★★★★★
                    <div class="absolute top-0 left-0 text-amber-500 overflow-hidden" style="width: 100.0%">★★★★★</div>
                </div>
                <span class="text-gray-700 font-medium"><span itemprop="ratingValue">5.0</span></span>
                <span class="text-gray-400">(<span itemprop="reviewCount">1</span> reviews)</span>
            </div>
            
            <div class="bg-gray-50 border border-gray-100 rounded-xl p-5 max-w-md mb-6" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
                <div class="flex items-baseline gap-1 mb-1">
                    <span class="text-3xl font-extrabold text-gray-900">
                        <span itemprop="priceCurrency" content="USD">$</span><span itemprop="price" content="9.73">9.73</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                </div>
                <div class="text-[11px] text-gray-500 mb-4">
                    Amazon Price <br> as of Jun 11 2026, 04:59 AM
                </div>
                
                <a href="https://www.amazon.com/dp/B00IZUQ95C?tag=tmpyhtest-20&language=en_US&ref_=as_li_ss_tl" 
                   target="_blank" 
                   rel="nofollow sponsored noopener noreferrer"
                   class="block w-full text-center bg-amber-400 hover:bg-amber-500 text-gray-900 font-semibold py-2.5 px-4 rounded-lg shadow-sm transition-colors text-sm">
                    Check Price at Amazon →
                </a>
            </div>
            
            <div class="border-t border-gray-100 pt-4 text-xs text-gray-500 space-y-2">
                <div><span class="font-medium text-gray-700">Brand:</span> <span itemprop="brand">DIGIWAVES U.S.A.</span></div>
                <div><span class="font-medium text-gray-700">ASIN:</span> B00IZUQ95C</div>
                <div class="text-green-600 font-semibold flex items-center gap-1 mt-2">
                    <span>✓</span> In Stock.
                </div>
            </div>
        </div>
    </div>
</div>


<div class="bg-white rounded-xl shadow-sm border border-gray-100 p-6 mb-6">
    <h2 class="text-base font-bold text-gray-900 flex items-center gap-2 mb-4">
        <span>🎯</span> Key Features
    </h2>
    <div class="text-sm text-gray-600 leading-relaxed space-y-2" itemprop="description">
        
            <p>(TOTAL OF 7 PCS.) - Premium High-End Flexible Soft TPU Transparent Case With Rainbow Mult-Colors PC Glossy Surface Back Cover Cases For SAMSUNG GALAXY NOTE2 / NOTE 2 / NOTE II | Protective TPU Jelly Gel Frame + See-Thru Back Case Cover Skin For SAMSUNG GALAXY NOTE2 / NOTE 2 / NOTE II | Material: TPU (Thermoplastic Polyurethane) - Highly resistant to oil, dirt, and anti-scratches finished shock absorption soft case | Made with Special Glossy Smooth Surface For Comfortable Holding | Premium Quality Thick Rubberized Flexible Glossy Bumper With See-Thru Rainbow Colors PC Back Cover Case , Unlike Other Cheap Made Cases</p>
        
    </div>
</div>



<div class="bg-white rounded-xl shadow-sm border border-gray-100 p-6 mb-6">
    <h2 class="text-base font-bold text-gray-900 flex items-center gap-2 mb-4">
        <span>📋</span> Specifications & Details
    </h2>
    <div class="grid grid-cols-1 md:grid-cols-2 gap-x-8 gap-y-3 text-xs">
        
            
                <div class="flex justify-between py-2 border-b border-gray-50">
                    <span class="text-gray-400 uppercase tracking-wider font-semibold">UPC</span>
                    <span class="text-gray-800 font-medium text-right">715547388688</span>
                </div>
            
                <div class="flex justify-between py-2 border-b border-gray-50">
                    <span class="text-gray-400 uppercase tracking-wider font-semibold">Brand</span>
                    <span class="text-gray-800 font-medium text-right">DIGIWAVES U.S.A.</span>
                </div>
            
                <div class="flex justify-between py-2 border-b border-gray-50">
                    <span class="text-gray-400 uppercase tracking-wider font-semibold">Color</span>
                    <span class="text-gray-800 font-medium text-right">Multicolored</span>
                </div>
            
                <div class="flex justify-between py-2 border-b border-gray-50">
                    <span class="text-gray-400 uppercase tracking-wider font-semibold">Material</span>
                    <span class="text-gray-800 font-medium text-right">Thermoplastic Polyurethane, Gel</span>
                </div>
            
                <div class="flex justify-between py-2 border-b border-gray-50">
                    <span class="text-gray-400 uppercase tracking-wider font-semibold">Special Feature</span>
                    <span class="text-gray-800 font-medium text-right">Scratch resistant, Flexible, Anti-shock, Durable</span>
                </div>
            
                <div class="flex justify-between py-2 border-b border-gray-50">
                    <span class="text-gray-400 uppercase tracking-wider font-semibold">Compatible Phone Models</span>
                    <span class="text-gray-800 font-medium text-right">Samsung Galaxy Note 2</span>
                </div>
            
        
    </div>
</div>


<div class="bg-white rounded-xl shadow-sm border border-gray-100 p-6 mb-6">
    <h2 class="text-base font-bold text-gray-900 flex items-center gap-2 mb-4">
        <span>🔥</span> Real Customer Reviews
    </h2>
    
        <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
            
                <div class="border border-gray-100 rounded-xl p-4 bg-white shadow-2xs flex flex-col" itemprop="review" itemscope itemtype="https://schema.org/Review">
                    
                    <div class="flex items-center justify-between mb-2">
                        <div class="flex items-center gap-1.5" itemprop="reviewRating" itemscope itemtype="https://schema.org/Rating">
                            <div class="relative flex text-slate-200 text-xs tracking-tighter select-none">
                                ★★★★★
                                <div class="absolute top-0 left-0 text-amber-500 overflow-hidden" style="width: 100.0%">★★★★★</div>
                            </div>
                            <span class="text-gray-600 text-xs font-semibold">(<span itemprop="ratingValue">5.0</span>)</span>
                        </div>
                        <span class="text-[10px] text-gray-400 font-medium" itemprop="datePublished" content="2025-02-04">2025-02-04</span>
                    </div>
                    
                    <h4 class="text-sm font-bold text-gray-900 mb-1" itemprop="name">Vibrant Colors!</h4>
                    <p class="text-xs text-gray-500 leading-relaxed line-clamp-4 flex-grow mb-3" itemprop="reviewBody">The colors in the images provided match exactly with what I received. The covers slip on with ease and stay put perfectly. I couldn&#39;t be happier with this purchase.</p>
                    
                    <div class="text-[10px] text-gray-400 mt-auto pt-2 border-t border-gray-50" itemprop="author" itemscope itemtype="https://schema.org/Person">
                        Reviewed by <span class="font-medium text-gray-500" itemprop="name">Real Customer</span>
                    </div>
                </div>
            
        </div>
    
</div>

<hr class="border-gray-200 my-8">

<div class="mb-10">
    <div class="flex items-center justify-between mb-4 px-1">
        <h2 class="text-base font-bold text-gray-900 flex items-center gap-2">
            <span>⚡</span> Customers Also Viewed
        </h2>
        <a href="/list" class="text-xs text-amber-600 font-semibold hover:underline">Discover More →</a>
    </div>

    <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4">
        
            
            
            
            
            
            

            <div class="bg-white rounded-xl border border-gray-100 shadow-3xs p-3 flex flex-col justify-between hover:shadow-md transition-shadow duration-200" itemscope itemtype="https://schema.org/Product">
                <a href="/product/sangaitianfu-1-pcs-foldable-outdoor-port-B07XPW1K1Q" class="block group">
                    <div class="w-full h-36 flex items-center justify-center bg-white rounded-lg p-2 mb-2 overflow-hidden">
                        <img src="https://m.media-amazon.com/images/I/41NFjflYX1L.jpg" alt="SANGAITIANFU 1 Pcs Foldable Outdoor Portable Travel Bucket Lightweight And Durable Foot Bathing Basin Collapsible Bucket Water Bag Laundry Basket Water Container" class="max-h-full max-w-full object-contain group-hover:scale-105 transition-transform duration-200" itemprop="image">
                    </div>
                    <h3 class="text-xs text-gray-800 font-medium leading-snug mb-1 line-clamp-2 min-h-[32px] group-hover:text-amber-600 transition-colors">
                        <span itemprop="name">SANGAITIANFU 1 Pcs Foldable Outdoor Portable Travel Bucket Lightweight And Durable Foot Bathing Basin Collapsible Bucket Water Bag Laundry Basket Water Container</span>
                    </h3>
                </a>
                
                <!-- Dynamic Rating Stars for Recommendations -->
                <div class="flex items-center gap-1.5 mb-2 select-none" itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
                    <div class="relative flex text-slate-200 text-[10px] tracking-tighter">
                        ★★★★★
                        <div class="absolute top-0 left-0 text-amber-500 overflow-hidden" style="width: 88.00000000000001%">★★★★★</div>
                    </div>
                    <span class="text-[9px] text-gray-400 font-semibold">(<span itemprop="reviewCount">10</span>)</span>
                </div>
                
                <div class="flex items-center justify-between mt-1 pt-2 border-t border-gray-50 gap-1.5" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
                    <span class="text-sm font-extrabold text-gray-900 flex-shrink-0">
                        <span itemprop="priceCurrency" content="USD">$</span><span itemprop="price" content="74.64">74.64</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B07XPW1K1Q?tag=tmpyhtest-20&amp;language=en_US&amp;ref_=as_li_ss_tl" 
                       target="_blank"
                       rel="nofollow sponsored noopener noreferrer"
                       class="inline-block bg-amber-400 hover:bg-amber-500 text-gray-950 font-bold py-1 px-3 rounded-full shadow-2xs transition-colors text-[11px] whitespace-nowrap flex-shrink-0">
                        Check →
                    </a>
                </div>
            </div>
        
            
            
            
            
            
            

            <div class="bg-white rounded-xl border border-gray-100 shadow-3xs p-3 flex flex-col justify-between hover:shadow-md transition-shadow duration-200" itemscope itemtype="https://schema.org/Product">
                <a href="/product/gurun-8.5-inch-adjustable-led-lighted-wa-B013LIGXYO" class="block group">
                    <div class="w-full h-36 flex items-center justify-center bg-white rounded-lg p-2 mb-2 overflow-hidden">
                        <img src="https://m.media-amazon.com/images/I/31JvNGCfjCL.jpg" alt="GURUN 8.5-Inch Adjustable LED Lighted Wall Mount Makeup Mirror with 7X Magnification,Oil-Rubbed Bronze Finish M1807DO(8.5in,7X)" class="max-h-full max-w-full object-contain group-hover:scale-105 transition-transform duration-200" itemprop="image">
                    </div>
                    <h3 class="text-xs text-gray-800 font-medium leading-snug mb-1 line-clamp-2 min-h-[32px] group-hover:text-amber-600 transition-colors">
                        <span itemprop="name">GURUN 8.5-Inch Adjustable LED Lighted Wall Mount Makeup Mirror with 7X Magnification,Oil-Rubbed Bronze Finish M1807DO(8.5in,7X)</span>
                    </h3>
                </a>
                
                <!-- Dynamic Rating Stars for Recommendations -->
                <div class="flex items-center gap-1.5 mb-2 select-none" itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
                    <div class="relative flex text-slate-200 text-[10px] tracking-tighter">
                        ★★★★★
                        <div class="absolute top-0 left-0 text-amber-500 overflow-hidden" style="width: 72.0%">★★★★★</div>
                    </div>
                    <span class="text-[9px] text-gray-400 font-semibold">(<span itemprop="reviewCount">3</span>)</span>
                </div>
                
                <div class="flex items-center justify-between mt-1 pt-2 border-t border-gray-50 gap-1.5" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
                    <span class="text-sm font-extrabold text-gray-900 flex-shrink-0">
                        <span itemprop="priceCurrency" content="USD">$</span><span itemprop="price" content="40.59">40.59</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B013LIGXYO?tag=tmpyhtest-20&amp;language=en_US&amp;ref_=as_li_ss_tl" 
                       target="_blank"
                       rel="nofollow sponsored noopener noreferrer"
                       class="inline-block bg-amber-400 hover:bg-amber-500 text-gray-950 font-bold py-1 px-3 rounded-full shadow-2xs transition-colors text-[11px] whitespace-nowrap flex-shrink-0">
                        Check →
                    </a>
                </div>
            </div>
        
            
            
            
            
            
            

            <div class="bg-white rounded-xl border border-gray-100 shadow-3xs p-3 flex flex-col justify-between hover:shadow-md transition-shadow duration-200" itemscope itemtype="https://schema.org/Product">
                <a href="/product/lanlan-celeb-pop-wave-chain-bling-rhines-B011451VNO" class="block group">
                    <div class="w-full h-36 flex items-center justify-center bg-white rounded-lg p-2 mb-2 overflow-hidden">
                        <img src="https://m.media-amazon.com/images/I/51uHpYdG6KL.jpg" alt="LanLan Celeb Pop Wave Chain Bling Rhinestone Head Jewelry Headband Headpiece Hair Band ,Color:Silver" class="max-h-full max-w-full object-contain group-hover:scale-105 transition-transform duration-200" itemprop="image">
                    </div>
                    <h3 class="text-xs text-gray-800 font-medium leading-snug mb-1 line-clamp-2 min-h-[32px] group-hover:text-amber-600 transition-colors">
                        <span itemprop="name">LanLan Celeb Pop Wave Chain Bling Rhinestone Head Jewelry Headband Headpiece Hair Band ,Color:Silver</span>
                    </h3>
                </a>
                
                <!-- Dynamic Rating Stars for Recommendations -->
                <div class="flex items-center gap-1.5 mb-2 select-none" itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
                    <div class="relative flex text-slate-200 text-[10px] tracking-tighter">
                        ★★★★★
                        <div class="absolute top-0 left-0 text-amber-500 overflow-hidden" style="width: 30.0%">★★★★★</div>
                    </div>
                    <span class="text-[9px] text-gray-400 font-semibold">(<span itemprop="reviewCount">2</span>)</span>
                </div>
                
                <div class="flex items-center justify-between mt-1 pt-2 border-t border-gray-50 gap-1.5" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
                    <span class="text-sm font-extrabold text-gray-900 flex-shrink-0">
                        <span itemprop="priceCurrency" content="USD">$</span><span itemprop="price" content="66.85">66.85</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B011451VNO?tag=tmpyhtest-20&amp;language=en_US&amp;ref_=as_li_ss_tl" 
                       target="_blank"
                       rel="nofollow sponsored noopener noreferrer"
                       class="inline-block bg-amber-400 hover:bg-amber-500 text-gray-950 font-bold py-1 px-3 rounded-full shadow-2xs transition-colors text-[11px] whitespace-nowrap flex-shrink-0">
                        Check →
                    </a>
                </div>
            </div>
        
            
            
            
            
            
            

            <div class="bg-white rounded-xl border border-gray-100 shadow-3xs p-3 flex flex-col justify-between hover:shadow-md transition-shadow duration-200" itemscope itemtype="https://schema.org/Product">
                <a href="/product/sportsun-women&#39;s-sport-headband-set--str-B01GHNDCTY" class="block group">
                    <div class="w-full h-36 flex items-center justify-center bg-white rounded-lg p-2 mb-2 overflow-hidden">
                        <img src="https://m.media-amazon.com/images/I/41+pZ7QcAHL.jpg" alt="Sportsun Women&#39;s Sport Headband Set -Stretch Elastic Yoga Headband- Fashion for Teenage Girls-for Softball Volleyball Soccer Dance Basketball, Different Colors, Pack of 12" class="max-h-full max-w-full object-contain group-hover:scale-105 transition-transform duration-200" itemprop="image">
                    </div>
                    <h3 class="text-xs text-gray-800 font-medium leading-snug mb-1 line-clamp-2 min-h-[32px] group-hover:text-amber-600 transition-colors">
                        <span itemprop="name">Sportsun Women&#39;s Sport Headband Set -Stretch Elastic Yoga Headband- Fashion for Teenage Girls-for Softball Volleyball Soccer Dance Basketball, Different Colors, Pack of 12</span>
                    </h3>
                </a>
                
                <!-- Dynamic Rating Stars for Recommendations -->
                <div class="flex items-center gap-1.5 mb-2 select-none" itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
                    <div class="relative flex text-slate-200 text-[10px] tracking-tighter">
                        ★★★★★
                        <div class="absolute top-0 left-0 text-amber-500 overflow-hidden" style="width: 60.0%">★★★★★</div>
                    </div>
                    <span class="text-[9px] text-gray-400 font-semibold">(<span itemprop="reviewCount">12</span>)</span>
                </div>
                
                <div class="flex items-center justify-between mt-1 pt-2 border-t border-gray-50 gap-1.5" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
                    <span class="text-sm font-extrabold text-gray-900 flex-shrink-0">
                        <span itemprop="priceCurrency" content="USD">$</span><span itemprop="price" content="13.03">13.03</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B01GHNDCTY?tag=tmpyhtest-20&amp;language=en_US&amp;ref_=as_li_ss_tl" 
                       target="_blank"
                       rel="nofollow sponsored noopener noreferrer"
                       class="inline-block bg-amber-400 hover:bg-amber-500 text-gray-950 font-bold py-1 px-3 rounded-full shadow-2xs transition-colors text-[11px] whitespace-nowrap flex-shrink-0">
                        Check →
                    </a>
                </div>
            </div>
        
            
            
            
            
            
            

            <div class="bg-white rounded-xl border border-gray-100 shadow-3xs p-3 flex flex-col justify-between hover:shadow-md transition-shadow duration-200" itemscope itemtype="https://schema.org/Product">
                <a href="/product/sh50-52-replacement-shaver-heads-for-ser-B09SH2H36P" class="block group">
                    <div class="w-full h-36 flex items-center justify-center bg-white rounded-lg p-2 mb-2 overflow-hidden">
                        <img src="https://m.media-amazon.com/images/I/51C9O2WLcYL.jpg" alt="SH50/52 Replacement Shaver Heads for Series 5000(S5xxx), AquaTouch(S5xxx), PowerTouch(PT8xx, PT7xx),Electric Razor Blades OEM SH50 MultiPrecision Blades Upgraded, 6-Pack with 2 Brush" class="max-h-full max-w-full object-contain group-hover:scale-105 transition-transform duration-200" itemprop="image">
                    </div>
                    <h3 class="text-xs text-gray-800 font-medium leading-snug mb-1 line-clamp-2 min-h-[32px] group-hover:text-amber-600 transition-colors">
                        <span itemprop="name">SH50/52 Replacement Shaver Heads for Series 5000(S5xxx), AquaTouch(S5xxx), PowerTouch(PT8xx, PT7xx),Electric Razor Blades OEM SH50 MultiPrecision Blades Upgraded, 6-Pack with 2 Brush</span>
                    </h3>
                </a>
                
                <!-- Dynamic Rating Stars for Recommendations -->
                <div class="flex items-center gap-1.5 mb-2 select-none" itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
                    <div class="relative flex text-slate-200 text-[10px] tracking-tighter">
                        ★★★★★
                        <div class="absolute top-0 left-0 text-amber-500 overflow-hidden" style="width: 57.99999999999999%">★★★★★</div>
                    </div>
                    <span class="text-[9px] text-gray-400 font-semibold">(<span itemprop="reviewCount">6</span>)</span>
                </div>
                
                <div class="flex items-center justify-between mt-1 pt-2 border-t border-gray-50 gap-1.5" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
                    <span class="text-sm font-extrabold text-gray-900 flex-shrink-0">
                        <span itemprop="priceCurrency" content="USD">$</span><span itemprop="price" content="66.93">66.93</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B09SH2H36P?tag=tmpyhtest-20&amp;language=en_US&amp;ref_=as_li_ss_tl" 
                       target="_blank"
                       rel="nofollow sponsored noopener noreferrer"
                       class="inline-block bg-amber-400 hover:bg-amber-500 text-gray-950 font-bold py-1 px-3 rounded-full shadow-2xs transition-colors text-[11px] whitespace-nowrap flex-shrink-0">
                        Check →
                    </a>
                </div>
            </div>
        
            
            
            
            
            
            

            <div class="bg-white rounded-xl border border-gray-100 shadow-3xs p-3 flex flex-col justify-between hover:shadow-md transition-shadow duration-200" itemscope itemtype="https://schema.org/Product">
                <a href="/product/wokoto-6-sheets-glitter-nail-polish-stic-B07HF51SND" class="block group">
                    <div class="w-full h-36 flex items-center justify-center bg-white rounded-lg p-2 mb-2 overflow-hidden">
                        <img src="https://m.media-amazon.com/images/I/51zp+ZHhUYL.jpg" alt="WOKOTO 6 Sheets Glitter Nail Polish Stickers Tips with 1Pcs Nail File Lattice Adhesive Nail Art Wraps Decal Strips Manicure Kits" class="max-h-full max-w-full object-contain group-hover:scale-105 transition-transform duration-200" itemprop="image">
                    </div>
                    <h3 class="text-xs text-gray-800 font-medium leading-snug mb-1 line-clamp-2 min-h-[32px] group-hover:text-amber-600 transition-colors">
                        <span itemprop="name">WOKOTO 6 Sheets Glitter Nail Polish Stickers Tips with 1Pcs Nail File Lattice Adhesive Nail Art Wraps Decal Strips Manicure Kits</span>
                    </h3>
                </a>
                
                <!-- Dynamic Rating Stars for Recommendations -->
                <div class="flex items-center gap-1.5 mb-2 select-none" itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
                    <div class="relative flex text-slate-200 text-[10px] tracking-tighter">
                        ★★★★★
                        <div class="absolute top-0 left-0 text-amber-500 overflow-hidden" style="width: 57.99999999999999%">★★★★★</div>
                    </div>
                    <span class="text-[9px] text-gray-400 font-semibold">(<span itemprop="reviewCount">25</span>)</span>
                </div>
                
                <div class="flex items-center justify-between mt-1 pt-2 border-t border-gray-50 gap-1.5" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
                    <span class="text-sm font-extrabold text-gray-900 flex-shrink-0">
                        <span itemprop="priceCurrency" content="USD">$</span><span itemprop="price" content="65.65">65.65</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B07HF51SND?tag=tmpyhtest-20&amp;language=en_US&amp;ref_=as_li_ss_tl" 
                       target="_blank"
                       rel="nofollow sponsored noopener noreferrer"
                       class="inline-block bg-amber-400 hover:bg-amber-500 text-gray-950 font-bold py-1 px-3 rounded-full shadow-2xs transition-colors text-[11px] whitespace-nowrap flex-shrink-0">
                        Check →
                    </a>
                </div>
            </div>
        
            
            
            
            
            
            

            <div class="bg-white rounded-xl border border-gray-100 shadow-3xs p-3 flex flex-col justify-between hover:shadow-md transition-shadow duration-200" itemscope itemtype="https://schema.org/Product">
                <a href="/product/nail-art-decals-decoration-accessories-6-B085NGQKNC" class="block group">
                    <div class="w-full h-36 flex items-center justify-center bg-white rounded-lg p-2 mb-2 overflow-hidden">
                        <img src="https://m.media-amazon.com/images/I/6146s-nU6UL.jpg" alt="Nail Art Decals Decoration Accessories 6 Wheels Nails Mixed Studs Rhinestones Diamonds Crystals Beads Gems Pearl Gemstone Design DIY Nail Art Decals for Women" class="max-h-full max-w-full object-contain group-hover:scale-105 transition-transform duration-200" itemprop="image">
                    </div>
                    <h3 class="text-xs text-gray-800 font-medium leading-snug mb-1 line-clamp-2 min-h-[32px] group-hover:text-amber-600 transition-colors">
                        <span itemprop="name">Nail Art Decals Decoration Accessories 6 Wheels Nails Mixed Studs Rhinestones Diamonds Crystals Beads Gems Pearl Gemstone Design DIY Nail Art Decals for Women</span>
                    </h3>
                </a>
                
                <!-- Dynamic Rating Stars for Recommendations -->
                <div class="flex items-center gap-1.5 mb-2 select-none" itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
                    <div class="relative flex text-slate-200 text-[10px] tracking-tighter">
                        ★★★★★
                        <div class="absolute top-0 left-0 text-amber-500 overflow-hidden" style="width: 86.0%">★★★★★</div>
                    </div>
                    <span class="text-[9px] text-gray-400 font-semibold">(<span itemprop="reviewCount">18</span>)</span>
                </div>
                
                <div class="flex items-center justify-between mt-1 pt-2 border-t border-gray-50 gap-1.5" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
                    <span class="text-sm font-extrabold text-gray-900 flex-shrink-0">
                        <span itemprop="priceCurrency" content="USD">$</span><span itemprop="price" content="20.72">20.72</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B085NGQKNC?tag=tmpyhtest-20&amp;language=en_US&amp;ref_=as_li_ss_tl" 
                       target="_blank"
                       rel="nofollow sponsored noopener noreferrer"
                       class="inline-block bg-amber-400 hover:bg-amber-500 text-gray-950 font-bold py-1 px-3 rounded-full shadow-2xs transition-colors text-[11px] whitespace-nowrap flex-shrink-0">
                        Check →
                    </a>
                </div>
            </div>
        
            
            
            
            
            
            

            <div class="bg-white rounded-xl border border-gray-100 shadow-3xs p-3 flex flex-col justify-between hover:shadow-md transition-shadow duration-200" itemscope itemtype="https://schema.org/Product">
                <a href="/product/6-packs-new-goddess-locs-crochet-hair-18-B09D99QV16" class="block group">
                    <div class="w-full h-36 flex items-center justify-center bg-white rounded-lg p-2 mb-2 overflow-hidden">
                        <img src="https://m.media-amazon.com/images/I/51soFtmmKqL.jpg" alt="6 Packs New Goddess Locs Crochet Hair 18 Inch Curly Faux Locs Crochet Hair River Curls Crochet Hair Hippie Locs Synthetic Braids Boho Style Hair Synthetic Braids Hair Extensions for Women(1B/Bug)" class="max-h-full max-w-full object-contain group-hover:scale-105 transition-transform duration-200" itemprop="image">
                    </div>
                    <h3 class="text-xs text-gray-800 font-medium leading-snug mb-1 line-clamp-2 min-h-[32px] group-hover:text-amber-600 transition-colors">
                        <span itemprop="name">6 Packs New Goddess Locs Crochet Hair 18 Inch Curly Faux Locs Crochet Hair River Curls Crochet Hair Hippie Locs Synthetic Braids Boho Style Hair Synthetic Braids Hair Extensions for Women(1B/Bug)</span>
                    </h3>
                </a>
                
                <!-- Dynamic Rating Stars for Recommendations -->
                <div class="flex items-center gap-1.5 mb-2 select-none" itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
                    <div class="relative flex text-slate-200 text-[10px] tracking-tighter">
                        ★★★★★
                        <div class="absolute top-0 left-0 text-amber-500 overflow-hidden" style="width: 64.0%">★★★★★</div>
                    </div>
                    <span class="text-[9px] text-gray-400 font-semibold">(<span itemprop="reviewCount">2</span>)</span>
                </div>
                
                <div class="flex items-center justify-between mt-1 pt-2 border-t border-gray-50 gap-1.5" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
                    <span class="text-sm font-extrabold text-gray-900 flex-shrink-0">
                        <span itemprop="priceCurrency" content="USD">$</span><span itemprop="price" content="48.35">48.35</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B09D99QV16?tag=tmpyhtest-20&amp;language=en_US&amp;ref_=as_li_ss_tl" 
                       target="_blank"
                       rel="nofollow sponsored noopener noreferrer"
                       class="inline-block bg-amber-400 hover:bg-amber-500 text-gray-950 font-bold py-1 px-3 rounded-full shadow-2xs transition-colors text-[11px] whitespace-nowrap flex-shrink-0">
                        Check →
                    </a>
                </div>
            </div>
        
            
            
            
            
            
            

            <div class="bg-white rounded-xl border border-gray-100 shadow-3xs p-3 flex flex-col justify-between hover:shadow-md transition-shadow duration-200" itemscope itemtype="https://schema.org/Product">
                <a href="/product/4-dozen-(48)-long-perm-rods---orchid-(9-B00DD4KRPI" class="block group">
                    <div class="w-full h-36 flex items-center justify-center bg-white rounded-lg p-2 mb-2 overflow-hidden">
                        <img src="https://m.media-amazon.com/images/I/31eu0l3t-7L.jpg" alt="4 Dozen (48) Long Perm Rods - Orchid (9/16&#34;)" class="max-h-full max-w-full object-contain group-hover:scale-105 transition-transform duration-200" itemprop="image">
                    </div>
                    <h3 class="text-xs text-gray-800 font-medium leading-snug mb-1 line-clamp-2 min-h-[32px] group-hover:text-amber-600 transition-colors">
                        <span itemprop="name">4 Dozen (48) Long Perm Rods - Orchid (9/16&#34;)</span>
                    </h3>
                </a>
                
                <!-- Dynamic Rating Stars for Recommendations -->
                <div class="flex items-center gap-1.5 mb-2 select-none" itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
                    <div class="relative flex text-slate-200 text-[10px] tracking-tighter">
                        ★★★★★
                        <div class="absolute top-0 left-0 text-amber-500 overflow-hidden" style="width: 80.0%">★★★★★</div>
                    </div>
                    <span class="text-[9px] text-gray-400 font-semibold">(<span itemprop="reviewCount">20</span>)</span>
                </div>
                
                <div class="flex items-center justify-between mt-1 pt-2 border-t border-gray-50 gap-1.5" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
                    <span class="text-sm font-extrabold text-gray-900 flex-shrink-0">
                        <span itemprop="priceCurrency" content="USD">$</span><span itemprop="price" content="8.09">8.09</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B00DD4KRPI?tag=tmpyhtest-20&amp;language=en_US&amp;ref_=as_li_ss_tl" 
                       target="_blank"
                       rel="nofollow sponsored noopener noreferrer"
                       class="inline-block bg-amber-400 hover:bg-amber-500 text-gray-950 font-bold py-1 px-3 rounded-full shadow-2xs transition-colors text-[11px] whitespace-nowrap flex-shrink-0">
                        Check →
                    </a>
                </div>
            </div>
        
            
            
            
            
            
            

            <div class="bg-white rounded-xl border border-gray-100 shadow-3xs p-3 flex flex-col justify-between hover:shadow-md transition-shadow duration-200" itemscope itemtype="https://schema.org/Product">
                <a href="/product/mac-#316-lip-brush-B00B3Q4J8Y" class="block group">
                    <div class="w-full h-36 flex items-center justify-center bg-white rounded-lg p-2 mb-2 overflow-hidden">
                        <img src="https://m.media-amazon.com/images/I/116TNx4InNL.jpg" alt="MAC #316 Lip Brush" class="max-h-full max-w-full object-contain group-hover:scale-105 transition-transform duration-200" itemprop="image">
                    </div>
                    <h3 class="text-xs text-gray-800 font-medium leading-snug mb-1 line-clamp-2 min-h-[32px] group-hover:text-amber-600 transition-colors">
                        <span itemprop="name">MAC #316 Lip Brush</span>
                    </h3>
                </a>
                
                <!-- Dynamic Rating Stars for Recommendations -->
                <div class="flex items-center gap-1.5 mb-2 select-none" itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
                    <div class="relative flex text-slate-200 text-[10px] tracking-tighter">
                        ★★★★★
                        <div class="absolute top-0 left-0 text-amber-500 overflow-hidden" style="width: 82.0%">★★★★★</div>
                    </div>
                    <span class="text-[9px] text-gray-400 font-semibold">(<span itemprop="reviewCount">11</span>)</span>
                </div>
                
                <div class="flex items-center justify-between mt-1 pt-2 border-t border-gray-50 gap-1.5" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
                    <span class="text-sm font-extrabold text-gray-900 flex-shrink-0">
                        <span itemprop="priceCurrency" content="USD">$</span><span itemprop="price" content="14.92">14.92</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B00B3Q4J8Y?tag=tmpyhtest-20&amp;language=en_US&amp;ref_=as_li_ss_tl" 
                       target="_blank"
                       rel="nofollow sponsored noopener noreferrer"
                       class="inline-block bg-amber-400 hover:bg-amber-500 text-gray-950 font-bold py-1 px-3 rounded-full shadow-2xs transition-colors text-[11px] whitespace-nowrap flex-shrink-0">
                        Check →
                    </a>
                </div>
            </div>
        
    </div>
</div>

<script>
function switchMainImage(btn) {
    var targetSrc = btn.getAttribute('data-large');
    if (!targetSrc) return;
    
    var mainImg = document.getElementById('main-product-img');
    var resultImg = document.getElementById('zoom-result-img');
    if (mainImg) {
        // Simple fade transition effect
        mainImg.style.opacity = '0.3';
        setTimeout(function() {
            mainImg.src = targetSrc;
            mainImg.style.opacity = '1';
            if (resultImg) {
                resultImg.src = targetSrc;
            }
        }, 150);
    }
    
    var buttons = document.querySelectorAll('.thumbnail-btn');
    buttons.forEach(function(b) {
        b.classList.remove('border-amber-500', 'ring-2', 'ring-amber-500/20');
        b.classList.add('border-gray-200');
    });
    
    btn.classList.remove('border-gray-200');
    btn.classList.add('border-amber-500', 'ring-2', 'ring-amber-500/20');
}

function initMagnifier() {
    var container = document.getElementById('magnifier-container');
    var mainImg = document.getElementById('main-product-img');
    var lens = document.getElementById('zoom-lens');
    var zoomWin = document.getElementById('zoom-window');
    var resultImg = document.getElementById('zoom-result-img');
    
    if (!container || !mainImg || !lens || !zoomWin || !resultImg) return;
    
    // Remove existing event listeners to prevent duplicates
    container.removeEventListener('mouseenter', showZoom);
    container.removeEventListener('mouseleave', hideZoom);
    container.removeEventListener('mousemove', moveZoom);
    
    // Only enable on desktop screens (width >= 768px)
    if (window.innerWidth < 768) {
        lens.style.display = 'none';
        zoomWin.style.display = 'none';
        return;
    }
    
    container.addEventListener('mouseenter', showZoom);
    container.addEventListener('mouseleave', hideZoom);
    container.addEventListener('mousemove', moveZoom);
    
    var ratio = 2.5; // Magnification factor
    
    function showZoom() {
        if (window.innerWidth < 768) return;
        lens.style.display = 'block';
        zoomWin.style.display = 'block';
        
        resultImg.src = mainImg.src;
        
        // Dynamically compute the zoom-in result size
        var imgW = mainImg.offsetWidth;
        var imgH = mainImg.offsetHeight;
        
        resultImg.style.width = (imgW * ratio) + 'px';
        resultImg.style.height = (imgH * ratio) + 'px';
        
        // Size the lens proportionately
        lens.style.width = (zoomWin.offsetWidth / ratio) + 'px';
        lens.style.height = (zoomWin.offsetHeight / ratio) + 'px';
    }
    
    function hideZoom() {
        lens.style.display = 'none';
        zoomWin.style.display = 'none';
    }
    
    function moveZoom(e) {
        if (window.innerWidth < 768) return;
        
        var rect = mainImg.getBoundingClientRect();
        var containerRect = container.getBoundingClientRect();
        
        // Mouse coordinate position relative to the main image
        var x = e.clientX - rect.left;
        var y = e.clientY - rect.top;
        
        var lensW = lens.offsetWidth;
        var lensH = lens.offsetHeight;
        
        // Center the lens relative to mouse cursor
        var lensX = x - lensW / 2;
        var lensY = y - lensH / 2;
        
        // Prevent lens boundaries from leaving the image
        if (lensX < 0) lensX = 0;
        if (lensY < 0) lensY = 0;
        if (lensX > rect.width - lensW) lensX = rect.width - lensW;
        if (lensY > rect.height - lensH) lensY = rect.height - lensH;
        
        // Account for image offset inside the flex centering container
        var offsetLeft = rect.left - containerRect.left;
        var offsetTop = rect.top - containerRect.top;
        
        lens.style.left = (lensX + offsetLeft) + 'px';
        lens.style.top = (lensY + offsetTop) + 'px';
        
        // Move the zoom container background image viewport
        resultImg.style.left = -(lensX * ratio) + 'px';
        resultImg.style.top = -(lensY * ratio) + 'px';
    }
}

// Initialise on load and resize
document.addEventListener('DOMContentLoaded', initMagnifier);
if (document.readyState === 'interactive' || document.readyState === 'complete') {
    initMagnifier();
}
window.addEventListener('resize', initMagnifier);

// Re-init if main image changes dynamically (e.g. initial image load async)
var mainImgEl = document.getElementById('main-product-img');
if (mainImgEl) {
    mainImgEl.addEventListener('load', initMagnifier);
}

// Unique image URLs for navigation
var productImages = [
    
        
            
                "https://m.media-amazon.com/images/I/41aroGlu87L.jpg",
            
        
            
                "https://m.media-amazon.com/images/I/41aAVuRw1vL.jpg",
            
        
            
                "https://m.media-amazon.com/images/I/41XxMB0s2aL.jpg",
            
        
    
];
var currentImageIndex = 0;

function navigateModalImage(direction) {
    if (productImages.length <= 1) return;
    
    currentImageIndex += direction;
    
    // Wrap around index
    if (currentImageIndex < 0) {
        currentImageIndex = productImages.length - 1;
    } else if (currentImageIndex >= productImages.length) {
        currentImageIndex = 0;
    }
    
    updateModalImage();
    
    // Sync the main page gallery thumbnail button selection
    var buttons = document.querySelectorAll('.thumbnail-btn');
    if (buttons && buttons[currentImageIndex]) {
        buttons.forEach(function(b) {
            b.classList.remove('border-amber-500', 'ring-2', 'ring-amber-500/20');
            b.classList.add('border-gray-200');
        });
        buttons[currentImageIndex].classList.remove('border-gray-200');
        buttons[currentImageIndex].classList.add('border-amber-500', 'ring-2', 'ring-amber-500/20');
        
        // Update main image and magnifier result image (with fade transition)
        var mainImg = document.getElementById('main-product-img');
        if (mainImg) {
            mainImg.style.opacity = '0.3';
            setTimeout(function() {
                mainImg.src = productImages[currentImageIndex];
                mainImg.style.opacity = '1';
            }, 150);
        }
        var resultImg = document.getElementById('zoom-result-img');
        if (resultImg) {
            resultImg.src = productImages[currentImageIndex];
        }
    }
}

// Mobile touch swipe carousel implementation
function initTouchSwipe() {
    var container = document.getElementById('magnifier-container');
    if (!container) return;
    
    var startX = 0;
    var startY = 0;
    var diffX = 0;
    var diffY = 0;
    
    container.addEventListener('touchstart', function(e) {
        if (e.touches.length === 1) {
            startX = e.touches[0].clientX;
            startY = e.touches[0].clientY;
            diffX = 0;
            diffY = 0;
        }
    }, { passive: true });
    
    container.addEventListener('touchmove', function(e) {
        if (e.touches.length === 1) {
            diffX = e.touches[0].clientX - startX;
            diffY = e.touches[0].clientY - startY;
            
            // If horizontal movement is dominant, prevent default page scrolling
            if (Math.abs(diffX) > Math.abs(diffY)) {
                if (e.cancelable) e.preventDefault();
            }
        }
    }, { passive: false });
    
    container.addEventListener('touchend', function(e) {
        var threshold = 50; // Minimum swipe distance in px
        if (Math.abs(diffX) > threshold && Math.abs(diffX) > Math.abs(diffY)) {
            if (diffX > 0) {
                // Swiped right -> Previous image
                navigateModalImage(-1);
            } else {
                // Swiped left -> Next image
                navigateModalImage(1);
            }
        }
    }, { passive: true });
}

// Initialize touch swipe listeners
document.addEventListener('DOMContentLoaded', initTouchSwipe);
if (document.readyState === 'interactive' || document.readyState === 'complete') {
    initTouchSwipe();
}

function updateModalImage() {
    var modalImg = document.getElementById('modal-img');
    if (modalImg && productImages[currentImageIndex]) {
        modalImg.src = productImages[currentImageIndex];
    }
    
    // Update arrow visibility (hide if only 1 unique image)
    var prevBtn = document.getElementById('modal-prev-btn');
    var nextBtn = document.getElementById('modal-next-btn');
    if (prevBtn && nextBtn) {
        if (productImages.length <= 1) {
            prevBtn.style.display = 'none';
            nextBtn.style.display = 'none';
        } else {
            prevBtn.style.display = 'flex';
            nextBtn.style.display = 'flex';
        }
    }
}

// Modal open/close actions (PC Only)
function openImageModal() {
    // Only open the modal popup on PC (desktop screens >= 768px)
    if (window.innerWidth < 768) return;
    
    var modal = document.getElementById('image-modal');
    var modalCard = document.getElementById('modal-card');
    var mainImg = document.getElementById('main-product-img');
    var modalImg = document.getElementById('modal-img');
    
    if (!modal || !modalCard || !mainImg || !modalImg) return;
    
    var currentSrc = mainImg.getAttribute('src');
    currentImageIndex = productImages.indexOf(currentSrc);
    if (currentImageIndex === -1) {
        currentImageIndex = 0;
        for (var i = 0; i < productImages.length; i++) {
            if (currentSrc.includes(productImages[i]) || productImages[i].includes(currentSrc)) {
                currentImageIndex = i;
                break;
            }
        }
    }
    
    updateModalImage();
    
    modal.classList.remove('hidden');
    modal.classList.add('flex');
    
    // Force reflow for fade transition
    setTimeout(function() {
        modal.style.opacity = '1';
        modalCard.classList.remove('scale-95');
        modalCard.classList.add('scale-100');
    }, 10);
}

function closeImageModal(e) {
    if (e.target.id === 'image-modal') {
        closeImageModalDirect();
    }
}

function closeImageModalDirect() {
    var modal = document.getElementById('image-modal');
    var modalCard = document.getElementById('modal-card');
    if (!modal || !modalCard) return;
    
    modal.style.opacity = '0';
    modalCard.classList.remove('scale-100');
    modalCard.classList.add('scale-95');
    
    setTimeout(function() {
        modal.classList.remove('flex');
        modal.classList.add('hidden');
    }, 300);
}

// Keyboard shortcuts for PC (ESC, ArrowLeft, ArrowRight)
document.addEventListener('keydown', function(e) {
    var modal = document.getElementById('image-modal');
    if (!modal || modal.classList.contains('hidden')) return;
    
    if (e.key === 'Escape') {
        closeImageModalDirect();
    } else if (e.key === 'ArrowLeft') {
        navigateModalImage(-1);
    } else if (e.key === 'ArrowRight') {
        navigateModalImage(1);
    }
});
</script>

<!-- Amazon Style Image Modal (Lightbox - PC Only) -->
<div id="image-modal" class="fixed inset-0 bg-slate-900/70 backdrop-blur-xs z-[9999] hidden flex items-center justify-center transition-all duration-300 opacity-0" onclick="closeImageModal(event)">
    <div class="bg-white rounded-xl p-5 shadow-2xl border-4 border-[#F3D078] max-w-2xl w-full mx-4 relative flex flex-col items-center justify-center transform scale-95 transition-all duration-300" id="modal-card">
        <!-- Close Button -->
        <button class="absolute top-2 right-4 text-gray-400 hover:text-gray-700 text-3xl font-light cursor-pointer select-none transition-colors z-[100]" onclick="closeImageModalDirect()">&times;</button>
        
        <!-- Image Area with clear border & Navigation Arrows -->
        <div class="border border-gray-200 rounded-lg p-2 bg-gray-50/50 flex items-center justify-center overflow-hidden max-h-[70vh] w-full shadow-inner relative group">
            <!-- Left Arrow -->
            <button id="modal-prev-btn" class="absolute left-4 top-1/2 -translate-y-1/2 w-10 h-10 bg-slate-900/40 hover:bg-slate-900/60 text-white rounded-full flex items-center justify-center text-xl font-bold cursor-pointer select-none transition-colors border border-white/20 shadow-md z-[100]" onclick="navigateModalImage(-1); event.stopPropagation();">
                &#10094;
            </button>
            
            <img id="modal-img" src="" alt="Zoomed Product Image" class="max-h-[65vh] max-w-full object-contain rounded">
            
            <!-- Right Arrow -->
            <button id="modal-next-btn" class="absolute right-4 top-1/2 -translate-y-1/2 w-10 h-10 bg-slate-900/40 hover:bg-slate-900/60 text-white rounded-full flex items-center justify-center text-xl font-bold cursor-pointer select-none transition-colors border border-white/20 shadow-md z-[100]" onclick="navigateModalImage(1); event.stopPropagation();">
                &#10095;
            </button>
        </div>
    </div>
</div>

    </main>

    <!-- 手机底部固定导航栏 -->
    <div class="fixed bottom-0 left-0 right-0 h-16 bg-white/80 border-t border-slate-100 backdrop-blur-lg shadow-[0_-8px_20px_rgba(0,0,0,0.04)] flex md:hidden z-[9999] p-1.5 gap-2">
        <a href="/" class="flex-1 flex flex-col items-center justify-center transition-all duration-200 rounded-xl text-slate-500 hover:text-amber-500 font-medium border border-transparent">
            <span class="text-lg ">🏠</span>
            <span class="text-[10px] mt-0.5">Home</span>
        </a>
        
        <a href="/list" class="flex-1 flex flex-col items-center justify-center transition-all duration-200 rounded-xl bg-amber-500/10 text-amber-600 font-bold border border-[#F3D078]">
            <span class="text-lg scale-110 filter drop-shadow-[0_2px_4px_rgba(245,158,11,0.2)]">🛍️</span>
            <span class="text-[10px] mt-0.5">Categories</span>
        </a>
        
        <a href="/about" class="flex-1 flex flex-col items-center justify-center transition-all duration-200 rounded-xl text-slate-500 hover:text-amber-500 font-medium border border-transparent">
            <span class="text-lg ">ℹ️</span>
            <span class="text-[10px] mt-0.5">About</span>
        </a>
    </div>

</body>
</html>