<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>HeadphonePrice - Compare Headphone Prices Online | Find Best Deals</title>
  <meta name="description" content="Compare headphone prices from Amazon, Best Buy & more. Find cheap headphones, wireless earbuds, noise cancelling headphones. Save up to 60% with price history tracking.">
  <meta name="keywords" content="cheap headphones, best wireless earbuds, noise cancelling headphones, headphone prices, compare headphones, Sony, Bose, Apple, Sennheiser">
  <meta name="robots" content="index, follow">
  <!-- Bing & Baidu Site Verification -->
  <meta name="msvalidate.01" content="B7784F2A4FC8592CE48F9756167AEC87">
  <meta name="baidu-site-verification" content="codeva-t1brpL118L">
  <!-- Best Buy Affiliate Verification -->
  <meta name="bb-verify" content="22c9bc59-9f9b-45d2-98ba-8f64b0b62ea7">
  <meta property="og:title" content="HeadphonePrice - Compare Headphone Prices Online">
  <meta property="og:description" content="Find the best deals on headphones from top retailers. Price tracking & comparison.">
  <meta property="og:type" content="website">
  <link rel="canonical" href="https://headphoneprice.com/">
  <link rel="stylesheet" href="css/style.css">
  
  <!-- Structured Data -->
  <script type="application/ld+json">
  {
    "@context": "https://schema.org",
    "@type": "WebSite",
    "name": "HeadphonePrice",
    "url": "https://headphoneprice.com/",
    "description": "Compare headphone prices from Amazon, Best Buy & more. Find cheap headphones, wireless earbuds, noise cancelling headphones.",
    "potentialAction": {
      "@type": "SearchAction",
      "target": "https://headphoneprice.com/?q={search_term_string}",
      "query-input": "required name=search_term_string"
    }
  }
  </script>
  <script type="application/ld+json">
  {
    "@context": "https://schema.org",
    "@type": "Organization",
    "name": "HeadphonePrice",
    "url": "https://headphoneprice.com/",
    "logo": "https://headphoneprice.com/images/logo.png",
    "sameAs": [
      "https://twitter.com/headphoneprice",
      "https://www.facebook.com/headphoneprice"
    ]
  }
  </script>
  <style>
    .async-hide{opacity:0!important}
    /* Promotion Banner Styles */
    .promo-banner {
      background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
      color: white;
      padding: 12px 0;
      position: relative;
      z-index: 1000;
      box-shadow: 0 2px 10px rgba(255,65,108,0.3);
    }
    .promo-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 15px;
      flex-wrap: wrap;
      text-align: center;
    }
    .promo-badge {
      background: #ffd700;
      color: #333;
      padding: 4px 12px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: bold;
      text-transform: uppercase;
    }
    .promo-text {
      font-size: 14px;
    }
    .promo-price {
      margin-left: 5px;
    }
    .promo-price s {
      color: rgba(255,255,255,0.6);
    }
    .promo-deal {
      color: #ffd700;
      font-weight: bold;
      font-size: 16px;
    }
    .promo-discount {
      background: #ffd700;
      color: #333;
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 12px;
      font-weight: bold;
      margin-left: 8px;
    }
    .promo-btn {
      background: white;
      color: #ff4b2b;
      padding: 8px 20px;
      border-radius: 25px;
      text-decoration: none;
      font-weight: bold;
      font-size: 14px;
      transition: all 0.3s;
    }
    .promo-btn:hover {
      background: #ffd700;
      transform: scale(1.05);
    }
    .promo-countdown {
      font-size: 13px;
      color: rgba(255,255,255,0.9);
      background: rgba(0,0,0,0.2);
      padding: 4px 12px;
      border-radius: 15px;
    }
    .promo-close {
      background: rgba(255,255,255,0.2);
      border: none;
      color: white;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 14px;
      transition: background 0.3s;
    }
    .promo-close:hover {
      background: rgba(255,255,255,0.4);
    }
    @media (max-width: 768px) {
      .promo-container {
        gap: 10px;
        font-size: 12px;
      }
      .promo-badge, .promo-countdown {
        display: none;
      }
    }
  </style>
