<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    <title>M.A.C Shiny Pretty Things Goody Bag Lip Set - NUDE Limited Edition, - 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="M.A.C Shiny Pretty Things Goody Bag Lip Set - NUDE Limited Edition,">
            M.A.C Shiny Pretty Things Goody Bag Lip Set - NUDE Limited Edition,
        </li>
    </ol>
</nav>

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

                <img src="https://m.media-amazon.com/images/I/41QyfE-kDcL.jpg" alt="M.A.C Shiny Pretty Things Goody Bag Lip Set - NUDE Limited Edition," id="main-product-img" class="max-h-[360px] object-contain rounded-lg transition-all duration-150 md:cursor-zoom-in" onclick="openImageModal()" itemprop="image">
                
                
                <!-- Mobile Only Right Navigation Arrow -->
                <button class="absolute right-3 top-1/2 -translate-y-1/2 w-8 h-8 bg-slate-900/30 active:bg-slate-900/50 text-white rounded-full flex items-center justify-center text-sm font-bold cursor-pointer select-none transition-colors border border-white/10 shadow-xs z-[20] md:hidden" onclick="navigateModalImage(1)">
                    &#10095;
                </button>
                

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

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

            <a href="https://www.amazon.com/dp/B07KKNM96Z?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">
                M.A.C Shiny Pretty Things Goody Bag Lip Set - NUDE Limited Edition,
            </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: 70.0%">★★★★★</div>
                </div>
                <span class="text-gray-700 font-medium"><span itemprop="ratingValue">3.5</span></span>
                <span class="text-gray-400">(<span itemprop="reviewCount">12</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="14.51">14.51</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/B07KKNM96Z?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">A</span></div>
                <div><span class="font-medium text-gray-700">ASIN:</span> B07KKNM96Z</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">UPC</span>
                    <span class="text-gray-800 font-medium text-right">732326297771</span>
                </div>
            
                <div class="flex justify-between py-2 border-b border-gray-50">
                    <span class="text-gray-400 uppercase tracking-wider font-semibold">Package Dimensions</span>
                    <span class="text-gray-800 font-medium text-right">8.58 x 4.25 x 3.78 inches; 7.05 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">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-02-10">2025-02-10</span>
                    </div>
                    
                    <h4 class="text-sm font-bold text-gray-900 mb-1" itemprop="name">Nice make up bag that will fit in a purse.</h4>
                    <p class="text-xs text-gray-500 leading-relaxed line-clamp-4 flex-grow mb-3" itemprop="reviewBody">It&#39;s cute. Has a metal bow on the zipper. Nice make up bag.</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/bow-holders-for-girls-hair-clip-holder-(-B07ZNTWGK4" 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/31xAGlvpQFL.jpg" alt="Bow Holders for Girls Hair Clip Holder (White Round)" 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">Bow Holders for Girls Hair Clip Holder (White Round)</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: 92.0%">★★★★★</div>
                    </div>
                    <span class="text-[9px] text-gray-400 font-semibold">(<span itemprop="reviewCount">4</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.29">22.29</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B07ZNTWGK4?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/toiletry-bag,-veckle-dopp-kit-shaving-ba-B081V51KFG" 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/51Opdq44wzL.jpg" alt="Toiletry Bag, Veckle Dopp Kit Shaving Bag for Men Nylon Travel Toiletry Organizer Shower Wash Bag for Women with Hanging Strap Orange" 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">Toiletry Bag, Veckle Dopp Kit Shaving Bag for Men Nylon Travel Toiletry Organizer Shower Wash Bag for Women with Hanging Strap Orange</span>
                    </h3>
                </a>
                
                <!-- Dynamic Rating Stars for Recommendations -->
                <div class="flex items-center gap-1.5 mb-2 select-none" itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
                    <div class="relative flex text-slate-200 text-[10px] tracking-tighter">
                        ★★★★★
                        <div class="absolute top-0 left-0 text-amber-500 overflow-hidden" style="width: 86.0%">★★★★★</div>
                    </div>
                    <span class="text-[9px] text-gray-400 font-semibold">(<span itemprop="reviewCount">80</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="12.54">12.54</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B081V51KFG?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/mojo-beauty-premier-15-piece-professiona-B00H3PB9CS" 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/51I4KPKbE2L.jpg" alt="Mojo Beauty Premier 15-Piece Professional Make-up Brush Kit With Silver Heart Zipper" 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">Mojo Beauty Premier 15-Piece Professional Make-up Brush Kit With Silver Heart Zipper</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">14</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="52.73">52.73</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B00H3PB9CS?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/beron-16&#34;-womens-short-curly-wavy-wig-wi-B07VCR2JYH" 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/41Id8AxjFzL.jpg" alt="BERON 16&#34; Womens Short Curly Wavy Wig with Bangs Synthetic Hair Party Wigs Wig Cap Included (Dark Purple)" 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">BERON 16&#34; Womens Short Curly Wavy Wig with Bangs Synthetic Hair Party Wigs Wig Cap Included (Dark Purple)</span>
                    </h3>
                </a>
                
                <!-- Dynamic Rating Stars for Recommendations -->
                <div class="flex items-center gap-1.5 mb-2 select-none" itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
                    <div class="relative flex text-slate-200 text-[10px] tracking-tighter">
                        ★★★★★
                        <div class="absolute top-0 left-0 text-amber-500 overflow-hidden" style="width: 72.0%">★★★★★</div>
                    </div>
                    <span class="text-[9px] text-gray-400 font-semibold">(<span itemprop="reviewCount">3</span>)</span>
                </div>
                
                <div class="flex items-center justify-between mt-1 pt-2 border-t border-gray-50 gap-1.5" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
                    <span class="text-sm font-extrabold text-gray-900 flex-shrink-0">
                        <span itemprop="priceCurrency" content="USD">$</span><span itemprop="price" content="14.53">14.53</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B07VCR2JYH?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/cute-graffiti-nail-art-stickers-3d-self-B08Y7MLGL2" 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/61tMPXEMpGL.jpg" alt="Cute Graffiti Nail Art Stickers 3D Self-Adhesive Nail Decals Nail Art Supplies Rainbow Unicorn Flower Emoji Smiley Cartoon Nail Stickers for Little Girls Women Kids Manicure Tips (8 Sheets)" 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">Cute Graffiti Nail Art Stickers 3D Self-Adhesive Nail Decals Nail Art Supplies Rainbow Unicorn Flower Emoji Smiley Cartoon Nail Stickers for Little Girls Women Kids Manicure Tips (8 Sheets)</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">9</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.46">53.46</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B08Y7MLGL2?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/deep-wave-bundles-wet-and-wavy-bundles-1-B09YKB7L66" 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/51WCE-aZnOL.jpg" alt="Deep Wave Bundles Wet and wavy Bundles 100% Unprocessed Brazilian Deep Wave Bundles virgin Hair 26 inch loose Wave Bundles 8A Extensions Human Hair Bundles Natural Black Color YOUNGHANN" 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">Deep Wave Bundles Wet and wavy Bundles 100% Unprocessed Brazilian Deep Wave Bundles virgin Hair 26 inch loose Wave Bundles 8A Extensions Human Hair Bundles Natural Black Color YOUNGHANN</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: 20.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="72.11">72.11</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B09YKB7L66?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/gnimegil-afro-kinky-curly-hair-short-flu-B08X42DJ5P" 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/51-nJZ773rL.jpg" alt="GNIMEGIL Afro Kinky Curly Hair Short Fluffy Grey Hair Costume Synthetic Wigs for Women" class="max-h-full max-w-full object-contain group-hover:scale-105 transition-transform duration-200" itemprop="image">
                    </div>
                    <h3 class="text-xs text-gray-800 font-medium leading-snug mb-1 line-clamp-2 min-h-[32px] group-hover:text-amber-600 transition-colors">
                        <span itemprop="name">GNIMEGIL Afro Kinky Curly Hair Short Fluffy Grey Hair Costume Synthetic Wigs for Women</span>
                    </h3>
                </a>
                
                <!-- Dynamic Rating Stars for Recommendations -->
                <div class="flex items-center gap-1.5 mb-2 select-none" itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
                    <div class="relative flex text-slate-200 text-[10px] tracking-tighter">
                        ★★★★★
                        <div class="absolute top-0 left-0 text-amber-500 overflow-hidden" style="width: 52.0%">★★★★★</div>
                    </div>
                    <span class="text-[9px] text-gray-400 font-semibold">(<span itemprop="reviewCount">7</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="26.15">26.15</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B08X42DJ5P?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/jet-2-in-1-shower-gel-and-shampoo-axe-sh-B075FXNJQJ" 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/41U8Mty7tzL.jpg" alt="Jet 2 in 1 Shower Gel &amp; Shampoo AXE Shower Gel &amp; Shampoo Unisex 16 oz (Pack of 3)" 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">Jet 2 in 1 Shower Gel &amp; Shampoo AXE Shower Gel &amp; Shampoo Unisex 16 oz (Pack of 3)</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="17.26">17.26</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B075FXNJQJ?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/bob-wig-human-hair-lace-front-wigs-human-B0B48GBKT9" 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/41wRcMqVaSL.jpg" alt="Bob Wig Human Hair Lace Front Wigs Human Hair Bob Wigs for Black Women 10 Inch Bob 13X4 Lace Frontal Wigs Human Hair 150% Density Pre Plucked Natural Color" 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">Bob Wig Human Hair Lace Front Wigs Human Hair Bob Wigs for Black Women 10 Inch Bob 13X4 Lace Frontal Wigs Human Hair 150% Density Pre Plucked Natural Color</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">4</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="15.56">15.56</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B0B48GBKT9?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/avon-holiday-edition-lip-balms-lot-of-10-B01LWWO7Z2" 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/519BWGYe08L.jpg" alt="Avon Holiday Edition Lip Balms Lot of 10 - Pink Meringue" 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">Avon Holiday Edition Lip Balms Lot of 10 - Pink Meringue</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">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="56.60">56.60</span>
                    </span>
                    <link itemprop="availability" href="https://schema.org/InStock" />
                    
                    <a href="https://www.amazon.com/dp/B01LWWO7Z2?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/41QyfE-kDcL.jpg",
            
        
            
                "https://m.media-amazon.com/images/I/31XoeU29g6L.jpg",
            
        
            
                "https://m.media-amazon.com/images/I/41w4qv7f+KL.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>