<!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. Keratin Flex Finish 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. Keratin Flex Finish Hair Spray 10 oz -Perfume/Cologne Samples Included-">
            Limited Edition C.H.I. Keratin Flex Finish 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/31IjVD7220L.jpg" alt="Limited Edition C.H.I. Keratin Flex Finish 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/31IjVD7220L.jpg" class="absolute max-w-none" style="width: 1000px; height: 1000px;">
                </div>
            </div>

            <!-- Gallery Thumbnails Grid -->
            

            <a href="https://www.amazon.com/dp/B07GT9TBC2?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. Keratin Flex Finish 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: 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">21</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="25.23">25.23</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/B07GT9TBC2?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> B07GT9TBC2</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">Frizzy</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">Number of Items</span>
                    <span class="text-gray-800 font-medium text-right">1</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="2026-03-25">2026-03-25</span>
                    </div>
                    
                    <h4 class="text-sm font-bold text-gray-900 mb-1" itemprop="name">Best hairspray</h4>
                    <p class="text-xs text-gray-500 leading-relaxed line-clamp-4 flex-grow mb-3" itemprop="reviewBody">Love this hairspray, great hold not heavy or crunchy and smells good. A little expensive but worth it.</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-06">2025-06-06</span>
                    </div>
                    
                    <h4 class="text-sm font-bold text-gray-900 mb-1" itemprop="name">Great hold</h4>
                    <p class="text-xs text-gray-500 leading-relaxed line-clamp-4 flex-grow mb-3" itemprop="reviewBody">I love this product</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-11-14">2024-11-14</span>
                    </div>
                    
                    <h4 class="text-sm font-bold text-gray-900 mb-1" itemprop="name">Good value</h4>
                    <p class="text-xs text-gray-500 leading-relaxed line-clamp-4 flex-grow mb-3" itemprop="reviewBody">Good value</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/3-pieces-shower-caps-for-women,-waterpro-B08W54XQJD" 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/616RpBlEGBS.jpg" alt="3 Pieces Shower Caps for Women, Waterproof Reusable Shower Hair Caps Elastic Hem Turban Shower Bath Caps for Long, Short and Curly Hair for Women Girls (Leaf, Flower and Leopard Pattern)" 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">3 Pieces Shower Caps for Women, Waterproof Reusable Shower Hair Caps Elastic Hem Turban Shower Bath Caps for Long, Short and Curly Hair for Women Girls (Leaf, Flower and Leopard Pattern)</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: 84.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="24.61">24.61</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B08W54XQJD?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/25mm-3d-mink-lashes-fluffy-mink-eyelash-B08LL3QZT3" 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/51gpPN41feL.jpg" alt="25mm 3D Mink Lashes Fluffy Mink Eyelash Full Stip Lashes High Volume Long 25mm 5d Mink Eyelashes (71Amix)" 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">25mm 3D Mink Lashes Fluffy Mink Eyelash Full Stip Lashes High Volume Long 25mm 5d Mink Eyelashes (71Amix)</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: 65.99999999999999%">★★★★★</div>
                    </div>
                    <span class="text-[9px] text-gray-400 font-semibold">(<span itemprop="reviewCount">8</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.21">65.21</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B08LL3QZT3?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/ayushman-ayurvedic-soap-by-avp---(pack-o-B01D14FPXS" 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/514VtdTYNZL.jpg" alt="Ayushman Ayurvedic Soap by AVP - (Pack of 16) - 75g" 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">Ayushman Ayurvedic Soap by AVP - (Pack of 16) - 75g</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="73.40">73.40</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B01D14FPXS?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/amaranth-oil-by-5am.-100%-pure,-organic,-B01NCY6667" 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/51sZ9ci7mJL.jpg" alt="Amaranth Oil by 5AM. 100% Pure, Organic, Cold-Pressed. Amazing for Face, Skin, Nails, Health (Glass Bottle). Learn More. 1oz." 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">Amaranth Oil by 5AM. 100% Pure, Organic, Cold-Pressed. Amazing for Face, Skin, Nails, Health (Glass Bottle). Learn More. 1oz.</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">63</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="30.67">30.67</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B01NCY6667?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/10a-brazilian-straight-hair-4-bundles-(1-B08GC36Q43" 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/51gAbpNIWsL.jpg" alt="10A Brazilian Straight Hair 4 Bundles (18 20 22 24) Virgin Human Hair Bundles Straight Hair Extensions Weave Hair Human Bundles 100% Unprocessed Virgin Hair Bundles" 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">10A Brazilian Straight Hair 4 Bundles (18 20 22 24) Virgin Human Hair Bundles Straight Hair Extensions Weave Hair Human Bundles 100% Unprocessed Virgin Hair Bundles</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">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="76.73">76.73</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B08GC36Q43?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/women&#39;s-halston-by-halston-bath-powder-B000LRKN7M" 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/31YvVKCvVyL.jpg" alt="Women&#39;s Halston by Halston Bath Powder - 5.3 oz" 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">Women&#39;s Halston by Halston Bath Powder - 5.3 oz</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">29</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="10.66">10.66</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B000LRKN7M?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/acure-organics,-radical-resurfacing-trea-B01LR84VZ8" 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/41IjxvNvlyL.jpg" alt="Acure Organics, Radical Resurfacing Treatment, Poet&#39;s Daffodil Stem Cell, 1.4 fl oz (41 ml) - 2pc" 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">Acure Organics, Radical Resurfacing Treatment, Poet&#39;s Daffodil Stem Cell, 1.4 fl oz (41 ml) - 2pc</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: 32.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.99">48.99</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B01LR84VZ8?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/sodial-new-pink-callus-corn-hard-skin-re-B00JA8QDJK" 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/41kd9eEeRmL.jpg" alt="SODIAL NEW PINK Callus Corn Hard Skin Remover Shaver Foot Pedicure Kit Feet &amp; 10 Blades" 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">SODIAL NEW PINK Callus Corn Hard Skin Remover Shaver Foot Pedicure Kit Feet &amp; 10 Blades</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">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="39.46">39.46</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B00JA8QDJK?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/clever-clasp---set-of-4---gold-and-silve-B002IN0WZU" 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/51dq+D3rCZL.jpg" alt="Clever Clasp - Set of 4 - Gold and Silver Available, 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">Clever Clasp - Set of 4 - Gold and Silver Available, 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: 70.0%">★★★★★</div>
                    </div>
                    <span class="text-[9px] text-gray-400 font-semibold">(<span itemprop="reviewCount">15</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="67.90">67.90</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B002IN0WZU?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/mhdgg-headband-for-women-wrinkled-faux-l-B085L21XSL" 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/41haP72iqmL.jpg" alt="MHDGG Headband for Women Wrinkled Faux Leather Headband,PU Wide Turban Headband Hair Band for Women Headbands Black Wide Hair Hoops Headwear,Pink" 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">MHDGG Headband for Women Wrinkled Faux Leather Headband,PU Wide Turban Headband Hair Band for Women Headbands Black Wide Hair Hoops Headwear,Pink</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: 76.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="67.90">67.90</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B085L21XSL?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/31IjVD7220L.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>