</head>
<body>
  <!-- Header -->
  <header class="header">
    <div class="container">
      <div class="header-inner">
        <a href="/" class="logo">
          <span class="logo-icon">🎧</span>
          Headphone<span>Price</span>
        </a>
        <nav class="nav" id="navMenu">
          <a href="/" class="active">Home</a>
          <a href="#brands">Brands</a>
          <a href="#deals">Deals</a>
          <a href="#compare">Compare</a>
        </nav>
        <div class="header-controls">
          <select id="regionSelect" title="Select Region">
            <option value="US">🇺🇸 USD ($)</option>
            <option value="UK">🇬🇧 GBP (£)</option>
            <option value="DE">🇩🇪 EUR (€)</option>
            <option value="JP">🇯🇵 JPY (¥)</option>
            <option value="CN">🇨🇳 CNY (¥)</option>
          </select>
          <select id="langSelect" title="Language">
            <option value="en">EN</option>
            <option value="zh">中文</option>
            <option value="ja">日本語</option>
            <option value="de">DE</option>
            <option value="es">ES</option>
          </select>
          <div class="search-box">
            <input type="text" id="searchInput" placeholder="Search headphones...">
            <button onclick="searchProducts()">Search</button>
          </div>
        </div>
        <button class="mobile-toggle" onclick="toggleMobileMenu()" aria-label="Menu">
          <span></span><span></span><span></span>
        </button>
      </div>
    </div>
  </header>

  <!-- Promotion Banner - Auto-expires 2026-05-05 -->
  <div id="promo-banner" class="promo-banner" style="display:none;">
    <div class="promo-container">
      <span class="promo-badge">🔥 LIMITED TIME DEAL</span>
      <span class="promo-text">
        <strong>Bose QuietComfort 45</strong> - 
        <span class="promo-price"><s>$359</s> <span class="promo-deal">$199</span></span>
        <span class="promo-discount">44% OFF</span>
      </span>
      <a href="pages/bose-quietcomfort-45.html" class="promo-btn">Shop Now →</a>
      <span class="promo-countdown" id="promo-countdown"></span>
      <button class="promo-close" onclick="closePromoBanner()">✕</button>
    </div>
  </div>

  <!-- Hero Section -->
  <section class="hero">
    <div class="container">
      <div class="hero-content">
        <h1 id="heroTitle">Find Your Perfect Headphones</h1>
        <p id="heroSubtitle">Compare prices from 500+ retailers. Track price drops & save up to 60% on premium headphones.</p>
        <div class="hero-search">
          <input type="text" id="heroSearch" placeholder="Search Sony, Bose, Apple...">
          <button onclick="searchProducts()">Compare Prices</button>
        </div>
        <div class="hero-stats">
          <div class="hero-stat"><div class="n" id="statProducts">500+</div><div class="l">Products</div></div>
          <div class="hero-stat"><div class="n">500+</div><div class="l">Retailers</div></div>
          <div class="hero-stat"><div class="n">60%</div><div class="l">Max Savings</div></div>
        </div>
      </div>
    </div>
  </section>

  <!-- Categories -->
  <section class="section">
    <div class="container">
      <div class="section-header">
        <h2>Browse by Category</h2>
      </div>
      <div class="cat-tabs" id="categoryTabs">
        <button class="cat-tab active" data-category="all">🎧 All Headphones</button>
        <button class="cat-tab" data-category="over-ear">�戴上 - Over-Ear</button>
        <button class="cat-tab" data-category="tws">🎵 True Wireless</button>
        <button class="cat-tab" data-category="in-ear">🎧 In-Ear</button>
        <button class="cat-tab" data-category="gaming">🎮 Gaming</button>
        <button class="cat-tab" data-category="noise-cancelling">🔇 Noise Cancelling</button>
      </div>
    </div>
  </section>

  <!-- Hot Deals -->
  <section class="section" id="deals">
    <div class="container">
      <div class="section-header">
        <h2>🔥 Today's Best Deals</h2>
        <a href="#products" onclick="filterByDiscount()">View All Deals →</a>
      </div>
      <div class="products-grid" id="dealsGrid"></div>
    </div>
  </section>

  <!-- Brands -->
  <section class="section" id="brands">
    <div class="container">
      <div class="section-header">
        <h2>Popular Brands</h2>
        <a href="#products">View All →</a>
      </div>
      <div class="brand-grid" id="brandGrid"></div>
    </div>
  </section>

  <!-- Filter -->
  <section class="section">
    <div class="container">
      <div class="filters">
        <label>Brand:</label>
        <select id="filterBrand"><option value="">All Brands</option></select>
        <label>Category:</label>
        <select id="filterCategory"><option value="">All Categories</option></select>
        <label>Price:</label>
        <div class="price-range">
          <input type="number" id="priceMin" placeholder="Min">
          <span>-</span>
          <input type="number" id="priceMax" placeholder="Max">
        </div>
        <label>Sort:</label>
        <select id="sortBy">
          <option value="popular">Best Selling</option>
          <option value="price-low">Price: Low to High</option>
          <option value="price-high">Price: High to Low</option>
          <option value="rating">Highest Rated</option>
          <option value="discount">Biggest Discount</option>
        </select>
        <button class="btn btn-a" onclick="applyFilters()">Apply</button>
        <button class="btn btn-o" onclick="clearFilters()">Clear</button>
      </div>
    </div>
  </section>

  <!-- All Products -->
  <section class="section" id="products">
    <div class="container">
      <div class="section-header">
        <h2>All Headphones</h2>
        <span id="productCount"></span>
      </div>
      <div class="products-grid" id="productsGrid"></div>
      <div class="pagination" id="pagination"></div>
    </div>
  </section>

  <!-- Price Alert -->
  <section class="section">
    <div class="container">
      <div class="alert-box">
        <div class="alert-content">
          <h3>📬 Get Price Drop Alerts</h3>
          <p>Subscribe to price alerts and never miss a deal on your favorite headphones.</p>
        </div>
        <div class="alert-form">
          <input type="email" id="alertEmail" placeholder="Enter your email">
          <input type="text" id="alertProduct" placeholder="Product (optional)">
          <button onclick="subscribeAlert()">Subscribe</button>
        </div>
      </div>
    </div>
  </section>

  <!-- Footer -->
  <footer class="footer">
    <div class="container">
      <div class="footer-grid">
        <div>
          <div class="footer-brand"><span class="logo-icon">🎧</span> Headphone<span>Price</span></div>
          <p class="footer-about">Your trusted destination for comparing headphone prices across 500+ retailers worldwide. We help you find the best deals on premium audio gear.</p>
          <div class="footer-social">
            <a href="#" title="Twitter">𝕏</a>
            <a href="#" title="Facebook">f</a>
            <a href="#" title="Instagram">📷</a>
          </div>
        </div>
        <div class="footer-links">
          <h4>Quick Links</h4>
          <ul>
            <li><a href="/">Home</a></li>
            <li><a href="#brands">Brands</a></li>
            <li><a href="#products">All Products</a></li>
            <li><a href="#deals">Today's Deals</a></li>
          </ul>
        </div>
        <div class="footer-links">
          <h4>Top Categories</h4>
          <ul>
            <li><a href="/wireless.html">Wireless Headphones</a></li>
            <li><a href="/noise-cancelling.html">Noise Cancelling</a></li>
            <li><a href="/gaming.html">Gaming Headsets</a></li>
            <li><a href="/true-wireless.html">True Wireless</a></li>
          </ul>
        </div>
        <div class="footer-links">
          <h4>Support</h4>
          <ul>
            <li><a href="/cdn-cgi/l/email-protection#26504f4543486645495c4308434b474f4a">Email Us</a></li>
            <li><a href="/faq.html">FAQ</a></li>
            <li><a href="/privacy.html">Privacy Policy</a></li>
            <li><a href="/terms.html">Terms of Service</a></li>
          </ul>
          <div class="footer-disclaimer">⚠️ Affiliate Disclosure: We earn commissions from qualifying purchases made through our links at no extra cost to you.</div>
        </div>
      </div>
      <div class="footer-bottom">
        <span>© 2026 HeadphonePrice. All rights reserved.</span>
        <div class="footer-bottom-links">
          <a href="/privacy.html">Privacy</a>
          <a href="/terms.html">Terms</a>
          <a href="/cookies.html">Cookies</a>
        </div>
      </div>
    </div>
  </footer>

  <!-- Toast Container -->
  <div class="toast-container" id="toastContainer"></div>
  
  <!-- Back to Top -->
  <button class="back-top" id="backToTop" onclick="scrollToTop()">↑</button>

  <!-- Product Detail Modal -->
  <div id="productModal" style="display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.7);z-index:2000;overflow-y:auto;padding:40px 20px;">
    <div class="container" style="max-width:1000px;background:var(--w);border-radius:var(--r);margin:0 auto;position:relative;">
      <button onclick="closeModal()" style="position:absolute;top:16px;right:16px;background:0;border:0;font-size:24px;cursor:pointer;z-index:10;">✕</button>
      <div class="detail" id="modalContent"></div>
    </div>
  </div>

  <script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script src="js/geo.js"></script>
  <script src="js/currency.js"></script>
  <script src="js/app.js"></script>
  <script>
    // Promotion Banner Logic - Auto-expires 2026-05-05
    (function() {
      const PROMO_END_DATE = new Date('2026-05-05T23:59:59').getTime();
      const STORAGE_KEY = 'hp_promo_closed';
      
      function initPromoBanner() {
        const now = Date.now();
        const closedUntil = localStorage.getItem(STORAGE_KEY);
        
        // Show banner if not expired and not manually closed
        if (now < PROMO_END_DATE && (!closedUntil || now > parseInt(closedUntil))) {
          const banner = document.getElementById('promo-banner');
          if (banner) {
            banner.style.display = 'block';
            updateCountdown();
            setInterval(updateCountdown, 60000); // Update every minute
          }
        }
      }
      
      function updateCountdown() {
        const now = Date.now();
        const diff = PROMO_END_DATE - now;
        
        if (diff <= 0) {
          document.getElementById('promo-banner').style.display = 'none';
          return;
        }
        
        const days = Math.floor(diff / (1000 * 60 * 60 * 24));
        const hours = Math.floor((diff % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
        const minutes = Math.floor((diff % (1000 * 60 * 60)) / (1000 * 60);
        
        let countdownText = '';
        if (days > 0) countdownText = `${days}d ${hours}h left`;
        else if (hours > 0) countdownText = `${hours}h ${minutes}m left`;
        else countdownText = `${minutes}m left`;
        
        const countdownEl = document.getElementById('promo-countdown');
        if (countdownEl) countdownEl.textContent = '⏰ ' + countdownText;
      }
      
      window.closePromoBanner = function() {
        document.getElementById('promo-banner').style.display = 'none';
        // Remember closure for this session (until midnight)
        const midnight = new Date();
        midnight.setHours(24, 0, 0, 0);
        localStorage.setItem(STORAGE_KEY, midnight.getTime().toString());
      };
      
      // Initialize on DOM ready
      if (document.readyState === 'loading') {
        document.addEventListener('DOMContentLoaded', initPromoBanner);
      } else {
        initPromoBanner();
      }
    })();
  </script>
  <script>
    // Initialize app
    document.addEventListener('DOMContentLoaded', () => {
      initApp();
    });
  </script>
</body>
</html>
