<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    <title>Limited Edition C.H.I. Infra Texture Hair Spray 10 oz -Perfume/Cologne Samples Included- - 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="Limited Edition C.H.I. Infra Texture Hair Spray 10 oz -Perfume/Cologne Samples Included-">
            Limited Edition C.H.I. Infra Texture Hair Spray 10 oz -Perfume/Cologne Samples Included-
        </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">
                

                <img src="https://m.media-amazon.com/images/I/31qlb-fqoYL.jpg" alt="Limited Edition C.H.I. Infra Texture Hair Spray 10 oz -Perfume/Cologne Samples Included-" id="main-product-img" class="max-h-[360px] object-contain rounded-lg transition-all duration-150 md:cursor-zoom-in" onclick="openImageModal()" itemprop="image">
                
                

                <!-- 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/31qlb-fqoYL.jpg" class="absolute max-w-none" style="width: 1000px; height: 1000px;">
                </div>
            </div>

            <!-- Gallery Thumbnails Grid -->
            

            <a href="https://www.amazon.com/dp/B07GT8ZYLP?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">
                Limited Edition C.H.I. Infra Texture Hair Spray 10 oz -Perfume/Cologne Samples Included-
            </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: 84.00000000000001%">★★★★★</div>
                </div>
                <span class="text-gray-700 font-medium"><span itemprop="ratingValue">4.2</span></span>
                <span class="text-gray-400">(<span itemprop="reviewCount">32</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="10.81">10.81</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/B07GT8ZYLP?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">Limited Edition</span></div>
                <div><span class="font-medium text-gray-700">ASIN:</span> B07GT8ZYLP</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> 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">Brand</span>
                    <span class="text-gray-800 font-medium text-right">Limited Edition</span>
                </div>
            
                <div class="flex justify-between py-2 border-b border-gray-50">
                    <span class="text-gray-400 uppercase tracking-wider font-semibold">Hair Type</span>
                    <span class="text-gray-800 font-medium text-right">Texture</span>
                </div>
            
                <div class="flex justify-between py-2 border-b border-gray-50">
                    <span class="text-gray-400 uppercase tracking-wider font-semibold">Item Form</span>
                    <span class="text-gray-800 font-medium text-right">Spray</span>
                </div>
            
                <div class="flex justify-between py-2 border-b border-gray-50">
                    <span class="text-gray-400 uppercase tracking-wider font-semibold">Liquid Volume</span>
                    <span class="text-gray-800 font-medium text-right">10 Fluid Ounces</span>
                </div>
            
                <div class="flex justify-between py-2 border-b border-gray-50">
                    <span class="text-gray-400 uppercase tracking-wider font-semibold">Product Benefits</span>
                    <span class="text-gray-800 font-medium text-right">Hydrating</span>
                </div>
            
                <div class="flex justify-between py-2 border-b border-gray-50">
                    <span class="text-gray-400 uppercase tracking-wider font-semibold">Is Discontinued By Manufacturer</span>
                    <span class="text-gray-800 font-medium text-right">No</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-08-14">2025-08-14</span>
                    </div>
                    
                    <h4 class="text-sm font-bold text-gray-900 mb-1" itemprop="name">Among other things there&#39;s no cap. It&#39;s a turn lock top so don&#39;t fear accidental sprays!</h4>
                    <p class="text-xs text-gray-500 leading-relaxed line-clamp-4 flex-grow mb-3" itemprop="reviewBody">Absolutely nothing stiff or sticky about this texture spray!  Blow up your style and look totally natural with CHI... this size allows you to throw it in your bag and take it with you for pump up on the go.</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 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="2024-10-29">2024-10-29</span>
                    </div>
                    
                    <h4 class="text-sm font-bold text-gray-900 mb-1" itemprop="name">Good product</h4>
                    <p class="text-xs text-gray-500 leading-relaxed line-clamp-4 flex-grow mb-3" itemprop="reviewBody">Great product.  Makes my hair very smooth and smells great.</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 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-23">2025-02-23</span>
                    </div>
                    
                    <h4 class="text-sm font-bold text-gray-900 mb-1" itemprop="name">Love this product!</h4>
                    <p class="text-xs text-gray-500 leading-relaxed line-clamp-4 flex-grow mb-3" itemprop="reviewBody">Very light hold hairspray and smells great, too! It is difficult to find, at times and love that I found it here!&lt;br /&gt;LOVED the samples, as well..already hooked on Burberry Body!</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 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="2026-06-18">2026-06-18</span>
                    </div>
                    
                    <h4 class="text-sm font-bold text-gray-900 mb-1" itemprop="name">Great smell</h4>
                    <p class="text-xs text-gray-500 leading-relaxed line-clamp-4 flex-grow mb-3" itemprop="reviewBody">Love chi products, and the smell is awesome</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 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-06-07">2025-06-07</span>
                    </div>
                    
                    <h4 class="text-sm font-bold text-gray-900 mb-1" itemprop="name">Smells and works fantastic</h4>
                    <p class="text-xs text-gray-500 leading-relaxed line-clamp-4 flex-grow mb-3" itemprop="reviewBody">I love this product. I have fine hair, and this is buildable. Makes me look like I have a ton of hair</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 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="2026-05-25">2026-05-25</span>
                    </div>
                    
                    <h4 class="text-sm font-bold text-gray-900 mb-1" itemprop="name">Loyal customer</h4>
                    <p class="text-xs text-gray-500 leading-relaxed line-clamp-4 flex-grow mb-3" itemprop="reviewBody">Loyal customer to this product. I have fine and thinner hair. So it can tend to be a bit on the flat side.This texture spray takes my hair to the next level</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 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-03-12">2025-03-12</span>
                    </div>
                    
                    <h4 class="text-sm font-bold text-gray-900 mb-1" itemprop="name">My favorite hairspray EVER</h4>
                    <p class="text-xs text-gray-500 leading-relaxed line-clamp-4 flex-grow mb-3" itemprop="reviewBody">Difficult to find in my area! Smells awesome! Soft but sturdy and long lasting hold.</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/max-makeup-cherimoya-eyeliner-and-mascar-B06VVLVYBH" 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/41n0bzL7DsL.jpg" alt="Max Makeup Cherimoya Eyeliner &amp; Mascara Duo Black" 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">Max Makeup Cherimoya Eyeliner &amp; Mascara Duo Black</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">1</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="53.41">53.41</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B06VVLVYBH?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/suprent-nose-and-ear-hair-trimmer-with-s-B094R2KDZY" 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/41jk2pVTVWL.jpg" alt="SUPRENT Nose and Ear Hair Trimmer with Super Silence Tech, Type-C Rechargeable Li-ion Battery, 6500RPM Painless Precision Nose Hair Remover, IPX7 Waterproof" 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">SUPRENT Nose and Ear Hair Trimmer with Super Silence Tech, Type-C Rechargeable Li-ion Battery, 6500RPM Painless Precision Nose Hair Remover, IPX7 Waterproof</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">35</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="42.39">42.39</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B094R2KDZY?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/gortin-boho-headbands-wide-hair-bands-st-B08Z3NZ44T" 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/51JRfiEKIIS.jpg" alt="Gortin Boho Headbands Wide Hair Bands Stretch Turban Headband Twisted Head Wrap Floral Printed Cotton Sweatbands Knotted FashionHead Bands for Women and Girls Pack of 3 (Set3-Little daisy)" 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">Gortin Boho Headbands Wide Hair Bands Stretch Turban Headband Twisted Head Wrap Floral Printed Cotton Sweatbands Knotted FashionHead Bands for Women and Girls Pack of 3 (Set3-Little daisy)</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">30</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="78.52">78.52</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B08Z3NZ44T?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/cokohappy-large-temporary-tattoo,-keep-c-B017A0PAFW" 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/51yyGtuYI+L.jpg" alt="COKOHAPPY Large Temporary Tattoo, Keep Calm Word" 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">COKOHAPPY Large Temporary Tattoo, Keep Calm Word</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">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="43.52">43.52</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B017A0PAFW?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/uxcell®-battery-powered-white-led-light-B00D144E2C" 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/31d33GzPiwL.jpg" alt="uxcell® Battery Powered White LED Light Ear Cleaner Safe Flashlight Earpick Tool" 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">uxcell® Battery Powered White LED Light Ear Cleaner Safe Flashlight Earpick Tool</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: 40.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="20.34">20.34</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B00D144E2C?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/for-pro-heavy-duty-pink-light-pink-foam-B00HSZKEME" 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/51dvmvXMKVL.jpg" alt="For Pro Heavy Duty Pink/Light Pink Foam Board 150/280 Grit, 7 Inch x .75 Inch, 50 Count" 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">For Pro Heavy Duty Pink/Light Pink Foam Board 150/280 Grit, 7 Inch x .75 Inch, 50 Count</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: 100.0%">★★★★★</div>
                    </div>
                    <span class="text-[9px] text-gray-400 font-semibold">(<span itemprop="reviewCount">1</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="23.83">23.83</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B00HSZKEME?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/sensecosmetics-brush-cleaner-B01LXDIBF2" 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/21R71uhxK1L.jpg" alt="SenseCosmetics Brush Cleaner" 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">SenseCosmetics Brush Cleaner</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: 68.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="9.99">9.99</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B01LXDIBF2?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/lh-afro-kinky-(1-jet-black)---the-wig-br-B01959P5WY" 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/41XRJGki8GL.jpg" alt="LH AFRO KINKY (1 Jet Black) - THE WIG Brazilian Human Hair Blend Invisible Part Lace Front Wig" 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">LH AFRO KINKY (1 Jet Black) - THE WIG Brazilian Human Hair Blend Invisible Part Lace Front Wig</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: 78.0%">★★★★★</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="6.93">6.93</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B01959P5WY?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/changeshopping-fashion-crystal-butterfly-B00OLIUIFE" 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/31htBgJ43TL.jpg" alt="Changeshopping Fashion Crystal Butterfly Dangle Ball Barbell Bar Belly Button Navel Ring (White)" 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">Changeshopping Fashion Crystal Butterfly Dangle Ball Barbell Bar Belly Button Navel Ring (White)</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: 70.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="6.63">6.63</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B00OLIUIFE?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/makeup-brush-cleaner---silicone-cleaning-B079M1GGWL" 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/31xEm80q29L.jpg" alt="Makeup Brush Cleaner - Silicone Cleaning Mat Includes Suction Cup Grip Mount- Beauty Product Travel Size (Magenta)" 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">Makeup Brush Cleaner - Silicone Cleaning Mat Includes Suction Cup Grip Mount- Beauty Product Travel Size (Magenta)</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: 74.0%">★★★★★</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="22.07">22.07</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B079M1GGWL?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/31qlb-fqoYL.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>