<style>
  .global-hero-shop-btn{
    position:absolute;
    bottom:40px;
    left:50%;
    transform:translateX(-50%);
    z-index:9999;
    padding:14px 42px;
    font-size:16px;
    font-weight:700;
    background:#000;
    color:#fff;
    text-decoration:none;
    border-radius:8px;
    line-height:1;
    cursor:pointer;
    user-select:none;
    -webkit-font-smoothing:antialiased;
  }
  .global-hero-shop-btn:hover{ opacity:.9; }

  /* fallback fixed (sadece slider bulunamazsa JS bunu ekler) */
  .global-hero-shop-btn.is-fixed{
    position:fixed;
    bottom:24px;
    left:50%;
    transform:translateX(-50%);
  }

  @media (max-width:768px){
    .global-hero-shop-btn{ bottom:22px; padding:12px 30px; font-size:14px; }
    .global-hero-shop-btn.is-fixed{ bottom:18px; }
  }
</style>

<script>
(function(){
  // Sadece anasayfada istiyorsan aç:
  // if (location.pathname !== "/" && location.pathname !== "/home") return;

  const BTN_ID = "globalHeroShopBtn";
  const SHOP_URL = "/shop";

  // Carousel/slider olabilecek yaygın class/atribute listesi (Zoho temalar dahil)
  const CANDIDATES = [
    ".zc-slider", ".banner-slider", ".hero-slider", ".slider-wrapper",
    ".swiper", ".swiper-container", ".swiper-wrapper",
    ".slick-slider", ".slick-track",
    ".owl-carousel",
    "[aria-roledescription='carousel']",
    "[class*='carousel']",
    "[class*='slider']",
    "[data-carousel]", "[data-slider]"
  ];

  function ensureBtn(){
    let btn = document.getElementById(BTN_ID);
    if (btn) return btn;

    btn = document.createElement("a");
    btn.id = BTN_ID;
    btn.href = SHOP_URL;
    btn.className = "global-hero-shop-btn";
    btn.textContent = "SHOP";
    return btn;
  }

  function findBestContainer(){
    // En “hero” görüneni seçmek için: ekranda üstte görünen ve geniş olanı tercih ederiz.
    const nodes = [];
    CANDIDATES.forEach(sel => document.querySelectorAll(sel).forEach(n => nodes.push(n)));

    // Benzersizleştir
    const uniq = Array.from(new Set(nodes)).filter(n => n && n.getBoundingClientRect);

    // Ekranın üstüne yakın + geniş alan = hero ihtimali yüksek
    uniq.sort((a,b)=>{
      const ra=a.getBoundingClientRect(), rb=b.getBoundingClientRect();
      const scoreA = (Math.abs(ra.top) < 200 ? 0 : Math.abs(ra.top)) + (1000 - Math.min(1000, ra.width));
      const scoreB = (Math.abs(rb.top) < 200 ? 0 : Math.abs(rb.top)) + (1000 - Math.min(1000, rb.width));
      return scoreA - scoreB;
    });

    // Çok küçük şeyleri ele (button vs)
    const pick = uniq.find(n=>{
      const r=n.getBoundingClientRect();
      return r.width > 600 && r.height > 200;
    });

    // Eğer direkt slider track seçtiysek parent’a çık
    if (pick && (pick.classList.contains("slick-track") || pick.classList.contains("swiper-wrapper"))) {
      return pick.closest(".slick-slider, .swiper, .swiper-container") || pick.parentElement;
